OZE_Sensor.list 2.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692
  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 00018380 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000104 08018620 08018620 00019620 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08018724 08018724 00019724 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 0801872c 0801872c 0001972c 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08018730 08018730 00019730 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000098 24000000 08018734 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 000130ec 240000a0 080187cc 0001a0a0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 2401318c 080187cc 0001a18c 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a098 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 0003512f 00000000 00000000 0001a0c6 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 00006447 00000000 00000000 0004f1f5 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002478 00000000 00000000 00055640 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003ef04 00000000 00000000 00057ab8 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000317a8 00000000 00000000 000969bc 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 00186a01 00000000 00000000 000c8164 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024eb65 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c1d 00000000 00000000 0024eba8 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 00009d14 00000000 00000000 002507c8 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025a4dc 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: 08018608 .word 0x08018608
  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: 08018608 .word 0x08018608
  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 ff6e bl 800b50c <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 f824 bl 801468c <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 fb1a bl 8005d5c <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 ff7d bl 800b674 <HAL_IWDG_Refresh>
  643. #endif
  644. /* USER CODE END 2 */
  645. /* Init scheduler */
  646. osKernelInitialize();
  647. 800077a: f013 fc17 bl 8013fac <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 fd1f bl 80141c8 <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 fd16 bl 80141c8 <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 fd0d bl 80141c8 <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 fd04 bl 80141c8 <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 fc38 bl 8014040 <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 ff4c bl 800b674 <HAL_IWDG_Refresh>
  709. #endif
  710. UartTasksInit();
  711. 80007dc: f004 f8e4 bl 80049a8 <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 fc04 bl 8013ff4 <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: 0801869c .word 0x0801869c
  735. 80007fc: 08001d15 .word 0x08001d15
  736. 8000800: 240006e4 .word 0x240006e4
  737. 8000804: 080186ac .word 0x080186ac
  738. 8000808: 08001d2d .word 0x08001d2d
  739. 800080c: 24000714 .word 0x24000714
  740. 8000810: 080186bc .word 0x080186bc
  741. 8000814: 08001d49 .word 0x08001d49
  742. 8000818: 24000744 .word 0x24000744
  743. 800081c: 080186cc .word 0x080186cc
  744. 8000820: 08001d85 .word 0x08001d85
  745. 8000824: 24000774 .word 0x24000774
  746. 8000828: 08018678 .word 0x08018678
  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 fd50 bl 80182e8 <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 fd4a bl 80182e8 <memset>
  771. /** Supply configuration update enable
  772. */
  773. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  774. 8000854: 2002 movs r0, #2
  775. 8000856: f00a ffa7 bl 800b7a8 <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 f824 bl 800b928 <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 fc63 bl 800c1dc <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 fcd3 bl 80182e8 <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: f00b fffe bl 800c978 <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 fc51 bl 80062bc <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 fd62 bl 80074f8 <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 fea5 bl 80067b0 <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 fe97 bl 80067b0 <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 fe89 bl 80067b0 <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 fe7b bl 80067b0 <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 fe6c bl 80067b0 <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 fe5d bl 80067b0 <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 fe4e bl 80067b0 <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 fc82 bl 8007430 <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 fb6d bl 80062bc <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 fdce bl 80067b0 <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 fdc0 bl 80067b0 <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 fdb2 bl 80067b0 <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 fbe6 bl 8007430 <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 fadc bl 80062bc <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 fd3d bl 80067b0 <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 fd2f bl 80067b0 <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 fd21 bl 80067b0 <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 fd13 bl 80067b0 <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 fd04 bl 80067b0 <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 fb38 bl 8007430 <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 fc43 bl 80076b4 <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 ff02 bl 8007c88 <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 fa1d bl 80182e8 <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 f8ed bl 8008094 <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 f9dc bl 800829c <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 f9d1 bl 800829c <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 fb50 bl 800b5d6 <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 f9ed bl 800f33c <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 f99f bl 80182e8 <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 fb52 bl 800f680 <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 f8a5 bl 8011148 <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 f879 bl 8010124 <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 f8f7 bl 8011264 <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 f9b1 bl 80043fc <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 f979 bl 800f400 <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 f911 bl 801034c <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 fc9f bl 800fa78 <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: f00f fff8 bl 8011148 <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 ff36 bl 800ffea <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 ff2b bl 800ffea <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 fa42 bl 800f680 <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 ff97 bl 8011148 <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 ff71 bl 8010124 <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 ff5c bl 8010124 <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 ff49 bl 8010124 <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 ff36 bl 8010124 <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 f889 bl 80043fc <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 f850 bl 800f400 <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 ffe8 bl 801034c <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 fb76 bl 800fa78 <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 fecf bl 8011148 <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 fe0d bl 800ffea <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 fe02 bl 800ffea <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 ffd6 bl 800f400 <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 ff6e bl 801034c <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 fe5c bl 8011148 <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 ff51 bl 801139c <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 fbf1 bl 8013cee <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 fc26 bl 8013d6a <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 fba7 bl 8013c7c <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 ff01 bl 801139c <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 fba1 bl 8013cee <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 fbd6 bl 8013d6a <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 fb57 bl 8013c7c <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 fa9b bl 8007b48 <HAL_NVIC_SetPriority>
  3074. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  3075. 8001612: 200b movs r0, #11
  3076. 8001614: f006 fab2 bl 8007b7c <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 fa93 bl 8007b48 <HAL_NVIC_SetPriority>
  3083. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  3084. 8001622: 200c movs r0, #12
  3085. 8001624: f006 faaa bl 8007b7c <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 fa8b bl 8007b48 <HAL_NVIC_SetPriority>
  3092. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  3093. 8001632: 200d movs r0, #13
  3094. 8001634: f006 faa2 bl 8007b7c <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 ff11 bl 800b53c <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 ff0c bl 800b53c <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 fd35 bl 800b1ac <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 fd27 bl 800b1ac <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 fd1b bl 800b1ac <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 fd0d bl 800b1ac <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 f9d6 bl 8007b48 <HAL_NVIC_SetPriority>
  3277. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3278. 800179c: 2017 movs r0, #23
  3279. 800179e: f006 f9ed bl 8007b7c <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 f9ce bl 8007b48 <HAL_NVIC_SetPriority>
  3285. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3286. 80017ac: 2028 movs r0, #40 @ 0x28
  3287. 80017ae: f006 f9e5 bl 8007b7c <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 ff23 bl 801468c <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 fed8 bl 8006600 <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 fee1 bl 801468c <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 fe96 bl 8006600 <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 fe9f bl 801468c <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 fe54 bl 8006600 <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 fcd8 bl 801431c <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 fdb3 bl 801053c <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 fd9a bl 801053c <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 fe13 bl 801468c <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 fd53 bl 801053c <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 fd3a bl 801053c <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 fdb1 bl 801468c <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 fd87 bl 800b674 <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 faef bl 8014166 <osDelay>
  3893. #ifdef WATCHDOG_ENABLED
  3894. HAL_IWDG_Refresh(&hiwdg1);
  3895. 8001b88: 4854 ldr r0, [pc, #336] @ (8001cdc <StartDefaultTask+0x184>)
  3896. 8001b8a: f009 fd73 bl 800b674 <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 fc8e bl 800f4b0 <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 fcf6 bl 800f590 <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 fcee bl 800f590 <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 ffbb bl 800fb3c <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 ffb2 bl 800fb3c <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 ffa9 bl 800fb3c <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 ffa0 bl 800fb3c <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 fcf8 bl 8006600 <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 fcee bl 8006600 <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 fce4 bl 8006600 <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 fe60 bl 8007908 <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 fd13 bl 800b674 <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 fa89 bl 8014166 <osDelay>
  4022. #ifdef WATCHDOG_ENABLED
  4023. HAL_IWDG_Refresh(&hiwdg1);
  4024. 8001c54: 4821 ldr r0, [pc, #132] @ (8001cdc <StartDefaultTask+0x184>)
  4025. 8001c56: f009 fd0d bl 800b674 <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 fccf bl 8010600 <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 fcc8 bl 8010600 <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 fc09 bl 8014496 <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 fc49 bl 801452c <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 fcaf bl 8010600 <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 fca8 bl 8010600 <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 fbe9 bl 8014496 <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 fc29 bl 801452c <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 fe08 bl 800f94c <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 fdf0 bl 800f94c <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 fdec bl 800f94c <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 fdd2 bl 800f94c <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 fdce bl 800f94c <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 fee1 bl 8007b98 <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 feff bl 8007c08 <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 feed bl 8007c08 <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 fedd bl 8007c08 <HAL_MPU_ConfigRegion>
  4333. /* Enables the MPU */
  4334. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4335. 8001e4e: 2004 movs r0, #4
  4336. 8001e50: f005 feba bl 8007bc8 <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 ffad bl 8005dd4 <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 fa53 bl 801438a <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 fa4d bl 801438a <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 fa47 bl 801438a <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 fa41 bl 801438a <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 fb47 bl 80145a6 <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 fb3f bl 80145a6 <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 fb37 bl 80145a6 <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 f9ce bl 80182e8 <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 f9c7 bl 80182e8 <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 f9c0 bl 80182e8 <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 f852 bl 8014040 <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 f848 bl 8014040 <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 f83e bl 8014040 <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 fae9 bl 80145a6 <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 f980 bl 80182e8 <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 f820 bl 8014040 <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 facb bl 80145a6 <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 f963 bl 80182e8 <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 f803 bl 8014040 <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 f91d bl 80182e8 <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 f913 bl 80182e8 <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 fb37 bl 801474c <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 f9d5 bl 8014496 <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 fa10 bl 801452c <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 f921 bl 8014496 <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 f921 bl 801452c <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 f8b7 bl 8014496 <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 f8da bl 801452c <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 f86f bl 8014496 <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 f8ae bl 801452c <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 ff59 bl 80182e8 <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 ff4f bl 80182e8 <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 f973 bl 801474c <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 f811 bl 8014496 <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 f84c bl 801452c <osMutexRelease>
  5058. }
  5059. gainCorrection = gainCorrection / EXT_VREF_mV;
  5060. 8002494: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  5061. 8002498: eddf 6a9c vldr s13, [pc, #624] @ 800270c <ADC2MeasTask+0x2ec>
  5062. 800249c: eec7 7a26 vdiv.f32 s15, s14, s13
  5063. 80024a0: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5064. float ref[CURRENTS_COUNT] = { 0 };
  5065. 80024a4: f04f 0300 mov.w r3, #0
  5066. 80024a8: 60fb str r3, [r7, #12]
  5067. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  5068. 80024aa: 4b99 ldr r3, [pc, #612] @ (8002710 <ADC2MeasTask+0x2f0>)
  5069. 80024ac: 681b ldr r3, [r3, #0]
  5070. 80024ae: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5071. 80024b2: 4618 mov r0, r3
  5072. 80024b4: f011 ffef bl 8014496 <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 f814 bl 801452c <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 ff1d bl 8014496 <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 ff39 bl 801452c <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 fdd5 bl 80182e8 <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 fdce bl 80182e8 <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 fdc7 bl 80182e8 <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 fdc0 bl 80182e8 <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 fdb6 bl 80182e8 <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 ffdf bl 801474c <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 fe71 bl 8014496 <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 feb0 bl 801452c <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 fd67 bl 8014496 <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 fd76 bl 801452c <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 fd23 bl 800b50c <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 fdd9 bl 801468c <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 fcd3 bl 8014496 <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 fd0e bl 801452c <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 fe0f bl 801474c <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 fcad bl 8014496 <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 = 50;
  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 = 50;
  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 fbec bl 801452c <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 fcd6 bl 801474c <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 fb74 bl 8014496 <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 fb2f bl 801452c <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 fb20 bl 800b53c <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 fb0e bl 800b53c <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 fb16 bl 800b56e <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 faee bl 800b53c <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 fab2 bl 800b53c <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 faa5 bl 800b53c <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 fc92 bl 800f94c <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 fc8d bl 800f94c <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 fb59 bl 800f730 <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 fc5f bl 800f94c <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 fc5a bl 800f94c <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 fb29 bl 800f730 <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 fc2f bl 800f94c <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 fc2a bl 800f94c <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 fb00 bl 800f730 <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 fafb bl 800f730 <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 f8b8 bl 80142c0 <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 fbde bl 800f94c <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 fbd9 bl 800f94c <HAL_TIM_PWM_Stop>
  6575. osTimerStop (motorTimerHandle);
  6576. 800319a: 6a38 ldr r0, [r7, #32]
  6577. 800319c: f011 f8be bl 801431c <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 fa9f bl 800f730 <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 fba5 bl 800f94c <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 fba0 bl 800f94c <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 fa72 bl 800f730 <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 fb78 bl 800f94c <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 fb73 bl 800f94c <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 ff3e bl 8010124 <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 ff31 bl 8010124 <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 ff23 bl 8010124 <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 ff16 bl 8010124 <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 ff08 bl 8010124 <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 fefb bl 8010124 <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 f819 bl 801438a <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 ffbf bl 80182e8 <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 f904 bl 80145a6 <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 f8d3 bl 80145a6 <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 fdfe bl 8014040 <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 fdf5 bl 8014040 <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: 60fb str r3, [r7, #12]
  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: 4aa0 ldr r2, [pc, #640] @ (8003790 <PositionControlTask+0x2cc>)
  7078. 8003510: fba2 2303 umull r2, r3, r2, r3
  7079. 8003514: 099b lsrs r3, r3, #6
  7080. 8003516: f107 010c add.w r1, r7, #12
  7081. 800351a: 2200 movs r2, #0
  7082. 800351c: f011 f916 bl 801474c <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: 4b9a ldr r3, [pc, #616] @ (8003794 <PositionControlTask+0x2d0>)
  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 ffb0 bl 8014496 <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 7a03 vldr s14, [r7, #12]
  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 7a04 vstr s15, [r7, #16]
  7104. if (posDiff != 0) {
  7105. 8003550: edd7 7a04 vldr s15, [r7, #16]
  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 7a04 vldr s15, [r7, #16]
  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: 4b81 ldr r3, [pc, #516] @ (8003794 <PositionControlTask+0x2d0>)
  7138. 800358e: 681b ldr r3, [r3, #0]
  7139. 8003590: 4618 mov r0, r3
  7140. 8003592: f010 ffcb bl 801452c <osMutexRelease>
  7141. if (osMutexAcquire (positionSettingMutex, osWaitForever) == osOK) {
  7142. 8003596: 4b80 ldr r3, [pc, #512] @ (8003798 <PositionControlTask+0x2d4>)
  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 ff79 bl 8014496 <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: 4b7c ldr r3, [pc, #496] @ (800379c <PositionControlTask+0x2d8>)
  7152. 80035ac: 6a5b ldr r3, [r3, #36] @ 0x24
  7153. 80035ae: 68fa ldr r2, [r7, #12]
  7154. 80035b0: 601a str r2, [r3, #0]
  7155. osMutexRelease (positionSettingMutex);
  7156. 80035b2: 4b79 ldr r3, [pc, #484] @ (8003798 <PositionControlTask+0x2d4>)
  7157. 80035b4: 681b ldr r3, [r3, #0]
  7158. 80035b6: 4618 mov r0, r3
  7159. 80035b8: f010 ffb8 bl 801452c <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: 4b73 ldr r3, [pc, #460] @ (8003794 <PositionControlTask+0x2d0>)
  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 ff61 bl 8014496 <osMutexAcquire>
  7173. 80035d4: 4603 mov r3, r0
  7174. 80035d6: 2b00 cmp r3, #0
  7175. 80035d8: d192 bne.n 8003500 <PositionControlTask+0x3c>
  7176. if ((*posCtrlTaskArg->motorStatus != 0) || (movementPhase == startPhase)) {
  7177. 80035da: 69fb ldr r3, [r7, #28]
  7178. 80035dc: 6a9b ldr r3, [r3, #40] @ 0x28
  7179. 80035de: 781b ldrb r3, [r3, #0]
  7180. 80035e0: 2b00 cmp r3, #0
  7181. 80035e2: d104 bne.n 80035ee <PositionControlTask+0x12a>
  7182. 80035e4: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7183. 80035e8: 2b01 cmp r3, #1
  7184. 80035ea: f040 81b5 bne.w 8003958 <PositionControlTask+0x494>
  7185. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7186. 80035ee: 69fb ldr r3, [r7, #28]
  7187. 80035f0: 699b ldr r3, [r3, #24]
  7188. 80035f2: 781b ldrb r3, [r3, #0]
  7189. 80035f4: 2b01 cmp r3, #1
  7190. 80035f6: d104 bne.n 8003602 <PositionControlTask+0x13e>
  7191. 80035f8: 69fb ldr r3, [r7, #28]
  7192. 80035fa: 695b ldr r3, [r3, #20]
  7193. 80035fc: 781b ldrb r3, [r3, #0]
  7194. 80035fe: 2b01 cmp r3, #1
  7195. 8003600: d009 beq.n 8003616 <PositionControlTask+0x152>
  7196. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7197. 8003602: 69fb ldr r3, [r7, #28]
  7198. 8003604: 695b ldr r3, [r3, #20]
  7199. 8003606: 781b ldrb r3, [r3, #0]
  7200. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7201. 8003608: 2b01 cmp r3, #1
  7202. 800360a: d12a bne.n 8003662 <PositionControlTask+0x19e>
  7203. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7204. 800360c: 69fb ldr r3, [r7, #28]
  7205. 800360e: 69db ldr r3, [r3, #28]
  7206. 8003610: 781b ldrb r3, [r3, #0]
  7207. 8003612: 2b01 cmp r3, #1
  7208. 8003614: d125 bne.n 8003662 <PositionControlTask+0x19e>
  7209. movementPhase = idlePhase;
  7210. 8003616: 2300 movs r3, #0
  7211. 8003618: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7212. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7213. 800361c: 69fb ldr r3, [r7, #28]
  7214. 800361e: 6818 ldr r0, [r3, #0]
  7215. 8003620: 69fb ldr r3, [r7, #28]
  7216. 8003622: 685c ldr r4, [r3, #4]
  7217. 8003624: 69fb ldr r3, [r7, #28]
  7218. 8003626: 7a1d ldrb r5, [r3, #8]
  7219. 8003628: 69fb ldr r3, [r7, #28]
  7220. 800362a: 7a5e ldrb r6, [r3, #9]
  7221. 800362c: 69fb ldr r3, [r7, #28]
  7222. 800362e: 68db ldr r3, [r3, #12]
  7223. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7224. 8003630: 69fa ldr r2, [r7, #28]
  7225. 8003632: 6952 ldr r2, [r2, #20]
  7226. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7227. 8003634: 7812 ldrb r2, [r2, #0]
  7228. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7229. 8003636: 69f9 ldr r1, [r7, #28]
  7230. 8003638: 6989 ldr r1, [r1, #24]
  7231. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7232. 800363a: 7809 ldrb r1, [r1, #0]
  7233. 800363c: 9104 str r1, [sp, #16]
  7234. 800363e: 9203 str r2, [sp, #12]
  7235. 8003640: 2200 movs r2, #0
  7236. 8003642: 9202 str r2, [sp, #8]
  7237. 8003644: 2200 movs r2, #0
  7238. 8003646: 9201 str r2, [sp, #4]
  7239. 8003648: 9300 str r3, [sp, #0]
  7240. 800364a: 4633 mov r3, r6
  7241. 800364c: 462a mov r2, r5
  7242. 800364e: 4621 mov r1, r4
  7243. 8003650: f7ff fcd6 bl 8003000 <MotorControl>
  7244. 8003654: 4603 mov r3, r0
  7245. 8003656: 61bb str r3, [r7, #24]
  7246. *posCtrlTaskArg->motorStatus = motorStatus;
  7247. 8003658: 69fb ldr r3, [r7, #28]
  7248. 800365a: 6a9b ldr r3, [r3, #40] @ 0x28
  7249. 800365c: 69ba ldr r2, [r7, #24]
  7250. 800365e: b2d2 uxtb r2, r2
  7251. 8003660: 701a strb r2, [r3, #0]
  7252. printf ("Axe %c limiters wrong state - idle phase\n", posCtrlTaskArg->axe);
  7253. #endif
  7254. }
  7255. timeLeftMS += PositionControlTaskTimeOut;
  7256. 8003662: 6aba ldr r2, [r7, #40] @ 0x28
  7257. 8003664: 6a3b ldr r3, [r7, #32]
  7258. 8003666: 4413 add r3, r2
  7259. 8003668: 62bb str r3, [r7, #40] @ 0x28
  7260. if (prevPosition == *posCtrlTaskArg->currentPosition) {
  7261. 800366a: 69fb ldr r3, [r7, #28]
  7262. 800366c: 6a1b ldr r3, [r3, #32]
  7263. 800366e: edd3 7a00 vldr s15, [r3]
  7264. 8003672: ed97 7a0b vldr s14, [r7, #44] @ 0x2c
  7265. 8003676: eeb4 7a67 vcmp.f32 s14, s15
  7266. 800367a: eef1 fa10 vmrs APSR_nzcv, fpscr
  7267. 800367e: d104 bne.n 800368a <PositionControlTask+0x1c6>
  7268. moveCmdTimeoutCounter += PositionControlTaskTimeOut;
  7269. 8003680: 6a7a ldr r2, [r7, #36] @ 0x24
  7270. 8003682: 6a3b ldr r3, [r7, #32]
  7271. 8003684: 4413 add r3, r2
  7272. 8003686: 627b str r3, [r7, #36] @ 0x24
  7273. 8003688: e001 b.n 800368e <PositionControlTask+0x1ca>
  7274. } else {
  7275. moveCmdTimeoutCounter = 0;
  7276. 800368a: 2300 movs r3, #0
  7277. 800368c: 627b str r3, [r7, #36] @ 0x24
  7278. }
  7279. prevPosition = *posCtrlTaskArg->currentPosition;
  7280. 800368e: 69fb ldr r3, [r7, #28]
  7281. 8003690: 6a1b ldr r3, [r3, #32]
  7282. 8003692: 681b ldr r3, [r3, #0]
  7283. 8003694: 62fb str r3, [r7, #44] @ 0x2c
  7284. if (moveCmdTimeoutCounter > NO_MOVE_TIMEOUT_MS) {
  7285. 8003696: 6a7b ldr r3, [r7, #36] @ 0x24
  7286. 8003698: f242 7210 movw r2, #10000 @ 0x2710
  7287. 800369c: 4293 cmp r3, r2
  7288. 800369e: dd25 ble.n 80036ec <PositionControlTask+0x228>
  7289. movementPhase = idlePhase;
  7290. 80036a0: 2300 movs r3, #0
  7291. 80036a2: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7292. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7293. 80036a6: 69fb ldr r3, [r7, #28]
  7294. 80036a8: 6818 ldr r0, [r3, #0]
  7295. 80036aa: 69fb ldr r3, [r7, #28]
  7296. 80036ac: 685c ldr r4, [r3, #4]
  7297. 80036ae: 69fb ldr r3, [r7, #28]
  7298. 80036b0: 7a1d ldrb r5, [r3, #8]
  7299. 80036b2: 69fb ldr r3, [r7, #28]
  7300. 80036b4: 7a5e ldrb r6, [r3, #9]
  7301. 80036b6: 69fb ldr r3, [r7, #28]
  7302. 80036b8: 68db ldr r3, [r3, #12]
  7303. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7304. 80036ba: 69fa ldr r2, [r7, #28]
  7305. 80036bc: 6952 ldr r2, [r2, #20]
  7306. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7307. 80036be: 7812 ldrb r2, [r2, #0]
  7308. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7309. 80036c0: 69f9 ldr r1, [r7, #28]
  7310. 80036c2: 6989 ldr r1, [r1, #24]
  7311. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7312. 80036c4: 7809 ldrb r1, [r1, #0]
  7313. 80036c6: 9104 str r1, [sp, #16]
  7314. 80036c8: 9203 str r2, [sp, #12]
  7315. 80036ca: 2200 movs r2, #0
  7316. 80036cc: 9202 str r2, [sp, #8]
  7317. 80036ce: 2200 movs r2, #0
  7318. 80036d0: 9201 str r2, [sp, #4]
  7319. 80036d2: 9300 str r3, [sp, #0]
  7320. 80036d4: 4633 mov r3, r6
  7321. 80036d6: 462a mov r2, r5
  7322. 80036d8: 4621 mov r1, r4
  7323. 80036da: f7ff fc91 bl 8003000 <MotorControl>
  7324. 80036de: 4603 mov r3, r0
  7325. 80036e0: 61bb str r3, [r7, #24]
  7326. *posCtrlTaskArg->motorStatus = motorStatus;
  7327. 80036e2: 69fb ldr r3, [r7, #28]
  7328. 80036e4: 6a9b ldr r3, [r3, #40] @ 0x28
  7329. 80036e6: 69ba ldr r2, [r7, #24]
  7330. 80036e8: b2d2 uxtb r2, r2
  7331. 80036ea: 701a strb r2, [r3, #0]
  7332. #ifdef DBG_POSITION
  7333. printf ("Axe %c no movement idle phase\n", posCtrlTaskArg->axe);
  7334. #endif
  7335. }
  7336. switch (movementPhase) {
  7337. 80036ec: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7338. 80036f0: 3b01 subs r3, #1
  7339. 80036f2: 2b04 cmp r3, #4
  7340. 80036f4: f200 8128 bhi.w 8003948 <PositionControlTask+0x484>
  7341. 80036f8: a201 add r2, pc, #4 @ (adr r2, 8003700 <PositionControlTask+0x23c>)
  7342. 80036fa: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  7343. 80036fe: bf00 nop
  7344. 8003700: 08003715 .word 0x08003715
  7345. 8003704: 080037a1 .word 0x080037a1
  7346. 8003708: 0800382b .word 0x0800382b
  7347. 800370c: 08003877 .word 0x08003877
  7348. 8003710: 080038d9 .word 0x080038d9
  7349. case startPhase:
  7350. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7351. 8003714: 69fb ldr r3, [r7, #28]
  7352. 8003716: 681c ldr r4, [r3, #0]
  7353. 8003718: 69fb ldr r3, [r7, #28]
  7354. 800371a: 685d ldr r5, [r3, #4]
  7355. 800371c: 69fb ldr r3, [r7, #28]
  7356. 800371e: 7a1e ldrb r6, [r3, #8]
  7357. 8003720: 69fb ldr r3, [r7, #28]
  7358. 8003722: f893 c009 ldrb.w ip, [r3, #9]
  7359. 8003726: 69fb ldr r3, [r7, #28]
  7360. 8003728: 68db ldr r3, [r3, #12]
  7361. 800372a: 6bba ldr r2, [r7, #56] @ 0x38
  7362. 800372c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7363. 800372e: fb01 f202 mul.w r2, r1, r2
  7364. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7365. 8003732: 69f9 ldr r1, [r7, #28]
  7366. 8003734: 6949 ldr r1, [r1, #20]
  7367. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7368. 8003736: 7809 ldrb r1, [r1, #0]
  7369. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7370. 8003738: 69f8 ldr r0, [r7, #28]
  7371. 800373a: 6980 ldr r0, [r0, #24]
  7372. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7373. 800373c: 7800 ldrb r0, [r0, #0]
  7374. 800373e: 9004 str r0, [sp, #16]
  7375. 8003740: 9103 str r1, [sp, #12]
  7376. 8003742: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7377. 8003746: 9102 str r1, [sp, #8]
  7378. 8003748: 9201 str r2, [sp, #4]
  7379. 800374a: 9300 str r3, [sp, #0]
  7380. 800374c: 4663 mov r3, ip
  7381. 800374e: 4632 mov r2, r6
  7382. 8003750: 4629 mov r1, r5
  7383. 8003752: 4620 mov r0, r4
  7384. 8003754: f7ff fc54 bl 8003000 <MotorControl>
  7385. 8003758: 4603 mov r3, r0
  7386. 800375a: 61bb str r3, [r7, #24]
  7387. *posCtrlTaskArg->motorStatus = motorStatus;
  7388. 800375c: 69fb ldr r3, [r7, #28]
  7389. 800375e: 6a9b ldr r3, [r3, #40] @ 0x28
  7390. 8003760: 69ba ldr r2, [r7, #24]
  7391. 8003762: b2d2 uxtb r2, r2
  7392. 8003764: 701a strb r2, [r3, #0]
  7393. if (motorStatus == 1) {
  7394. 8003766: 69bb ldr r3, [r7, #24]
  7395. 8003768: 2b01 cmp r3, #1
  7396. 800376a: d10c bne.n 8003786 <PositionControlTask+0x2c2>
  7397. *posCtrlTaskArg->motorPeakCurrent = 0.0;
  7398. 800376c: 69fb ldr r3, [r7, #28]
  7399. 800376e: 6adb ldr r3, [r3, #44] @ 0x2c
  7400. 8003770: f04f 0200 mov.w r2, #0
  7401. 8003774: 601a str r2, [r3, #0]
  7402. #ifdef DBG_POSITION
  7403. printf ("Axe %c speed up phase\n", posCtrlTaskArg->axe);
  7404. #endif
  7405. movementPhase = speedUpPhase;
  7406. 8003776: 2302 movs r3, #2
  7407. 8003778: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7408. timeLeftMS = 0;
  7409. 800377c: 2300 movs r3, #0
  7410. 800377e: 62bb str r3, [r7, #40] @ 0x28
  7411. moveCmdTimeoutCounter = 0;
  7412. 8003780: 2300 movs r3, #0
  7413. 8003782: 627b str r3, [r7, #36] @ 0x24
  7414. #ifdef DBG_POSITION
  7415. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7416. #endif
  7417. }
  7418. break;
  7419. 8003784: e0e7 b.n 8003956 <PositionControlTask+0x492>
  7420. movementPhase = idlePhase;
  7421. 8003786: 2300 movs r3, #0
  7422. 8003788: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7423. break;
  7424. 800378c: e0e3 b.n 8003956 <PositionControlTask+0x492>
  7425. 800378e: bf00 nop
  7426. 8003790: 10624dd3 .word 0x10624dd3
  7427. 8003794: 2400081c .word 0x2400081c
  7428. 8003798: 240008a8 .word 0x240008a8
  7429. 800379c: 240008b4 .word 0x240008b4
  7430. case speedUpPhase:
  7431. if ((abs (*posCtrlTaskArg->currentPosition - startPosition) >= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7432. 80037a0: 69fb ldr r3, [r7, #28]
  7433. 80037a2: 6a1b ldr r3, [r3, #32]
  7434. 80037a4: ed93 7a00 vldr s14, [r3]
  7435. 80037a8: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  7436. 80037ac: ee77 7a67 vsub.f32 s15, s14, s15
  7437. 80037b0: eefd 7ae7 vcvt.s32.f32 s15, s15
  7438. 80037b4: ee17 3a90 vmov r3, s15
  7439. 80037b8: 2b00 cmp r3, #0
  7440. 80037ba: bfb8 it lt
  7441. 80037bc: 425b neglt r3, r3
  7442. 80037be: 2b04 cmp r3, #4
  7443. 80037c0: dc04 bgt.n 80037cc <PositionControlTask+0x308>
  7444. 80037c2: 6abb ldr r3, [r7, #40] @ 0x28
  7445. 80037c4: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7446. 80037c8: f2c0 80c0 blt.w 800394c <PositionControlTask+0x488>
  7447. pwmValue = MOTOR_HIGH_SPEED_PWM_VALUE;
  7448. 80037cc: 2364 movs r3, #100 @ 0x64
  7449. 80037ce: 63fb str r3, [r7, #60] @ 0x3c
  7450. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7451. 80037d0: 69fb ldr r3, [r7, #28]
  7452. 80037d2: 681c ldr r4, [r3, #0]
  7453. 80037d4: 69fb ldr r3, [r7, #28]
  7454. 80037d6: 685d ldr r5, [r3, #4]
  7455. 80037d8: 69fb ldr r3, [r7, #28]
  7456. 80037da: 7a1e ldrb r6, [r3, #8]
  7457. 80037dc: 69fb ldr r3, [r7, #28]
  7458. 80037de: f893 c009 ldrb.w ip, [r3, #9]
  7459. 80037e2: 69fb ldr r3, [r7, #28]
  7460. 80037e4: 68db ldr r3, [r3, #12]
  7461. 80037e6: 6bba ldr r2, [r7, #56] @ 0x38
  7462. 80037e8: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7463. 80037ea: fb01 f202 mul.w r2, r1, r2
  7464. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7465. 80037ee: 69f9 ldr r1, [r7, #28]
  7466. 80037f0: 6949 ldr r1, [r1, #20]
  7467. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7468. 80037f2: 7809 ldrb r1, [r1, #0]
  7469. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7470. 80037f4: 69f8 ldr r0, [r7, #28]
  7471. 80037f6: 6980 ldr r0, [r0, #24]
  7472. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7473. 80037f8: 7800 ldrb r0, [r0, #0]
  7474. 80037fa: 9004 str r0, [sp, #16]
  7475. 80037fc: 9103 str r1, [sp, #12]
  7476. 80037fe: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7477. 8003802: 9102 str r1, [sp, #8]
  7478. 8003804: 9201 str r2, [sp, #4]
  7479. 8003806: 9300 str r3, [sp, #0]
  7480. 8003808: 4663 mov r3, ip
  7481. 800380a: 4632 mov r2, r6
  7482. 800380c: 4629 mov r1, r5
  7483. 800380e: 4620 mov r0, r4
  7484. 8003810: f7ff fbf6 bl 8003000 <MotorControl>
  7485. 8003814: 4603 mov r3, r0
  7486. 8003816: 61bb str r3, [r7, #24]
  7487. *posCtrlTaskArg->motorStatus = motorStatus;
  7488. 8003818: 69fb ldr r3, [r7, #28]
  7489. 800381a: 6a9b ldr r3, [r3, #40] @ 0x28
  7490. 800381c: 69ba ldr r2, [r7, #24]
  7491. 800381e: b2d2 uxtb r2, r2
  7492. 8003820: 701a strb r2, [r3, #0]
  7493. movementPhase = movePhase;
  7494. 8003822: 2303 movs r3, #3
  7495. 8003824: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7496. #ifdef DBG_POSITION
  7497. printf ("Axe %c move phase\n", posCtrlTaskArg->axe);
  7498. #endif
  7499. }
  7500. break;
  7501. 8003828: e090 b.n 800394c <PositionControlTask+0x488>
  7502. case movePhase:
  7503. if (abs (*posCtrlTaskArg->currentPosition - *posCtrlTaskArg->positionSetting) <= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) {
  7504. 800382a: 69fb ldr r3, [r7, #28]
  7505. 800382c: 6a1b ldr r3, [r3, #32]
  7506. 800382e: ed93 7a00 vldr s14, [r3]
  7507. 8003832: 69fb ldr r3, [r7, #28]
  7508. 8003834: 6a5b ldr r3, [r3, #36] @ 0x24
  7509. 8003836: edd3 7a00 vldr s15, [r3]
  7510. 800383a: ee77 7a67 vsub.f32 s15, s14, s15
  7511. 800383e: eefd 7ae7 vcvt.s32.f32 s15, s15
  7512. 8003842: ee17 3a90 vmov r3, s15
  7513. 8003846: f113 0f05 cmn.w r3, #5
  7514. 800384a: f2c0 8081 blt.w 8003950 <PositionControlTask+0x48c>
  7515. 800384e: 69fb ldr r3, [r7, #28]
  7516. 8003850: 6a1b ldr r3, [r3, #32]
  7517. 8003852: ed93 7a00 vldr s14, [r3]
  7518. 8003856: 69fb ldr r3, [r7, #28]
  7519. 8003858: 6a5b ldr r3, [r3, #36] @ 0x24
  7520. 800385a: edd3 7a00 vldr s15, [r3]
  7521. 800385e: ee77 7a67 vsub.f32 s15, s14, s15
  7522. 8003862: eefd 7ae7 vcvt.s32.f32 s15, s15
  7523. 8003866: ee17 3a90 vmov r3, s15
  7524. 800386a: 2b05 cmp r3, #5
  7525. 800386c: dc70 bgt.n 8003950 <PositionControlTask+0x48c>
  7526. movementPhase = slowDownPhase;
  7527. 800386e: 2304 movs r3, #4
  7528. 8003870: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7529. #ifdef DBG_POSITION
  7530. printf ("Axe %c slow down phase\n", posCtrlTaskArg->axe);
  7531. #endif
  7532. }
  7533. break;
  7534. 8003874: e06c b.n 8003950 <PositionControlTask+0x48c>
  7535. case slowDownPhase:
  7536. pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7537. 8003876: 233c movs r3, #60 @ 0x3c
  7538. 8003878: 63fb str r3, [r7, #60] @ 0x3c
  7539. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7540. 800387a: 69fb ldr r3, [r7, #28]
  7541. 800387c: 681c ldr r4, [r3, #0]
  7542. 800387e: 69fb ldr r3, [r7, #28]
  7543. 8003880: 685d ldr r5, [r3, #4]
  7544. 8003882: 69fb ldr r3, [r7, #28]
  7545. 8003884: 7a1e ldrb r6, [r3, #8]
  7546. 8003886: 69fb ldr r3, [r7, #28]
  7547. 8003888: f893 c009 ldrb.w ip, [r3, #9]
  7548. 800388c: 69fb ldr r3, [r7, #28]
  7549. 800388e: 68db ldr r3, [r3, #12]
  7550. 8003890: 6bba ldr r2, [r7, #56] @ 0x38
  7551. 8003892: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7552. 8003894: fb01 f202 mul.w r2, r1, r2
  7553. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7554. 8003898: 69f9 ldr r1, [r7, #28]
  7555. 800389a: 6949 ldr r1, [r1, #20]
  7556. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7557. 800389c: 7809 ldrb r1, [r1, #0]
  7558. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7559. 800389e: 69f8 ldr r0, [r7, #28]
  7560. 80038a0: 6980 ldr r0, [r0, #24]
  7561. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7562. 80038a2: 7800 ldrb r0, [r0, #0]
  7563. 80038a4: 9004 str r0, [sp, #16]
  7564. 80038a6: 9103 str r1, [sp, #12]
  7565. 80038a8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7566. 80038ac: 9102 str r1, [sp, #8]
  7567. 80038ae: 9201 str r2, [sp, #4]
  7568. 80038b0: 9300 str r3, [sp, #0]
  7569. 80038b2: 4663 mov r3, ip
  7570. 80038b4: 4632 mov r2, r6
  7571. 80038b6: 4629 mov r1, r5
  7572. 80038b8: 4620 mov r0, r4
  7573. 80038ba: f7ff fba1 bl 8003000 <MotorControl>
  7574. 80038be: 4603 mov r3, r0
  7575. 80038c0: 61bb str r3, [r7, #24]
  7576. *posCtrlTaskArg->motorStatus = motorStatus;
  7577. 80038c2: 69fb ldr r3, [r7, #28]
  7578. 80038c4: 6a9b ldr r3, [r3, #40] @ 0x28
  7579. 80038c6: 69ba ldr r2, [r7, #24]
  7580. 80038c8: b2d2 uxtb r2, r2
  7581. 80038ca: 701a strb r2, [r3, #0]
  7582. movementPhase = stopPhase;
  7583. 80038cc: 2305 movs r3, #5
  7584. 80038ce: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7585. timeLeftMS = 0;
  7586. 80038d2: 2300 movs r3, #0
  7587. 80038d4: 62bb str r3, [r7, #40] @ 0x28
  7588. #ifdef DBG_POSITION
  7589. printf ("Axe %c stop phase\n", posCtrlTaskArg->axe);
  7590. #endif
  7591. break;
  7592. 80038d6: e03e b.n 8003956 <PositionControlTask+0x492>
  7593. case stopPhase:
  7594. if ((*posCtrlTaskArg->currentPosition == *posCtrlTaskArg->positionSetting) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7595. 80038d8: 69fb ldr r3, [r7, #28]
  7596. 80038da: 6a1b ldr r3, [r3, #32]
  7597. 80038dc: ed93 7a00 vldr s14, [r3]
  7598. 80038e0: 69fb ldr r3, [r7, #28]
  7599. 80038e2: 6a5b ldr r3, [r3, #36] @ 0x24
  7600. 80038e4: edd3 7a00 vldr s15, [r3]
  7601. 80038e8: eeb4 7a67 vcmp.f32 s14, s15
  7602. 80038ec: eef1 fa10 vmrs APSR_nzcv, fpscr
  7603. 80038f0: d003 beq.n 80038fa <PositionControlTask+0x436>
  7604. 80038f2: 6abb ldr r3, [r7, #40] @ 0x28
  7605. 80038f4: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7606. 80038f8: db2c blt.n 8003954 <PositionControlTask+0x490>
  7607. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7608. 80038fa: 69fb ldr r3, [r7, #28]
  7609. 80038fc: 6818 ldr r0, [r3, #0]
  7610. 80038fe: 69fb ldr r3, [r7, #28]
  7611. 8003900: 685c ldr r4, [r3, #4]
  7612. 8003902: 69fb ldr r3, [r7, #28]
  7613. 8003904: 7a1d ldrb r5, [r3, #8]
  7614. 8003906: 69fb ldr r3, [r7, #28]
  7615. 8003908: 7a5e ldrb r6, [r3, #9]
  7616. 800390a: 69fb ldr r3, [r7, #28]
  7617. 800390c: 68db ldr r3, [r3, #12]
  7618. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7619. 800390e: 69fa ldr r2, [r7, #28]
  7620. 8003910: 6952 ldr r2, [r2, #20]
  7621. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7622. 8003912: 7812 ldrb r2, [r2, #0]
  7623. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7624. 8003914: 69f9 ldr r1, [r7, #28]
  7625. 8003916: 6989 ldr r1, [r1, #24]
  7626. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7627. 8003918: 7809 ldrb r1, [r1, #0]
  7628. 800391a: 9104 str r1, [sp, #16]
  7629. 800391c: 9203 str r2, [sp, #12]
  7630. 800391e: 2200 movs r2, #0
  7631. 8003920: 9202 str r2, [sp, #8]
  7632. 8003922: 2200 movs r2, #0
  7633. 8003924: 9201 str r2, [sp, #4]
  7634. 8003926: 9300 str r3, [sp, #0]
  7635. 8003928: 4633 mov r3, r6
  7636. 800392a: 462a mov r2, r5
  7637. 800392c: 4621 mov r1, r4
  7638. 800392e: f7ff fb67 bl 8003000 <MotorControl>
  7639. 8003932: 4603 mov r3, r0
  7640. 8003934: 61bb str r3, [r7, #24]
  7641. *posCtrlTaskArg->motorStatus = motorStatus;
  7642. 8003936: 69fb ldr r3, [r7, #28]
  7643. 8003938: 6a9b ldr r3, [r3, #40] @ 0x28
  7644. 800393a: 69ba ldr r2, [r7, #24]
  7645. 800393c: b2d2 uxtb r2, r2
  7646. 800393e: 701a strb r2, [r3, #0]
  7647. movementPhase = idlePhase;
  7648. 8003940: 2300 movs r3, #0
  7649. 8003942: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7650. #ifdef DBG_POSITION
  7651. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7652. #endif
  7653. }
  7654. break;
  7655. 8003946: e005 b.n 8003954 <PositionControlTask+0x490>
  7656. default: break;
  7657. 8003948: bf00 nop
  7658. 800394a: e011 b.n 8003970 <PositionControlTask+0x4ac>
  7659. break;
  7660. 800394c: bf00 nop
  7661. 800394e: e00f b.n 8003970 <PositionControlTask+0x4ac>
  7662. break;
  7663. 8003950: bf00 nop
  7664. 8003952: e00d b.n 8003970 <PositionControlTask+0x4ac>
  7665. break;
  7666. 8003954: bf00 nop
  7667. switch (movementPhase) {
  7668. 8003956: e00b b.n 8003970 <PositionControlTask+0x4ac>
  7669. }
  7670. } else {
  7671. if ((*posCtrlTaskArg->motorStatus == 0) && (movementPhase != idlePhase)) {
  7672. 8003958: 69fb ldr r3, [r7, #28]
  7673. 800395a: 6a9b ldr r3, [r3, #40] @ 0x28
  7674. 800395c: 781b ldrb r3, [r3, #0]
  7675. 800395e: 2b00 cmp r3, #0
  7676. 8003960: d106 bne.n 8003970 <PositionControlTask+0x4ac>
  7677. 8003962: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7678. 8003966: 2b00 cmp r3, #0
  7679. 8003968: d002 beq.n 8003970 <PositionControlTask+0x4ac>
  7680. movementPhase = idlePhase;
  7681. 800396a: 2300 movs r3, #0
  7682. 800396c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7683. #ifdef DBG_POSITION
  7684. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7685. #endif
  7686. }
  7687. }
  7688. osMutexRelease (sensorsInfoMutex);
  7689. 8003970: 4b02 ldr r3, [pc, #8] @ (800397c <PositionControlTask+0x4b8>)
  7690. 8003972: 681b ldr r3, [r3, #0]
  7691. 8003974: 4618 mov r0, r3
  7692. 8003976: f010 fdd9 bl 801452c <osMutexRelease>
  7693. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7694. 800397a: e5c1 b.n 8003500 <PositionControlTask+0x3c>
  7695. 800397c: 2400081c .word 0x2400081c
  7696. 08003980 <WriteDataToBuffer>:
  7697. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7698. }
  7699. *buffPos = newBuffPos;
  7700. }
  7701. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  7702. 8003980: b480 push {r7}
  7703. 8003982: b089 sub sp, #36 @ 0x24
  7704. 8003984: af00 add r7, sp, #0
  7705. 8003986: 60f8 str r0, [r7, #12]
  7706. 8003988: 60b9 str r1, [r7, #8]
  7707. 800398a: 607a str r2, [r7, #4]
  7708. 800398c: 70fb strb r3, [r7, #3]
  7709. uint32_t* uDataPtr = data;
  7710. 800398e: 687b ldr r3, [r7, #4]
  7711. 8003990: 61bb str r3, [r7, #24]
  7712. uint32_t uData = *uDataPtr;
  7713. 8003992: 69bb ldr r3, [r7, #24]
  7714. 8003994: 681b ldr r3, [r3, #0]
  7715. 8003996: 617b str r3, [r7, #20]
  7716. uint8_t i = 0;
  7717. 8003998: 2300 movs r3, #0
  7718. 800399a: 77fb strb r3, [r7, #31]
  7719. uint8_t newBuffPos = *buffPos;
  7720. 800399c: 68bb ldr r3, [r7, #8]
  7721. 800399e: 881b ldrh r3, [r3, #0]
  7722. 80039a0: 77bb strb r3, [r7, #30]
  7723. for (i = 0; i < dataSize; i++) {
  7724. 80039a2: 2300 movs r3, #0
  7725. 80039a4: 77fb strb r3, [r7, #31]
  7726. 80039a6: e00e b.n 80039c6 <WriteDataToBuffer+0x46>
  7727. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7728. 80039a8: 7ffb ldrb r3, [r7, #31]
  7729. 80039aa: 00db lsls r3, r3, #3
  7730. 80039ac: 697a ldr r2, [r7, #20]
  7731. 80039ae: 40da lsrs r2, r3
  7732. 80039b0: 7fbb ldrb r3, [r7, #30]
  7733. 80039b2: 1c59 adds r1, r3, #1
  7734. 80039b4: 77b9 strb r1, [r7, #30]
  7735. 80039b6: 4619 mov r1, r3
  7736. 80039b8: 68fb ldr r3, [r7, #12]
  7737. 80039ba: 440b add r3, r1
  7738. 80039bc: b2d2 uxtb r2, r2
  7739. 80039be: 701a strb r2, [r3, #0]
  7740. for (i = 0; i < dataSize; i++) {
  7741. 80039c0: 7ffb ldrb r3, [r7, #31]
  7742. 80039c2: 3301 adds r3, #1
  7743. 80039c4: 77fb strb r3, [r7, #31]
  7744. 80039c6: 7ffa ldrb r2, [r7, #31]
  7745. 80039c8: 78fb ldrb r3, [r7, #3]
  7746. 80039ca: 429a cmp r2, r3
  7747. 80039cc: d3ec bcc.n 80039a8 <WriteDataToBuffer+0x28>
  7748. }
  7749. *buffPos = newBuffPos;
  7750. 80039ce: 7fbb ldrb r3, [r7, #30]
  7751. 80039d0: b29a uxth r2, r3
  7752. 80039d2: 68bb ldr r3, [r7, #8]
  7753. 80039d4: 801a strh r2, [r3, #0]
  7754. }
  7755. 80039d6: bf00 nop
  7756. 80039d8: 3724 adds r7, #36 @ 0x24
  7757. 80039da: 46bd mov sp, r7
  7758. 80039dc: f85d 7b04 ldr.w r7, [sp], #4
  7759. 80039e0: 4770 bx lr
  7760. 080039e2 <ReadFloatFromBuffer>:
  7761. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7762. {
  7763. 80039e2: b480 push {r7}
  7764. 80039e4: b087 sub sp, #28
  7765. 80039e6: af00 add r7, sp, #0
  7766. 80039e8: 60f8 str r0, [r7, #12]
  7767. 80039ea: 60b9 str r1, [r7, #8]
  7768. 80039ec: 607a str r2, [r7, #4]
  7769. uint32_t* word = (uint32_t *)data;
  7770. 80039ee: 687b ldr r3, [r7, #4]
  7771. 80039f0: 617b str r3, [r7, #20]
  7772. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7773. 80039f2: 68bb ldr r3, [r7, #8]
  7774. 80039f4: 881b ldrh r3, [r3, #0]
  7775. 80039f6: 3303 adds r3, #3
  7776. 80039f8: 68fa ldr r2, [r7, #12]
  7777. 80039fa: 4413 add r3, r2
  7778. 80039fc: 781b ldrb r3, [r3, #0]
  7779. 80039fe: 061a lsls r2, r3, #24
  7780. 8003a00: 68bb ldr r3, [r7, #8]
  7781. 8003a02: 881b ldrh r3, [r3, #0]
  7782. 8003a04: 3302 adds r3, #2
  7783. 8003a06: 68f9 ldr r1, [r7, #12]
  7784. 8003a08: 440b add r3, r1
  7785. 8003a0a: 781b ldrb r3, [r3, #0]
  7786. 8003a0c: 041b lsls r3, r3, #16
  7787. 8003a0e: 431a orrs r2, r3
  7788. 8003a10: 68bb ldr r3, [r7, #8]
  7789. 8003a12: 881b ldrh r3, [r3, #0]
  7790. 8003a14: 3301 adds r3, #1
  7791. 8003a16: 68f9 ldr r1, [r7, #12]
  7792. 8003a18: 440b add r3, r1
  7793. 8003a1a: 781b ldrb r3, [r3, #0]
  7794. 8003a1c: 021b lsls r3, r3, #8
  7795. 8003a1e: 4313 orrs r3, r2
  7796. 8003a20: 68ba ldr r2, [r7, #8]
  7797. 8003a22: 8812 ldrh r2, [r2, #0]
  7798. 8003a24: 4611 mov r1, r2
  7799. 8003a26: 68fa ldr r2, [r7, #12]
  7800. 8003a28: 440a add r2, r1
  7801. 8003a2a: 7812 ldrb r2, [r2, #0]
  7802. 8003a2c: 4313 orrs r3, r2
  7803. 8003a2e: 461a mov r2, r3
  7804. 8003a30: 697b ldr r3, [r7, #20]
  7805. 8003a32: 601a str r2, [r3, #0]
  7806. *buffPos += sizeof(float);
  7807. 8003a34: 68bb ldr r3, [r7, #8]
  7808. 8003a36: 881b ldrh r3, [r3, #0]
  7809. 8003a38: 3304 adds r3, #4
  7810. 8003a3a: b29a uxth r2, r3
  7811. 8003a3c: 68bb ldr r3, [r7, #8]
  7812. 8003a3e: 801a strh r2, [r3, #0]
  7813. }
  7814. 8003a40: bf00 nop
  7815. 8003a42: 371c adds r7, #28
  7816. 8003a44: 46bd mov sp, r7
  7817. 8003a46: f85d 7b04 ldr.w r7, [sp], #4
  7818. 8003a4a: 4770 bx lr
  7819. 08003a4c <ReadWordFromBufer>:
  7820. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7821. *buffPos += sizeof(uint16_t);
  7822. }
  7823. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  7824. {
  7825. 8003a4c: b480 push {r7}
  7826. 8003a4e: b085 sub sp, #20
  7827. 8003a50: af00 add r7, sp, #0
  7828. 8003a52: 60f8 str r0, [r7, #12]
  7829. 8003a54: 60b9 str r1, [r7, #8]
  7830. 8003a56: 607a str r2, [r7, #4]
  7831. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7832. 8003a58: 68bb ldr r3, [r7, #8]
  7833. 8003a5a: 881b ldrh r3, [r3, #0]
  7834. 8003a5c: 3303 adds r3, #3
  7835. 8003a5e: 68fa ldr r2, [r7, #12]
  7836. 8003a60: 4413 add r3, r2
  7837. 8003a62: 781b ldrb r3, [r3, #0]
  7838. 8003a64: 061a lsls r2, r3, #24
  7839. 8003a66: 68bb ldr r3, [r7, #8]
  7840. 8003a68: 881b ldrh r3, [r3, #0]
  7841. 8003a6a: 3302 adds r3, #2
  7842. 8003a6c: 68f9 ldr r1, [r7, #12]
  7843. 8003a6e: 440b add r3, r1
  7844. 8003a70: 781b ldrb r3, [r3, #0]
  7845. 8003a72: 041b lsls r3, r3, #16
  7846. 8003a74: 431a orrs r2, r3
  7847. 8003a76: 68bb ldr r3, [r7, #8]
  7848. 8003a78: 881b ldrh r3, [r3, #0]
  7849. 8003a7a: 3301 adds r3, #1
  7850. 8003a7c: 68f9 ldr r1, [r7, #12]
  7851. 8003a7e: 440b add r3, r1
  7852. 8003a80: 781b ldrb r3, [r3, #0]
  7853. 8003a82: 021b lsls r3, r3, #8
  7854. 8003a84: 4313 orrs r3, r2
  7855. 8003a86: 68ba ldr r2, [r7, #8]
  7856. 8003a88: 8812 ldrh r2, [r2, #0]
  7857. 8003a8a: 4611 mov r1, r2
  7858. 8003a8c: 68fa ldr r2, [r7, #12]
  7859. 8003a8e: 440a add r2, r1
  7860. 8003a90: 7812 ldrb r2, [r2, #0]
  7861. 8003a92: 4313 orrs r3, r2
  7862. 8003a94: 461a mov r2, r3
  7863. 8003a96: 687b ldr r3, [r7, #4]
  7864. 8003a98: 601a str r2, [r3, #0]
  7865. *buffPos += sizeof(uint32_t);
  7866. 8003a9a: 68bb ldr r3, [r7, #8]
  7867. 8003a9c: 881b ldrh r3, [r3, #0]
  7868. 8003a9e: 3304 adds r3, #4
  7869. 8003aa0: b29a uxth r2, r3
  7870. 8003aa2: 68bb ldr r3, [r7, #8]
  7871. 8003aa4: 801a strh r2, [r3, #0]
  7872. }
  7873. 8003aa6: bf00 nop
  7874. 8003aa8: 3714 adds r7, #20
  7875. 8003aaa: 46bd mov sp, r7
  7876. 8003aac: f85d 7b04 ldr.w r7, [sp], #4
  7877. 8003ab0: 4770 bx lr
  7878. ...
  7879. 08003ab4 <PrepareRespFrame>:
  7880. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7881. return txBufferPos;
  7882. }
  7883. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7884. 8003ab4: b580 push {r7, lr}
  7885. 8003ab6: b084 sub sp, #16
  7886. 8003ab8: af00 add r7, sp, #0
  7887. 8003aba: 6078 str r0, [r7, #4]
  7888. 8003abc: 4608 mov r0, r1
  7889. 8003abe: 4611 mov r1, r2
  7890. 8003ac0: 461a mov r2, r3
  7891. 8003ac2: 4603 mov r3, r0
  7892. 8003ac4: 807b strh r3, [r7, #2]
  7893. 8003ac6: 460b mov r3, r1
  7894. 8003ac8: 707b strb r3, [r7, #1]
  7895. 8003aca: 4613 mov r3, r2
  7896. 8003acc: 703b strb r3, [r7, #0]
  7897. uint16_t crc = 0;
  7898. 8003ace: 2300 movs r3, #0
  7899. 8003ad0: 81bb strh r3, [r7, #12]
  7900. uint16_t txBufferPos = 0;
  7901. 8003ad2: 2300 movs r3, #0
  7902. 8003ad4: 81fb strh r3, [r7, #14]
  7903. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7904. 8003ad6: 787b ldrb r3, [r7, #1]
  7905. 8003ad8: b21a sxth r2, r3
  7906. 8003ada: 4b43 ldr r3, [pc, #268] @ (8003be8 <PrepareRespFrame+0x134>)
  7907. 8003adc: 4313 orrs r3, r2
  7908. 8003ade: b21b sxth r3, r3
  7909. 8003ae0: 817b strh r3, [r7, #10]
  7910. memset (txBuffer, 0x00, dataLength);
  7911. 8003ae2: 8bbb ldrh r3, [r7, #28]
  7912. 8003ae4: 461a mov r2, r3
  7913. 8003ae6: 2100 movs r1, #0
  7914. 8003ae8: 6878 ldr r0, [r7, #4]
  7915. 8003aea: f014 fbfd bl 80182e8 <memset>
  7916. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7917. 8003aee: 89fb ldrh r3, [r7, #14]
  7918. 8003af0: 1c5a adds r2, r3, #1
  7919. 8003af2: 81fa strh r2, [r7, #14]
  7920. 8003af4: 461a mov r2, r3
  7921. 8003af6: 687b ldr r3, [r7, #4]
  7922. 8003af8: 4413 add r3, r2
  7923. 8003afa: 22aa movs r2, #170 @ 0xaa
  7924. 8003afc: 701a strb r2, [r3, #0]
  7925. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7926. 8003afe: 89fb ldrh r3, [r7, #14]
  7927. 8003b00: 1c5a adds r2, r3, #1
  7928. 8003b02: 81fa strh r2, [r7, #14]
  7929. 8003b04: 461a mov r2, r3
  7930. 8003b06: 687b ldr r3, [r7, #4]
  7931. 8003b08: 4413 add r3, r2
  7932. 8003b0a: 887a ldrh r2, [r7, #2]
  7933. 8003b0c: b2d2 uxtb r2, r2
  7934. 8003b0e: 701a strb r2, [r3, #0]
  7935. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7936. 8003b10: 887b ldrh r3, [r7, #2]
  7937. 8003b12: 0a1b lsrs r3, r3, #8
  7938. 8003b14: b29a uxth r2, r3
  7939. 8003b16: 89fb ldrh r3, [r7, #14]
  7940. 8003b18: 1c59 adds r1, r3, #1
  7941. 8003b1a: 81f9 strh r1, [r7, #14]
  7942. 8003b1c: 4619 mov r1, r3
  7943. 8003b1e: 687b ldr r3, [r7, #4]
  7944. 8003b20: 440b add r3, r1
  7945. 8003b22: b2d2 uxtb r2, r2
  7946. 8003b24: 701a strb r2, [r3, #0]
  7947. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7948. 8003b26: 89fb ldrh r3, [r7, #14]
  7949. 8003b28: 1c5a adds r2, r3, #1
  7950. 8003b2a: 81fa strh r2, [r7, #14]
  7951. 8003b2c: 461a mov r2, r3
  7952. 8003b2e: 687b ldr r3, [r7, #4]
  7953. 8003b30: 4413 add r3, r2
  7954. 8003b32: 897a ldrh r2, [r7, #10]
  7955. 8003b34: b2d2 uxtb r2, r2
  7956. 8003b36: 701a strb r2, [r3, #0]
  7957. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7958. 8003b38: 897b ldrh r3, [r7, #10]
  7959. 8003b3a: 0a1b lsrs r3, r3, #8
  7960. 8003b3c: b29a uxth r2, r3
  7961. 8003b3e: 89fb ldrh r3, [r7, #14]
  7962. 8003b40: 1c59 adds r1, r3, #1
  7963. 8003b42: 81f9 strh r1, [r7, #14]
  7964. 8003b44: 4619 mov r1, r3
  7965. 8003b46: 687b ldr r3, [r7, #4]
  7966. 8003b48: 440b add r3, r1
  7967. 8003b4a: b2d2 uxtb r2, r2
  7968. 8003b4c: 701a strb r2, [r3, #0]
  7969. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7970. 8003b4e: 89fb ldrh r3, [r7, #14]
  7971. 8003b50: 1c5a adds r2, r3, #1
  7972. 8003b52: 81fa strh r2, [r7, #14]
  7973. 8003b54: 461a mov r2, r3
  7974. 8003b56: 687b ldr r3, [r7, #4]
  7975. 8003b58: 4413 add r3, r2
  7976. 8003b5a: 8bba ldrh r2, [r7, #28]
  7977. 8003b5c: b2d2 uxtb r2, r2
  7978. 8003b5e: 701a strb r2, [r3, #0]
  7979. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7980. 8003b60: 8bbb ldrh r3, [r7, #28]
  7981. 8003b62: 0a1b lsrs r3, r3, #8
  7982. 8003b64: b29a uxth r2, r3
  7983. 8003b66: 89fb ldrh r3, [r7, #14]
  7984. 8003b68: 1c59 adds r1, r3, #1
  7985. 8003b6a: 81f9 strh r1, [r7, #14]
  7986. 8003b6c: 4619 mov r1, r3
  7987. 8003b6e: 687b ldr r3, [r7, #4]
  7988. 8003b70: 440b add r3, r1
  7989. 8003b72: b2d2 uxtb r2, r2
  7990. 8003b74: 701a strb r2, [r3, #0]
  7991. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  7992. 8003b76: 89fb ldrh r3, [r7, #14]
  7993. 8003b78: 1c5a adds r2, r3, #1
  7994. 8003b7a: 81fa strh r2, [r7, #14]
  7995. 8003b7c: 461a mov r2, r3
  7996. 8003b7e: 687b ldr r3, [r7, #4]
  7997. 8003b80: 4413 add r3, r2
  7998. 8003b82: 783a ldrb r2, [r7, #0]
  7999. 8003b84: 701a strb r2, [r3, #0]
  8000. if (dataLength > 0) {
  8001. 8003b86: 8bbb ldrh r3, [r7, #28]
  8002. 8003b88: 2b00 cmp r3, #0
  8003. 8003b8a: d00b beq.n 8003ba4 <PrepareRespFrame+0xf0>
  8004. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  8005. 8003b8c: 89fb ldrh r3, [r7, #14]
  8006. 8003b8e: 687a ldr r2, [r7, #4]
  8007. 8003b90: 4413 add r3, r2
  8008. 8003b92: 8bba ldrh r2, [r7, #28]
  8009. 8003b94: 69b9 ldr r1, [r7, #24]
  8010. 8003b96: 4618 mov r0, r3
  8011. 8003b98: f014 fc30 bl 80183fc <memcpy>
  8012. txBufferPos += dataLength;
  8013. 8003b9c: 89fa ldrh r2, [r7, #14]
  8014. 8003b9e: 8bbb ldrh r3, [r7, #28]
  8015. 8003ba0: 4413 add r3, r2
  8016. 8003ba2: 81fb strh r3, [r7, #14]
  8017. }
  8018. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  8019. 8003ba4: 89fb ldrh r3, [r7, #14]
  8020. 8003ba6: 461a mov r2, r3
  8021. 8003ba8: 6879 ldr r1, [r7, #4]
  8022. 8003baa: 4810 ldr r0, [pc, #64] @ (8003bec <PrepareRespFrame+0x138>)
  8023. 8003bac: f004 f8d0 bl 8007d50 <HAL_CRC_Calculate>
  8024. 8003bb0: 4603 mov r3, r0
  8025. 8003bb2: 81bb strh r3, [r7, #12]
  8026. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  8027. 8003bb4: 89fb ldrh r3, [r7, #14]
  8028. 8003bb6: 1c5a adds r2, r3, #1
  8029. 8003bb8: 81fa strh r2, [r7, #14]
  8030. 8003bba: 461a mov r2, r3
  8031. 8003bbc: 687b ldr r3, [r7, #4]
  8032. 8003bbe: 4413 add r3, r2
  8033. 8003bc0: 89ba ldrh r2, [r7, #12]
  8034. 8003bc2: b2d2 uxtb r2, r2
  8035. 8003bc4: 701a strb r2, [r3, #0]
  8036. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  8037. 8003bc6: 89bb ldrh r3, [r7, #12]
  8038. 8003bc8: 0a1b lsrs r3, r3, #8
  8039. 8003bca: b29a uxth r2, r3
  8040. 8003bcc: 89fb ldrh r3, [r7, #14]
  8041. 8003bce: 1c59 adds r1, r3, #1
  8042. 8003bd0: 81f9 strh r1, [r7, #14]
  8043. 8003bd2: 4619 mov r1, r3
  8044. 8003bd4: 687b ldr r3, [r7, #4]
  8045. 8003bd6: 440b add r3, r1
  8046. 8003bd8: b2d2 uxtb r2, r2
  8047. 8003bda: 701a strb r2, [r3, #0]
  8048. return txBufferPos;
  8049. 8003bdc: 89fb ldrh r3, [r7, #14]
  8050. }
  8051. 8003bde: 4618 mov r0, r3
  8052. 8003be0: 3710 adds r7, #16
  8053. 8003be2: 46bd mov sp, r7
  8054. 8003be4: bd80 pop {r7, pc}
  8055. 8003be6: bf00 nop
  8056. 8003be8: ffff8000 .word 0xffff8000
  8057. 8003bec: 240003e0 .word 0x240003e0
  8058. 08003bf0 <HAL_MspInit>:
  8059. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  8060. /**
  8061. * Initializes the Global MSP.
  8062. */
  8063. void HAL_MspInit(void)
  8064. {
  8065. 8003bf0: b580 push {r7, lr}
  8066. 8003bf2: b086 sub sp, #24
  8067. 8003bf4: af00 add r7, sp, #0
  8068. /* USER CODE BEGIN MspInit 0 */
  8069. /* USER CODE END MspInit 0 */
  8070. PWREx_AVDTypeDef sConfigAVD = {0};
  8071. 8003bf6: f107 0310 add.w r3, r7, #16
  8072. 8003bfa: 2200 movs r2, #0
  8073. 8003bfc: 601a str r2, [r3, #0]
  8074. 8003bfe: 605a str r2, [r3, #4]
  8075. PWR_PVDTypeDef sConfigPVD = {0};
  8076. 8003c00: f107 0308 add.w r3, r7, #8
  8077. 8003c04: 2200 movs r2, #0
  8078. 8003c06: 601a str r2, [r3, #0]
  8079. 8003c08: 605a str r2, [r3, #4]
  8080. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8081. 8003c0a: 4b26 ldr r3, [pc, #152] @ (8003ca4 <HAL_MspInit+0xb4>)
  8082. 8003c0c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8083. 8003c10: 4a24 ldr r2, [pc, #144] @ (8003ca4 <HAL_MspInit+0xb4>)
  8084. 8003c12: f043 0302 orr.w r3, r3, #2
  8085. 8003c16: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8086. 8003c1a: 4b22 ldr r3, [pc, #136] @ (8003ca4 <HAL_MspInit+0xb4>)
  8087. 8003c1c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8088. 8003c20: f003 0302 and.w r3, r3, #2
  8089. 8003c24: 607b str r3, [r7, #4]
  8090. 8003c26: 687b ldr r3, [r7, #4]
  8091. /* System interrupt init*/
  8092. /* PendSV_IRQn interrupt configuration */
  8093. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  8094. 8003c28: 2200 movs r2, #0
  8095. 8003c2a: 210f movs r1, #15
  8096. 8003c2c: f06f 0001 mvn.w r0, #1
  8097. 8003c30: f003 ff8a bl 8007b48 <HAL_NVIC_SetPriority>
  8098. /* Peripheral interrupt init */
  8099. /* RCC_IRQn interrupt configuration */
  8100. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  8101. 8003c34: 2200 movs r2, #0
  8102. 8003c36: 2105 movs r1, #5
  8103. 8003c38: 2005 movs r0, #5
  8104. 8003c3a: f003 ff85 bl 8007b48 <HAL_NVIC_SetPriority>
  8105. HAL_NVIC_EnableIRQ(RCC_IRQn);
  8106. 8003c3e: 2005 movs r0, #5
  8107. 8003c40: f003 ff9c bl 8007b7c <HAL_NVIC_EnableIRQ>
  8108. /** AVD Configuration
  8109. */
  8110. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  8111. 8003c44: f44f 23c0 mov.w r3, #393216 @ 0x60000
  8112. 8003c48: 613b str r3, [r7, #16]
  8113. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  8114. 8003c4a: 2300 movs r3, #0
  8115. 8003c4c: 617b str r3, [r7, #20]
  8116. HAL_PWREx_ConfigAVD(&sConfigAVD);
  8117. 8003c4e: f107 0310 add.w r3, r7, #16
  8118. 8003c52: 4618 mov r0, r3
  8119. 8003c54: f007 fde2 bl 800b81c <HAL_PWREx_ConfigAVD>
  8120. /** Enable the AVD Output
  8121. */
  8122. HAL_PWREx_EnableAVD();
  8123. 8003c58: f007 fe56 bl 800b908 <HAL_PWREx_EnableAVD>
  8124. /** PVD Configuration
  8125. */
  8126. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  8127. 8003c5c: 23c0 movs r3, #192 @ 0xc0
  8128. 8003c5e: 60bb str r3, [r7, #8]
  8129. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  8130. 8003c60: 2300 movs r3, #0
  8131. 8003c62: 60fb str r3, [r7, #12]
  8132. HAL_PWR_ConfigPVD(&sConfigPVD);
  8133. 8003c64: f107 0308 add.w r3, r7, #8
  8134. 8003c68: 4618 mov r0, r3
  8135. 8003c6a: f007 fd13 bl 800b694 <HAL_PWR_ConfigPVD>
  8136. /** Enable the PVD Output
  8137. */
  8138. HAL_PWR_EnablePVD();
  8139. 8003c6e: f007 fd8b bl 800b788 <HAL_PWR_EnablePVD>
  8140. /** Enable the VREF clock
  8141. */
  8142. __HAL_RCC_VREF_CLK_ENABLE();
  8143. 8003c72: 4b0c ldr r3, [pc, #48] @ (8003ca4 <HAL_MspInit+0xb4>)
  8144. 8003c74: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8145. 8003c78: 4a0a ldr r2, [pc, #40] @ (8003ca4 <HAL_MspInit+0xb4>)
  8146. 8003c7a: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  8147. 8003c7e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8148. 8003c82: 4b08 ldr r3, [pc, #32] @ (8003ca4 <HAL_MspInit+0xb4>)
  8149. 8003c84: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8150. 8003c88: f403 4300 and.w r3, r3, #32768 @ 0x8000
  8151. 8003c8c: 603b str r3, [r7, #0]
  8152. 8003c8e: 683b ldr r3, [r7, #0]
  8153. /** Disable the Internal Voltage Reference buffer
  8154. */
  8155. HAL_SYSCFG_DisableVREFBUF();
  8156. 8003c90: f002 f8e0 bl 8005e54 <HAL_SYSCFG_DisableVREFBUF>
  8157. /** Configure the internal voltage reference buffer high impedance mode
  8158. */
  8159. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  8160. 8003c94: 2002 movs r0, #2
  8161. 8003c96: f002 f8c9 bl 8005e2c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  8162. /* USER CODE BEGIN MspInit 1 */
  8163. /* USER CODE END MspInit 1 */
  8164. }
  8165. 8003c9a: bf00 nop
  8166. 8003c9c: 3718 adds r7, #24
  8167. 8003c9e: 46bd mov sp, r7
  8168. 8003ca0: bd80 pop {r7, pc}
  8169. 8003ca2: bf00 nop
  8170. 8003ca4: 58024400 .word 0x58024400
  8171. 08003ca8 <HAL_ADC_MspInit>:
  8172. * This function configures the hardware resources used in this example
  8173. * @param hadc: ADC handle pointer
  8174. * @retval None
  8175. */
  8176. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  8177. {
  8178. 8003ca8: b580 push {r7, lr}
  8179. 8003caa: b092 sub sp, #72 @ 0x48
  8180. 8003cac: af00 add r7, sp, #0
  8181. 8003cae: 6078 str r0, [r7, #4]
  8182. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8183. 8003cb0: f107 0334 add.w r3, r7, #52 @ 0x34
  8184. 8003cb4: 2200 movs r2, #0
  8185. 8003cb6: 601a str r2, [r3, #0]
  8186. 8003cb8: 605a str r2, [r3, #4]
  8187. 8003cba: 609a str r2, [r3, #8]
  8188. 8003cbc: 60da str r2, [r3, #12]
  8189. 8003cbe: 611a str r2, [r3, #16]
  8190. if(hadc->Instance==ADC1)
  8191. 8003cc0: 687b ldr r3, [r7, #4]
  8192. 8003cc2: 681b ldr r3, [r3, #0]
  8193. 8003cc4: 4a9d ldr r2, [pc, #628] @ (8003f3c <HAL_ADC_MspInit+0x294>)
  8194. 8003cc6: 4293 cmp r3, r2
  8195. 8003cc8: f040 8099 bne.w 8003dfe <HAL_ADC_MspInit+0x156>
  8196. {
  8197. /* USER CODE BEGIN ADC1_MspInit 0 */
  8198. /* USER CODE END ADC1_MspInit 0 */
  8199. /* Peripheral clock enable */
  8200. HAL_RCC_ADC12_CLK_ENABLED++;
  8201. 8003ccc: 4b9c ldr r3, [pc, #624] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8202. 8003cce: 681b ldr r3, [r3, #0]
  8203. 8003cd0: 3301 adds r3, #1
  8204. 8003cd2: 4a9b ldr r2, [pc, #620] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8205. 8003cd4: 6013 str r3, [r2, #0]
  8206. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8207. 8003cd6: 4b9a ldr r3, [pc, #616] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8208. 8003cd8: 681b ldr r3, [r3, #0]
  8209. 8003cda: 2b01 cmp r3, #1
  8210. 8003cdc: d10e bne.n 8003cfc <HAL_ADC_MspInit+0x54>
  8211. __HAL_RCC_ADC12_CLK_ENABLE();
  8212. 8003cde: 4b99 ldr r3, [pc, #612] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8213. 8003ce0: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8214. 8003ce4: 4a97 ldr r2, [pc, #604] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8215. 8003ce6: f043 0320 orr.w r3, r3, #32
  8216. 8003cea: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8217. 8003cee: 4b95 ldr r3, [pc, #596] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8218. 8003cf0: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8219. 8003cf4: f003 0320 and.w r3, r3, #32
  8220. 8003cf8: 633b str r3, [r7, #48] @ 0x30
  8221. 8003cfa: 6b3b ldr r3, [r7, #48] @ 0x30
  8222. }
  8223. __HAL_RCC_GPIOA_CLK_ENABLE();
  8224. 8003cfc: 4b91 ldr r3, [pc, #580] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8225. 8003cfe: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8226. 8003d02: 4a90 ldr r2, [pc, #576] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8227. 8003d04: f043 0301 orr.w r3, r3, #1
  8228. 8003d08: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8229. 8003d0c: 4b8d ldr r3, [pc, #564] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8230. 8003d0e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8231. 8003d12: f003 0301 and.w r3, r3, #1
  8232. 8003d16: 62fb str r3, [r7, #44] @ 0x2c
  8233. 8003d18: 6afb ldr r3, [r7, #44] @ 0x2c
  8234. __HAL_RCC_GPIOC_CLK_ENABLE();
  8235. 8003d1a: 4b8a ldr r3, [pc, #552] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8236. 8003d1c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8237. 8003d20: 4a88 ldr r2, [pc, #544] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8238. 8003d22: f043 0304 orr.w r3, r3, #4
  8239. 8003d26: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8240. 8003d2a: 4b86 ldr r3, [pc, #536] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8241. 8003d2c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8242. 8003d30: f003 0304 and.w r3, r3, #4
  8243. 8003d34: 62bb str r3, [r7, #40] @ 0x28
  8244. 8003d36: 6abb ldr r3, [r7, #40] @ 0x28
  8245. __HAL_RCC_GPIOB_CLK_ENABLE();
  8246. 8003d38: 4b82 ldr r3, [pc, #520] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8247. 8003d3a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8248. 8003d3e: 4a81 ldr r2, [pc, #516] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8249. 8003d40: f043 0302 orr.w r3, r3, #2
  8250. 8003d44: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8251. 8003d48: 4b7e ldr r3, [pc, #504] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8252. 8003d4a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8253. 8003d4e: f003 0302 and.w r3, r3, #2
  8254. 8003d52: 627b str r3, [r7, #36] @ 0x24
  8255. 8003d54: 6a7b ldr r3, [r7, #36] @ 0x24
  8256. PA3 ------> ADC1_INP15
  8257. PA7 ------> ADC1_INP7
  8258. PC5 ------> ADC1_INP8
  8259. PB0 ------> ADC1_INP9
  8260. */
  8261. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  8262. 8003d56: 238f movs r3, #143 @ 0x8f
  8263. 8003d58: 637b str r3, [r7, #52] @ 0x34
  8264. |GPIO_PIN_7;
  8265. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8266. 8003d5a: 2303 movs r3, #3
  8267. 8003d5c: 63bb str r3, [r7, #56] @ 0x38
  8268. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8269. 8003d5e: 2300 movs r3, #0
  8270. 8003d60: 63fb str r3, [r7, #60] @ 0x3c
  8271. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8272. 8003d62: f107 0334 add.w r3, r7, #52 @ 0x34
  8273. 8003d66: 4619 mov r1, r3
  8274. 8003d68: 4877 ldr r0, [pc, #476] @ (8003f48 <HAL_ADC_MspInit+0x2a0>)
  8275. 8003d6a: f007 fa1f bl 800b1ac <HAL_GPIO_Init>
  8276. GPIO_InitStruct.Pin = GPIO_PIN_5;
  8277. 8003d6e: 2320 movs r3, #32
  8278. 8003d70: 637b str r3, [r7, #52] @ 0x34
  8279. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8280. 8003d72: 2303 movs r3, #3
  8281. 8003d74: 63bb str r3, [r7, #56] @ 0x38
  8282. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8283. 8003d76: 2300 movs r3, #0
  8284. 8003d78: 63fb str r3, [r7, #60] @ 0x3c
  8285. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8286. 8003d7a: f107 0334 add.w r3, r7, #52 @ 0x34
  8287. 8003d7e: 4619 mov r1, r3
  8288. 8003d80: 4872 ldr r0, [pc, #456] @ (8003f4c <HAL_ADC_MspInit+0x2a4>)
  8289. 8003d82: f007 fa13 bl 800b1ac <HAL_GPIO_Init>
  8290. GPIO_InitStruct.Pin = GPIO_PIN_0;
  8291. 8003d86: 2301 movs r3, #1
  8292. 8003d88: 637b str r3, [r7, #52] @ 0x34
  8293. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8294. 8003d8a: 2303 movs r3, #3
  8295. 8003d8c: 63bb str r3, [r7, #56] @ 0x38
  8296. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8297. 8003d8e: 2300 movs r3, #0
  8298. 8003d90: 63fb str r3, [r7, #60] @ 0x3c
  8299. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8300. 8003d92: f107 0334 add.w r3, r7, #52 @ 0x34
  8301. 8003d96: 4619 mov r1, r3
  8302. 8003d98: 486d ldr r0, [pc, #436] @ (8003f50 <HAL_ADC_MspInit+0x2a8>)
  8303. 8003d9a: f007 fa07 bl 800b1ac <HAL_GPIO_Init>
  8304. /* ADC1 DMA Init */
  8305. /* ADC1 Init */
  8306. hdma_adc1.Instance = DMA1_Stream0;
  8307. 8003d9e: 4b6d ldr r3, [pc, #436] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8308. 8003da0: 4a6d ldr r2, [pc, #436] @ (8003f58 <HAL_ADC_MspInit+0x2b0>)
  8309. 8003da2: 601a str r2, [r3, #0]
  8310. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  8311. 8003da4: 4b6b ldr r3, [pc, #428] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8312. 8003da6: 2209 movs r2, #9
  8313. 8003da8: 605a str r2, [r3, #4]
  8314. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8315. 8003daa: 4b6a ldr r3, [pc, #424] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8316. 8003dac: 2200 movs r2, #0
  8317. 8003dae: 609a str r2, [r3, #8]
  8318. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  8319. 8003db0: 4b68 ldr r3, [pc, #416] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8320. 8003db2: 2200 movs r2, #0
  8321. 8003db4: 60da str r2, [r3, #12]
  8322. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  8323. 8003db6: 4b67 ldr r3, [pc, #412] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8324. 8003db8: f44f 6280 mov.w r2, #1024 @ 0x400
  8325. 8003dbc: 611a str r2, [r3, #16]
  8326. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8327. 8003dbe: 4b65 ldr r3, [pc, #404] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8328. 8003dc0: f44f 6200 mov.w r2, #2048 @ 0x800
  8329. 8003dc4: 615a str r2, [r3, #20]
  8330. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8331. 8003dc6: 4b63 ldr r3, [pc, #396] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8332. 8003dc8: f44f 5200 mov.w r2, #8192 @ 0x2000
  8333. 8003dcc: 619a str r2, [r3, #24]
  8334. hdma_adc1.Init.Mode = DMA_NORMAL;
  8335. 8003dce: 4b61 ldr r3, [pc, #388] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8336. 8003dd0: 2200 movs r2, #0
  8337. 8003dd2: 61da str r2, [r3, #28]
  8338. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  8339. 8003dd4: 4b5f ldr r3, [pc, #380] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8340. 8003dd6: 2200 movs r2, #0
  8341. 8003dd8: 621a str r2, [r3, #32]
  8342. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8343. 8003dda: 4b5e ldr r3, [pc, #376] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8344. 8003ddc: 2200 movs r2, #0
  8345. 8003dde: 625a str r2, [r3, #36] @ 0x24
  8346. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  8347. 8003de0: 485c ldr r0, [pc, #368] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8348. 8003de2: f004 fba7 bl 8008534 <HAL_DMA_Init>
  8349. 8003de6: 4603 mov r3, r0
  8350. 8003de8: 2b00 cmp r3, #0
  8351. 8003dea: d001 beq.n 8003df0 <HAL_ADC_MspInit+0x148>
  8352. {
  8353. Error_Handler();
  8354. 8003dec: f7fe f86e bl 8001ecc <Error_Handler>
  8355. }
  8356. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  8357. 8003df0: 687b ldr r3, [r7, #4]
  8358. 8003df2: 4a58 ldr r2, [pc, #352] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8359. 8003df4: 64da str r2, [r3, #76] @ 0x4c
  8360. 8003df6: 4a57 ldr r2, [pc, #348] @ (8003f54 <HAL_ADC_MspInit+0x2ac>)
  8361. 8003df8: 687b ldr r3, [r7, #4]
  8362. 8003dfa: 6393 str r3, [r2, #56] @ 0x38
  8363. /* USER CODE BEGIN ADC3_MspInit 1 */
  8364. /* USER CODE END ADC3_MspInit 1 */
  8365. }
  8366. }
  8367. 8003dfc: e11e b.n 800403c <HAL_ADC_MspInit+0x394>
  8368. else if(hadc->Instance==ADC2)
  8369. 8003dfe: 687b ldr r3, [r7, #4]
  8370. 8003e00: 681b ldr r3, [r3, #0]
  8371. 8003e02: 4a56 ldr r2, [pc, #344] @ (8003f5c <HAL_ADC_MspInit+0x2b4>)
  8372. 8003e04: 4293 cmp r3, r2
  8373. 8003e06: f040 80af bne.w 8003f68 <HAL_ADC_MspInit+0x2c0>
  8374. HAL_RCC_ADC12_CLK_ENABLED++;
  8375. 8003e0a: 4b4d ldr r3, [pc, #308] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8376. 8003e0c: 681b ldr r3, [r3, #0]
  8377. 8003e0e: 3301 adds r3, #1
  8378. 8003e10: 4a4b ldr r2, [pc, #300] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8379. 8003e12: 6013 str r3, [r2, #0]
  8380. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8381. 8003e14: 4b4a ldr r3, [pc, #296] @ (8003f40 <HAL_ADC_MspInit+0x298>)
  8382. 8003e16: 681b ldr r3, [r3, #0]
  8383. 8003e18: 2b01 cmp r3, #1
  8384. 8003e1a: d10e bne.n 8003e3a <HAL_ADC_MspInit+0x192>
  8385. __HAL_RCC_ADC12_CLK_ENABLE();
  8386. 8003e1c: 4b49 ldr r3, [pc, #292] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8387. 8003e1e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8388. 8003e22: 4a48 ldr r2, [pc, #288] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8389. 8003e24: f043 0320 orr.w r3, r3, #32
  8390. 8003e28: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8391. 8003e2c: 4b45 ldr r3, [pc, #276] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8392. 8003e2e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8393. 8003e32: f003 0320 and.w r3, r3, #32
  8394. 8003e36: 623b str r3, [r7, #32]
  8395. 8003e38: 6a3b ldr r3, [r7, #32]
  8396. __HAL_RCC_GPIOA_CLK_ENABLE();
  8397. 8003e3a: 4b42 ldr r3, [pc, #264] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8398. 8003e3c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8399. 8003e40: 4a40 ldr r2, [pc, #256] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8400. 8003e42: f043 0301 orr.w r3, r3, #1
  8401. 8003e46: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8402. 8003e4a: 4b3e ldr r3, [pc, #248] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8403. 8003e4c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8404. 8003e50: f003 0301 and.w r3, r3, #1
  8405. 8003e54: 61fb str r3, [r7, #28]
  8406. 8003e56: 69fb ldr r3, [r7, #28]
  8407. __HAL_RCC_GPIOC_CLK_ENABLE();
  8408. 8003e58: 4b3a ldr r3, [pc, #232] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8409. 8003e5a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8410. 8003e5e: 4a39 ldr r2, [pc, #228] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8411. 8003e60: f043 0304 orr.w r3, r3, #4
  8412. 8003e64: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8413. 8003e68: 4b36 ldr r3, [pc, #216] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8414. 8003e6a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8415. 8003e6e: f003 0304 and.w r3, r3, #4
  8416. 8003e72: 61bb str r3, [r7, #24]
  8417. 8003e74: 69bb ldr r3, [r7, #24]
  8418. __HAL_RCC_GPIOB_CLK_ENABLE();
  8419. 8003e76: 4b33 ldr r3, [pc, #204] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8420. 8003e78: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8421. 8003e7c: 4a31 ldr r2, [pc, #196] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8422. 8003e7e: f043 0302 orr.w r3, r3, #2
  8423. 8003e82: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8424. 8003e86: 4b2f ldr r3, [pc, #188] @ (8003f44 <HAL_ADC_MspInit+0x29c>)
  8425. 8003e88: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8426. 8003e8c: f003 0302 and.w r3, r3, #2
  8427. 8003e90: 617b str r3, [r7, #20]
  8428. 8003e92: 697b ldr r3, [r7, #20]
  8429. GPIO_InitStruct.Pin = GPIO_PIN_6;
  8430. 8003e94: 2340 movs r3, #64 @ 0x40
  8431. 8003e96: 637b str r3, [r7, #52] @ 0x34
  8432. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8433. 8003e98: 2303 movs r3, #3
  8434. 8003e9a: 63bb str r3, [r7, #56] @ 0x38
  8435. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8436. 8003e9c: 2300 movs r3, #0
  8437. 8003e9e: 63fb str r3, [r7, #60] @ 0x3c
  8438. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8439. 8003ea0: f107 0334 add.w r3, r7, #52 @ 0x34
  8440. 8003ea4: 4619 mov r1, r3
  8441. 8003ea6: 4828 ldr r0, [pc, #160] @ (8003f48 <HAL_ADC_MspInit+0x2a0>)
  8442. 8003ea8: f007 f980 bl 800b1ac <HAL_GPIO_Init>
  8443. GPIO_InitStruct.Pin = GPIO_PIN_4;
  8444. 8003eac: 2310 movs r3, #16
  8445. 8003eae: 637b str r3, [r7, #52] @ 0x34
  8446. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8447. 8003eb0: 2303 movs r3, #3
  8448. 8003eb2: 63bb str r3, [r7, #56] @ 0x38
  8449. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8450. 8003eb4: 2300 movs r3, #0
  8451. 8003eb6: 63fb str r3, [r7, #60] @ 0x3c
  8452. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8453. 8003eb8: f107 0334 add.w r3, r7, #52 @ 0x34
  8454. 8003ebc: 4619 mov r1, r3
  8455. 8003ebe: 4823 ldr r0, [pc, #140] @ (8003f4c <HAL_ADC_MspInit+0x2a4>)
  8456. 8003ec0: f007 f974 bl 800b1ac <HAL_GPIO_Init>
  8457. GPIO_InitStruct.Pin = GPIO_PIN_1;
  8458. 8003ec4: 2302 movs r3, #2
  8459. 8003ec6: 637b str r3, [r7, #52] @ 0x34
  8460. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8461. 8003ec8: 2303 movs r3, #3
  8462. 8003eca: 63bb str r3, [r7, #56] @ 0x38
  8463. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8464. 8003ecc: 2300 movs r3, #0
  8465. 8003ece: 63fb str r3, [r7, #60] @ 0x3c
  8466. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8467. 8003ed0: f107 0334 add.w r3, r7, #52 @ 0x34
  8468. 8003ed4: 4619 mov r1, r3
  8469. 8003ed6: 481e ldr r0, [pc, #120] @ (8003f50 <HAL_ADC_MspInit+0x2a8>)
  8470. 8003ed8: f007 f968 bl 800b1ac <HAL_GPIO_Init>
  8471. hdma_adc2.Instance = DMA1_Stream1;
  8472. 8003edc: 4b20 ldr r3, [pc, #128] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8473. 8003ede: 4a21 ldr r2, [pc, #132] @ (8003f64 <HAL_ADC_MspInit+0x2bc>)
  8474. 8003ee0: 601a str r2, [r3, #0]
  8475. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  8476. 8003ee2: 4b1f ldr r3, [pc, #124] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8477. 8003ee4: 220a movs r2, #10
  8478. 8003ee6: 605a str r2, [r3, #4]
  8479. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8480. 8003ee8: 4b1d ldr r3, [pc, #116] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8481. 8003eea: 2200 movs r2, #0
  8482. 8003eec: 609a str r2, [r3, #8]
  8483. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  8484. 8003eee: 4b1c ldr r3, [pc, #112] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8485. 8003ef0: 2200 movs r2, #0
  8486. 8003ef2: 60da str r2, [r3, #12]
  8487. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  8488. 8003ef4: 4b1a ldr r3, [pc, #104] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8489. 8003ef6: f44f 6280 mov.w r2, #1024 @ 0x400
  8490. 8003efa: 611a str r2, [r3, #16]
  8491. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8492. 8003efc: 4b18 ldr r3, [pc, #96] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8493. 8003efe: f44f 6200 mov.w r2, #2048 @ 0x800
  8494. 8003f02: 615a str r2, [r3, #20]
  8495. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8496. 8003f04: 4b16 ldr r3, [pc, #88] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8497. 8003f06: f44f 5200 mov.w r2, #8192 @ 0x2000
  8498. 8003f0a: 619a str r2, [r3, #24]
  8499. hdma_adc2.Init.Mode = DMA_NORMAL;
  8500. 8003f0c: 4b14 ldr r3, [pc, #80] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8501. 8003f0e: 2200 movs r2, #0
  8502. 8003f10: 61da str r2, [r3, #28]
  8503. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  8504. 8003f12: 4b13 ldr r3, [pc, #76] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8505. 8003f14: 2200 movs r2, #0
  8506. 8003f16: 621a str r2, [r3, #32]
  8507. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8508. 8003f18: 4b11 ldr r3, [pc, #68] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8509. 8003f1a: 2200 movs r2, #0
  8510. 8003f1c: 625a str r2, [r3, #36] @ 0x24
  8511. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  8512. 8003f1e: 4810 ldr r0, [pc, #64] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8513. 8003f20: f004 fb08 bl 8008534 <HAL_DMA_Init>
  8514. 8003f24: 4603 mov r3, r0
  8515. 8003f26: 2b00 cmp r3, #0
  8516. 8003f28: d001 beq.n 8003f2e <HAL_ADC_MspInit+0x286>
  8517. Error_Handler();
  8518. 8003f2a: f7fd ffcf bl 8001ecc <Error_Handler>
  8519. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  8520. 8003f2e: 687b ldr r3, [r7, #4]
  8521. 8003f30: 4a0b ldr r2, [pc, #44] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8522. 8003f32: 64da str r2, [r3, #76] @ 0x4c
  8523. 8003f34: 4a0a ldr r2, [pc, #40] @ (8003f60 <HAL_ADC_MspInit+0x2b8>)
  8524. 8003f36: 687b ldr r3, [r7, #4]
  8525. 8003f38: 6393 str r3, [r2, #56] @ 0x38
  8526. }
  8527. 8003f3a: e07f b.n 800403c <HAL_ADC_MspInit+0x394>
  8528. 8003f3c: 40022000 .word 0x40022000
  8529. 8003f40: 2400091c .word 0x2400091c
  8530. 8003f44: 58024400 .word 0x58024400
  8531. 8003f48: 58020000 .word 0x58020000
  8532. 8003f4c: 58020800 .word 0x58020800
  8533. 8003f50: 58020400 .word 0x58020400
  8534. 8003f54: 2400024c .word 0x2400024c
  8535. 8003f58: 40020010 .word 0x40020010
  8536. 8003f5c: 40022100 .word 0x40022100
  8537. 8003f60: 240002c4 .word 0x240002c4
  8538. 8003f64: 40020028 .word 0x40020028
  8539. else if(hadc->Instance==ADC3)
  8540. 8003f68: 687b ldr r3, [r7, #4]
  8541. 8003f6a: 681b ldr r3, [r3, #0]
  8542. 8003f6c: 4a35 ldr r2, [pc, #212] @ (8004044 <HAL_ADC_MspInit+0x39c>)
  8543. 8003f6e: 4293 cmp r3, r2
  8544. 8003f70: d164 bne.n 800403c <HAL_ADC_MspInit+0x394>
  8545. __HAL_RCC_ADC3_CLK_ENABLE();
  8546. 8003f72: 4b35 ldr r3, [pc, #212] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8547. 8003f74: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8548. 8003f78: 4a33 ldr r2, [pc, #204] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8549. 8003f7a: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  8550. 8003f7e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8551. 8003f82: 4b31 ldr r3, [pc, #196] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8552. 8003f84: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8553. 8003f88: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  8554. 8003f8c: 613b str r3, [r7, #16]
  8555. 8003f8e: 693b ldr r3, [r7, #16]
  8556. __HAL_RCC_GPIOC_CLK_ENABLE();
  8557. 8003f90: 4b2d ldr r3, [pc, #180] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8558. 8003f92: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8559. 8003f96: 4a2c ldr r2, [pc, #176] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8560. 8003f98: f043 0304 orr.w r3, r3, #4
  8561. 8003f9c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8562. 8003fa0: 4b29 ldr r3, [pc, #164] @ (8004048 <HAL_ADC_MspInit+0x3a0>)
  8563. 8003fa2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8564. 8003fa6: f003 0304 and.w r3, r3, #4
  8565. 8003faa: 60fb str r3, [r7, #12]
  8566. 8003fac: 68fb ldr r3, [r7, #12]
  8567. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8568. 8003fae: 2303 movs r3, #3
  8569. 8003fb0: 637b str r3, [r7, #52] @ 0x34
  8570. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8571. 8003fb2: 2303 movs r3, #3
  8572. 8003fb4: 63bb str r3, [r7, #56] @ 0x38
  8573. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8574. 8003fb6: 2300 movs r3, #0
  8575. 8003fb8: 63fb str r3, [r7, #60] @ 0x3c
  8576. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8577. 8003fba: f107 0334 add.w r3, r7, #52 @ 0x34
  8578. 8003fbe: 4619 mov r1, r3
  8579. 8003fc0: 4822 ldr r0, [pc, #136] @ (800404c <HAL_ADC_MspInit+0x3a4>)
  8580. 8003fc2: f007 f8f3 bl 800b1ac <HAL_GPIO_Init>
  8581. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  8582. 8003fc6: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  8583. 8003fca: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  8584. 8003fce: f001 ff51 bl 8005e74 <HAL_SYSCFG_AnalogSwitchConfig>
  8585. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  8586. 8003fd2: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  8587. 8003fd6: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  8588. 8003fda: f001 ff4b bl 8005e74 <HAL_SYSCFG_AnalogSwitchConfig>
  8589. hdma_adc3.Instance = DMA1_Stream2;
  8590. 8003fde: 4b1c ldr r3, [pc, #112] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8591. 8003fe0: 4a1c ldr r2, [pc, #112] @ (8004054 <HAL_ADC_MspInit+0x3ac>)
  8592. 8003fe2: 601a str r2, [r3, #0]
  8593. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  8594. 8003fe4: 4b1a ldr r3, [pc, #104] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8595. 8003fe6: 2273 movs r2, #115 @ 0x73
  8596. 8003fe8: 605a str r2, [r3, #4]
  8597. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8598. 8003fea: 4b19 ldr r3, [pc, #100] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8599. 8003fec: 2200 movs r2, #0
  8600. 8003fee: 609a str r2, [r3, #8]
  8601. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  8602. 8003ff0: 4b17 ldr r3, [pc, #92] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8603. 8003ff2: 2200 movs r2, #0
  8604. 8003ff4: 60da str r2, [r3, #12]
  8605. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  8606. 8003ff6: 4b16 ldr r3, [pc, #88] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8607. 8003ff8: f44f 6280 mov.w r2, #1024 @ 0x400
  8608. 8003ffc: 611a str r2, [r3, #16]
  8609. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8610. 8003ffe: 4b14 ldr r3, [pc, #80] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8611. 8004000: f44f 6200 mov.w r2, #2048 @ 0x800
  8612. 8004004: 615a str r2, [r3, #20]
  8613. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8614. 8004006: 4b12 ldr r3, [pc, #72] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8615. 8004008: f44f 5200 mov.w r2, #8192 @ 0x2000
  8616. 800400c: 619a str r2, [r3, #24]
  8617. hdma_adc3.Init.Mode = DMA_NORMAL;
  8618. 800400e: 4b10 ldr r3, [pc, #64] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8619. 8004010: 2200 movs r2, #0
  8620. 8004012: 61da str r2, [r3, #28]
  8621. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  8622. 8004014: 4b0e ldr r3, [pc, #56] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8623. 8004016: 2200 movs r2, #0
  8624. 8004018: 621a str r2, [r3, #32]
  8625. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8626. 800401a: 4b0d ldr r3, [pc, #52] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8627. 800401c: 2200 movs r2, #0
  8628. 800401e: 625a str r2, [r3, #36] @ 0x24
  8629. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  8630. 8004020: 480b ldr r0, [pc, #44] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8631. 8004022: f004 fa87 bl 8008534 <HAL_DMA_Init>
  8632. 8004026: 4603 mov r3, r0
  8633. 8004028: 2b00 cmp r3, #0
  8634. 800402a: d001 beq.n 8004030 <HAL_ADC_MspInit+0x388>
  8635. Error_Handler();
  8636. 800402c: f7fd ff4e bl 8001ecc <Error_Handler>
  8637. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  8638. 8004030: 687b ldr r3, [r7, #4]
  8639. 8004032: 4a07 ldr r2, [pc, #28] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8640. 8004034: 64da str r2, [r3, #76] @ 0x4c
  8641. 8004036: 4a06 ldr r2, [pc, #24] @ (8004050 <HAL_ADC_MspInit+0x3a8>)
  8642. 8004038: 687b ldr r3, [r7, #4]
  8643. 800403a: 6393 str r3, [r2, #56] @ 0x38
  8644. }
  8645. 800403c: bf00 nop
  8646. 800403e: 3748 adds r7, #72 @ 0x48
  8647. 8004040: 46bd mov sp, r7
  8648. 8004042: bd80 pop {r7, pc}
  8649. 8004044: 58026000 .word 0x58026000
  8650. 8004048: 58024400 .word 0x58024400
  8651. 800404c: 58020800 .word 0x58020800
  8652. 8004050: 2400033c .word 0x2400033c
  8653. 8004054: 40020040 .word 0x40020040
  8654. 08004058 <HAL_COMP_MspInit>:
  8655. * This function configures the hardware resources used in this example
  8656. * @param hcomp: COMP handle pointer
  8657. * @retval None
  8658. */
  8659. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  8660. {
  8661. 8004058: b580 push {r7, lr}
  8662. 800405a: b08a sub sp, #40 @ 0x28
  8663. 800405c: af00 add r7, sp, #0
  8664. 800405e: 6078 str r0, [r7, #4]
  8665. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8666. 8004060: f107 0314 add.w r3, r7, #20
  8667. 8004064: 2200 movs r2, #0
  8668. 8004066: 601a str r2, [r3, #0]
  8669. 8004068: 605a str r2, [r3, #4]
  8670. 800406a: 609a str r2, [r3, #8]
  8671. 800406c: 60da str r2, [r3, #12]
  8672. 800406e: 611a str r2, [r3, #16]
  8673. if(hcomp->Instance==COMP1)
  8674. 8004070: 687b ldr r3, [r7, #4]
  8675. 8004072: 681b ldr r3, [r3, #0]
  8676. 8004074: 4a18 ldr r2, [pc, #96] @ (80040d8 <HAL_COMP_MspInit+0x80>)
  8677. 8004076: 4293 cmp r3, r2
  8678. 8004078: d129 bne.n 80040ce <HAL_COMP_MspInit+0x76>
  8679. {
  8680. /* USER CODE BEGIN COMP1_MspInit 0 */
  8681. /* USER CODE END COMP1_MspInit 0 */
  8682. /* Peripheral clock enable */
  8683. __HAL_RCC_COMP12_CLK_ENABLE();
  8684. 800407a: 4b18 ldr r3, [pc, #96] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8685. 800407c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8686. 8004080: 4a16 ldr r2, [pc, #88] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8687. 8004082: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  8688. 8004086: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8689. 800408a: 4b14 ldr r3, [pc, #80] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8690. 800408c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8691. 8004090: f403 4380 and.w r3, r3, #16384 @ 0x4000
  8692. 8004094: 613b str r3, [r7, #16]
  8693. 8004096: 693b ldr r3, [r7, #16]
  8694. __HAL_RCC_GPIOB_CLK_ENABLE();
  8695. 8004098: 4b10 ldr r3, [pc, #64] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8696. 800409a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8697. 800409e: 4a0f ldr r2, [pc, #60] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8698. 80040a0: f043 0302 orr.w r3, r3, #2
  8699. 80040a4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8700. 80040a8: 4b0c ldr r3, [pc, #48] @ (80040dc <HAL_COMP_MspInit+0x84>)
  8701. 80040aa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8702. 80040ae: f003 0302 and.w r3, r3, #2
  8703. 80040b2: 60fb str r3, [r7, #12]
  8704. 80040b4: 68fb ldr r3, [r7, #12]
  8705. /**COMP1 GPIO Configuration
  8706. PB2 ------> COMP1_INP
  8707. */
  8708. GPIO_InitStruct.Pin = GPIO_PIN_2;
  8709. 80040b6: 2304 movs r3, #4
  8710. 80040b8: 617b str r3, [r7, #20]
  8711. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8712. 80040ba: 2303 movs r3, #3
  8713. 80040bc: 61bb str r3, [r7, #24]
  8714. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8715. 80040be: 2300 movs r3, #0
  8716. 80040c0: 61fb str r3, [r7, #28]
  8717. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8718. 80040c2: f107 0314 add.w r3, r7, #20
  8719. 80040c6: 4619 mov r1, r3
  8720. 80040c8: 4805 ldr r0, [pc, #20] @ (80040e0 <HAL_COMP_MspInit+0x88>)
  8721. 80040ca: f007 f86f bl 800b1ac <HAL_GPIO_Init>
  8722. /* USER CODE BEGIN COMP1_MspInit 1 */
  8723. /* USER CODE END COMP1_MspInit 1 */
  8724. }
  8725. }
  8726. 80040ce: bf00 nop
  8727. 80040d0: 3728 adds r7, #40 @ 0x28
  8728. 80040d2: 46bd mov sp, r7
  8729. 80040d4: bd80 pop {r7, pc}
  8730. 80040d6: bf00 nop
  8731. 80040d8: 5800380c .word 0x5800380c
  8732. 80040dc: 58024400 .word 0x58024400
  8733. 80040e0: 58020400 .word 0x58020400
  8734. 080040e4 <HAL_CRC_MspInit>:
  8735. * This function configures the hardware resources used in this example
  8736. * @param hcrc: CRC handle pointer
  8737. * @retval None
  8738. */
  8739. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  8740. {
  8741. 80040e4: b480 push {r7}
  8742. 80040e6: b085 sub sp, #20
  8743. 80040e8: af00 add r7, sp, #0
  8744. 80040ea: 6078 str r0, [r7, #4]
  8745. if(hcrc->Instance==CRC)
  8746. 80040ec: 687b ldr r3, [r7, #4]
  8747. 80040ee: 681b ldr r3, [r3, #0]
  8748. 80040f0: 4a0b ldr r2, [pc, #44] @ (8004120 <HAL_CRC_MspInit+0x3c>)
  8749. 80040f2: 4293 cmp r3, r2
  8750. 80040f4: d10e bne.n 8004114 <HAL_CRC_MspInit+0x30>
  8751. {
  8752. /* USER CODE BEGIN CRC_MspInit 0 */
  8753. /* USER CODE END CRC_MspInit 0 */
  8754. /* Peripheral clock enable */
  8755. __HAL_RCC_CRC_CLK_ENABLE();
  8756. 80040f6: 4b0b ldr r3, [pc, #44] @ (8004124 <HAL_CRC_MspInit+0x40>)
  8757. 80040f8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8758. 80040fc: 4a09 ldr r2, [pc, #36] @ (8004124 <HAL_CRC_MspInit+0x40>)
  8759. 80040fe: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  8760. 8004102: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8761. 8004106: 4b07 ldr r3, [pc, #28] @ (8004124 <HAL_CRC_MspInit+0x40>)
  8762. 8004108: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8763. 800410c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  8764. 8004110: 60fb str r3, [r7, #12]
  8765. 8004112: 68fb ldr r3, [r7, #12]
  8766. /* USER CODE BEGIN CRC_MspInit 1 */
  8767. /* USER CODE END CRC_MspInit 1 */
  8768. }
  8769. }
  8770. 8004114: bf00 nop
  8771. 8004116: 3714 adds r7, #20
  8772. 8004118: 46bd mov sp, r7
  8773. 800411a: f85d 7b04 ldr.w r7, [sp], #4
  8774. 800411e: 4770 bx lr
  8775. 8004120: 58024c00 .word 0x58024c00
  8776. 8004124: 58024400 .word 0x58024400
  8777. 08004128 <HAL_DAC_MspInit>:
  8778. * This function configures the hardware resources used in this example
  8779. * @param hdac: DAC handle pointer
  8780. * @retval None
  8781. */
  8782. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  8783. {
  8784. 8004128: b580 push {r7, lr}
  8785. 800412a: b08a sub sp, #40 @ 0x28
  8786. 800412c: af00 add r7, sp, #0
  8787. 800412e: 6078 str r0, [r7, #4]
  8788. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8789. 8004130: f107 0314 add.w r3, r7, #20
  8790. 8004134: 2200 movs r2, #0
  8791. 8004136: 601a str r2, [r3, #0]
  8792. 8004138: 605a str r2, [r3, #4]
  8793. 800413a: 609a str r2, [r3, #8]
  8794. 800413c: 60da str r2, [r3, #12]
  8795. 800413e: 611a str r2, [r3, #16]
  8796. if(hdac->Instance==DAC1)
  8797. 8004140: 687b ldr r3, [r7, #4]
  8798. 8004142: 681b ldr r3, [r3, #0]
  8799. 8004144: 4a1c ldr r2, [pc, #112] @ (80041b8 <HAL_DAC_MspInit+0x90>)
  8800. 8004146: 4293 cmp r3, r2
  8801. 8004148: d131 bne.n 80041ae <HAL_DAC_MspInit+0x86>
  8802. {
  8803. /* USER CODE BEGIN DAC1_MspInit 0 */
  8804. /* USER CODE END DAC1_MspInit 0 */
  8805. /* Peripheral clock enable */
  8806. __HAL_RCC_DAC12_CLK_ENABLE();
  8807. 800414a: 4b1c ldr r3, [pc, #112] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8808. 800414c: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8809. 8004150: 4a1a ldr r2, [pc, #104] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8810. 8004152: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  8811. 8004156: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8812. 800415a: 4b18 ldr r3, [pc, #96] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8813. 800415c: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8814. 8004160: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  8815. 8004164: 613b str r3, [r7, #16]
  8816. 8004166: 693b ldr r3, [r7, #16]
  8817. __HAL_RCC_GPIOA_CLK_ENABLE();
  8818. 8004168: 4b14 ldr r3, [pc, #80] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8819. 800416a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8820. 800416e: 4a13 ldr r2, [pc, #76] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8821. 8004170: f043 0301 orr.w r3, r3, #1
  8822. 8004174: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8823. 8004178: 4b10 ldr r3, [pc, #64] @ (80041bc <HAL_DAC_MspInit+0x94>)
  8824. 800417a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8825. 800417e: f003 0301 and.w r3, r3, #1
  8826. 8004182: 60fb str r3, [r7, #12]
  8827. 8004184: 68fb ldr r3, [r7, #12]
  8828. /**DAC1 GPIO Configuration
  8829. PA4 ------> DAC1_OUT1
  8830. PA5 ------> DAC1_OUT2
  8831. */
  8832. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  8833. 8004186: 2330 movs r3, #48 @ 0x30
  8834. 8004188: 617b str r3, [r7, #20]
  8835. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8836. 800418a: 2303 movs r3, #3
  8837. 800418c: 61bb str r3, [r7, #24]
  8838. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8839. 800418e: 2300 movs r3, #0
  8840. 8004190: 61fb str r3, [r7, #28]
  8841. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8842. 8004192: f107 0314 add.w r3, r7, #20
  8843. 8004196: 4619 mov r1, r3
  8844. 8004198: 4809 ldr r0, [pc, #36] @ (80041c0 <HAL_DAC_MspInit+0x98>)
  8845. 800419a: f007 f807 bl 800b1ac <HAL_GPIO_Init>
  8846. /* DAC1 interrupt Init */
  8847. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  8848. 800419e: 2200 movs r2, #0
  8849. 80041a0: 2105 movs r1, #5
  8850. 80041a2: 2036 movs r0, #54 @ 0x36
  8851. 80041a4: f003 fcd0 bl 8007b48 <HAL_NVIC_SetPriority>
  8852. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8853. 80041a8: 2036 movs r0, #54 @ 0x36
  8854. 80041aa: f003 fce7 bl 8007b7c <HAL_NVIC_EnableIRQ>
  8855. /* USER CODE BEGIN DAC1_MspInit 1 */
  8856. /* USER CODE END DAC1_MspInit 1 */
  8857. }
  8858. }
  8859. 80041ae: bf00 nop
  8860. 80041b0: 3728 adds r7, #40 @ 0x28
  8861. 80041b2: 46bd mov sp, r7
  8862. 80041b4: bd80 pop {r7, pc}
  8863. 80041b6: bf00 nop
  8864. 80041b8: 40007400 .word 0x40007400
  8865. 80041bc: 58024400 .word 0x58024400
  8866. 80041c0: 58020000 .word 0x58020000
  8867. 080041c4 <HAL_RNG_MspInit>:
  8868. * This function configures the hardware resources used in this example
  8869. * @param hrng: RNG handle pointer
  8870. * @retval None
  8871. */
  8872. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  8873. {
  8874. 80041c4: b580 push {r7, lr}
  8875. 80041c6: b0b4 sub sp, #208 @ 0xd0
  8876. 80041c8: af00 add r7, sp, #0
  8877. 80041ca: 6078 str r0, [r7, #4]
  8878. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8879. 80041cc: f107 0310 add.w r3, r7, #16
  8880. 80041d0: 22c0 movs r2, #192 @ 0xc0
  8881. 80041d2: 2100 movs r1, #0
  8882. 80041d4: 4618 mov r0, r3
  8883. 80041d6: f014 f887 bl 80182e8 <memset>
  8884. if(hrng->Instance==RNG)
  8885. 80041da: 687b ldr r3, [r7, #4]
  8886. 80041dc: 681b ldr r3, [r3, #0]
  8887. 80041de: 4a14 ldr r2, [pc, #80] @ (8004230 <HAL_RNG_MspInit+0x6c>)
  8888. 80041e0: 4293 cmp r3, r2
  8889. 80041e2: d121 bne.n 8004228 <HAL_RNG_MspInit+0x64>
  8890. /* USER CODE END RNG_MspInit 0 */
  8891. /** Initializes the peripherals clock
  8892. */
  8893. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  8894. 80041e4: f44f 3200 mov.w r2, #131072 @ 0x20000
  8895. 80041e8: f04f 0300 mov.w r3, #0
  8896. 80041ec: e9c7 2304 strd r2, r3, [r7, #16]
  8897. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  8898. 80041f0: 2300 movs r3, #0
  8899. 80041f2: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8900. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8901. 80041f6: f107 0310 add.w r3, r7, #16
  8902. 80041fa: 4618 mov r0, r3
  8903. 80041fc: f008 fbbc bl 800c978 <HAL_RCCEx_PeriphCLKConfig>
  8904. 8004200: 4603 mov r3, r0
  8905. 8004202: 2b00 cmp r3, #0
  8906. 8004204: d001 beq.n 800420a <HAL_RNG_MspInit+0x46>
  8907. {
  8908. Error_Handler();
  8909. 8004206: f7fd fe61 bl 8001ecc <Error_Handler>
  8910. }
  8911. /* Peripheral clock enable */
  8912. __HAL_RCC_RNG_CLK_ENABLE();
  8913. 800420a: 4b0a ldr r3, [pc, #40] @ (8004234 <HAL_RNG_MspInit+0x70>)
  8914. 800420c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8915. 8004210: 4a08 ldr r2, [pc, #32] @ (8004234 <HAL_RNG_MspInit+0x70>)
  8916. 8004212: f043 0340 orr.w r3, r3, #64 @ 0x40
  8917. 8004216: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  8918. 800421a: 4b06 ldr r3, [pc, #24] @ (8004234 <HAL_RNG_MspInit+0x70>)
  8919. 800421c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8920. 8004220: f003 0340 and.w r3, r3, #64 @ 0x40
  8921. 8004224: 60fb str r3, [r7, #12]
  8922. 8004226: 68fb ldr r3, [r7, #12]
  8923. /* USER CODE BEGIN RNG_MspInit 1 */
  8924. /* USER CODE END RNG_MspInit 1 */
  8925. }
  8926. }
  8927. 8004228: bf00 nop
  8928. 800422a: 37d0 adds r7, #208 @ 0xd0
  8929. 800422c: 46bd mov sp, r7
  8930. 800422e: bd80 pop {r7, pc}
  8931. 8004230: 48021800 .word 0x48021800
  8932. 8004234: 58024400 .word 0x58024400
  8933. 08004238 <HAL_TIM_PWM_MspInit>:
  8934. * This function configures the hardware resources used in this example
  8935. * @param htim_pwm: TIM_PWM handle pointer
  8936. * @retval None
  8937. */
  8938. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  8939. {
  8940. 8004238: b480 push {r7}
  8941. 800423a: b085 sub sp, #20
  8942. 800423c: af00 add r7, sp, #0
  8943. 800423e: 6078 str r0, [r7, #4]
  8944. if(htim_pwm->Instance==TIM1)
  8945. 8004240: 687b ldr r3, [r7, #4]
  8946. 8004242: 681b ldr r3, [r3, #0]
  8947. 8004244: 4a16 ldr r2, [pc, #88] @ (80042a0 <HAL_TIM_PWM_MspInit+0x68>)
  8948. 8004246: 4293 cmp r3, r2
  8949. 8004248: d10f bne.n 800426a <HAL_TIM_PWM_MspInit+0x32>
  8950. {
  8951. /* USER CODE BEGIN TIM1_MspInit 0 */
  8952. /* USER CODE END TIM1_MspInit 0 */
  8953. /* Peripheral clock enable */
  8954. __HAL_RCC_TIM1_CLK_ENABLE();
  8955. 800424a: 4b16 ldr r3, [pc, #88] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8956. 800424c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8957. 8004250: 4a14 ldr r2, [pc, #80] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8958. 8004252: f043 0301 orr.w r3, r3, #1
  8959. 8004256: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8960. 800425a: 4b12 ldr r3, [pc, #72] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8961. 800425c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8962. 8004260: f003 0301 and.w r3, r3, #1
  8963. 8004264: 60fb str r3, [r7, #12]
  8964. 8004266: 68fb ldr r3, [r7, #12]
  8965. /* USER CODE BEGIN TIM3_MspInit 1 */
  8966. /* USER CODE END TIM3_MspInit 1 */
  8967. }
  8968. }
  8969. 8004268: e013 b.n 8004292 <HAL_TIM_PWM_MspInit+0x5a>
  8970. else if(htim_pwm->Instance==TIM3)
  8971. 800426a: 687b ldr r3, [r7, #4]
  8972. 800426c: 681b ldr r3, [r3, #0]
  8973. 800426e: 4a0e ldr r2, [pc, #56] @ (80042a8 <HAL_TIM_PWM_MspInit+0x70>)
  8974. 8004270: 4293 cmp r3, r2
  8975. 8004272: d10e bne.n 8004292 <HAL_TIM_PWM_MspInit+0x5a>
  8976. __HAL_RCC_TIM3_CLK_ENABLE();
  8977. 8004274: 4b0b ldr r3, [pc, #44] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8978. 8004276: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8979. 800427a: 4a0a ldr r2, [pc, #40] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8980. 800427c: f043 0302 orr.w r3, r3, #2
  8981. 8004280: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8982. 8004284: 4b07 ldr r3, [pc, #28] @ (80042a4 <HAL_TIM_PWM_MspInit+0x6c>)
  8983. 8004286: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8984. 800428a: f003 0302 and.w r3, r3, #2
  8985. 800428e: 60bb str r3, [r7, #8]
  8986. 8004290: 68bb ldr r3, [r7, #8]
  8987. }
  8988. 8004292: bf00 nop
  8989. 8004294: 3714 adds r7, #20
  8990. 8004296: 46bd mov sp, r7
  8991. 8004298: f85d 7b04 ldr.w r7, [sp], #4
  8992. 800429c: 4770 bx lr
  8993. 800429e: bf00 nop
  8994. 80042a0: 40010000 .word 0x40010000
  8995. 80042a4: 58024400 .word 0x58024400
  8996. 80042a8: 40000400 .word 0x40000400
  8997. 080042ac <HAL_TIM_Base_MspInit>:
  8998. * This function configures the hardware resources used in this example
  8999. * @param htim_base: TIM_Base handle pointer
  9000. * @retval None
  9001. */
  9002. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  9003. {
  9004. 80042ac: b580 push {r7, lr}
  9005. 80042ae: b08c sub sp, #48 @ 0x30
  9006. 80042b0: af00 add r7, sp, #0
  9007. 80042b2: 6078 str r0, [r7, #4]
  9008. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9009. 80042b4: f107 031c add.w r3, r7, #28
  9010. 80042b8: 2200 movs r2, #0
  9011. 80042ba: 601a str r2, [r3, #0]
  9012. 80042bc: 605a str r2, [r3, #4]
  9013. 80042be: 609a str r2, [r3, #8]
  9014. 80042c0: 60da str r2, [r3, #12]
  9015. 80042c2: 611a str r2, [r3, #16]
  9016. if(htim_base->Instance==TIM2)
  9017. 80042c4: 687b ldr r3, [r7, #4]
  9018. 80042c6: 681b ldr r3, [r3, #0]
  9019. 80042c8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  9020. 80042cc: d137 bne.n 800433e <HAL_TIM_Base_MspInit+0x92>
  9021. {
  9022. /* USER CODE BEGIN TIM2_MspInit 0 */
  9023. /* USER CODE END TIM2_MspInit 0 */
  9024. /* Peripheral clock enable */
  9025. __HAL_RCC_TIM2_CLK_ENABLE();
  9026. 80042ce: 4b46 ldr r3, [pc, #280] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9027. 80042d0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9028. 80042d4: 4a44 ldr r2, [pc, #272] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9029. 80042d6: f043 0301 orr.w r3, r3, #1
  9030. 80042da: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9031. 80042de: 4b42 ldr r3, [pc, #264] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9032. 80042e0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9033. 80042e4: f003 0301 and.w r3, r3, #1
  9034. 80042e8: 61bb str r3, [r7, #24]
  9035. 80042ea: 69bb ldr r3, [r7, #24]
  9036. __HAL_RCC_GPIOB_CLK_ENABLE();
  9037. 80042ec: 4b3e ldr r3, [pc, #248] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9038. 80042ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9039. 80042f2: 4a3d ldr r2, [pc, #244] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9040. 80042f4: f043 0302 orr.w r3, r3, #2
  9041. 80042f8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9042. 80042fc: 4b3a ldr r3, [pc, #232] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9043. 80042fe: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9044. 8004302: f003 0302 and.w r3, r3, #2
  9045. 8004306: 617b str r3, [r7, #20]
  9046. 8004308: 697b ldr r3, [r7, #20]
  9047. /**TIM2 GPIO Configuration
  9048. PB10 ------> TIM2_CH3
  9049. PB11 ------> TIM2_CH4
  9050. */
  9051. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  9052. 800430a: f44f 6340 mov.w r3, #3072 @ 0xc00
  9053. 800430e: 61fb str r3, [r7, #28]
  9054. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9055. 8004310: 2302 movs r3, #2
  9056. 8004312: 623b str r3, [r7, #32]
  9057. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9058. 8004314: 2300 movs r3, #0
  9059. 8004316: 627b str r3, [r7, #36] @ 0x24
  9060. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9061. 8004318: 2300 movs r3, #0
  9062. 800431a: 62bb str r3, [r7, #40] @ 0x28
  9063. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  9064. 800431c: 2301 movs r3, #1
  9065. 800431e: 62fb str r3, [r7, #44] @ 0x2c
  9066. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9067. 8004320: f107 031c add.w r3, r7, #28
  9068. 8004324: 4619 mov r1, r3
  9069. 8004326: 4831 ldr r0, [pc, #196] @ (80043ec <HAL_TIM_Base_MspInit+0x140>)
  9070. 8004328: f006 ff40 bl 800b1ac <HAL_GPIO_Init>
  9071. /* TIM2 interrupt Init */
  9072. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  9073. 800432c: 2200 movs r2, #0
  9074. 800432e: 2105 movs r1, #5
  9075. 8004330: 201c movs r0, #28
  9076. 8004332: f003 fc09 bl 8007b48 <HAL_NVIC_SetPriority>
  9077. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  9078. 8004336: 201c movs r0, #28
  9079. 8004338: f003 fc20 bl 8007b7c <HAL_NVIC_EnableIRQ>
  9080. /* USER CODE BEGIN TIM8_MspInit 1 */
  9081. /* USER CODE END TIM8_MspInit 1 */
  9082. }
  9083. }
  9084. 800433c: e050 b.n 80043e0 <HAL_TIM_Base_MspInit+0x134>
  9085. else if(htim_base->Instance==TIM4)
  9086. 800433e: 687b ldr r3, [r7, #4]
  9087. 8004340: 681b ldr r3, [r3, #0]
  9088. 8004342: 4a2b ldr r2, [pc, #172] @ (80043f0 <HAL_TIM_Base_MspInit+0x144>)
  9089. 8004344: 4293 cmp r3, r2
  9090. 8004346: d137 bne.n 80043b8 <HAL_TIM_Base_MspInit+0x10c>
  9091. __HAL_RCC_TIM4_CLK_ENABLE();
  9092. 8004348: 4b27 ldr r3, [pc, #156] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9093. 800434a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9094. 800434e: 4a26 ldr r2, [pc, #152] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9095. 8004350: f043 0304 orr.w r3, r3, #4
  9096. 8004354: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9097. 8004358: 4b23 ldr r3, [pc, #140] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9098. 800435a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9099. 800435e: f003 0304 and.w r3, r3, #4
  9100. 8004362: 613b str r3, [r7, #16]
  9101. 8004364: 693b ldr r3, [r7, #16]
  9102. __HAL_RCC_GPIOD_CLK_ENABLE();
  9103. 8004366: 4b20 ldr r3, [pc, #128] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9104. 8004368: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9105. 800436c: 4a1e ldr r2, [pc, #120] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9106. 800436e: f043 0308 orr.w r3, r3, #8
  9107. 8004372: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9108. 8004376: 4b1c ldr r3, [pc, #112] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9109. 8004378: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9110. 800437c: f003 0308 and.w r3, r3, #8
  9111. 8004380: 60fb str r3, [r7, #12]
  9112. 8004382: 68fb ldr r3, [r7, #12]
  9113. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9114. 8004384: f44f 4340 mov.w r3, #49152 @ 0xc000
  9115. 8004388: 61fb str r3, [r7, #28]
  9116. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9117. 800438a: 2302 movs r3, #2
  9118. 800438c: 623b str r3, [r7, #32]
  9119. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9120. 800438e: 2300 movs r3, #0
  9121. 8004390: 627b str r3, [r7, #36] @ 0x24
  9122. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9123. 8004392: 2300 movs r3, #0
  9124. 8004394: 62bb str r3, [r7, #40] @ 0x28
  9125. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  9126. 8004396: 2302 movs r3, #2
  9127. 8004398: 62fb str r3, [r7, #44] @ 0x2c
  9128. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  9129. 800439a: f107 031c add.w r3, r7, #28
  9130. 800439e: 4619 mov r1, r3
  9131. 80043a0: 4814 ldr r0, [pc, #80] @ (80043f4 <HAL_TIM_Base_MspInit+0x148>)
  9132. 80043a2: f006 ff03 bl 800b1ac <HAL_GPIO_Init>
  9133. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  9134. 80043a6: 2200 movs r2, #0
  9135. 80043a8: 2105 movs r1, #5
  9136. 80043aa: 201e movs r0, #30
  9137. 80043ac: f003 fbcc bl 8007b48 <HAL_NVIC_SetPriority>
  9138. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  9139. 80043b0: 201e movs r0, #30
  9140. 80043b2: f003 fbe3 bl 8007b7c <HAL_NVIC_EnableIRQ>
  9141. }
  9142. 80043b6: e013 b.n 80043e0 <HAL_TIM_Base_MspInit+0x134>
  9143. else if(htim_base->Instance==TIM8)
  9144. 80043b8: 687b ldr r3, [r7, #4]
  9145. 80043ba: 681b ldr r3, [r3, #0]
  9146. 80043bc: 4a0e ldr r2, [pc, #56] @ (80043f8 <HAL_TIM_Base_MspInit+0x14c>)
  9147. 80043be: 4293 cmp r3, r2
  9148. 80043c0: d10e bne.n 80043e0 <HAL_TIM_Base_MspInit+0x134>
  9149. __HAL_RCC_TIM8_CLK_ENABLE();
  9150. 80043c2: 4b09 ldr r3, [pc, #36] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9151. 80043c4: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9152. 80043c8: 4a07 ldr r2, [pc, #28] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9153. 80043ca: f043 0302 orr.w r3, r3, #2
  9154. 80043ce: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9155. 80043d2: 4b05 ldr r3, [pc, #20] @ (80043e8 <HAL_TIM_Base_MspInit+0x13c>)
  9156. 80043d4: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9157. 80043d8: f003 0302 and.w r3, r3, #2
  9158. 80043dc: 60bb str r3, [r7, #8]
  9159. 80043de: 68bb ldr r3, [r7, #8]
  9160. }
  9161. 80043e0: bf00 nop
  9162. 80043e2: 3730 adds r7, #48 @ 0x30
  9163. 80043e4: 46bd mov sp, r7
  9164. 80043e6: bd80 pop {r7, pc}
  9165. 80043e8: 58024400 .word 0x58024400
  9166. 80043ec: 58020400 .word 0x58020400
  9167. 80043f0: 40000800 .word 0x40000800
  9168. 80043f4: 58020c00 .word 0x58020c00
  9169. 80043f8: 40010400 .word 0x40010400
  9170. 080043fc <HAL_TIM_MspPostInit>:
  9171. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  9172. {
  9173. 80043fc: b580 push {r7, lr}
  9174. 80043fe: b08a sub sp, #40 @ 0x28
  9175. 8004400: af00 add r7, sp, #0
  9176. 8004402: 6078 str r0, [r7, #4]
  9177. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9178. 8004404: f107 0314 add.w r3, r7, #20
  9179. 8004408: 2200 movs r2, #0
  9180. 800440a: 601a str r2, [r3, #0]
  9181. 800440c: 605a str r2, [r3, #4]
  9182. 800440e: 609a str r2, [r3, #8]
  9183. 8004410: 60da str r2, [r3, #12]
  9184. 8004412: 611a str r2, [r3, #16]
  9185. if(htim->Instance==TIM1)
  9186. 8004414: 687b ldr r3, [r7, #4]
  9187. 8004416: 681b ldr r3, [r3, #0]
  9188. 8004418: 4a26 ldr r2, [pc, #152] @ (80044b4 <HAL_TIM_MspPostInit+0xb8>)
  9189. 800441a: 4293 cmp r3, r2
  9190. 800441c: d120 bne.n 8004460 <HAL_TIM_MspPostInit+0x64>
  9191. {
  9192. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  9193. /* USER CODE END TIM1_MspPostInit 0 */
  9194. __HAL_RCC_GPIOA_CLK_ENABLE();
  9195. 800441e: 4b26 ldr r3, [pc, #152] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9196. 8004420: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9197. 8004424: 4a24 ldr r2, [pc, #144] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9198. 8004426: f043 0301 orr.w r3, r3, #1
  9199. 800442a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9200. 800442e: 4b22 ldr r3, [pc, #136] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9201. 8004430: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9202. 8004434: f003 0301 and.w r3, r3, #1
  9203. 8004438: 613b str r3, [r7, #16]
  9204. 800443a: 693b ldr r3, [r7, #16]
  9205. /**TIM1 GPIO Configuration
  9206. PA9 ------> TIM1_CH2
  9207. */
  9208. GPIO_InitStruct.Pin = GPIO_PIN_9;
  9209. 800443c: f44f 7300 mov.w r3, #512 @ 0x200
  9210. 8004440: 617b str r3, [r7, #20]
  9211. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9212. 8004442: 2302 movs r3, #2
  9213. 8004444: 61bb str r3, [r7, #24]
  9214. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9215. 8004446: 2300 movs r3, #0
  9216. 8004448: 61fb str r3, [r7, #28]
  9217. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9218. 800444a: 2300 movs r3, #0
  9219. 800444c: 623b str r3, [r7, #32]
  9220. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  9221. 800444e: 2301 movs r3, #1
  9222. 8004450: 627b str r3, [r7, #36] @ 0x24
  9223. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  9224. 8004452: f107 0314 add.w r3, r7, #20
  9225. 8004456: 4619 mov r1, r3
  9226. 8004458: 4818 ldr r0, [pc, #96] @ (80044bc <HAL_TIM_MspPostInit+0xc0>)
  9227. 800445a: f006 fea7 bl 800b1ac <HAL_GPIO_Init>
  9228. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  9229. /* USER CODE END TIM3_MspPostInit 1 */
  9230. }
  9231. }
  9232. 800445e: e024 b.n 80044aa <HAL_TIM_MspPostInit+0xae>
  9233. else if(htim->Instance==TIM3)
  9234. 8004460: 687b ldr r3, [r7, #4]
  9235. 8004462: 681b ldr r3, [r3, #0]
  9236. 8004464: 4a16 ldr r2, [pc, #88] @ (80044c0 <HAL_TIM_MspPostInit+0xc4>)
  9237. 8004466: 4293 cmp r3, r2
  9238. 8004468: d11f bne.n 80044aa <HAL_TIM_MspPostInit+0xae>
  9239. __HAL_RCC_GPIOC_CLK_ENABLE();
  9240. 800446a: 4b13 ldr r3, [pc, #76] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9241. 800446c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9242. 8004470: 4a11 ldr r2, [pc, #68] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9243. 8004472: f043 0304 orr.w r3, r3, #4
  9244. 8004476: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9245. 800447a: 4b0f ldr r3, [pc, #60] @ (80044b8 <HAL_TIM_MspPostInit+0xbc>)
  9246. 800447c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9247. 8004480: f003 0304 and.w r3, r3, #4
  9248. 8004484: 60fb str r3, [r7, #12]
  9249. 8004486: 68fb ldr r3, [r7, #12]
  9250. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  9251. 8004488: f44f 7370 mov.w r3, #960 @ 0x3c0
  9252. 800448c: 617b str r3, [r7, #20]
  9253. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9254. 800448e: 2302 movs r3, #2
  9255. 8004490: 61bb str r3, [r7, #24]
  9256. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9257. 8004492: 2300 movs r3, #0
  9258. 8004494: 61fb str r3, [r7, #28]
  9259. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  9260. 8004496: 2301 movs r3, #1
  9261. 8004498: 623b str r3, [r7, #32]
  9262. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  9263. 800449a: 2302 movs r3, #2
  9264. 800449c: 627b str r3, [r7, #36] @ 0x24
  9265. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  9266. 800449e: f107 0314 add.w r3, r7, #20
  9267. 80044a2: 4619 mov r1, r3
  9268. 80044a4: 4807 ldr r0, [pc, #28] @ (80044c4 <HAL_TIM_MspPostInit+0xc8>)
  9269. 80044a6: f006 fe81 bl 800b1ac <HAL_GPIO_Init>
  9270. }
  9271. 80044aa: bf00 nop
  9272. 80044ac: 3728 adds r7, #40 @ 0x28
  9273. 80044ae: 46bd mov sp, r7
  9274. 80044b0: bd80 pop {r7, pc}
  9275. 80044b2: bf00 nop
  9276. 80044b4: 40010000 .word 0x40010000
  9277. 80044b8: 58024400 .word 0x58024400
  9278. 80044bc: 58020000 .word 0x58020000
  9279. 80044c0: 40000400 .word 0x40000400
  9280. 80044c4: 58020800 .word 0x58020800
  9281. 080044c8 <HAL_UART_MspInit>:
  9282. * This function configures the hardware resources used in this example
  9283. * @param huart: UART handle pointer
  9284. * @retval None
  9285. */
  9286. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  9287. {
  9288. 80044c8: b580 push {r7, lr}
  9289. 80044ca: b0bc sub sp, #240 @ 0xf0
  9290. 80044cc: af00 add r7, sp, #0
  9291. 80044ce: 6078 str r0, [r7, #4]
  9292. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9293. 80044d0: f107 03dc add.w r3, r7, #220 @ 0xdc
  9294. 80044d4: 2200 movs r2, #0
  9295. 80044d6: 601a str r2, [r3, #0]
  9296. 80044d8: 605a str r2, [r3, #4]
  9297. 80044da: 609a str r2, [r3, #8]
  9298. 80044dc: 60da str r2, [r3, #12]
  9299. 80044de: 611a str r2, [r3, #16]
  9300. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  9301. 80044e0: f107 0318 add.w r3, r7, #24
  9302. 80044e4: 22c0 movs r2, #192 @ 0xc0
  9303. 80044e6: 2100 movs r1, #0
  9304. 80044e8: 4618 mov r0, r3
  9305. 80044ea: f013 fefd bl 80182e8 <memset>
  9306. if(huart->Instance==UART8)
  9307. 80044ee: 687b ldr r3, [r7, #4]
  9308. 80044f0: 681b ldr r3, [r3, #0]
  9309. 80044f2: 4a55 ldr r2, [pc, #340] @ (8004648 <HAL_UART_MspInit+0x180>)
  9310. 80044f4: 4293 cmp r3, r2
  9311. 80044f6: d14e bne.n 8004596 <HAL_UART_MspInit+0xce>
  9312. /* USER CODE END UART8_MspInit 0 */
  9313. /** Initializes the peripherals clock
  9314. */
  9315. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  9316. 80044f8: f04f 0202 mov.w r2, #2
  9317. 80044fc: f04f 0300 mov.w r3, #0
  9318. 8004500: e9c7 2306 strd r2, r3, [r7, #24]
  9319. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  9320. 8004504: 2300 movs r3, #0
  9321. 8004506: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  9322. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9323. 800450a: f107 0318 add.w r3, r7, #24
  9324. 800450e: 4618 mov r0, r3
  9325. 8004510: f008 fa32 bl 800c978 <HAL_RCCEx_PeriphCLKConfig>
  9326. 8004514: 4603 mov r3, r0
  9327. 8004516: 2b00 cmp r3, #0
  9328. 8004518: d001 beq.n 800451e <HAL_UART_MspInit+0x56>
  9329. {
  9330. Error_Handler();
  9331. 800451a: f7fd fcd7 bl 8001ecc <Error_Handler>
  9332. }
  9333. /* Peripheral clock enable */
  9334. __HAL_RCC_UART8_CLK_ENABLE();
  9335. 800451e: 4b4b ldr r3, [pc, #300] @ (800464c <HAL_UART_MspInit+0x184>)
  9336. 8004520: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9337. 8004524: 4a49 ldr r2, [pc, #292] @ (800464c <HAL_UART_MspInit+0x184>)
  9338. 8004526: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  9339. 800452a: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9340. 800452e: 4b47 ldr r3, [pc, #284] @ (800464c <HAL_UART_MspInit+0x184>)
  9341. 8004530: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9342. 8004534: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  9343. 8004538: 617b str r3, [r7, #20]
  9344. 800453a: 697b ldr r3, [r7, #20]
  9345. __HAL_RCC_GPIOE_CLK_ENABLE();
  9346. 800453c: 4b43 ldr r3, [pc, #268] @ (800464c <HAL_UART_MspInit+0x184>)
  9347. 800453e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9348. 8004542: 4a42 ldr r2, [pc, #264] @ (800464c <HAL_UART_MspInit+0x184>)
  9349. 8004544: f043 0310 orr.w r3, r3, #16
  9350. 8004548: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9351. 800454c: 4b3f ldr r3, [pc, #252] @ (800464c <HAL_UART_MspInit+0x184>)
  9352. 800454e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9353. 8004552: f003 0310 and.w r3, r3, #16
  9354. 8004556: 613b str r3, [r7, #16]
  9355. 8004558: 693b ldr r3, [r7, #16]
  9356. /**UART8 GPIO Configuration
  9357. PE0 ------> UART8_RX
  9358. PE1 ------> UART8_TX
  9359. */
  9360. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  9361. 800455a: 2303 movs r3, #3
  9362. 800455c: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9363. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9364. 8004560: 2302 movs r3, #2
  9365. 8004562: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9366. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9367. 8004566: 2300 movs r3, #0
  9368. 8004568: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9369. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9370. 800456c: 2300 movs r3, #0
  9371. 800456e: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9372. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  9373. 8004572: 2308 movs r3, #8
  9374. 8004574: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9375. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  9376. 8004578: f107 03dc add.w r3, r7, #220 @ 0xdc
  9377. 800457c: 4619 mov r1, r3
  9378. 800457e: 4834 ldr r0, [pc, #208] @ (8004650 <HAL_UART_MspInit+0x188>)
  9379. 8004580: f006 fe14 bl 800b1ac <HAL_GPIO_Init>
  9380. /* UART8 interrupt Init */
  9381. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  9382. 8004584: 2200 movs r2, #0
  9383. 8004586: 2105 movs r1, #5
  9384. 8004588: 2053 movs r0, #83 @ 0x53
  9385. 800458a: f003 fadd bl 8007b48 <HAL_NVIC_SetPriority>
  9386. HAL_NVIC_EnableIRQ(UART8_IRQn);
  9387. 800458e: 2053 movs r0, #83 @ 0x53
  9388. 8004590: f003 faf4 bl 8007b7c <HAL_NVIC_EnableIRQ>
  9389. /* USER CODE BEGIN USART1_MspInit 1 */
  9390. /* USER CODE END USART1_MspInit 1 */
  9391. }
  9392. }
  9393. 8004594: e053 b.n 800463e <HAL_UART_MspInit+0x176>
  9394. else if(huart->Instance==USART1)
  9395. 8004596: 687b ldr r3, [r7, #4]
  9396. 8004598: 681b ldr r3, [r3, #0]
  9397. 800459a: 4a2e ldr r2, [pc, #184] @ (8004654 <HAL_UART_MspInit+0x18c>)
  9398. 800459c: 4293 cmp r3, r2
  9399. 800459e: d14e bne.n 800463e <HAL_UART_MspInit+0x176>
  9400. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  9401. 80045a0: f04f 0201 mov.w r2, #1
  9402. 80045a4: f04f 0300 mov.w r3, #0
  9403. 80045a8: e9c7 2306 strd r2, r3, [r7, #24]
  9404. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  9405. 80045ac: 2300 movs r3, #0
  9406. 80045ae: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  9407. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9408. 80045b2: f107 0318 add.w r3, r7, #24
  9409. 80045b6: 4618 mov r0, r3
  9410. 80045b8: f008 f9de bl 800c978 <HAL_RCCEx_PeriphCLKConfig>
  9411. 80045bc: 4603 mov r3, r0
  9412. 80045be: 2b00 cmp r3, #0
  9413. 80045c0: d001 beq.n 80045c6 <HAL_UART_MspInit+0xfe>
  9414. Error_Handler();
  9415. 80045c2: f7fd fc83 bl 8001ecc <Error_Handler>
  9416. __HAL_RCC_USART1_CLK_ENABLE();
  9417. 80045c6: 4b21 ldr r3, [pc, #132] @ (800464c <HAL_UART_MspInit+0x184>)
  9418. 80045c8: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9419. 80045cc: 4a1f ldr r2, [pc, #124] @ (800464c <HAL_UART_MspInit+0x184>)
  9420. 80045ce: f043 0310 orr.w r3, r3, #16
  9421. 80045d2: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9422. 80045d6: 4b1d ldr r3, [pc, #116] @ (800464c <HAL_UART_MspInit+0x184>)
  9423. 80045d8: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9424. 80045dc: f003 0310 and.w r3, r3, #16
  9425. 80045e0: 60fb str r3, [r7, #12]
  9426. 80045e2: 68fb ldr r3, [r7, #12]
  9427. __HAL_RCC_GPIOB_CLK_ENABLE();
  9428. 80045e4: 4b19 ldr r3, [pc, #100] @ (800464c <HAL_UART_MspInit+0x184>)
  9429. 80045e6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9430. 80045ea: 4a18 ldr r2, [pc, #96] @ (800464c <HAL_UART_MspInit+0x184>)
  9431. 80045ec: f043 0302 orr.w r3, r3, #2
  9432. 80045f0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9433. 80045f4: 4b15 ldr r3, [pc, #84] @ (800464c <HAL_UART_MspInit+0x184>)
  9434. 80045f6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9435. 80045fa: f003 0302 and.w r3, r3, #2
  9436. 80045fe: 60bb str r3, [r7, #8]
  9437. 8004600: 68bb ldr r3, [r7, #8]
  9438. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9439. 8004602: f44f 4340 mov.w r3, #49152 @ 0xc000
  9440. 8004606: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9441. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9442. 800460a: 2302 movs r3, #2
  9443. 800460c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9444. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9445. 8004610: 2300 movs r3, #0
  9446. 8004612: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9447. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9448. 8004616: 2300 movs r3, #0
  9449. 8004618: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9450. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  9451. 800461c: 2304 movs r3, #4
  9452. 800461e: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9453. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9454. 8004622: f107 03dc add.w r3, r7, #220 @ 0xdc
  9455. 8004626: 4619 mov r1, r3
  9456. 8004628: 480b ldr r0, [pc, #44] @ (8004658 <HAL_UART_MspInit+0x190>)
  9457. 800462a: f006 fdbf bl 800b1ac <HAL_GPIO_Init>
  9458. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  9459. 800462e: 2200 movs r2, #0
  9460. 8004630: 2105 movs r1, #5
  9461. 8004632: 2025 movs r0, #37 @ 0x25
  9462. 8004634: f003 fa88 bl 8007b48 <HAL_NVIC_SetPriority>
  9463. HAL_NVIC_EnableIRQ(USART1_IRQn);
  9464. 8004638: 2025 movs r0, #37 @ 0x25
  9465. 800463a: f003 fa9f bl 8007b7c <HAL_NVIC_EnableIRQ>
  9466. }
  9467. 800463e: bf00 nop
  9468. 8004640: 37f0 adds r7, #240 @ 0xf0
  9469. 8004642: 46bd mov sp, r7
  9470. 8004644: bd80 pop {r7, pc}
  9471. 8004646: bf00 nop
  9472. 8004648: 40007c00 .word 0x40007c00
  9473. 800464c: 58024400 .word 0x58024400
  9474. 8004650: 58021000 .word 0x58021000
  9475. 8004654: 40011000 .word 0x40011000
  9476. 8004658: 58020400 .word 0x58020400
  9477. 0800465c <HAL_InitTick>:
  9478. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  9479. * @param TickPriority: Tick interrupt priority.
  9480. * @retval HAL status
  9481. */
  9482. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  9483. {
  9484. 800465c: b580 push {r7, lr}
  9485. 800465e: b090 sub sp, #64 @ 0x40
  9486. 8004660: af00 add r7, sp, #0
  9487. 8004662: 6078 str r0, [r7, #4]
  9488. uint32_t uwTimclock, uwAPB1Prescaler;
  9489. uint32_t uwPrescalerValue;
  9490. uint32_t pFLatency;
  9491. /*Configure the TIM6 IRQ priority */
  9492. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  9493. 8004664: 687b ldr r3, [r7, #4]
  9494. 8004666: 2b0f cmp r3, #15
  9495. 8004668: d827 bhi.n 80046ba <HAL_InitTick+0x5e>
  9496. {
  9497. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  9498. 800466a: 2200 movs r2, #0
  9499. 800466c: 6879 ldr r1, [r7, #4]
  9500. 800466e: 2036 movs r0, #54 @ 0x36
  9501. 8004670: f003 fa6a bl 8007b48 <HAL_NVIC_SetPriority>
  9502. /* Enable the TIM6 global Interrupt */
  9503. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  9504. 8004674: 2036 movs r0, #54 @ 0x36
  9505. 8004676: f003 fa81 bl 8007b7c <HAL_NVIC_EnableIRQ>
  9506. uwTickPrio = TickPriority;
  9507. 800467a: 4a29 ldr r2, [pc, #164] @ (8004720 <HAL_InitTick+0xc4>)
  9508. 800467c: 687b ldr r3, [r7, #4]
  9509. 800467e: 6013 str r3, [r2, #0]
  9510. {
  9511. return HAL_ERROR;
  9512. }
  9513. /* Enable TIM6 clock */
  9514. __HAL_RCC_TIM6_CLK_ENABLE();
  9515. 8004680: 4b28 ldr r3, [pc, #160] @ (8004724 <HAL_InitTick+0xc8>)
  9516. 8004682: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9517. 8004686: 4a27 ldr r2, [pc, #156] @ (8004724 <HAL_InitTick+0xc8>)
  9518. 8004688: f043 0310 orr.w r3, r3, #16
  9519. 800468c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9520. 8004690: 4b24 ldr r3, [pc, #144] @ (8004724 <HAL_InitTick+0xc8>)
  9521. 8004692: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9522. 8004696: f003 0310 and.w r3, r3, #16
  9523. 800469a: 60fb str r3, [r7, #12]
  9524. 800469c: 68fb ldr r3, [r7, #12]
  9525. /* Get clock configuration */
  9526. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  9527. 800469e: f107 0210 add.w r2, r7, #16
  9528. 80046a2: f107 0314 add.w r3, r7, #20
  9529. 80046a6: 4611 mov r1, r2
  9530. 80046a8: 4618 mov r0, r3
  9531. 80046aa: f008 f923 bl 800c8f4 <HAL_RCC_GetClockConfig>
  9532. /* Get APB1 prescaler */
  9533. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  9534. 80046ae: 6abb ldr r3, [r7, #40] @ 0x28
  9535. 80046b0: 63bb str r3, [r7, #56] @ 0x38
  9536. /* Compute TIM6 clock */
  9537. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  9538. 80046b2: 6bbb ldr r3, [r7, #56] @ 0x38
  9539. 80046b4: 2b00 cmp r3, #0
  9540. 80046b6: d106 bne.n 80046c6 <HAL_InitTick+0x6a>
  9541. 80046b8: e001 b.n 80046be <HAL_InitTick+0x62>
  9542. return HAL_ERROR;
  9543. 80046ba: 2301 movs r3, #1
  9544. 80046bc: e02b b.n 8004716 <HAL_InitTick+0xba>
  9545. {
  9546. uwTimclock = HAL_RCC_GetPCLK1Freq();
  9547. 80046be: f008 f8ed bl 800c89c <HAL_RCC_GetPCLK1Freq>
  9548. 80046c2: 63f8 str r0, [r7, #60] @ 0x3c
  9549. 80046c4: e004 b.n 80046d0 <HAL_InitTick+0x74>
  9550. }
  9551. else
  9552. {
  9553. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  9554. 80046c6: f008 f8e9 bl 800c89c <HAL_RCC_GetPCLK1Freq>
  9555. 80046ca: 4603 mov r3, r0
  9556. 80046cc: 005b lsls r3, r3, #1
  9557. 80046ce: 63fb str r3, [r7, #60] @ 0x3c
  9558. }
  9559. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  9560. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  9561. 80046d0: 6bfb ldr r3, [r7, #60] @ 0x3c
  9562. 80046d2: 4a15 ldr r2, [pc, #84] @ (8004728 <HAL_InitTick+0xcc>)
  9563. 80046d4: fba2 2303 umull r2, r3, r2, r3
  9564. 80046d8: 0c9b lsrs r3, r3, #18
  9565. 80046da: 3b01 subs r3, #1
  9566. 80046dc: 637b str r3, [r7, #52] @ 0x34
  9567. /* Initialize TIM6 */
  9568. htim6.Instance = TIM6;
  9569. 80046de: 4b13 ldr r3, [pc, #76] @ (800472c <HAL_InitTick+0xd0>)
  9570. 80046e0: 4a13 ldr r2, [pc, #76] @ (8004730 <HAL_InitTick+0xd4>)
  9571. 80046e2: 601a str r2, [r3, #0]
  9572. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  9573. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  9574. + ClockDivision = 0
  9575. + Counter direction = Up
  9576. */
  9577. htim6.Init.Period = (1000000U / 1000U) - 1U;
  9578. 80046e4: 4b11 ldr r3, [pc, #68] @ (800472c <HAL_InitTick+0xd0>)
  9579. 80046e6: f240 32e7 movw r2, #999 @ 0x3e7
  9580. 80046ea: 60da str r2, [r3, #12]
  9581. htim6.Init.Prescaler = uwPrescalerValue;
  9582. 80046ec: 4a0f ldr r2, [pc, #60] @ (800472c <HAL_InitTick+0xd0>)
  9583. 80046ee: 6b7b ldr r3, [r7, #52] @ 0x34
  9584. 80046f0: 6053 str r3, [r2, #4]
  9585. htim6.Init.ClockDivision = 0;
  9586. 80046f2: 4b0e ldr r3, [pc, #56] @ (800472c <HAL_InitTick+0xd0>)
  9587. 80046f4: 2200 movs r2, #0
  9588. 80046f6: 611a str r2, [r3, #16]
  9589. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  9590. 80046f8: 4b0c ldr r3, [pc, #48] @ (800472c <HAL_InitTick+0xd0>)
  9591. 80046fa: 2200 movs r2, #0
  9592. 80046fc: 609a str r2, [r3, #8]
  9593. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  9594. 80046fe: 480b ldr r0, [pc, #44] @ (800472c <HAL_InitTick+0xd0>)
  9595. 8004700: f00a fe7e bl 800f400 <HAL_TIM_Base_Init>
  9596. 8004704: 4603 mov r3, r0
  9597. 8004706: 2b00 cmp r3, #0
  9598. 8004708: d104 bne.n 8004714 <HAL_InitTick+0xb8>
  9599. {
  9600. /* Start the TIM time Base generation in interrupt mode */
  9601. return HAL_TIM_Base_Start_IT(&htim6);
  9602. 800470a: 4808 ldr r0, [pc, #32] @ (800472c <HAL_InitTick+0xd0>)
  9603. 800470c: f00a ff40 bl 800f590 <HAL_TIM_Base_Start_IT>
  9604. 8004710: 4603 mov r3, r0
  9605. 8004712: e000 b.n 8004716 <HAL_InitTick+0xba>
  9606. }
  9607. /* Return function status */
  9608. return HAL_ERROR;
  9609. 8004714: 2301 movs r3, #1
  9610. }
  9611. 8004716: 4618 mov r0, r3
  9612. 8004718: 3740 adds r7, #64 @ 0x40
  9613. 800471a: 46bd mov sp, r7
  9614. 800471c: bd80 pop {r7, pc}
  9615. 800471e: bf00 nop
  9616. 8004720: 2400003c .word 0x2400003c
  9617. 8004724: 58024400 .word 0x58024400
  9618. 8004728: 431bde83 .word 0x431bde83
  9619. 800472c: 24000920 .word 0x24000920
  9620. 8004730: 40001000 .word 0x40001000
  9621. 08004734 <NMI_Handler>:
  9622. /******************************************************************************/
  9623. /**
  9624. * @brief This function handles Non maskable interrupt.
  9625. */
  9626. void NMI_Handler(void)
  9627. {
  9628. 8004734: b480 push {r7}
  9629. 8004736: af00 add r7, sp, #0
  9630. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  9631. /* USER CODE END NonMaskableInt_IRQn 0 */
  9632. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  9633. while (1)
  9634. 8004738: bf00 nop
  9635. 800473a: e7fd b.n 8004738 <NMI_Handler+0x4>
  9636. 0800473c <HardFault_Handler>:
  9637. /**
  9638. * @brief This function handles Hard fault interrupt.
  9639. */
  9640. void HardFault_Handler(void)
  9641. {
  9642. 800473c: b480 push {r7}
  9643. 800473e: af00 add r7, sp, #0
  9644. /* USER CODE BEGIN HardFault_IRQn 0 */
  9645. /* USER CODE END HardFault_IRQn 0 */
  9646. while (1)
  9647. 8004740: bf00 nop
  9648. 8004742: e7fd b.n 8004740 <HardFault_Handler+0x4>
  9649. 08004744 <MemManage_Handler>:
  9650. /**
  9651. * @brief This function handles Memory management fault.
  9652. */
  9653. void MemManage_Handler(void)
  9654. {
  9655. 8004744: b480 push {r7}
  9656. 8004746: af00 add r7, sp, #0
  9657. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  9658. /* USER CODE END MemoryManagement_IRQn 0 */
  9659. while (1)
  9660. 8004748: bf00 nop
  9661. 800474a: e7fd b.n 8004748 <MemManage_Handler+0x4>
  9662. 0800474c <BusFault_Handler>:
  9663. /**
  9664. * @brief This function handles Pre-fetch fault, memory access fault.
  9665. */
  9666. void BusFault_Handler(void)
  9667. {
  9668. 800474c: b480 push {r7}
  9669. 800474e: af00 add r7, sp, #0
  9670. /* USER CODE BEGIN BusFault_IRQn 0 */
  9671. /* USER CODE END BusFault_IRQn 0 */
  9672. while (1)
  9673. 8004750: bf00 nop
  9674. 8004752: e7fd b.n 8004750 <BusFault_Handler+0x4>
  9675. 08004754 <UsageFault_Handler>:
  9676. /**
  9677. * @brief This function handles Undefined instruction or illegal state.
  9678. */
  9679. void UsageFault_Handler(void)
  9680. {
  9681. 8004754: b480 push {r7}
  9682. 8004756: af00 add r7, sp, #0
  9683. /* USER CODE BEGIN UsageFault_IRQn 0 */
  9684. /* USER CODE END UsageFault_IRQn 0 */
  9685. while (1)
  9686. 8004758: bf00 nop
  9687. 800475a: e7fd b.n 8004758 <UsageFault_Handler+0x4>
  9688. 0800475c <DebugMon_Handler>:
  9689. /**
  9690. * @brief This function handles Debug monitor.
  9691. */
  9692. void DebugMon_Handler(void)
  9693. {
  9694. 800475c: b480 push {r7}
  9695. 800475e: af00 add r7, sp, #0
  9696. /* USER CODE END DebugMonitor_IRQn 0 */
  9697. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  9698. /* USER CODE END DebugMonitor_IRQn 1 */
  9699. }
  9700. 8004760: bf00 nop
  9701. 8004762: 46bd mov sp, r7
  9702. 8004764: f85d 7b04 ldr.w r7, [sp], #4
  9703. 8004768: 4770 bx lr
  9704. 0800476a <RCC_IRQHandler>:
  9705. /**
  9706. * @brief This function handles RCC global interrupt.
  9707. */
  9708. void RCC_IRQHandler(void)
  9709. {
  9710. 800476a: b480 push {r7}
  9711. 800476c: af00 add r7, sp, #0
  9712. /* USER CODE END RCC_IRQn 0 */
  9713. /* USER CODE BEGIN RCC_IRQn 1 */
  9714. /* USER CODE END RCC_IRQn 1 */
  9715. }
  9716. 800476e: bf00 nop
  9717. 8004770: 46bd mov sp, r7
  9718. 8004772: f85d 7b04 ldr.w r7, [sp], #4
  9719. 8004776: 4770 bx lr
  9720. 08004778 <DMA1_Stream0_IRQHandler>:
  9721. /**
  9722. * @brief This function handles DMA1 stream0 global interrupt.
  9723. */
  9724. void DMA1_Stream0_IRQHandler(void)
  9725. {
  9726. 8004778: b580 push {r7, lr}
  9727. 800477a: af00 add r7, sp, #0
  9728. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  9729. /* USER CODE END DMA1_Stream0_IRQn 0 */
  9730. HAL_DMA_IRQHandler(&hdma_adc1);
  9731. 800477c: 4802 ldr r0, [pc, #8] @ (8004788 <DMA1_Stream0_IRQHandler+0x10>)
  9732. 800477e: f005 fa03 bl 8009b88 <HAL_DMA_IRQHandler>
  9733. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  9734. /* USER CODE END DMA1_Stream0_IRQn 1 */
  9735. }
  9736. 8004782: bf00 nop
  9737. 8004784: bd80 pop {r7, pc}
  9738. 8004786: bf00 nop
  9739. 8004788: 2400024c .word 0x2400024c
  9740. 0800478c <DMA1_Stream1_IRQHandler>:
  9741. /**
  9742. * @brief This function handles DMA1 stream1 global interrupt.
  9743. */
  9744. void DMA1_Stream1_IRQHandler(void)
  9745. {
  9746. 800478c: b580 push {r7, lr}
  9747. 800478e: af00 add r7, sp, #0
  9748. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  9749. /* USER CODE END DMA1_Stream1_IRQn 0 */
  9750. HAL_DMA_IRQHandler(&hdma_adc2);
  9751. 8004790: 4802 ldr r0, [pc, #8] @ (800479c <DMA1_Stream1_IRQHandler+0x10>)
  9752. 8004792: f005 f9f9 bl 8009b88 <HAL_DMA_IRQHandler>
  9753. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  9754. /* USER CODE END DMA1_Stream1_IRQn 1 */
  9755. }
  9756. 8004796: bf00 nop
  9757. 8004798: bd80 pop {r7, pc}
  9758. 800479a: bf00 nop
  9759. 800479c: 240002c4 .word 0x240002c4
  9760. 080047a0 <DMA1_Stream2_IRQHandler>:
  9761. /**
  9762. * @brief This function handles DMA1 stream2 global interrupt.
  9763. */
  9764. void DMA1_Stream2_IRQHandler(void)
  9765. {
  9766. 80047a0: b580 push {r7, lr}
  9767. 80047a2: af00 add r7, sp, #0
  9768. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  9769. /* USER CODE END DMA1_Stream2_IRQn 0 */
  9770. HAL_DMA_IRQHandler(&hdma_adc3);
  9771. 80047a4: 4802 ldr r0, [pc, #8] @ (80047b0 <DMA1_Stream2_IRQHandler+0x10>)
  9772. 80047a6: f005 f9ef bl 8009b88 <HAL_DMA_IRQHandler>
  9773. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  9774. /* USER CODE END DMA1_Stream2_IRQn 1 */
  9775. }
  9776. 80047aa: bf00 nop
  9777. 80047ac: bd80 pop {r7, pc}
  9778. 80047ae: bf00 nop
  9779. 80047b0: 2400033c .word 0x2400033c
  9780. 080047b4 <EXTI9_5_IRQHandler>:
  9781. /**
  9782. * @brief This function handles EXTI line[9:5] interrupts.
  9783. */
  9784. void EXTI9_5_IRQHandler(void)
  9785. {
  9786. 80047b4: b580 push {r7, lr}
  9787. 80047b6: af00 add r7, sp, #0
  9788. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  9789. /* USER CODE END EXTI9_5_IRQn 0 */
  9790. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  9791. 80047b8: f44f 7080 mov.w r0, #256 @ 0x100
  9792. 80047bc: f006 fef1 bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9793. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  9794. 80047c0: f44f 7000 mov.w r0, #512 @ 0x200
  9795. 80047c4: f006 feed bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9796. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  9797. /* USER CODE END EXTI9_5_IRQn 1 */
  9798. }
  9799. 80047c8: bf00 nop
  9800. 80047ca: bd80 pop {r7, pc}
  9801. 080047cc <TIM2_IRQHandler>:
  9802. /**
  9803. * @brief This function handles TIM2 global interrupt.
  9804. */
  9805. void TIM2_IRQHandler(void)
  9806. {
  9807. 80047cc: b580 push {r7, lr}
  9808. 80047ce: af00 add r7, sp, #0
  9809. /* USER CODE BEGIN TIM2_IRQn 0 */
  9810. /* USER CODE END TIM2_IRQn 0 */
  9811. HAL_TIM_IRQHandler(&htim2);
  9812. 80047d0: 4802 ldr r0, [pc, #8] @ (80047dc <TIM2_IRQHandler+0x10>)
  9813. 80047d2: f00b fb03 bl 800fddc <HAL_TIM_IRQHandler>
  9814. /* USER CODE BEGIN TIM2_IRQn 1 */
  9815. /* USER CODE END TIM2_IRQn 1 */
  9816. }
  9817. 80047d6: bf00 nop
  9818. 80047d8: bd80 pop {r7, pc}
  9819. 80047da: bf00 nop
  9820. 80047dc: 24000488 .word 0x24000488
  9821. 080047e0 <TIM4_IRQHandler>:
  9822. /**
  9823. * @brief This function handles TIM4 global interrupt.
  9824. */
  9825. void TIM4_IRQHandler(void)
  9826. {
  9827. 80047e0: b580 push {r7, lr}
  9828. 80047e2: af00 add r7, sp, #0
  9829. /* USER CODE BEGIN TIM4_IRQn 0 */
  9830. /* USER CODE END TIM4_IRQn 0 */
  9831. HAL_TIM_IRQHandler(&htim4);
  9832. 80047e4: 4802 ldr r0, [pc, #8] @ (80047f0 <TIM4_IRQHandler+0x10>)
  9833. 80047e6: f00b faf9 bl 800fddc <HAL_TIM_IRQHandler>
  9834. /* USER CODE BEGIN TIM4_IRQn 1 */
  9835. /* USER CODE END TIM4_IRQn 1 */
  9836. }
  9837. 80047ea: bf00 nop
  9838. 80047ec: bd80 pop {r7, pc}
  9839. 80047ee: bf00 nop
  9840. 80047f0: 24000520 .word 0x24000520
  9841. 080047f4 <USART1_IRQHandler>:
  9842. /**
  9843. * @brief This function handles USART1 global interrupt.
  9844. */
  9845. void USART1_IRQHandler(void)
  9846. {
  9847. 80047f4: b580 push {r7, lr}
  9848. 80047f6: af00 add r7, sp, #0
  9849. /* USER CODE BEGIN USART1_IRQn 0 */
  9850. /* USER CODE END USART1_IRQn 0 */
  9851. HAL_UART_IRQHandler(&huart1);
  9852. 80047f8: 4802 ldr r0, [pc, #8] @ (8004804 <USART1_IRQHandler+0x10>)
  9853. 80047fa: f00c feb3 bl 8011564 <HAL_UART_IRQHandler>
  9854. /* USER CODE BEGIN USART1_IRQn 1 */
  9855. /* USER CODE END USART1_IRQn 1 */
  9856. }
  9857. 80047fe: bf00 nop
  9858. 8004800: bd80 pop {r7, pc}
  9859. 8004802: bf00 nop
  9860. 8004804: 2400064c .word 0x2400064c
  9861. 08004808 <EXTI15_10_IRQHandler>:
  9862. /**
  9863. * @brief This function handles EXTI line[15:10] interrupts.
  9864. */
  9865. void EXTI15_10_IRQHandler(void)
  9866. {
  9867. 8004808: b580 push {r7, lr}
  9868. 800480a: af00 add r7, sp, #0
  9869. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  9870. /* USER CODE END EXTI15_10_IRQn 0 */
  9871. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  9872. 800480c: f44f 6080 mov.w r0, #1024 @ 0x400
  9873. 8004810: f006 fec7 bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9874. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  9875. 8004814: f44f 6000 mov.w r0, #2048 @ 0x800
  9876. 8004818: f006 fec3 bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9877. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  9878. 800481c: f44f 5080 mov.w r0, #4096 @ 0x1000
  9879. 8004820: f006 febf bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9880. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  9881. 8004824: f44f 5000 mov.w r0, #8192 @ 0x2000
  9882. 8004828: f006 febb bl 800b5a2 <HAL_GPIO_EXTI_IRQHandler>
  9883. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  9884. /* USER CODE END EXTI15_10_IRQn 1 */
  9885. }
  9886. 800482c: bf00 nop
  9887. 800482e: bd80 pop {r7, pc}
  9888. 08004830 <TIM6_DAC_IRQHandler>:
  9889. /**
  9890. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  9891. */
  9892. void TIM6_DAC_IRQHandler(void)
  9893. {
  9894. 8004830: b580 push {r7, lr}
  9895. 8004832: af00 add r7, sp, #0
  9896. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  9897. /* USER CODE END TIM6_DAC_IRQn 0 */
  9898. if (hdac1.State != HAL_DAC_STATE_RESET) {
  9899. 8004834: 4b06 ldr r3, [pc, #24] @ (8004850 <TIM6_DAC_IRQHandler+0x20>)
  9900. 8004836: 791b ldrb r3, [r3, #4]
  9901. 8004838: b2db uxtb r3, r3
  9902. 800483a: 2b00 cmp r3, #0
  9903. 800483c: d002 beq.n 8004844 <TIM6_DAC_IRQHandler+0x14>
  9904. HAL_DAC_IRQHandler(&hdac1);
  9905. 800483e: 4804 ldr r0, [pc, #16] @ (8004850 <TIM6_DAC_IRQHandler+0x20>)
  9906. 8004840: f003 fca1 bl 8008186 <HAL_DAC_IRQHandler>
  9907. }
  9908. HAL_TIM_IRQHandler(&htim6);
  9909. 8004844: 4803 ldr r0, [pc, #12] @ (8004854 <TIM6_DAC_IRQHandler+0x24>)
  9910. 8004846: f00b fac9 bl 800fddc <HAL_TIM_IRQHandler>
  9911. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  9912. /* USER CODE END TIM6_DAC_IRQn 1 */
  9913. }
  9914. 800484a: bf00 nop
  9915. 800484c: bd80 pop {r7, pc}
  9916. 800484e: bf00 nop
  9917. 8004850: 24000404 .word 0x24000404
  9918. 8004854: 24000920 .word 0x24000920
  9919. 08004858 <UART8_IRQHandler>:
  9920. /**
  9921. * @brief This function handles UART8 global interrupt.
  9922. */
  9923. void UART8_IRQHandler(void)
  9924. {
  9925. 8004858: b580 push {r7, lr}
  9926. 800485a: af00 add r7, sp, #0
  9927. /* USER CODE BEGIN UART8_IRQn 0 */
  9928. /* USER CODE END UART8_IRQn 0 */
  9929. HAL_UART_IRQHandler(&huart8);
  9930. 800485c: 4802 ldr r0, [pc, #8] @ (8004868 <UART8_IRQHandler+0x10>)
  9931. 800485e: f00c fe81 bl 8011564 <HAL_UART_IRQHandler>
  9932. /* USER CODE BEGIN UART8_IRQn 1 */
  9933. /* USER CODE END UART8_IRQn 1 */
  9934. }
  9935. 8004862: bf00 nop
  9936. 8004864: bd80 pop {r7, pc}
  9937. 8004866: bf00 nop
  9938. 8004868: 240005b8 .word 0x240005b8
  9939. 0800486c <SystemInit>:
  9940. * configuration.
  9941. * @param None
  9942. * @retval None
  9943. */
  9944. void SystemInit (void)
  9945. {
  9946. 800486c: b480 push {r7}
  9947. 800486e: af00 add r7, sp, #0
  9948. __IO uint32_t tmpreg;
  9949. #endif /* DATA_IN_D2_SRAM */
  9950. /* FPU settings ------------------------------------------------------------*/
  9951. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9952. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9953. 8004870: 4b37 ldr r3, [pc, #220] @ (8004950 <SystemInit+0xe4>)
  9954. 8004872: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9955. 8004876: 4a36 ldr r2, [pc, #216] @ (8004950 <SystemInit+0xe4>)
  9956. 8004878: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9957. 800487c: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9958. #endif
  9959. /* Reset the RCC clock configuration to the default reset state ------------*/
  9960. /* Increasing the CPU frequency */
  9961. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9962. 8004880: 4b34 ldr r3, [pc, #208] @ (8004954 <SystemInit+0xe8>)
  9963. 8004882: 681b ldr r3, [r3, #0]
  9964. 8004884: f003 030f and.w r3, r3, #15
  9965. 8004888: 2b06 cmp r3, #6
  9966. 800488a: d807 bhi.n 800489c <SystemInit+0x30>
  9967. {
  9968. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9969. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9970. 800488c: 4b31 ldr r3, [pc, #196] @ (8004954 <SystemInit+0xe8>)
  9971. 800488e: 681b ldr r3, [r3, #0]
  9972. 8004890: f023 030f bic.w r3, r3, #15
  9973. 8004894: 4a2f ldr r2, [pc, #188] @ (8004954 <SystemInit+0xe8>)
  9974. 8004896: f043 0307 orr.w r3, r3, #7
  9975. 800489a: 6013 str r3, [r2, #0]
  9976. }
  9977. /* Set HSION bit */
  9978. RCC->CR |= RCC_CR_HSION;
  9979. 800489c: 4b2e ldr r3, [pc, #184] @ (8004958 <SystemInit+0xec>)
  9980. 800489e: 681b ldr r3, [r3, #0]
  9981. 80048a0: 4a2d ldr r2, [pc, #180] @ (8004958 <SystemInit+0xec>)
  9982. 80048a2: f043 0301 orr.w r3, r3, #1
  9983. 80048a6: 6013 str r3, [r2, #0]
  9984. /* Reset CFGR register */
  9985. RCC->CFGR = 0x00000000;
  9986. 80048a8: 4b2b ldr r3, [pc, #172] @ (8004958 <SystemInit+0xec>)
  9987. 80048aa: 2200 movs r2, #0
  9988. 80048ac: 611a str r2, [r3, #16]
  9989. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  9990. RCC->CR &= 0xEAF6ED7FU;
  9991. 80048ae: 4b2a ldr r3, [pc, #168] @ (8004958 <SystemInit+0xec>)
  9992. 80048b0: 681a ldr r2, [r3, #0]
  9993. 80048b2: 4929 ldr r1, [pc, #164] @ (8004958 <SystemInit+0xec>)
  9994. 80048b4: 4b29 ldr r3, [pc, #164] @ (800495c <SystemInit+0xf0>)
  9995. 80048b6: 4013 ands r3, r2
  9996. 80048b8: 600b str r3, [r1, #0]
  9997. /* Decreasing the number of wait states because of lower CPU frequency */
  9998. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9999. 80048ba: 4b26 ldr r3, [pc, #152] @ (8004954 <SystemInit+0xe8>)
  10000. 80048bc: 681b ldr r3, [r3, #0]
  10001. 80048be: f003 0308 and.w r3, r3, #8
  10002. 80048c2: 2b00 cmp r3, #0
  10003. 80048c4: d007 beq.n 80048d6 <SystemInit+0x6a>
  10004. {
  10005. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  10006. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  10007. 80048c6: 4b23 ldr r3, [pc, #140] @ (8004954 <SystemInit+0xe8>)
  10008. 80048c8: 681b ldr r3, [r3, #0]
  10009. 80048ca: f023 030f bic.w r3, r3, #15
  10010. 80048ce: 4a21 ldr r2, [pc, #132] @ (8004954 <SystemInit+0xe8>)
  10011. 80048d0: f043 0307 orr.w r3, r3, #7
  10012. 80048d4: 6013 str r3, [r2, #0]
  10013. }
  10014. #if defined(D3_SRAM_BASE)
  10015. /* Reset D1CFGR register */
  10016. RCC->D1CFGR = 0x00000000;
  10017. 80048d6: 4b20 ldr r3, [pc, #128] @ (8004958 <SystemInit+0xec>)
  10018. 80048d8: 2200 movs r2, #0
  10019. 80048da: 619a str r2, [r3, #24]
  10020. /* Reset D2CFGR register */
  10021. RCC->D2CFGR = 0x00000000;
  10022. 80048dc: 4b1e ldr r3, [pc, #120] @ (8004958 <SystemInit+0xec>)
  10023. 80048de: 2200 movs r2, #0
  10024. 80048e0: 61da str r2, [r3, #28]
  10025. /* Reset D3CFGR register */
  10026. RCC->D3CFGR = 0x00000000;
  10027. 80048e2: 4b1d ldr r3, [pc, #116] @ (8004958 <SystemInit+0xec>)
  10028. 80048e4: 2200 movs r2, #0
  10029. 80048e6: 621a str r2, [r3, #32]
  10030. /* Reset SRDCFGR register */
  10031. RCC->SRDCFGR = 0x00000000;
  10032. #endif
  10033. /* Reset PLLCKSELR register */
  10034. RCC->PLLCKSELR = 0x02020200;
  10035. 80048e8: 4b1b ldr r3, [pc, #108] @ (8004958 <SystemInit+0xec>)
  10036. 80048ea: 4a1d ldr r2, [pc, #116] @ (8004960 <SystemInit+0xf4>)
  10037. 80048ec: 629a str r2, [r3, #40] @ 0x28
  10038. /* Reset PLLCFGR register */
  10039. RCC->PLLCFGR = 0x01FF0000;
  10040. 80048ee: 4b1a ldr r3, [pc, #104] @ (8004958 <SystemInit+0xec>)
  10041. 80048f0: 4a1c ldr r2, [pc, #112] @ (8004964 <SystemInit+0xf8>)
  10042. 80048f2: 62da str r2, [r3, #44] @ 0x2c
  10043. /* Reset PLL1DIVR register */
  10044. RCC->PLL1DIVR = 0x01010280;
  10045. 80048f4: 4b18 ldr r3, [pc, #96] @ (8004958 <SystemInit+0xec>)
  10046. 80048f6: 4a1c ldr r2, [pc, #112] @ (8004968 <SystemInit+0xfc>)
  10047. 80048f8: 631a str r2, [r3, #48] @ 0x30
  10048. /* Reset PLL1FRACR register */
  10049. RCC->PLL1FRACR = 0x00000000;
  10050. 80048fa: 4b17 ldr r3, [pc, #92] @ (8004958 <SystemInit+0xec>)
  10051. 80048fc: 2200 movs r2, #0
  10052. 80048fe: 635a str r2, [r3, #52] @ 0x34
  10053. /* Reset PLL2DIVR register */
  10054. RCC->PLL2DIVR = 0x01010280;
  10055. 8004900: 4b15 ldr r3, [pc, #84] @ (8004958 <SystemInit+0xec>)
  10056. 8004902: 4a19 ldr r2, [pc, #100] @ (8004968 <SystemInit+0xfc>)
  10057. 8004904: 639a str r2, [r3, #56] @ 0x38
  10058. /* Reset PLL2FRACR register */
  10059. RCC->PLL2FRACR = 0x00000000;
  10060. 8004906: 4b14 ldr r3, [pc, #80] @ (8004958 <SystemInit+0xec>)
  10061. 8004908: 2200 movs r2, #0
  10062. 800490a: 63da str r2, [r3, #60] @ 0x3c
  10063. /* Reset PLL3DIVR register */
  10064. RCC->PLL3DIVR = 0x01010280;
  10065. 800490c: 4b12 ldr r3, [pc, #72] @ (8004958 <SystemInit+0xec>)
  10066. 800490e: 4a16 ldr r2, [pc, #88] @ (8004968 <SystemInit+0xfc>)
  10067. 8004910: 641a str r2, [r3, #64] @ 0x40
  10068. /* Reset PLL3FRACR register */
  10069. RCC->PLL3FRACR = 0x00000000;
  10070. 8004912: 4b11 ldr r3, [pc, #68] @ (8004958 <SystemInit+0xec>)
  10071. 8004914: 2200 movs r2, #0
  10072. 8004916: 645a str r2, [r3, #68] @ 0x44
  10073. /* Reset HSEBYP bit */
  10074. RCC->CR &= 0xFFFBFFFFU;
  10075. 8004918: 4b0f ldr r3, [pc, #60] @ (8004958 <SystemInit+0xec>)
  10076. 800491a: 681b ldr r3, [r3, #0]
  10077. 800491c: 4a0e ldr r2, [pc, #56] @ (8004958 <SystemInit+0xec>)
  10078. 800491e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  10079. 8004922: 6013 str r3, [r2, #0]
  10080. /* Disable all interrupts */
  10081. RCC->CIER = 0x00000000;
  10082. 8004924: 4b0c ldr r3, [pc, #48] @ (8004958 <SystemInit+0xec>)
  10083. 8004926: 2200 movs r2, #0
  10084. 8004928: 661a str r2, [r3, #96] @ 0x60
  10085. #if (STM32H7_DEV_ID == 0x450UL)
  10086. /* dual core CM7 or single core line */
  10087. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  10088. 800492a: 4b10 ldr r3, [pc, #64] @ (800496c <SystemInit+0x100>)
  10089. 800492c: 681a ldr r2, [r3, #0]
  10090. 800492e: 4b10 ldr r3, [pc, #64] @ (8004970 <SystemInit+0x104>)
  10091. 8004930: 4013 ands r3, r2
  10092. 8004932: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  10093. 8004936: d202 bcs.n 800493e <SystemInit+0xd2>
  10094. {
  10095. /* if stm32h7 revY*/
  10096. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  10097. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  10098. 8004938: 4b0e ldr r3, [pc, #56] @ (8004974 <SystemInit+0x108>)
  10099. 800493a: 2201 movs r2, #1
  10100. 800493c: 601a str r2, [r3, #0]
  10101. /*
  10102. * Disable the FMC bank1 (enabled after reset).
  10103. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  10104. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  10105. */
  10106. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  10107. 800493e: 4b0e ldr r3, [pc, #56] @ (8004978 <SystemInit+0x10c>)
  10108. 8004940: f243 02d2 movw r2, #12498 @ 0x30d2
  10109. 8004944: 601a str r2, [r3, #0]
  10110. #if defined(USER_VECT_TAB_ADDRESS)
  10111. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  10112. #endif /* USER_VECT_TAB_ADDRESS */
  10113. #endif /*DUAL_CORE && CORE_CM4*/
  10114. }
  10115. 8004946: bf00 nop
  10116. 8004948: 46bd mov sp, r7
  10117. 800494a: f85d 7b04 ldr.w r7, [sp], #4
  10118. 800494e: 4770 bx lr
  10119. 8004950: e000ed00 .word 0xe000ed00
  10120. 8004954: 52002000 .word 0x52002000
  10121. 8004958: 58024400 .word 0x58024400
  10122. 800495c: eaf6ed7f .word 0xeaf6ed7f
  10123. 8004960: 02020200 .word 0x02020200
  10124. 8004964: 01ff0000 .word 0x01ff0000
  10125. 8004968: 01010280 .word 0x01010280
  10126. 800496c: 5c001000 .word 0x5c001000
  10127. 8004970: ffff0000 .word 0xffff0000
  10128. 8004974: 51008108 .word 0x51008108
  10129. 8004978: 52004000 .word 0x52004000
  10130. 0800497c <__NVIC_SystemReset>:
  10131. {
  10132. 800497c: b480 push {r7}
  10133. 800497e: af00 add r7, sp, #0
  10134. __ASM volatile ("dsb 0xF":::"memory");
  10135. 8004980: f3bf 8f4f dsb sy
  10136. }
  10137. 8004984: bf00 nop
  10138. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  10139. 8004986: 4b06 ldr r3, [pc, #24] @ (80049a0 <__NVIC_SystemReset+0x24>)
  10140. 8004988: 68db ldr r3, [r3, #12]
  10141. 800498a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  10142. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  10143. 800498e: 4904 ldr r1, [pc, #16] @ (80049a0 <__NVIC_SystemReset+0x24>)
  10144. 8004990: 4b04 ldr r3, [pc, #16] @ (80049a4 <__NVIC_SystemReset+0x28>)
  10145. 8004992: 4313 orrs r3, r2
  10146. 8004994: 60cb str r3, [r1, #12]
  10147. __ASM volatile ("dsb 0xF":::"memory");
  10148. 8004996: f3bf 8f4f dsb sy
  10149. }
  10150. 800499a: bf00 nop
  10151. __NOP();
  10152. 800499c: bf00 nop
  10153. 800499e: e7fd b.n 800499c <__NVIC_SystemReset+0x20>
  10154. 80049a0: e000ed00 .word 0xe000ed00
  10155. 80049a4: 05fa0004 .word 0x05fa0004
  10156. 080049a8 <UartTasksInit>:
  10157. uint8_t outputDataBuffer[OUTPUT_DATA_BUFF_SIZE];
  10158. uint16_t outputDataBufferPos = 0;
  10159. extern RNG_HandleTypeDef hrng;
  10160. void UartTasksInit (void) {
  10161. 80049a8: b580 push {r7, lr}
  10162. 80049aa: af00 add r7, sp, #0
  10163. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  10164. 80049ac: 4b24 ldr r3, [pc, #144] @ (8004a40 <UartTasksInit+0x98>)
  10165. 80049ae: 4a25 ldr r2, [pc, #148] @ (8004a44 <UartTasksInit+0x9c>)
  10166. 80049b0: 601a str r2, [r3, #0]
  10167. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  10168. 80049b2: 4b23 ldr r3, [pc, #140] @ (8004a40 <UartTasksInit+0x98>)
  10169. 80049b4: f44f 7280 mov.w r2, #256 @ 0x100
  10170. 80049b8: 809a strh r2, [r3, #4]
  10171. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  10172. 80049ba: 4b21 ldr r3, [pc, #132] @ (8004a40 <UartTasksInit+0x98>)
  10173. 80049bc: 4a22 ldr r2, [pc, #136] @ (8004a48 <UartTasksInit+0xa0>)
  10174. 80049be: 609a str r2, [r3, #8]
  10175. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  10176. 80049c0: 4b1f ldr r3, [pc, #124] @ (8004a40 <UartTasksInit+0x98>)
  10177. 80049c2: f44f 7280 mov.w r2, #256 @ 0x100
  10178. 80049c6: 809a strh r2, [r3, #4]
  10179. uart1TaskData.frameData = uart1TaskFrameData;
  10180. 80049c8: 4b1d ldr r3, [pc, #116] @ (8004a40 <UartTasksInit+0x98>)
  10181. 80049ca: 4a20 ldr r2, [pc, #128] @ (8004a4c <UartTasksInit+0xa4>)
  10182. 80049cc: 611a str r2, [r3, #16]
  10183. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  10184. 80049ce: 4b1c ldr r3, [pc, #112] @ (8004a40 <UartTasksInit+0x98>)
  10185. 80049d0: f44f 7280 mov.w r2, #256 @ 0x100
  10186. 80049d4: 829a strh r2, [r3, #20]
  10187. uart1TaskData.huart = &huart1;
  10188. 80049d6: 4b1a ldr r3, [pc, #104] @ (8004a40 <UartTasksInit+0x98>)
  10189. 80049d8: 4a1d ldr r2, [pc, #116] @ (8004a50 <UartTasksInit+0xa8>)
  10190. 80049da: 631a str r2, [r3, #48] @ 0x30
  10191. uart1TaskData.uartNumber = 1;
  10192. 80049dc: 4b18 ldr r3, [pc, #96] @ (8004a40 <UartTasksInit+0x98>)
  10193. 80049de: 2201 movs r2, #1
  10194. 80049e0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10195. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  10196. 80049e4: 4b16 ldr r3, [pc, #88] @ (8004a40 <UartTasksInit+0x98>)
  10197. 80049e6: 4a1b ldr r2, [pc, #108] @ (8004a54 <UartTasksInit+0xac>)
  10198. 80049e8: 629a str r2, [r3, #40] @ 0x28
  10199. uart1TaskData.processRxDataMsgBuffer = NULL;
  10200. 80049ea: 4b15 ldr r3, [pc, #84] @ (8004a40 <UartTasksInit+0x98>)
  10201. 80049ec: 2200 movs r2, #0
  10202. 80049ee: 625a str r2, [r3, #36] @ 0x24
  10203. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  10204. 80049f0: 4b19 ldr r3, [pc, #100] @ (8004a58 <UartTasksInit+0xb0>)
  10205. 80049f2: 4a1a ldr r2, [pc, #104] @ (8004a5c <UartTasksInit+0xb4>)
  10206. 80049f4: 601a str r2, [r3, #0]
  10207. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  10208. 80049f6: 4b18 ldr r3, [pc, #96] @ (8004a58 <UartTasksInit+0xb0>)
  10209. 80049f8: f44f 7280 mov.w r2, #256 @ 0x100
  10210. 80049fc: 809a strh r2, [r3, #4]
  10211. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  10212. 80049fe: 4b16 ldr r3, [pc, #88] @ (8004a58 <UartTasksInit+0xb0>)
  10213. 8004a00: 4a17 ldr r2, [pc, #92] @ (8004a60 <UartTasksInit+0xb8>)
  10214. 8004a02: 609a str r2, [r3, #8]
  10215. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  10216. 8004a04: 4b14 ldr r3, [pc, #80] @ (8004a58 <UartTasksInit+0xb0>)
  10217. 8004a06: f44f 7280 mov.w r2, #256 @ 0x100
  10218. 8004a0a: 809a strh r2, [r3, #4]
  10219. uart8TaskData.frameData = uart8TaskFrameData;
  10220. 8004a0c: 4b12 ldr r3, [pc, #72] @ (8004a58 <UartTasksInit+0xb0>)
  10221. 8004a0e: 4a15 ldr r2, [pc, #84] @ (8004a64 <UartTasksInit+0xbc>)
  10222. 8004a10: 611a str r2, [r3, #16]
  10223. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  10224. 8004a12: 4b11 ldr r3, [pc, #68] @ (8004a58 <UartTasksInit+0xb0>)
  10225. 8004a14: f44f 7280 mov.w r2, #256 @ 0x100
  10226. 8004a18: 829a strh r2, [r3, #20]
  10227. uart8TaskData.huart = &huart8;
  10228. 8004a1a: 4b0f ldr r3, [pc, #60] @ (8004a58 <UartTasksInit+0xb0>)
  10229. 8004a1c: 4a12 ldr r2, [pc, #72] @ (8004a68 <UartTasksInit+0xc0>)
  10230. 8004a1e: 631a str r2, [r3, #48] @ 0x30
  10231. uart8TaskData.uartNumber = 8;
  10232. 8004a20: 4b0d ldr r3, [pc, #52] @ (8004a58 <UartTasksInit+0xb0>)
  10233. 8004a22: 2208 movs r2, #8
  10234. 8004a24: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10235. uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  10236. 8004a28: 4b0b ldr r3, [pc, #44] @ (8004a58 <UartTasksInit+0xb0>)
  10237. 8004a2a: 4a10 ldr r2, [pc, #64] @ (8004a6c <UartTasksInit+0xc4>)
  10238. 8004a2c: 629a str r2, [r3, #40] @ 0x28
  10239. uart8TaskData.processRxDataMsgBuffer = NULL;
  10240. 8004a2e: 4b0a ldr r3, [pc, #40] @ (8004a58 <UartTasksInit+0xb0>)
  10241. 8004a30: 2200 movs r2, #0
  10242. 8004a32: 625a str r2, [r3, #36] @ 0x24
  10243. #ifdef USE_UART8_INSTEAD_UART1
  10244. UartTaskCreate (&uart8TaskData);
  10245. #else
  10246. UartTaskCreate (&uart1TaskData);
  10247. 8004a34: 4802 ldr r0, [pc, #8] @ (8004a40 <UartTasksInit+0x98>)
  10248. 8004a36: f000 f81b bl 8004a70 <UartTaskCreate>
  10249. #endif
  10250. }
  10251. 8004a3a: bf00 nop
  10252. 8004a3c: bd80 pop {r7, pc}
  10253. 8004a3e: bf00 nop
  10254. 8004a40: 24000f6c .word 0x24000f6c
  10255. 8004a44: 2400096c .word 0x2400096c
  10256. 8004a48: 24000a6c .word 0x24000a6c
  10257. 8004a4c: 24000b6c .word 0x24000b6c
  10258. 8004a50: 2400064c .word 0x2400064c
  10259. 8004a54: 08005119 .word 0x08005119
  10260. 8004a58: 24000fa4 .word 0x24000fa4
  10261. 8004a5c: 24000c6c .word 0x24000c6c
  10262. 8004a60: 24000d6c .word 0x24000d6c
  10263. 8004a64: 24000e6c .word 0x24000e6c
  10264. 8004a68: 240005b8 .word 0x240005b8
  10265. 8004a6c: 080050fd .word 0x080050fd
  10266. 08004a70 <UartTaskCreate>:
  10267. void UartTaskCreate (UartTaskData* uartTaskData) {
  10268. 8004a70: b580 push {r7, lr}
  10269. 8004a72: b08c sub sp, #48 @ 0x30
  10270. 8004a74: af00 add r7, sp, #0
  10271. 8004a76: 6078 str r0, [r7, #4]
  10272. osThreadAttr_t osThreadAttrRxUart = { 0 };
  10273. 8004a78: f107 030c add.w r3, r7, #12
  10274. 8004a7c: 2224 movs r2, #36 @ 0x24
  10275. 8004a7e: 2100 movs r1, #0
  10276. 8004a80: 4618 mov r0, r3
  10277. 8004a82: f013 fc31 bl 80182e8 <memset>
  10278. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  10279. 8004a86: f44f 6380 mov.w r3, #1024 @ 0x400
  10280. 8004a8a: 623b str r3, [r7, #32]
  10281. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  10282. 8004a8c: 2328 movs r3, #40 @ 0x28
  10283. 8004a8e: 627b str r3, [r7, #36] @ 0x24
  10284. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  10285. 8004a90: f107 030c add.w r3, r7, #12
  10286. 8004a94: 461a mov r2, r3
  10287. 8004a96: 6879 ldr r1, [r7, #4]
  10288. 8004a98: 4804 ldr r0, [pc, #16] @ (8004aac <UartTaskCreate+0x3c>)
  10289. 8004a9a: f00f fad1 bl 8014040 <osThreadNew>
  10290. 8004a9e: 4602 mov r2, r0
  10291. 8004aa0: 687b ldr r3, [r7, #4]
  10292. 8004aa2: 619a str r2, [r3, #24]
  10293. }
  10294. 8004aa4: bf00 nop
  10295. 8004aa6: 3730 adds r7, #48 @ 0x30
  10296. 8004aa8: 46bd mov sp, r7
  10297. 8004aaa: bd80 pop {r7, pc}
  10298. 8004aac: 08004bc5 .word 0x08004bc5
  10299. 08004ab0 <HAL_UART_RxCpltCallback>:
  10300. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  10301. 8004ab0: b480 push {r7}
  10302. 8004ab2: b083 sub sp, #12
  10303. 8004ab4: af00 add r7, sp, #0
  10304. 8004ab6: 6078 str r0, [r7, #4]
  10305. }
  10306. 8004ab8: bf00 nop
  10307. 8004aba: 370c adds r7, #12
  10308. 8004abc: 46bd mov sp, r7
  10309. 8004abe: f85d 7b04 ldr.w r7, [sp], #4
  10310. 8004ac2: 4770 bx lr
  10311. 08004ac4 <HAL_UARTEx_RxEventCallback>:
  10312. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  10313. 8004ac4: b580 push {r7, lr}
  10314. 8004ac6: b082 sub sp, #8
  10315. 8004ac8: af00 add r7, sp, #0
  10316. 8004aca: 6078 str r0, [r7, #4]
  10317. 8004acc: 460b mov r3, r1
  10318. 8004ace: 807b strh r3, [r7, #2]
  10319. if (huart->Instance == USART1) {
  10320. 8004ad0: 687b ldr r3, [r7, #4]
  10321. 8004ad2: 681b ldr r3, [r3, #0]
  10322. 8004ad4: 4a0c ldr r2, [pc, #48] @ (8004b08 <HAL_UARTEx_RxEventCallback+0x44>)
  10323. 8004ad6: 4293 cmp r3, r2
  10324. 8004ad8: d106 bne.n 8004ae8 <HAL_UARTEx_RxEventCallback+0x24>
  10325. HandleUartRxCallback (&uart1TaskData, huart, Size);
  10326. 8004ada: 887b ldrh r3, [r7, #2]
  10327. 8004adc: 461a mov r2, r3
  10328. 8004ade: 6879 ldr r1, [r7, #4]
  10329. 8004ae0: 480a ldr r0, [pc, #40] @ (8004b0c <HAL_UARTEx_RxEventCallback+0x48>)
  10330. 8004ae2: f000 f823 bl 8004b2c <HandleUartRxCallback>
  10331. } else if (huart->Instance == UART8) {
  10332. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10333. }
  10334. }
  10335. 8004ae6: e00a b.n 8004afe <HAL_UARTEx_RxEventCallback+0x3a>
  10336. } else if (huart->Instance == UART8) {
  10337. 8004ae8: 687b ldr r3, [r7, #4]
  10338. 8004aea: 681b ldr r3, [r3, #0]
  10339. 8004aec: 4a08 ldr r2, [pc, #32] @ (8004b10 <HAL_UARTEx_RxEventCallback+0x4c>)
  10340. 8004aee: 4293 cmp r3, r2
  10341. 8004af0: d105 bne.n 8004afe <HAL_UARTEx_RxEventCallback+0x3a>
  10342. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10343. 8004af2: 887b ldrh r3, [r7, #2]
  10344. 8004af4: 461a mov r2, r3
  10345. 8004af6: 6879 ldr r1, [r7, #4]
  10346. 8004af8: 4806 ldr r0, [pc, #24] @ (8004b14 <HAL_UARTEx_RxEventCallback+0x50>)
  10347. 8004afa: f000 f817 bl 8004b2c <HandleUartRxCallback>
  10348. }
  10349. 8004afe: bf00 nop
  10350. 8004b00: 3708 adds r7, #8
  10351. 8004b02: 46bd mov sp, r7
  10352. 8004b04: bd80 pop {r7, pc}
  10353. 8004b06: bf00 nop
  10354. 8004b08: 40011000 .word 0x40011000
  10355. 8004b0c: 24000f6c .word 0x24000f6c
  10356. 8004b10: 40007c00 .word 0x40007c00
  10357. 8004b14: 24000fa4 .word 0x24000fa4
  10358. 08004b18 <HAL_UART_TxCpltCallback>:
  10359. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  10360. 8004b18: b480 push {r7}
  10361. 8004b1a: b083 sub sp, #12
  10362. 8004b1c: af00 add r7, sp, #0
  10363. 8004b1e: 6078 str r0, [r7, #4]
  10364. if (huart->Instance == UART8) {
  10365. }
  10366. }
  10367. 8004b20: bf00 nop
  10368. 8004b22: 370c adds r7, #12
  10369. 8004b24: 46bd mov sp, r7
  10370. 8004b26: f85d 7b04 ldr.w r7, [sp], #4
  10371. 8004b2a: 4770 bx lr
  10372. 08004b2c <HandleUartRxCallback>:
  10373. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  10374. 8004b2c: b580 push {r7, lr}
  10375. 8004b2e: b088 sub sp, #32
  10376. 8004b30: af02 add r7, sp, #8
  10377. 8004b32: 60f8 str r0, [r7, #12]
  10378. 8004b34: 60b9 str r1, [r7, #8]
  10379. 8004b36: 4613 mov r3, r2
  10380. 8004b38: 80fb strh r3, [r7, #6]
  10381. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  10382. 8004b3a: 2300 movs r3, #0
  10383. 8004b3c: 617b str r3, [r7, #20]
  10384. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10385. 8004b3e: 68fb ldr r3, [r7, #12]
  10386. 8004b40: 6a1b ldr r3, [r3, #32]
  10387. 8004b42: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10388. 8004b46: 4618 mov r0, r3
  10389. 8004b48: f00f fca5 bl 8014496 <osMutexAcquire>
  10390. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  10391. 8004b4c: 68fb ldr r3, [r7, #12]
  10392. 8004b4e: 691b ldr r3, [r3, #16]
  10393. 8004b50: 68fa ldr r2, [r7, #12]
  10394. 8004b52: 8ad2 ldrh r2, [r2, #22]
  10395. 8004b54: 1898 adds r0, r3, r2
  10396. 8004b56: 68fb ldr r3, [r7, #12]
  10397. 8004b58: 681b ldr r3, [r3, #0]
  10398. 8004b5a: 88fa ldrh r2, [r7, #6]
  10399. 8004b5c: 4619 mov r1, r3
  10400. 8004b5e: f013 fc4d bl 80183fc <memcpy>
  10401. uartTaskData->frameBytesCount += Size;
  10402. 8004b62: 68fb ldr r3, [r7, #12]
  10403. 8004b64: 8ada ldrh r2, [r3, #22]
  10404. 8004b66: 88fb ldrh r3, [r7, #6]
  10405. 8004b68: 4413 add r3, r2
  10406. 8004b6a: b29a uxth r2, r3
  10407. 8004b6c: 68fb ldr r3, [r7, #12]
  10408. 8004b6e: 82da strh r2, [r3, #22]
  10409. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10410. 8004b70: 68fb ldr r3, [r7, #12]
  10411. 8004b72: 6a1b ldr r3, [r3, #32]
  10412. 8004b74: 4618 mov r0, r3
  10413. 8004b76: f00f fcd9 bl 801452c <osMutexRelease>
  10414. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  10415. 8004b7a: 68fb ldr r3, [r7, #12]
  10416. 8004b7c: 6998 ldr r0, [r3, #24]
  10417. 8004b7e: 88f9 ldrh r1, [r7, #6]
  10418. 8004b80: f107 0314 add.w r3, r7, #20
  10419. 8004b84: 9300 str r3, [sp, #0]
  10420. 8004b86: 2300 movs r3, #0
  10421. 8004b88: 2203 movs r2, #3
  10422. 8004b8a: f012 f9c9 bl 8016f20 <xTaskGenericNotifyFromISR>
  10423. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10424. 8004b8e: 68fb ldr r3, [r7, #12]
  10425. 8004b90: 6b18 ldr r0, [r3, #48] @ 0x30
  10426. 8004b92: 68fb ldr r3, [r7, #12]
  10427. 8004b94: 6819 ldr r1, [r3, #0]
  10428. 8004b96: 68fb ldr r3, [r7, #12]
  10429. 8004b98: 889b ldrh r3, [r3, #4]
  10430. 8004b9a: 461a mov r2, r3
  10431. 8004b9c: f00f f923 bl 8013de6 <HAL_UARTEx_ReceiveToIdle_IT>
  10432. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  10433. 8004ba0: 697b ldr r3, [r7, #20]
  10434. 8004ba2: 2b00 cmp r3, #0
  10435. 8004ba4: d007 beq.n 8004bb6 <HandleUartRxCallback+0x8a>
  10436. 8004ba6: 4b06 ldr r3, [pc, #24] @ (8004bc0 <HandleUartRxCallback+0x94>)
  10437. 8004ba8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  10438. 8004bac: 601a str r2, [r3, #0]
  10439. 8004bae: f3bf 8f4f dsb sy
  10440. 8004bb2: f3bf 8f6f isb sy
  10441. }
  10442. 8004bb6: bf00 nop
  10443. 8004bb8: 3718 adds r7, #24
  10444. 8004bba: 46bd mov sp, r7
  10445. 8004bbc: bd80 pop {r7, pc}
  10446. 8004bbe: bf00 nop
  10447. 8004bc0: e000ed04 .word 0xe000ed04
  10448. 08004bc4 <UartRxTask>:
  10449. void UartRxTask (void* argument) {
  10450. 8004bc4: b580 push {r7, lr}
  10451. 8004bc6: b0d2 sub sp, #328 @ 0x148
  10452. 8004bc8: af02 add r7, sp, #8
  10453. 8004bca: f507 73a0 add.w r3, r7, #320 @ 0x140
  10454. 8004bce: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10455. 8004bd2: 6018 str r0, [r3, #0]
  10456. UartTaskData* uartTaskData = (UartTaskData*)argument;
  10457. 8004bd4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10458. 8004bd8: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10459. 8004bdc: 681b ldr r3, [r3, #0]
  10460. 8004bde: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10461. SerialProtocolFrameData spFrameData = { 0 };
  10462. 8004be2: f507 73a0 add.w r3, r7, #320 @ 0x140
  10463. 8004be6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10464. 8004bea: 4618 mov r0, r3
  10465. 8004bec: f44f 7386 mov.w r3, #268 @ 0x10c
  10466. 8004bf0: 461a mov r2, r3
  10467. 8004bf2: 2100 movs r1, #0
  10468. 8004bf4: f013 fb78 bl 80182e8 <memset>
  10469. uint32_t bytesRec = 0;
  10470. 8004bf8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10471. 8004bfc: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10472. 8004c00: 2200 movs r2, #0
  10473. 8004c02: 601a str r2, [r3, #0]
  10474. uint32_t crc = 0;
  10475. 8004c04: 2300 movs r3, #0
  10476. 8004c06: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  10477. uint16_t frameCommandRaw = 0x0000;
  10478. 8004c0a: 2300 movs r3, #0
  10479. 8004c0c: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10480. uint16_t frameBytesCount = 0;
  10481. 8004c10: 2300 movs r3, #0
  10482. 8004c12: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10483. uint16_t frameCrc = 0;
  10484. 8004c16: 2300 movs r3, #0
  10485. 8004c18: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10486. uint16_t frameTotalLength = 0;
  10487. 8004c1c: 2300 movs r3, #0
  10488. 8004c1e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10489. uint16_t dataToSend = 0;
  10490. 8004c22: 2300 movs r3, #0
  10491. 8004c24: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10492. portBASE_TYPE crcPass = pdFAIL;
  10493. 8004c28: 2300 movs r3, #0
  10494. 8004c2a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10495. portBASE_TYPE proceed = pdFALSE;
  10496. 8004c2e: 2300 movs r3, #0
  10497. 8004c30: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10498. portBASE_TYPE frameTimeout = pdFAIL;
  10499. 8004c34: 2300 movs r3, #0
  10500. 8004c36: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10501. enum SerialReceiverStates receverState = srWaitForHeader;
  10502. 8004c3a: 2300 movs r3, #0
  10503. 8004c3c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10504. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  10505. 8004c40: 2000 movs r0, #0
  10506. 8004c42: f00f fba2 bl 801438a <osMutexNew>
  10507. 8004c46: 4602 mov r2, r0
  10508. 8004c48: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10509. 8004c4c: 621a str r2, [r3, #32]
  10510. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10511. 8004c4e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10512. 8004c52: 6b18 ldr r0, [r3, #48] @ 0x30
  10513. 8004c54: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10514. 8004c58: 6819 ldr r1, [r3, #0]
  10515. 8004c5a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10516. 8004c5e: 889b ldrh r3, [r3, #4]
  10517. 8004c60: 461a mov r2, r3
  10518. 8004c62: f00f f8c0 bl 8013de6 <HAL_UARTEx_ReceiveToIdle_IT>
  10519. while (pdTRUE) {
  10520. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10521. 8004c66: f107 020c add.w r2, r7, #12
  10522. 8004c6a: f44f 63fa mov.w r3, #2000 @ 0x7d0
  10523. 8004c6e: 2100 movs r1, #0
  10524. 8004c70: 2000 movs r0, #0
  10525. 8004c72: f012 f833 bl 8016cdc <xTaskNotifyWait>
  10526. 8004c76: 4603 mov r3, r0
  10527. 8004c78: 2b00 cmp r3, #0
  10528. 8004c7a: bf0c ite eq
  10529. 8004c7c: 2301 moveq r3, #1
  10530. 8004c7e: 2300 movne r3, #0
  10531. 8004c80: b2db uxtb r3, r3
  10532. 8004c82: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10533. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10534. 8004c86: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10535. 8004c8a: 6a1b ldr r3, [r3, #32]
  10536. 8004c8c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10537. 8004c90: 4618 mov r0, r3
  10538. 8004c92: f00f fc00 bl 8014496 <osMutexAcquire>
  10539. frameBytesCount = uartTaskData->frameBytesCount;
  10540. 8004c96: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10541. 8004c9a: 8adb ldrh r3, [r3, #22]
  10542. 8004c9c: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10543. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10544. 8004ca0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10545. 8004ca4: 6a1b ldr r3, [r3, #32]
  10546. 8004ca6: 4618 mov r0, r3
  10547. 8004ca8: f00f fc40 bl 801452c <osMutexRelease>
  10548. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  10549. 8004cac: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10550. 8004cb0: 2b01 cmp r3, #1
  10551. 8004cb2: d10a bne.n 8004cca <UartRxTask+0x106>
  10552. 8004cb4: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10553. 8004cb8: 2b00 cmp r3, #0
  10554. 8004cba: d006 beq.n 8004cca <UartRxTask+0x106>
  10555. receverState = srFail;
  10556. 8004cbc: 2304 movs r3, #4
  10557. 8004cbe: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10558. proceed = pdTRUE;
  10559. 8004cc2: 2301 movs r3, #1
  10560. 8004cc4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10561. 8004cc8: e01b b.n 8004d02 <UartRxTask+0x13e>
  10562. } else {
  10563. if (frameTimeout == pdFALSE) {
  10564. 8004cca: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10565. 8004cce: 2b00 cmp r3, #0
  10566. 8004cd0: d103 bne.n 8004cda <UartRxTask+0x116>
  10567. proceed = pdTRUE;
  10568. 8004cd2: 2301 movs r3, #1
  10569. 8004cd4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10570. 8004cd8: e206 b.n 80050e8 <UartRxTask+0x524>
  10571. #ifdef SERIAL_PROTOCOL_DBG
  10572. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  10573. #endif
  10574. } else {
  10575. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  10576. 8004cda: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10577. 8004cde: 6b1b ldr r3, [r3, #48] @ 0x30
  10578. 8004ce0: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  10579. 8004ce4: 2b20 cmp r3, #32
  10580. 8004ce6: f040 81ff bne.w 80050e8 <UartRxTask+0x524>
  10581. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10582. 8004cea: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10583. 8004cee: 6b18 ldr r0, [r3, #48] @ 0x30
  10584. 8004cf0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10585. 8004cf4: 6819 ldr r1, [r3, #0]
  10586. 8004cf6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10587. 8004cfa: 889b ldrh r3, [r3, #4]
  10588. 8004cfc: 461a mov r2, r3
  10589. 8004cfe: f00f f872 bl 8013de6 <HAL_UARTEx_ReceiveToIdle_IT>
  10590. }
  10591. }
  10592. }
  10593. while (proceed) {
  10594. 8004d02: e1f1 b.n 80050e8 <UartRxTask+0x524>
  10595. switch (receverState) {
  10596. 8004d04: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  10597. 8004d08: 2b04 cmp r3, #4
  10598. 8004d0a: f200 81c8 bhi.w 800509e <UartRxTask+0x4da>
  10599. 8004d0e: a201 add r2, pc, #4 @ (adr r2, 8004d14 <UartRxTask+0x150>)
  10600. 8004d10: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10601. 8004d14: 08004d29 .word 0x08004d29
  10602. 8004d18: 08004e8b .word 0x08004e8b
  10603. 8004d1c: 08004e6f .word 0x08004e6f
  10604. 8004d20: 08004f1b .word 0x08004f1b
  10605. 8004d24: 08004fc7 .word 0x08004fc7
  10606. case srWaitForHeader:
  10607. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10608. 8004d28: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10609. 8004d2c: 6a1b ldr r3, [r3, #32]
  10610. 8004d2e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10611. 8004d32: 4618 mov r0, r3
  10612. 8004d34: f00f fbaf bl 8014496 <osMutexAcquire>
  10613. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  10614. 8004d38: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10615. 8004d3c: 691b ldr r3, [r3, #16]
  10616. 8004d3e: 781b ldrb r3, [r3, #0]
  10617. 8004d40: 2baa cmp r3, #170 @ 0xaa
  10618. 8004d42: f040 8082 bne.w 8004e4a <UartRxTask+0x286>
  10619. if (frameBytesCount > FRAME_ID_LENGTH) {
  10620. 8004d46: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10621. 8004d4a: 2b02 cmp r3, #2
  10622. 8004d4c: d914 bls.n 8004d78 <UartRxTask+0x1b4>
  10623. spFrameData.frameHeader.frameId =
  10624. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  10625. 8004d4e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10626. 8004d52: 691b ldr r3, [r3, #16]
  10627. 8004d54: 3302 adds r3, #2
  10628. 8004d56: 781b ldrb r3, [r3, #0]
  10629. 8004d58: 021b lsls r3, r3, #8
  10630. 8004d5a: b21a sxth r2, r3
  10631. 8004d5c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10632. 8004d60: 691b ldr r3, [r3, #16]
  10633. 8004d62: 3301 adds r3, #1
  10634. 8004d64: 781b ldrb r3, [r3, #0]
  10635. 8004d66: b21b sxth r3, r3
  10636. 8004d68: 4313 orrs r3, r2
  10637. 8004d6a: b21b sxth r3, r3
  10638. 8004d6c: b29a uxth r2, r3
  10639. spFrameData.frameHeader.frameId =
  10640. 8004d6e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10641. 8004d72: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10642. 8004d76: 801a strh r2, [r3, #0]
  10643. }
  10644. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  10645. 8004d78: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10646. 8004d7c: 2b04 cmp r3, #4
  10647. 8004d7e: d923 bls.n 8004dc8 <UartRxTask+0x204>
  10648. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  10649. 8004d80: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10650. 8004d84: 691b ldr r3, [r3, #16]
  10651. 8004d86: 3304 adds r3, #4
  10652. 8004d88: 781b ldrb r3, [r3, #0]
  10653. 8004d8a: 021b lsls r3, r3, #8
  10654. 8004d8c: b21a sxth r2, r3
  10655. 8004d8e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10656. 8004d92: 691b ldr r3, [r3, #16]
  10657. 8004d94: 3303 adds r3, #3
  10658. 8004d96: 781b ldrb r3, [r3, #0]
  10659. 8004d98: b21b sxth r3, r3
  10660. 8004d9a: 4313 orrs r3, r2
  10661. 8004d9c: b21b sxth r3, r3
  10662. 8004d9e: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10663. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  10664. 8004da2: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  10665. 8004da6: b2da uxtb r2, r3
  10666. 8004da8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10667. 8004dac: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10668. 8004db0: 709a strb r2, [r3, #2]
  10669. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  10670. 8004db2: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  10671. 8004db6: 13db asrs r3, r3, #15
  10672. 8004db8: b21b sxth r3, r3
  10673. 8004dba: f003 0201 and.w r2, r3, #1
  10674. 8004dbe: f507 73a0 add.w r3, r7, #320 @ 0x140
  10675. 8004dc2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10676. 8004dc6: 609a str r2, [r3, #8]
  10677. }
  10678. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  10679. 8004dc8: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10680. 8004dcc: 2b05 cmp r3, #5
  10681. 8004dce: d913 bls.n 8004df8 <UartRxTask+0x234>
  10682. 8004dd0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10683. 8004dd4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10684. 8004dd8: 789b ldrb r3, [r3, #2]
  10685. 8004dda: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10686. 8004dde: 2b00 cmp r3, #0
  10687. 8004de0: d00a beq.n 8004df8 <UartRxTask+0x234>
  10688. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10689. 8004de2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10690. 8004de6: 691b ldr r3, [r3, #16]
  10691. 8004de8: 3305 adds r3, #5
  10692. 8004dea: 781b ldrb r3, [r3, #0]
  10693. 8004dec: b25a sxtb r2, r3
  10694. 8004dee: f507 73a0 add.w r3, r7, #320 @ 0x140
  10695. 8004df2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10696. 8004df6: 70da strb r2, [r3, #3]
  10697. }
  10698. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10699. 8004df8: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10700. 8004dfc: 2b07 cmp r3, #7
  10701. 8004dfe: d920 bls.n 8004e42 <UartRxTask+0x27e>
  10702. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10703. 8004e00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10704. 8004e04: 691b ldr r3, [r3, #16]
  10705. 8004e06: 3306 adds r3, #6
  10706. 8004e08: 781b ldrb r3, [r3, #0]
  10707. 8004e0a: 021b lsls r3, r3, #8
  10708. 8004e0c: b21a sxth r2, r3
  10709. 8004e0e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10710. 8004e12: 691b ldr r3, [r3, #16]
  10711. 8004e14: 3305 adds r3, #5
  10712. 8004e16: 781b ldrb r3, [r3, #0]
  10713. 8004e18: b21b sxth r3, r3
  10714. 8004e1a: 4313 orrs r3, r2
  10715. 8004e1c: b21b sxth r3, r3
  10716. 8004e1e: b29a uxth r2, r3
  10717. 8004e20: f507 73a0 add.w r3, r7, #320 @ 0x140
  10718. 8004e24: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10719. 8004e28: 809a strh r2, [r3, #4]
  10720. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10721. 8004e2a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10722. 8004e2e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10723. 8004e32: 889b ldrh r3, [r3, #4]
  10724. 8004e34: 330a adds r3, #10
  10725. 8004e36: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10726. receverState = srRecieveData;
  10727. 8004e3a: 2302 movs r3, #2
  10728. 8004e3c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10729. 8004e40: e00e b.n 8004e60 <UartRxTask+0x29c>
  10730. } else {
  10731. proceed = pdFALSE;
  10732. 8004e42: 2300 movs r3, #0
  10733. 8004e44: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10734. 8004e48: e00a b.n 8004e60 <UartRxTask+0x29c>
  10735. }
  10736. } else {
  10737. if (frameBytesCount > 0) {
  10738. 8004e4a: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10739. 8004e4e: 2b00 cmp r3, #0
  10740. 8004e50: d003 beq.n 8004e5a <UartRxTask+0x296>
  10741. receverState = srFail;
  10742. 8004e52: 2304 movs r3, #4
  10743. 8004e54: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10744. 8004e58: e002 b.n 8004e60 <UartRxTask+0x29c>
  10745. } else {
  10746. proceed = pdFALSE;
  10747. 8004e5a: 2300 movs r3, #0
  10748. 8004e5c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10749. }
  10750. }
  10751. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10752. 8004e60: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10753. 8004e64: 6a1b ldr r3, [r3, #32]
  10754. 8004e66: 4618 mov r0, r3
  10755. 8004e68: f00f fb60 bl 801452c <osMutexRelease>
  10756. break;
  10757. 8004e6c: e13c b.n 80050e8 <UartRxTask+0x524>
  10758. case srRecieveData:
  10759. if (frameBytesCount >= frameTotalLength) {
  10760. 8004e6e: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10761. 8004e72: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10762. 8004e76: 429a cmp r2, r3
  10763. 8004e78: d303 bcc.n 8004e82 <UartRxTask+0x2be>
  10764. receverState = srCheckCrc;
  10765. 8004e7a: 2301 movs r3, #1
  10766. 8004e7c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10767. } else {
  10768. proceed = pdFALSE;
  10769. }
  10770. break;
  10771. 8004e80: e132 b.n 80050e8 <UartRxTask+0x524>
  10772. proceed = pdFALSE;
  10773. 8004e82: 2300 movs r3, #0
  10774. 8004e84: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10775. break;
  10776. 8004e88: e12e b.n 80050e8 <UartRxTask+0x524>
  10777. case srCheckCrc:
  10778. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10779. 8004e8a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10780. 8004e8e: 6a1b ldr r3, [r3, #32]
  10781. 8004e90: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10782. 8004e94: 4618 mov r0, r3
  10783. 8004e96: f00f fafe bl 8014496 <osMutexAcquire>
  10784. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10785. 8004e9a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10786. 8004e9e: 691a ldr r2, [r3, #16]
  10787. 8004ea0: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10788. 8004ea4: 3b01 subs r3, #1
  10789. 8004ea6: 4413 add r3, r2
  10790. 8004ea8: 781b ldrb r3, [r3, #0]
  10791. 8004eaa: 021b lsls r3, r3, #8
  10792. 8004eac: b21a sxth r2, r3
  10793. 8004eae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10794. 8004eb2: 6919 ldr r1, [r3, #16]
  10795. 8004eb4: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10796. 8004eb8: 3b02 subs r3, #2
  10797. 8004eba: 440b add r3, r1
  10798. 8004ebc: 781b ldrb r3, [r3, #0]
  10799. 8004ebe: b21b sxth r3, r3
  10800. 8004ec0: 4313 orrs r3, r2
  10801. 8004ec2: b21b sxth r3, r3
  10802. 8004ec4: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10803. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10804. 8004ec8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10805. 8004ecc: 6919 ldr r1, [r3, #16]
  10806. 8004ece: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10807. 8004ed2: 3b02 subs r3, #2
  10808. 8004ed4: 461a mov r2, r3
  10809. 8004ed6: 4887 ldr r0, [pc, #540] @ (80050f4 <UartRxTask+0x530>)
  10810. 8004ed8: f002 ff3a bl 8007d50 <HAL_CRC_Calculate>
  10811. 8004edc: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10812. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10813. 8004ee0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10814. 8004ee4: 6a1b ldr r3, [r3, #32]
  10815. 8004ee6: 4618 mov r0, r3
  10816. 8004ee8: f00f fb20 bl 801452c <osMutexRelease>
  10817. crcPass = frameCrc == crc;
  10818. 8004eec: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10819. 8004ef0: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10820. 8004ef4: 429a cmp r2, r3
  10821. 8004ef6: bf0c ite eq
  10822. 8004ef8: 2301 moveq r3, #1
  10823. 8004efa: 2300 movne r3, #0
  10824. 8004efc: b2db uxtb r3, r3
  10825. 8004efe: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10826. if (crcPass) {
  10827. 8004f02: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10828. 8004f06: 2b00 cmp r3, #0
  10829. 8004f08: d003 beq.n 8004f12 <UartRxTask+0x34e>
  10830. #ifdef SERIAL_PROTOCOL_DBG
  10831. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10832. #endif
  10833. receverState = srExecuteCmd;
  10834. 8004f0a: 2303 movs r3, #3
  10835. 8004f0c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10836. } else {
  10837. receverState = srFail;
  10838. }
  10839. break;
  10840. 8004f10: e0ea b.n 80050e8 <UartRxTask+0x524>
  10841. receverState = srFail;
  10842. 8004f12: 2304 movs r3, #4
  10843. 8004f14: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10844. break;
  10845. 8004f18: e0e6 b.n 80050e8 <UartRxTask+0x524>
  10846. case srExecuteCmd:
  10847. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10848. 8004f1a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10849. 8004f1e: 6a9b ldr r3, [r3, #40] @ 0x28
  10850. 8004f20: 2b00 cmp r3, #0
  10851. 8004f22: d104 bne.n 8004f2e <UartRxTask+0x36a>
  10852. 8004f24: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10853. 8004f28: 6a5b ldr r3, [r3, #36] @ 0x24
  10854. 8004f2a: 2b00 cmp r3, #0
  10855. 8004f2c: d01e beq.n 8004f6c <UartRxTask+0x3a8>
  10856. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10857. 8004f2e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10858. 8004f32: 6a1b ldr r3, [r3, #32]
  10859. 8004f34: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10860. 8004f38: 4618 mov r0, r3
  10861. 8004f3a: f00f faac bl 8014496 <osMutexAcquire>
  10862. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10863. 8004f3e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10864. 8004f42: 691b ldr r3, [r3, #16]
  10865. 8004f44: f103 0108 add.w r1, r3, #8
  10866. 8004f48: f507 73a0 add.w r3, r7, #320 @ 0x140
  10867. 8004f4c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10868. 8004f50: 889b ldrh r3, [r3, #4]
  10869. 8004f52: 461a mov r2, r3
  10870. 8004f54: f107 0310 add.w r3, r7, #16
  10871. 8004f58: 330c adds r3, #12
  10872. 8004f5a: 4618 mov r0, r3
  10873. 8004f5c: f013 fa4e bl 80183fc <memcpy>
  10874. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10875. 8004f60: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10876. 8004f64: 6a1b ldr r3, [r3, #32]
  10877. 8004f66: 4618 mov r0, r3
  10878. 8004f68: f00f fae0 bl 801452c <osMutexRelease>
  10879. }
  10880. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10881. 8004f6c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10882. 8004f70: 6a5b ldr r3, [r3, #36] @ 0x24
  10883. 8004f72: 2b00 cmp r3, #0
  10884. 8004f74: d015 beq.n 8004fa2 <UartRxTask+0x3de>
  10885. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10886. 8004f76: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10887. 8004f7a: 6a58 ldr r0, [r3, #36] @ 0x24
  10888. 8004f7c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10889. 8004f80: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10890. 8004f84: 889b ldrh r3, [r3, #4]
  10891. 8004f86: f103 020c add.w r2, r3, #12
  10892. 8004f8a: f107 0110 add.w r1, r7, #16
  10893. 8004f8e: 23c8 movs r3, #200 @ 0xc8
  10894. 8004f90: f010 fcee bl 8015970 <xStreamBufferSend>
  10895. 8004f94: 4603 mov r3, r0
  10896. 8004f96: 2b00 cmp r3, #0
  10897. 8004f98: d103 bne.n 8004fa2 <UartRxTask+0x3de>
  10898. receverState = srFail;
  10899. 8004f9a: 2304 movs r3, #4
  10900. 8004f9c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10901. break;
  10902. 8004fa0: e0a2 b.n 80050e8 <UartRxTask+0x524>
  10903. }
  10904. }
  10905. if (uartTaskData->processDataCb != NULL) {
  10906. 8004fa2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10907. 8004fa6: 6a9b ldr r3, [r3, #40] @ 0x28
  10908. 8004fa8: 2b00 cmp r3, #0
  10909. 8004faa: d008 beq.n 8004fbe <UartRxTask+0x3fa>
  10910. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10911. 8004fac: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10912. 8004fb0: 6a9b ldr r3, [r3, #40] @ 0x28
  10913. 8004fb2: f107 0210 add.w r2, r7, #16
  10914. 8004fb6: 4611 mov r1, r2
  10915. 8004fb8: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10916. 8004fbc: 4798 blx r3
  10917. }
  10918. receverState = srFinish;
  10919. 8004fbe: 2305 movs r3, #5
  10920. 8004fc0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10921. break;
  10922. 8004fc4: e090 b.n 80050e8 <UartRxTask+0x524>
  10923. case srFail:
  10924. dataToSend = 0;
  10925. 8004fc6: 2300 movs r3, #0
  10926. 8004fc8: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10927. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10928. 8004fcc: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10929. 8004fd0: 2b01 cmp r3, #1
  10930. 8004fd2: d11c bne.n 800500e <UartRxTask+0x44a>
  10931. 8004fd4: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10932. 8004fd8: 2b02 cmp r3, #2
  10933. 8004fda: d918 bls.n 800500e <UartRxTask+0x44a>
  10934. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10935. 8004fdc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10936. 8004fe0: 6898 ldr r0, [r3, #8]
  10937. 8004fe2: f507 73a0 add.w r3, r7, #320 @ 0x140
  10938. 8004fe6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10939. 8004fea: 8819 ldrh r1, [r3, #0]
  10940. 8004fec: f507 73a0 add.w r3, r7, #320 @ 0x140
  10941. 8004ff0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10942. 8004ff4: 789a ldrb r2, [r3, #2]
  10943. 8004ff6: 2300 movs r3, #0
  10944. 8004ff8: 9301 str r3, [sp, #4]
  10945. 8004ffa: 2300 movs r3, #0
  10946. 8004ffc: 9300 str r3, [sp, #0]
  10947. 8004ffe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10948. 8005002: f7fe fd57 bl 8003ab4 <PrepareRespFrame>
  10949. 8005006: 4603 mov r3, r0
  10950. 8005008: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10951. 800500c: e034 b.n 8005078 <UartRxTask+0x4b4>
  10952. #ifdef SERIAL_PROTOCOL_DBG
  10953. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10954. #endif
  10955. } else if (!crcPass) {
  10956. 800500e: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10957. 8005012: 2b00 cmp r3, #0
  10958. 8005014: d118 bne.n 8005048 <UartRxTask+0x484>
  10959. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10960. 8005016: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10961. 800501a: 6898 ldr r0, [r3, #8]
  10962. 800501c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10963. 8005020: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10964. 8005024: 8819 ldrh r1, [r3, #0]
  10965. 8005026: f507 73a0 add.w r3, r7, #320 @ 0x140
  10966. 800502a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10967. 800502e: 789a ldrb r2, [r3, #2]
  10968. 8005030: 2300 movs r3, #0
  10969. 8005032: 9301 str r3, [sp, #4]
  10970. 8005034: 2300 movs r3, #0
  10971. 8005036: 9300 str r3, [sp, #0]
  10972. 8005038: f06f 0301 mvn.w r3, #1
  10973. 800503c: f7fe fd3a bl 8003ab4 <PrepareRespFrame>
  10974. 8005040: 4603 mov r3, r0
  10975. 8005042: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10976. 8005046: e017 b.n 8005078 <UartRxTask+0x4b4>
  10977. #ifdef SERIAL_PROTOCOL_DBG
  10978. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10979. #endif
  10980. } else {
  10981. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10982. 8005048: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10983. 800504c: 6898 ldr r0, [r3, #8]
  10984. 800504e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10985. 8005052: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10986. 8005056: 8819 ldrh r1, [r3, #0]
  10987. 8005058: f507 73a0 add.w r3, r7, #320 @ 0x140
  10988. 800505c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10989. 8005060: 789a ldrb r2, [r3, #2]
  10990. 8005062: 2300 movs r3, #0
  10991. 8005064: 9301 str r3, [sp, #4]
  10992. 8005066: 2300 movs r3, #0
  10993. 8005068: 9300 str r3, [sp, #0]
  10994. 800506a: f06f 0303 mvn.w r3, #3
  10995. 800506e: f7fe fd21 bl 8003ab4 <PrepareRespFrame>
  10996. 8005072: 4603 mov r3, r0
  10997. 8005074: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10998. }
  10999. if (dataToSend > 0) {
  11000. 8005078: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  11001. 800507c: 2b00 cmp r3, #0
  11002. 800507e: d00a beq.n 8005096 <UartRxTask+0x4d2>
  11003. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11004. 8005080: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11005. 8005084: 6b18 ldr r0, [r3, #48] @ 0x30
  11006. 8005086: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11007. 800508a: 689b ldr r3, [r3, #8]
  11008. 800508c: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  11009. 8005090: 4619 mov r1, r3
  11010. 8005092: f00c f9d3 bl 801143c <HAL_UART_Transmit_IT>
  11011. }
  11012. #ifdef SERIAL_PROTOCOL_DBG
  11013. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  11014. #endif
  11015. receverState = srFinish;
  11016. 8005096: 2305 movs r3, #5
  11017. 8005098: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11018. break;
  11019. 800509c: e024 b.n 80050e8 <UartRxTask+0x524>
  11020. case srFinish:
  11021. default:
  11022. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  11023. 800509e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11024. 80050a2: 6a1b ldr r3, [r3, #32]
  11025. 80050a4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11026. 80050a8: 4618 mov r0, r3
  11027. 80050aa: f00f f9f4 bl 8014496 <osMutexAcquire>
  11028. uartTaskData->frameBytesCount = 0;
  11029. 80050ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11030. 80050b2: 2200 movs r2, #0
  11031. 80050b4: 82da strh r2, [r3, #22]
  11032. osMutexRelease (uartTaskData->rxDataBufferMutex);
  11033. 80050b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11034. 80050ba: 6a1b ldr r3, [r3, #32]
  11035. 80050bc: 4618 mov r0, r3
  11036. 80050be: f00f fa35 bl 801452c <osMutexRelease>
  11037. spFrameData.frameHeader.frameCommand = spUnknown;
  11038. 80050c2: f507 73a0 add.w r3, r7, #320 @ 0x140
  11039. 80050c6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11040. 80050ca: 2212 movs r2, #18
  11041. 80050cc: 709a strb r2, [r3, #2]
  11042. frameTotalLength = 0;
  11043. 80050ce: 2300 movs r3, #0
  11044. 80050d0: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  11045. outputDataBufferPos = 0;
  11046. 80050d4: 4b08 ldr r3, [pc, #32] @ (80050f8 <UartRxTask+0x534>)
  11047. 80050d6: 2200 movs r2, #0
  11048. 80050d8: 801a strh r2, [r3, #0]
  11049. receverState = srWaitForHeader;
  11050. 80050da: 2300 movs r3, #0
  11051. 80050dc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11052. proceed = pdFALSE;
  11053. 80050e0: 2300 movs r3, #0
  11054. 80050e2: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  11055. break;
  11056. 80050e6: bf00 nop
  11057. while (proceed) {
  11058. 80050e8: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  11059. 80050ec: 2b00 cmp r3, #0
  11060. 80050ee: f47f ae09 bne.w 8004d04 <UartRxTask+0x140>
  11061. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  11062. 80050f2: e5b8 b.n 8004c66 <UartRxTask+0xa2>
  11063. 80050f4: 240003e0 .word 0x240003e0
  11064. 80050f8: 2400105c .word 0x2400105c
  11065. 080050fc <Uart8ReceivedDataProcessCallback>:
  11066. }
  11067. }
  11068. }
  11069. }
  11070. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11071. 80050fc: b580 push {r7, lr}
  11072. 80050fe: b082 sub sp, #8
  11073. 8005100: af00 add r7, sp, #0
  11074. 8005102: 6078 str r0, [r7, #4]
  11075. 8005104: 6039 str r1, [r7, #0]
  11076. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  11077. 8005106: 6839 ldr r1, [r7, #0]
  11078. 8005108: 6878 ldr r0, [r7, #4]
  11079. 800510a: f000 f805 bl 8005118 <Uart1ReceivedDataProcessCallback>
  11080. }
  11081. 800510e: bf00 nop
  11082. 8005110: 3708 adds r7, #8
  11083. 8005112: 46bd mov sp, r7
  11084. 8005114: bd80 pop {r7, pc}
  11085. ...
  11086. 08005118 <Uart1ReceivedDataProcessCallback>:
  11087. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11088. 8005118: b590 push {r4, r7, lr}
  11089. 800511a: b0ad sub sp, #180 @ 0xb4
  11090. 800511c: af06 add r7, sp, #24
  11091. 800511e: 6078 str r0, [r7, #4]
  11092. 8005120: 6039 str r1, [r7, #0]
  11093. UartTaskData* uartTaskData = (UartTaskData*)arg;
  11094. 8005122: 687b ldr r3, [r7, #4]
  11095. 8005124: 677b str r3, [r7, #116] @ 0x74
  11096. uint16_t dataToSend = 0;
  11097. 8005126: 2300 movs r3, #0
  11098. 8005128: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  11099. outputDataBufferPos = 0;
  11100. 800512c: 4b64 ldr r3, [pc, #400] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11101. 800512e: 2200 movs r2, #0
  11102. 8005130: 801a strh r2, [r3, #0]
  11103. uint16_t inputDataBufferPos = 0;
  11104. 8005132: 2300 movs r3, #0
  11105. 8005134: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  11106. SerialProtocolRespStatus respStatus = spUnknownCommand;
  11107. 8005138: 23fd movs r3, #253 @ 0xfd
  11108. 800513a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11109. switch (spFrameData->frameHeader.frameCommand) {
  11110. 800513e: 683b ldr r3, [r7, #0]
  11111. 8005140: 789b ldrb r3, [r3, #2]
  11112. 8005142: 2b11 cmp r3, #17
  11113. 8005144: f200 85a2 bhi.w 8005c8c <Uart1ReceivedDataProcessCallback+0xb74>
  11114. 8005148: a201 add r2, pc, #4 @ (adr r2, 8005150 <Uart1ReceivedDataProcessCallback+0x38>)
  11115. 800514a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  11116. 800514e: bf00 nop
  11117. 8005150: 08005199 .word 0x08005199
  11118. 8005154: 080052d1 .word 0x080052d1
  11119. 8005158: 0800544b .word 0x0800544b
  11120. 800515c: 08005581 .word 0x08005581
  11121. 8005160: 08005623 .word 0x08005623
  11122. 8005164: 08005741 .word 0x08005741
  11123. 8005168: 08005797 .word 0x08005797
  11124. 800516c: 080056c5 .word 0x080056c5
  11125. 8005170: 080057ed .word 0x080057ed
  11126. 8005174: 0800588d .word 0x0800588d
  11127. 8005178: 080058d9 .word 0x080058d9
  11128. 800517c: 08005925 .word 0x08005925
  11129. 8005180: 08005987 .word 0x08005987
  11130. 8005184: 080059eb .word 0x080059eb
  11131. 8005188: 08005a4d .word 0x08005a4d
  11132. 800518c: 08005ab1 .word 0x08005ab1
  11133. 8005190: 08005ab9 .word 0x08005ab9
  11134. 8005194: 08005bbd .word 0x08005bbd
  11135. case spGetElectricalMeasurments:
  11136. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11137. 8005198: 4b4a ldr r3, [pc, #296] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x1ac>)
  11138. 800519a: 681b ldr r3, [r3, #0]
  11139. 800519c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11140. 80051a0: 4618 mov r0, r3
  11141. 80051a2: f00f f978 bl 8014496 <osMutexAcquire>
  11142. 80051a6: 4603 mov r3, r0
  11143. 80051a8: 2b00 cmp r3, #0
  11144. 80051aa: f040 8083 bne.w 80052b4 <Uart1ReceivedDataProcessCallback+0x19c>
  11145. for (int i = 0; i < 3; i++) {
  11146. 80051ae: 2300 movs r3, #0
  11147. 80051b0: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11148. 80051b4: e00e b.n 80051d4 <Uart1ReceivedDataProcessCallback+0xbc>
  11149. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  11150. 80051b6: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11151. 80051ba: 009b lsls r3, r3, #2
  11152. 80051bc: 4a42 ldr r2, [pc, #264] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11153. 80051be: 441a add r2, r3
  11154. 80051c0: 2304 movs r3, #4
  11155. 80051c2: 493f ldr r1, [pc, #252] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11156. 80051c4: 4841 ldr r0, [pc, #260] @ (80052cc <Uart1ReceivedDataProcessCallback+0x1b4>)
  11157. 80051c6: f7fe fbdb bl 8003980 <WriteDataToBuffer>
  11158. for (int i = 0; i < 3; i++) {
  11159. 80051ca: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11160. 80051ce: 3301 adds r3, #1
  11161. 80051d0: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11162. 80051d4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11163. 80051d8: 2b02 cmp r3, #2
  11164. 80051da: ddec ble.n 80051b6 <Uart1ReceivedDataProcessCallback+0x9e>
  11165. }
  11166. for (int i = 0; i < 3; i++) {
  11167. 80051dc: 2300 movs r3, #0
  11168. 80051de: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11169. 80051e2: e010 b.n 8005206 <Uart1ReceivedDataProcessCallback+0xee>
  11170. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  11171. 80051e4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11172. 80051e8: 3302 adds r3, #2
  11173. 80051ea: 009b lsls r3, r3, #2
  11174. 80051ec: 4a36 ldr r2, [pc, #216] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11175. 80051ee: 4413 add r3, r2
  11176. 80051f0: 1d1a adds r2, r3, #4
  11177. 80051f2: 2304 movs r3, #4
  11178. 80051f4: 4932 ldr r1, [pc, #200] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11179. 80051f6: 4835 ldr r0, [pc, #212] @ (80052cc <Uart1ReceivedDataProcessCallback+0x1b4>)
  11180. 80051f8: f7fe fbc2 bl 8003980 <WriteDataToBuffer>
  11181. for (int i = 0; i < 3; i++) {
  11182. 80051fc: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11183. 8005200: 3301 adds r3, #1
  11184. 8005202: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11185. 8005206: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11186. 800520a: 2b02 cmp r3, #2
  11187. 800520c: ddea ble.n 80051e4 <Uart1ReceivedDataProcessCallback+0xcc>
  11188. }
  11189. for (int i = 0; i < 3; i++) {
  11190. 800520e: 2300 movs r3, #0
  11191. 8005210: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11192. 8005214: e00f b.n 8005236 <Uart1ReceivedDataProcessCallback+0x11e>
  11193. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  11194. 8005216: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11195. 800521a: 3306 adds r3, #6
  11196. 800521c: 009b lsls r3, r3, #2
  11197. 800521e: 4a2a ldr r2, [pc, #168] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11198. 8005220: 441a add r2, r3
  11199. 8005222: 2304 movs r3, #4
  11200. 8005224: 4926 ldr r1, [pc, #152] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11201. 8005226: 4829 ldr r0, [pc, #164] @ (80052cc <Uart1ReceivedDataProcessCallback+0x1b4>)
  11202. 8005228: f7fe fbaa bl 8003980 <WriteDataToBuffer>
  11203. for (int i = 0; i < 3; i++) {
  11204. 800522c: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11205. 8005230: 3301 adds r3, #1
  11206. 8005232: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11207. 8005236: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11208. 800523a: 2b02 cmp r3, #2
  11209. 800523c: ddeb ble.n 8005216 <Uart1ReceivedDataProcessCallback+0xfe>
  11210. }
  11211. for (int i = 0; i < 3; i++) {
  11212. 800523e: 2300 movs r3, #0
  11213. 8005240: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11214. 8005244: e010 b.n 8005268 <Uart1ReceivedDataProcessCallback+0x150>
  11215. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  11216. 8005246: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11217. 800524a: 3308 adds r3, #8
  11218. 800524c: 009b lsls r3, r3, #2
  11219. 800524e: 4a1e ldr r2, [pc, #120] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11220. 8005250: 4413 add r3, r2
  11221. 8005252: 1d1a adds r2, r3, #4
  11222. 8005254: 2304 movs r3, #4
  11223. 8005256: 491a ldr r1, [pc, #104] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11224. 8005258: 481c ldr r0, [pc, #112] @ (80052cc <Uart1ReceivedDataProcessCallback+0x1b4>)
  11225. 800525a: f7fe fb91 bl 8003980 <WriteDataToBuffer>
  11226. for (int i = 0; i < 3; i++) {
  11227. 800525e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11228. 8005262: 3301 adds r3, #1
  11229. 8005264: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11230. 8005268: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11231. 800526c: 2b02 cmp r3, #2
  11232. 800526e: ddea ble.n 8005246 <Uart1ReceivedDataProcessCallback+0x12e>
  11233. }
  11234. for (int i = 0; i < 3; i++) {
  11235. 8005270: 2300 movs r3, #0
  11236. 8005272: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11237. 8005276: e00f b.n 8005298 <Uart1ReceivedDataProcessCallback+0x180>
  11238. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  11239. 8005278: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11240. 800527c: 330c adds r3, #12
  11241. 800527e: 009b lsls r3, r3, #2
  11242. 8005280: 4a11 ldr r2, [pc, #68] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11243. 8005282: 441a add r2, r3
  11244. 8005284: 2304 movs r3, #4
  11245. 8005286: 490e ldr r1, [pc, #56] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11246. 8005288: 4810 ldr r0, [pc, #64] @ (80052cc <Uart1ReceivedDataProcessCallback+0x1b4>)
  11247. 800528a: f7fe fb79 bl 8003980 <WriteDataToBuffer>
  11248. for (int i = 0; i < 3; i++) {
  11249. 800528e: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11250. 8005292: 3301 adds r3, #1
  11251. 8005294: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11252. 8005298: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11253. 800529c: 2b02 cmp r3, #2
  11254. 800529e: ddeb ble.n 8005278 <Uart1ReceivedDataProcessCallback+0x160>
  11255. }
  11256. osMutexRelease (resMeasurementsMutex);
  11257. 80052a0: 4b08 ldr r3, [pc, #32] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x1ac>)
  11258. 80052a2: 681b ldr r3, [r3, #0]
  11259. 80052a4: 4618 mov r0, r3
  11260. 80052a6: f00f f941 bl 801452c <osMutexRelease>
  11261. respStatus = spOK;
  11262. 80052aa: 2300 movs r3, #0
  11263. 80052ac: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11264. } else {
  11265. respStatus = spInternalError;
  11266. }
  11267. break;
  11268. 80052b0: f000 bcf3 b.w 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11269. respStatus = spInternalError;
  11270. 80052b4: 23fc movs r3, #252 @ 0xfc
  11271. 80052b6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11272. break;
  11273. 80052ba: f000 bcee b.w 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11274. 80052be: bf00 nop
  11275. 80052c0: 2400105c .word 0x2400105c
  11276. 80052c4: 24000818 .word 0x24000818
  11277. 80052c8: 24000824 .word 0x24000824
  11278. 80052cc: 24000fdc .word 0x24000fdc
  11279. case spGetSensorMeasurments:
  11280. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11281. 80052d0: 4b8d ldr r3, [pc, #564] @ (8005508 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11282. 80052d2: 681b ldr r3, [r3, #0]
  11283. 80052d4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11284. 80052d8: 4618 mov r0, r3
  11285. 80052da: f00f f8dc bl 8014496 <osMutexAcquire>
  11286. 80052de: 4603 mov r3, r0
  11287. 80052e0: 2b00 cmp r3, #0
  11288. 80052e2: f040 80ad bne.w 8005440 <Uart1ReceivedDataProcessCallback+0x328>
  11289. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  11290. 80052e6: 2304 movs r3, #4
  11291. 80052e8: 4a88 ldr r2, [pc, #544] @ (800550c <Uart1ReceivedDataProcessCallback+0x3f4>)
  11292. 80052ea: 4989 ldr r1, [pc, #548] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11293. 80052ec: 4889 ldr r0, [pc, #548] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11294. 80052ee: f7fe fb47 bl 8003980 <WriteDataToBuffer>
  11295. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  11296. 80052f2: 2304 movs r3, #4
  11297. 80052f4: 4a88 ldr r2, [pc, #544] @ (8005518 <Uart1ReceivedDataProcessCallback+0x400>)
  11298. 80052f6: 4986 ldr r1, [pc, #536] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11299. 80052f8: 4886 ldr r0, [pc, #536] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11300. 80052fa: f7fe fb41 bl 8003980 <WriteDataToBuffer>
  11301. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  11302. 80052fe: 2304 movs r3, #4
  11303. 8005300: 4a86 ldr r2, [pc, #536] @ (800551c <Uart1ReceivedDataProcessCallback+0x404>)
  11304. 8005302: 4983 ldr r1, [pc, #524] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11305. 8005304: 4883 ldr r0, [pc, #524] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11306. 8005306: f7fe fb3b bl 8003980 <WriteDataToBuffer>
  11307. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  11308. 800530a: 2304 movs r3, #4
  11309. 800530c: 4a84 ldr r2, [pc, #528] @ (8005520 <Uart1ReceivedDataProcessCallback+0x408>)
  11310. 800530e: 4980 ldr r1, [pc, #512] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11311. 8005310: 4880 ldr r0, [pc, #512] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11312. 8005312: f7fe fb35 bl 8003980 <WriteDataToBuffer>
  11313. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  11314. 8005316: 2304 movs r3, #4
  11315. 8005318: 4a82 ldr r2, [pc, #520] @ (8005524 <Uart1ReceivedDataProcessCallback+0x40c>)
  11316. 800531a: 497d ldr r1, [pc, #500] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11317. 800531c: 487d ldr r0, [pc, #500] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11318. 800531e: f7fe fb2f bl 8003980 <WriteDataToBuffer>
  11319. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  11320. 8005322: 2301 movs r3, #1
  11321. 8005324: 4a80 ldr r2, [pc, #512] @ (8005528 <Uart1ReceivedDataProcessCallback+0x410>)
  11322. 8005326: 497a ldr r1, [pc, #488] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11323. 8005328: 487a ldr r0, [pc, #488] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11324. 800532a: f7fe fb29 bl 8003980 <WriteDataToBuffer>
  11325. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  11326. 800532e: 2301 movs r3, #1
  11327. 8005330: 4a7e ldr r2, [pc, #504] @ (800552c <Uart1ReceivedDataProcessCallback+0x414>)
  11328. 8005332: 4977 ldr r1, [pc, #476] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11329. 8005334: 4877 ldr r0, [pc, #476] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11330. 8005336: f7fe fb23 bl 8003980 <WriteDataToBuffer>
  11331. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  11332. 800533a: 2304 movs r3, #4
  11333. 800533c: 4a7c ldr r2, [pc, #496] @ (8005530 <Uart1ReceivedDataProcessCallback+0x418>)
  11334. 800533e: 4974 ldr r1, [pc, #464] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11335. 8005340: 4874 ldr r0, [pc, #464] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11336. 8005342: f7fe fb1d bl 8003980 <WriteDataToBuffer>
  11337. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  11338. 8005346: 2304 movs r3, #4
  11339. 8005348: 4a7a ldr r2, [pc, #488] @ (8005534 <Uart1ReceivedDataProcessCallback+0x41c>)
  11340. 800534a: 4971 ldr r1, [pc, #452] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11341. 800534c: 4871 ldr r0, [pc, #452] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11342. 800534e: f7fe fb17 bl 8003980 <WriteDataToBuffer>
  11343. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  11344. 8005352: 2304 movs r3, #4
  11345. 8005354: 4a78 ldr r2, [pc, #480] @ (8005538 <Uart1ReceivedDataProcessCallback+0x420>)
  11346. 8005356: 496e ldr r1, [pc, #440] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11347. 8005358: 486e ldr r0, [pc, #440] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11348. 800535a: f7fe fb11 bl 8003980 <WriteDataToBuffer>
  11349. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  11350. 800535e: 2304 movs r3, #4
  11351. 8005360: 4a76 ldr r2, [pc, #472] @ (800553c <Uart1ReceivedDataProcessCallback+0x424>)
  11352. 8005362: 496b ldr r1, [pc, #428] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11353. 8005364: 486b ldr r0, [pc, #428] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11354. 8005366: f7fe fb0b bl 8003980 <WriteDataToBuffer>
  11355. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  11356. 800536a: 2301 movs r3, #1
  11357. 800536c: 4a74 ldr r2, [pc, #464] @ (8005540 <Uart1ReceivedDataProcessCallback+0x428>)
  11358. 800536e: 4968 ldr r1, [pc, #416] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11359. 8005370: 4868 ldr r0, [pc, #416] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11360. 8005372: f7fe fb05 bl 8003980 <WriteDataToBuffer>
  11361. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  11362. 8005376: 2301 movs r3, #1
  11363. 8005378: 4a72 ldr r2, [pc, #456] @ (8005544 <Uart1ReceivedDataProcessCallback+0x42c>)
  11364. 800537a: 4965 ldr r1, [pc, #404] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11365. 800537c: 4865 ldr r0, [pc, #404] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11366. 800537e: f7fe faff bl 8003980 <WriteDataToBuffer>
  11367. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  11368. 8005382: 2301 movs r3, #1
  11369. 8005384: 4a70 ldr r2, [pc, #448] @ (8005548 <Uart1ReceivedDataProcessCallback+0x430>)
  11370. 8005386: 4962 ldr r1, [pc, #392] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11371. 8005388: 4862 ldr r0, [pc, #392] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11372. 800538a: f7fe faf9 bl 8003980 <WriteDataToBuffer>
  11373. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  11374. 800538e: 2301 movs r3, #1
  11375. 8005390: 4a6e ldr r2, [pc, #440] @ (800554c <Uart1ReceivedDataProcessCallback+0x434>)
  11376. 8005392: 495f ldr r1, [pc, #380] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11377. 8005394: 485f ldr r0, [pc, #380] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11378. 8005396: f7fe faf3 bl 8003980 <WriteDataToBuffer>
  11379. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  11380. 800539a: 2301 movs r3, #1
  11381. 800539c: 4a6c ldr r2, [pc, #432] @ (8005550 <Uart1ReceivedDataProcessCallback+0x438>)
  11382. 800539e: 495c ldr r1, [pc, #368] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11383. 80053a0: 485c ldr r0, [pc, #368] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11384. 80053a2: f7fe faed bl 8003980 <WriteDataToBuffer>
  11385. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  11386. 80053a6: 2301 movs r3, #1
  11387. 80053a8: 4a6a ldr r2, [pc, #424] @ (8005554 <Uart1ReceivedDataProcessCallback+0x43c>)
  11388. 80053aa: 4959 ldr r1, [pc, #356] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11389. 80053ac: 4859 ldr r0, [pc, #356] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11390. 80053ae: f7fe fae7 bl 8003980 <WriteDataToBuffer>
  11391. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  11392. 80053b2: 4869 ldr r0, [pc, #420] @ (8005558 <Uart1ReceivedDataProcessCallback+0x440>)
  11393. 80053b4: f002 faf2 bl 800799c <HAL_COMP_GetOutputLevel>
  11394. 80053b8: 4603 mov r3, r0
  11395. 80053ba: 2b01 cmp r3, #1
  11396. 80053bc: bf0c ite eq
  11397. 80053be: 2301 moveq r3, #1
  11398. 80053c0: 2300 movne r3, #0
  11399. 80053c2: b2db uxtb r3, r3
  11400. 80053c4: f887 3047 strb.w r3, [r7, #71] @ 0x47
  11401. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  11402. 80053c8: f897 3047 ldrb.w r3, [r7, #71] @ 0x47
  11403. 80053cc: 005c lsls r4, r3, #1
  11404. 80053ce: 2108 movs r1, #8
  11405. 80053d0: 4862 ldr r0, [pc, #392] @ (800555c <Uart1ReceivedDataProcessCallback+0x444>)
  11406. 80053d2: f006 f89b bl 800b50c <HAL_GPIO_ReadPin>
  11407. 80053d6: 4603 mov r3, r0
  11408. 80053d8: 4323 orrs r3, r4
  11409. 80053da: f003 0301 and.w r3, r3, #1
  11410. 80053de: 2b00 cmp r3, #0
  11411. 80053e0: bf0c ite eq
  11412. 80053e2: 2301 moveq r3, #1
  11413. 80053e4: 2300 movne r3, #0
  11414. 80053e6: b2db uxtb r3, r3
  11415. 80053e8: 461a mov r2, r3
  11416. 80053ea: 4b48 ldr r3, [pc, #288] @ (800550c <Uart1ReceivedDataProcessCallback+0x3f4>)
  11417. 80053ec: f883 202e strb.w r2, [r3, #46] @ 0x2e
  11418. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  11419. 80053f0: 2301 movs r3, #1
  11420. 80053f2: 4a5b ldr r2, [pc, #364] @ (8005560 <Uart1ReceivedDataProcessCallback+0x448>)
  11421. 80053f4: 4946 ldr r1, [pc, #280] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11422. 80053f6: 4847 ldr r0, [pc, #284] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11423. 80053f8: f7fe fac2 bl 8003980 <WriteDataToBuffer>
  11424. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentXPosition, sizeof (float));
  11425. 80053fc: 2304 movs r3, #4
  11426. 80053fe: 4a59 ldr r2, [pc, #356] @ (8005564 <Uart1ReceivedDataProcessCallback+0x44c>)
  11427. 8005400: 4943 ldr r1, [pc, #268] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11428. 8005402: 4844 ldr r0, [pc, #272] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11429. 8005404: f7fe fabc bl 8003980 <WriteDataToBuffer>
  11430. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentYPosition, sizeof (float));
  11431. 8005408: 2304 movs r3, #4
  11432. 800540a: 4a57 ldr r2, [pc, #348] @ (8005568 <Uart1ReceivedDataProcessCallback+0x450>)
  11433. 800540c: 4940 ldr r1, [pc, #256] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11434. 800540e: 4841 ldr r0, [pc, #260] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11435. 8005410: f7fe fab6 bl 8003980 <WriteDataToBuffer>
  11436. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionXWeak, sizeof (uint8_t));
  11437. 8005414: 2301 movs r3, #1
  11438. 8005416: 4a55 ldr r2, [pc, #340] @ (800556c <Uart1ReceivedDataProcessCallback+0x454>)
  11439. 8005418: 493d ldr r1, [pc, #244] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11440. 800541a: 483e ldr r0, [pc, #248] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11441. 800541c: f7fe fab0 bl 8003980 <WriteDataToBuffer>
  11442. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionYWeak, sizeof (uint8_t));
  11443. 8005420: 2301 movs r3, #1
  11444. 8005422: 4a53 ldr r2, [pc, #332] @ (8005570 <Uart1ReceivedDataProcessCallback+0x458>)
  11445. 8005424: 493a ldr r1, [pc, #232] @ (8005510 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11446. 8005426: 483b ldr r0, [pc, #236] @ (8005514 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11447. 8005428: f7fe faaa bl 8003980 <WriteDataToBuffer>
  11448. osMutexRelease (sensorsInfoMutex);
  11449. 800542c: 4b36 ldr r3, [pc, #216] @ (8005508 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11450. 800542e: 681b ldr r3, [r3, #0]
  11451. 8005430: 4618 mov r0, r3
  11452. 8005432: f00f f87b bl 801452c <osMutexRelease>
  11453. respStatus = spOK;
  11454. 8005436: 2300 movs r3, #0
  11455. 8005438: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11456. } else {
  11457. respStatus = spInternalError;
  11458. }
  11459. break;
  11460. 800543c: f000 bc2d b.w 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11461. respStatus = spInternalError;
  11462. 8005440: 23fc movs r3, #252 @ 0xfc
  11463. 8005442: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11464. break;
  11465. 8005446: f000 bc28 b.w 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11466. case spSetFanSpeed:
  11467. osTimerStop (fanTimerHandle);
  11468. 800544a: 4b4a ldr r3, [pc, #296] @ (8005574 <Uart1ReceivedDataProcessCallback+0x45c>)
  11469. 800544c: 681b ldr r3, [r3, #0]
  11470. 800544e: 4618 mov r0, r3
  11471. 8005450: f00e ff64 bl 801431c <osTimerStop>
  11472. int32_t fanTimerPeriod = 0;
  11473. 8005454: 2300 movs r3, #0
  11474. 8005456: 643b str r3, [r7, #64] @ 0x40
  11475. uint32_t pulse = 0;
  11476. 8005458: 2300 movs r3, #0
  11477. 800545a: 63fb str r3, [r7, #60] @ 0x3c
  11478. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  11479. 800545c: 683b ldr r3, [r7, #0]
  11480. 800545e: 330c adds r3, #12
  11481. 8005460: f107 023c add.w r2, r7, #60 @ 0x3c
  11482. 8005464: f107 0144 add.w r1, r7, #68 @ 0x44
  11483. 8005468: 4618 mov r0, r3
  11484. 800546a: f7fe faef bl 8003a4c <ReadWordFromBufer>
  11485. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  11486. 800546e: 683b ldr r3, [r7, #0]
  11487. 8005470: 330c adds r3, #12
  11488. 8005472: f107 0240 add.w r2, r7, #64 @ 0x40
  11489. 8005476: f107 0144 add.w r1, r7, #68 @ 0x44
  11490. 800547a: 4618 mov r0, r3
  11491. 800547c: f7fe fae6 bl 8003a4c <ReadWordFromBufer>
  11492. fanTimerConfigOC.Pulse = pulse * 10;
  11493. 8005480: 6bfa ldr r2, [r7, #60] @ 0x3c
  11494. 8005482: 4613 mov r3, r2
  11495. 8005484: 009b lsls r3, r3, #2
  11496. 8005486: 4413 add r3, r2
  11497. 8005488: 005b lsls r3, r3, #1
  11498. 800548a: 461a mov r2, r3
  11499. 800548c: 4b3a ldr r3, [pc, #232] @ (8005578 <Uart1ReceivedDataProcessCallback+0x460>)
  11500. 800548e: 605a str r2, [r3, #4]
  11501. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  11502. 8005490: 2204 movs r2, #4
  11503. 8005492: 4939 ldr r1, [pc, #228] @ (8005578 <Uart1ReceivedDataProcessCallback+0x460>)
  11504. 8005494: 4839 ldr r0, [pc, #228] @ (800557c <Uart1ReceivedDataProcessCallback+0x464>)
  11505. 8005496: f00a fe45 bl 8010124 <HAL_TIM_PWM_ConfigChannel>
  11506. 800549a: 4603 mov r3, r0
  11507. 800549c: 2b00 cmp r3, #0
  11508. 800549e: d001 beq.n 80054a4 <Uart1ReceivedDataProcessCallback+0x38c>
  11509. Error_Handler ();
  11510. 80054a0: f7fc fd14 bl 8001ecc <Error_Handler>
  11511. }
  11512. if (fanTimerPeriod > 0) {
  11513. 80054a4: 6c3b ldr r3, [r7, #64] @ 0x40
  11514. 80054a6: 2b00 cmp r3, #0
  11515. 80054a8: dd0f ble.n 80054ca <Uart1ReceivedDataProcessCallback+0x3b2>
  11516. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  11517. 80054aa: 4b32 ldr r3, [pc, #200] @ (8005574 <Uart1ReceivedDataProcessCallback+0x45c>)
  11518. 80054ac: 681a ldr r2, [r3, #0]
  11519. 80054ae: 6c3b ldr r3, [r7, #64] @ 0x40
  11520. 80054b0: f44f 717a mov.w r1, #1000 @ 0x3e8
  11521. 80054b4: fb01 f303 mul.w r3, r1, r3
  11522. 80054b8: 4619 mov r1, r3
  11523. 80054ba: 4610 mov r0, r2
  11524. 80054bc: f00e ff00 bl 80142c0 <osTimerStart>
  11525. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11526. 80054c0: 2104 movs r1, #4
  11527. 80054c2: 482e ldr r0, [pc, #184] @ (800557c <Uart1ReceivedDataProcessCallback+0x464>)
  11528. 80054c4: f00a f934 bl 800f730 <HAL_TIM_PWM_Start>
  11529. 80054c8: e019 b.n 80054fe <Uart1ReceivedDataProcessCallback+0x3e6>
  11530. } else if (fanTimerPeriod == 0) {
  11531. 80054ca: 6c3b ldr r3, [r7, #64] @ 0x40
  11532. 80054cc: 2b00 cmp r3, #0
  11533. 80054ce: d109 bne.n 80054e4 <Uart1ReceivedDataProcessCallback+0x3cc>
  11534. osTimerStop (fanTimerHandle);
  11535. 80054d0: 4b28 ldr r3, [pc, #160] @ (8005574 <Uart1ReceivedDataProcessCallback+0x45c>)
  11536. 80054d2: 681b ldr r3, [r3, #0]
  11537. 80054d4: 4618 mov r0, r3
  11538. 80054d6: f00e ff21 bl 801431c <osTimerStop>
  11539. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  11540. 80054da: 2104 movs r1, #4
  11541. 80054dc: 4827 ldr r0, [pc, #156] @ (800557c <Uart1ReceivedDataProcessCallback+0x464>)
  11542. 80054de: f00a fa35 bl 800f94c <HAL_TIM_PWM_Stop>
  11543. 80054e2: e00c b.n 80054fe <Uart1ReceivedDataProcessCallback+0x3e6>
  11544. } else if (fanTimerPeriod == -1) {
  11545. 80054e4: 6c3b ldr r3, [r7, #64] @ 0x40
  11546. 80054e6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11547. 80054ea: d108 bne.n 80054fe <Uart1ReceivedDataProcessCallback+0x3e6>
  11548. osTimerStop (fanTimerHandle);
  11549. 80054ec: 4b21 ldr r3, [pc, #132] @ (8005574 <Uart1ReceivedDataProcessCallback+0x45c>)
  11550. 80054ee: 681b ldr r3, [r3, #0]
  11551. 80054f0: 4618 mov r0, r3
  11552. 80054f2: f00e ff13 bl 801431c <osTimerStop>
  11553. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11554. 80054f6: 2104 movs r1, #4
  11555. 80054f8: 4820 ldr r0, [pc, #128] @ (800557c <Uart1ReceivedDataProcessCallback+0x464>)
  11556. 80054fa: f00a f919 bl 800f730 <HAL_TIM_PWM_Start>
  11557. }
  11558. respStatus = spOK;
  11559. 80054fe: 2300 movs r3, #0
  11560. 8005500: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11561. break;
  11562. 8005504: e3c9 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11563. 8005506: bf00 nop
  11564. 8005508: 2400081c .word 0x2400081c
  11565. 800550c: 24000860 .word 0x24000860
  11566. 8005510: 2400105c .word 0x2400105c
  11567. 8005514: 24000fdc .word 0x24000fdc
  11568. 8005518: 24000864 .word 0x24000864
  11569. 800551c: 24000868 .word 0x24000868
  11570. 8005520: 2400086c .word 0x2400086c
  11571. 8005524: 24000870 .word 0x24000870
  11572. 8005528: 24000874 .word 0x24000874
  11573. 800552c: 24000875 .word 0x24000875
  11574. 8005530: 24000878 .word 0x24000878
  11575. 8005534: 2400087c .word 0x2400087c
  11576. 8005538: 24000880 .word 0x24000880
  11577. 800553c: 24000884 .word 0x24000884
  11578. 8005540: 24000888 .word 0x24000888
  11579. 8005544: 24000889 .word 0x24000889
  11580. 8005548: 2400088a .word 0x2400088a
  11581. 800554c: 2400088b .word 0x2400088b
  11582. 8005550: 2400088c .word 0x2400088c
  11583. 8005554: 2400088d .word 0x2400088d
  11584. 8005558: 240003b4 .word 0x240003b4
  11585. 800555c: 58020c00 .word 0x58020c00
  11586. 8005560: 2400088e .word 0x2400088e
  11587. 8005564: 24000890 .word 0x24000890
  11588. 8005568: 24000894 .word 0x24000894
  11589. 800556c: 24000898 .word 0x24000898
  11590. 8005570: 24000899 .word 0x24000899
  11591. 8005574: 24000714 .word 0x24000714
  11592. 8005578: 240007a4 .word 0x240007a4
  11593. 800557c: 2400043c .word 0x2400043c
  11594. case spSetMotorXOn:
  11595. int32_t motorXPWMPulse = 0;
  11596. 8005580: 2300 movs r3, #0
  11597. 8005582: 63bb str r3, [r7, #56] @ 0x38
  11598. int32_t motorXTimerPeriod = 0;
  11599. 8005584: 2300 movs r3, #0
  11600. 8005586: 637b str r3, [r7, #52] @ 0x34
  11601. uint32_t motorXStatus = 0;
  11602. 8005588: 2300 movs r3, #0
  11603. 800558a: 64bb str r3, [r7, #72] @ 0x48
  11604. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  11605. 800558c: 683b ldr r3, [r7, #0]
  11606. 800558e: 330c adds r3, #12
  11607. 8005590: f107 0238 add.w r2, r7, #56 @ 0x38
  11608. 8005594: f107 0144 add.w r1, r7, #68 @ 0x44
  11609. 8005598: 4618 mov r0, r3
  11610. 800559a: f7fe fa57 bl 8003a4c <ReadWordFromBufer>
  11611. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  11612. 800559e: 683b ldr r3, [r7, #0]
  11613. 80055a0: 330c adds r3, #12
  11614. 80055a2: f107 0234 add.w r2, r7, #52 @ 0x34
  11615. 80055a6: f107 0144 add.w r1, r7, #68 @ 0x44
  11616. 80055aa: 4618 mov r0, r3
  11617. 80055ac: f7fe fa4e bl 8003a4c <ReadWordFromBufer>
  11618. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11619. 80055b0: 4bab ldr r3, [pc, #684] @ (8005860 <Uart1ReceivedDataProcessCallback+0x748>)
  11620. 80055b2: 681b ldr r3, [r3, #0]
  11621. 80055b4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11622. 80055b8: 4618 mov r0, r3
  11623. 80055ba: f00e ff6c bl 8014496 <osMutexAcquire>
  11624. 80055be: 4603 mov r3, r0
  11625. 80055c0: 2b00 cmp r3, #0
  11626. 80055c2: d12a bne.n 800561a <Uart1ReceivedDataProcessCallback+0x502>
  11627. motorXStatus =
  11628. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  11629. 80055c4: 4ba7 ldr r3, [pc, #668] @ (8005864 <Uart1ReceivedDataProcessCallback+0x74c>)
  11630. 80055c6: 681b ldr r3, [r3, #0]
  11631. 80055c8: 6bba ldr r2, [r7, #56] @ 0x38
  11632. 80055ca: 6b79 ldr r1, [r7, #52] @ 0x34
  11633. 80055cc: 48a6 ldr r0, [pc, #664] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11634. 80055ce: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  11635. 80055d2: 4ca5 ldr r4, [pc, #660] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11636. 80055d4: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  11637. 80055d8: 9404 str r4, [sp, #16]
  11638. 80055da: 9003 str r0, [sp, #12]
  11639. 80055dc: 9102 str r1, [sp, #8]
  11640. 80055de: 9201 str r2, [sp, #4]
  11641. 80055e0: 9300 str r3, [sp, #0]
  11642. 80055e2: 2304 movs r3, #4
  11643. 80055e4: 2200 movs r2, #0
  11644. 80055e6: 49a1 ldr r1, [pc, #644] @ (800586c <Uart1ReceivedDataProcessCallback+0x754>)
  11645. 80055e8: 48a1 ldr r0, [pc, #644] @ (8005870 <Uart1ReceivedDataProcessCallback+0x758>)
  11646. 80055ea: f7fd fd09 bl 8003000 <MotorControl>
  11647. 80055ee: 4603 mov r3, r0
  11648. motorXStatus =
  11649. 80055f0: 64bb str r3, [r7, #72] @ 0x48
  11650. sensorsInfo.motorXStatus = motorXStatus;
  11651. 80055f2: 6cbb ldr r3, [r7, #72] @ 0x48
  11652. 80055f4: b2da uxtb r2, r3
  11653. 80055f6: 4b9c ldr r3, [pc, #624] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11654. 80055f8: 751a strb r2, [r3, #20]
  11655. if (motorXStatus == 1) {
  11656. 80055fa: 6cbb ldr r3, [r7, #72] @ 0x48
  11657. 80055fc: 2b01 cmp r3, #1
  11658. 80055fe: d103 bne.n 8005608 <Uart1ReceivedDataProcessCallback+0x4f0>
  11659. sensorsInfo.motorXPeakCurrent = 0.0;
  11660. 8005600: 4b99 ldr r3, [pc, #612] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11661. 8005602: f04f 0200 mov.w r2, #0
  11662. 8005606: 621a str r2, [r3, #32]
  11663. }
  11664. osMutexRelease (sensorsInfoMutex);
  11665. 8005608: 4b95 ldr r3, [pc, #596] @ (8005860 <Uart1ReceivedDataProcessCallback+0x748>)
  11666. 800560a: 681b ldr r3, [r3, #0]
  11667. 800560c: 4618 mov r0, r3
  11668. 800560e: f00e ff8d bl 801452c <osMutexRelease>
  11669. respStatus = spOK;
  11670. 8005612: 2300 movs r3, #0
  11671. 8005614: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11672. } else {
  11673. respStatus = spInternalError;
  11674. }
  11675. break;
  11676. 8005618: e33f b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11677. respStatus = spInternalError;
  11678. 800561a: 23fc movs r3, #252 @ 0xfc
  11679. 800561c: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11680. break;
  11681. 8005620: e33b b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11682. case spSetMotorYOn:
  11683. int32_t motorYPWMPulse = 0;
  11684. 8005622: 2300 movs r3, #0
  11685. 8005624: 633b str r3, [r7, #48] @ 0x30
  11686. int32_t motorYTimerPeriod = 0;
  11687. 8005626: 2300 movs r3, #0
  11688. 8005628: 62fb str r3, [r7, #44] @ 0x2c
  11689. uint32_t motorYStatus = 0;
  11690. 800562a: 2300 movs r3, #0
  11691. 800562c: 64fb str r3, [r7, #76] @ 0x4c
  11692. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  11693. 800562e: 683b ldr r3, [r7, #0]
  11694. 8005630: 330c adds r3, #12
  11695. 8005632: f107 0230 add.w r2, r7, #48 @ 0x30
  11696. 8005636: f107 0144 add.w r1, r7, #68 @ 0x44
  11697. 800563a: 4618 mov r0, r3
  11698. 800563c: f7fe fa06 bl 8003a4c <ReadWordFromBufer>
  11699. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  11700. 8005640: 683b ldr r3, [r7, #0]
  11701. 8005642: 330c adds r3, #12
  11702. 8005644: f107 022c add.w r2, r7, #44 @ 0x2c
  11703. 8005648: f107 0144 add.w r1, r7, #68 @ 0x44
  11704. 800564c: 4618 mov r0, r3
  11705. 800564e: f7fe f9fd bl 8003a4c <ReadWordFromBufer>
  11706. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11707. 8005652: 4b83 ldr r3, [pc, #524] @ (8005860 <Uart1ReceivedDataProcessCallback+0x748>)
  11708. 8005654: 681b ldr r3, [r3, #0]
  11709. 8005656: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11710. 800565a: 4618 mov r0, r3
  11711. 800565c: f00e ff1b bl 8014496 <osMutexAcquire>
  11712. 8005660: 4603 mov r3, r0
  11713. 8005662: 2b00 cmp r3, #0
  11714. 8005664: d12a bne.n 80056bc <Uart1ReceivedDataProcessCallback+0x5a4>
  11715. motorYStatus =
  11716. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  11717. 8005666: 4b83 ldr r3, [pc, #524] @ (8005874 <Uart1ReceivedDataProcessCallback+0x75c>)
  11718. 8005668: 681b ldr r3, [r3, #0]
  11719. 800566a: 6b3a ldr r2, [r7, #48] @ 0x30
  11720. 800566c: 6af9 ldr r1, [r7, #44] @ 0x2c
  11721. 800566e: 487e ldr r0, [pc, #504] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11722. 8005670: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  11723. 8005674: 4c7c ldr r4, [pc, #496] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11724. 8005676: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  11725. 800567a: 9404 str r4, [sp, #16]
  11726. 800567c: 9003 str r0, [sp, #12]
  11727. 800567e: 9102 str r1, [sp, #8]
  11728. 8005680: 9201 str r2, [sp, #4]
  11729. 8005682: 9300 str r3, [sp, #0]
  11730. 8005684: 230c movs r3, #12
  11731. 8005686: 2208 movs r2, #8
  11732. 8005688: 4978 ldr r1, [pc, #480] @ (800586c <Uart1ReceivedDataProcessCallback+0x754>)
  11733. 800568a: 4879 ldr r0, [pc, #484] @ (8005870 <Uart1ReceivedDataProcessCallback+0x758>)
  11734. 800568c: f7fd fcb8 bl 8003000 <MotorControl>
  11735. 8005690: 4603 mov r3, r0
  11736. motorYStatus =
  11737. 8005692: 64fb str r3, [r7, #76] @ 0x4c
  11738. sensorsInfo.motorYStatus = motorYStatus;
  11739. 8005694: 6cfb ldr r3, [r7, #76] @ 0x4c
  11740. 8005696: b2da uxtb r2, r3
  11741. 8005698: 4b73 ldr r3, [pc, #460] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11742. 800569a: 755a strb r2, [r3, #21]
  11743. if (motorYStatus == 1) {
  11744. 800569c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11745. 800569e: 2b01 cmp r3, #1
  11746. 80056a0: d103 bne.n 80056aa <Uart1ReceivedDataProcessCallback+0x592>
  11747. sensorsInfo.motorYPeakCurrent = 0.0;
  11748. 80056a2: 4b71 ldr r3, [pc, #452] @ (8005868 <Uart1ReceivedDataProcessCallback+0x750>)
  11749. 80056a4: f04f 0200 mov.w r2, #0
  11750. 80056a8: 625a str r2, [r3, #36] @ 0x24
  11751. }
  11752. osMutexRelease (sensorsInfoMutex);
  11753. 80056aa: 4b6d ldr r3, [pc, #436] @ (8005860 <Uart1ReceivedDataProcessCallback+0x748>)
  11754. 80056ac: 681b ldr r3, [r3, #0]
  11755. 80056ae: 4618 mov r0, r3
  11756. 80056b0: f00e ff3c bl 801452c <osMutexRelease>
  11757. respStatus = spOK;
  11758. 80056b4: 2300 movs r3, #0
  11759. 80056b6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11760. } else {
  11761. respStatus = spInternalError;
  11762. }
  11763. break;
  11764. 80056ba: e2ee b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11765. respStatus = spInternalError;
  11766. 80056bc: 23fc movs r3, #252 @ 0xfc
  11767. 80056be: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11768. break;
  11769. 80056c2: e2ea b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11770. case spSetDiodeOn:
  11771. osTimerStop (debugLedTimerHandle);
  11772. 80056c4: 4b6c ldr r3, [pc, #432] @ (8005878 <Uart1ReceivedDataProcessCallback+0x760>)
  11773. 80056c6: 681b ldr r3, [r3, #0]
  11774. 80056c8: 4618 mov r0, r3
  11775. 80056ca: f00e fe27 bl 801431c <osTimerStop>
  11776. int32_t dbgLedTimerPeriod = 0;
  11777. 80056ce: 2300 movs r3, #0
  11778. 80056d0: 62bb str r3, [r7, #40] @ 0x28
  11779. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  11780. 80056d2: 683b ldr r3, [r7, #0]
  11781. 80056d4: 330c adds r3, #12
  11782. 80056d6: f107 0228 add.w r2, r7, #40 @ 0x28
  11783. 80056da: f107 0144 add.w r1, r7, #68 @ 0x44
  11784. 80056de: 4618 mov r0, r3
  11785. 80056e0: f7fe f9b4 bl 8003a4c <ReadWordFromBufer>
  11786. if (dbgLedTimerPeriod > 0) {
  11787. 80056e4: 6abb ldr r3, [r7, #40] @ 0x28
  11788. 80056e6: 2b00 cmp r3, #0
  11789. 80056e8: dd0e ble.n 8005708 <Uart1ReceivedDataProcessCallback+0x5f0>
  11790. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  11791. 80056ea: 4b63 ldr r3, [pc, #396] @ (8005878 <Uart1ReceivedDataProcessCallback+0x760>)
  11792. 80056ec: 681a ldr r2, [r3, #0]
  11793. 80056ee: 6abb ldr r3, [r7, #40] @ 0x28
  11794. 80056f0: f44f 717a mov.w r1, #1000 @ 0x3e8
  11795. 80056f4: fb01 f303 mul.w r3, r1, r3
  11796. 80056f8: 4619 mov r1, r3
  11797. 80056fa: 4610 mov r0, r2
  11798. 80056fc: f00e fde0 bl 80142c0 <osTimerStart>
  11799. DbgLEDOn (DBG_LED1);
  11800. 8005700: 2010 movs r0, #16
  11801. 8005702: f7fd fbef bl 8002ee4 <DbgLEDOn>
  11802. 8005706: e017 b.n 8005738 <Uart1ReceivedDataProcessCallback+0x620>
  11803. } else if (dbgLedTimerPeriod == 0) {
  11804. 8005708: 6abb ldr r3, [r7, #40] @ 0x28
  11805. 800570a: 2b00 cmp r3, #0
  11806. 800570c: d108 bne.n 8005720 <Uart1ReceivedDataProcessCallback+0x608>
  11807. osTimerStop (debugLedTimerHandle);
  11808. 800570e: 4b5a ldr r3, [pc, #360] @ (8005878 <Uart1ReceivedDataProcessCallback+0x760>)
  11809. 8005710: 681b ldr r3, [r3, #0]
  11810. 8005712: 4618 mov r0, r3
  11811. 8005714: f00e fe02 bl 801431c <osTimerStop>
  11812. DbgLEDOff (DBG_LED1);
  11813. 8005718: 2010 movs r0, #16
  11814. 800571a: f7fd fbf5 bl 8002f08 <DbgLEDOff>
  11815. 800571e: e00b b.n 8005738 <Uart1ReceivedDataProcessCallback+0x620>
  11816. } else if (dbgLedTimerPeriod == -1) {
  11817. 8005720: 6abb ldr r3, [r7, #40] @ 0x28
  11818. 8005722: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11819. 8005726: d107 bne.n 8005738 <Uart1ReceivedDataProcessCallback+0x620>
  11820. osTimerStop (debugLedTimerHandle);
  11821. 8005728: 4b53 ldr r3, [pc, #332] @ (8005878 <Uart1ReceivedDataProcessCallback+0x760>)
  11822. 800572a: 681b ldr r3, [r3, #0]
  11823. 800572c: 4618 mov r0, r3
  11824. 800572e: f00e fdf5 bl 801431c <osTimerStop>
  11825. DbgLEDOn (DBG_LED1);
  11826. 8005732: 2010 movs r0, #16
  11827. 8005734: f7fd fbd6 bl 8002ee4 <DbgLEDOn>
  11828. }
  11829. respStatus = spOK;
  11830. 8005738: 2300 movs r3, #0
  11831. 800573a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11832. break;
  11833. 800573e: e2ac b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11834. case spSetmotorXMaxCurrent:
  11835. float motorXMaxCurrent = 0;
  11836. 8005740: f04f 0300 mov.w r3, #0
  11837. 8005744: 627b str r3, [r7, #36] @ 0x24
  11838. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  11839. 8005746: 683b ldr r3, [r7, #0]
  11840. 8005748: 330c adds r3, #12
  11841. 800574a: f107 0224 add.w r2, r7, #36 @ 0x24
  11842. 800574e: f107 0144 add.w r1, r7, #68 @ 0x44
  11843. 8005752: 4618 mov r0, r3
  11844. 8005754: f7fe f97a bl 8003a4c <ReadWordFromBufer>
  11845. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  11846. 8005758: edd7 7a09 vldr s15, [r7, #36] @ 0x24
  11847. 800575c: ed9f 7a47 vldr s14, [pc, #284] @ 800587c <Uart1ReceivedDataProcessCallback+0x764>
  11848. 8005760: ee67 7a87 vmul.f32 s15, s15, s14
  11849. 8005764: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11850. 8005768: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11851. 800576c: ee86 7b05 vdiv.f64 d7, d6, d5
  11852. 8005770: eefc 7bc7 vcvt.u32.f64 s15, d7
  11853. 8005774: ee17 3a90 vmov r3, s15
  11854. 8005778: 653b str r3, [r7, #80] @ 0x50
  11855. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  11856. 800577a: 6d3b ldr r3, [r7, #80] @ 0x50
  11857. 800577c: 2200 movs r2, #0
  11858. 800577e: 2100 movs r1, #0
  11859. 8005780: 483f ldr r0, [pc, #252] @ (8005880 <Uart1ReceivedDataProcessCallback+0x768>)
  11860. 8005782: f002 fd56 bl 8008232 <HAL_DAC_SetValue>
  11861. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  11862. 8005786: 2100 movs r1, #0
  11863. 8005788: 483d ldr r0, [pc, #244] @ (8005880 <Uart1ReceivedDataProcessCallback+0x768>)
  11864. 800578a: f002 fca5 bl 80080d8 <HAL_DAC_Start>
  11865. respStatus = spOK;
  11866. 800578e: 2300 movs r3, #0
  11867. 8005790: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11868. break;
  11869. 8005794: e281 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11870. case spSetmotorYMaxCurrent:
  11871. float motorYMaxCurrent = 0;
  11872. 8005796: f04f 0300 mov.w r3, #0
  11873. 800579a: 623b str r3, [r7, #32]
  11874. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11875. 800579c: 683b ldr r3, [r7, #0]
  11876. 800579e: 330c adds r3, #12
  11877. 80057a0: f107 0220 add.w r2, r7, #32
  11878. 80057a4: f107 0144 add.w r1, r7, #68 @ 0x44
  11879. 80057a8: 4618 mov r0, r3
  11880. 80057aa: f7fe f94f bl 8003a4c <ReadWordFromBufer>
  11881. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11882. 80057ae: edd7 7a08 vldr s15, [r7, #32]
  11883. 80057b2: ed9f 7a32 vldr s14, [pc, #200] @ 800587c <Uart1ReceivedDataProcessCallback+0x764>
  11884. 80057b6: ee67 7a87 vmul.f32 s15, s15, s14
  11885. 80057ba: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11886. 80057be: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11887. 80057c2: ee86 7b05 vdiv.f64 d7, d6, d5
  11888. 80057c6: eefc 7bc7 vcvt.u32.f64 s15, d7
  11889. 80057ca: ee17 3a90 vmov r3, s15
  11890. 80057ce: 657b str r3, [r7, #84] @ 0x54
  11891. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11892. 80057d0: 6d7b ldr r3, [r7, #84] @ 0x54
  11893. 80057d2: 2200 movs r2, #0
  11894. 80057d4: 2110 movs r1, #16
  11895. 80057d6: 482a ldr r0, [pc, #168] @ (8005880 <Uart1ReceivedDataProcessCallback+0x768>)
  11896. 80057d8: f002 fd2b bl 8008232 <HAL_DAC_SetValue>
  11897. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11898. 80057dc: 2110 movs r1, #16
  11899. 80057de: 4828 ldr r0, [pc, #160] @ (8005880 <Uart1ReceivedDataProcessCallback+0x768>)
  11900. 80057e0: f002 fc7a bl 80080d8 <HAL_DAC_Start>
  11901. respStatus = spOK;
  11902. 80057e4: 2300 movs r3, #0
  11903. 80057e6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11904. break;
  11905. 80057ea: e256 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11906. case spClearPeakMeasurments:
  11907. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11908. 80057ec: 4b25 ldr r3, [pc, #148] @ (8005884 <Uart1ReceivedDataProcessCallback+0x76c>)
  11909. 80057ee: 681b ldr r3, [r3, #0]
  11910. 80057f0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11911. 80057f4: 4618 mov r0, r3
  11912. 80057f6: f00e fe4e bl 8014496 <osMutexAcquire>
  11913. 80057fa: 4603 mov r3, r0
  11914. 80057fc: 2b00 cmp r3, #0
  11915. 80057fe: d12a bne.n 8005856 <Uart1ReceivedDataProcessCallback+0x73e>
  11916. for (int i = 0; i < 3; i++) {
  11917. 8005800: 2300 movs r3, #0
  11918. 8005802: 67fb str r3, [r7, #124] @ 0x7c
  11919. 8005804: e01b b.n 800583e <Uart1ReceivedDataProcessCallback+0x726>
  11920. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11921. 8005806: 4a20 ldr r2, [pc, #128] @ (8005888 <Uart1ReceivedDataProcessCallback+0x770>)
  11922. 8005808: 6ffb ldr r3, [r7, #124] @ 0x7c
  11923. 800580a: 009b lsls r3, r3, #2
  11924. 800580c: 4413 add r3, r2
  11925. 800580e: 681a ldr r2, [r3, #0]
  11926. 8005810: 491d ldr r1, [pc, #116] @ (8005888 <Uart1ReceivedDataProcessCallback+0x770>)
  11927. 8005812: 6ffb ldr r3, [r7, #124] @ 0x7c
  11928. 8005814: 3302 adds r3, #2
  11929. 8005816: 009b lsls r3, r3, #2
  11930. 8005818: 440b add r3, r1
  11931. 800581a: 3304 adds r3, #4
  11932. 800581c: 601a str r2, [r3, #0]
  11933. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11934. 800581e: 4a1a ldr r2, [pc, #104] @ (8005888 <Uart1ReceivedDataProcessCallback+0x770>)
  11935. 8005820: 6ffb ldr r3, [r7, #124] @ 0x7c
  11936. 8005822: 3306 adds r3, #6
  11937. 8005824: 009b lsls r3, r3, #2
  11938. 8005826: 4413 add r3, r2
  11939. 8005828: 681a ldr r2, [r3, #0]
  11940. 800582a: 4917 ldr r1, [pc, #92] @ (8005888 <Uart1ReceivedDataProcessCallback+0x770>)
  11941. 800582c: 6ffb ldr r3, [r7, #124] @ 0x7c
  11942. 800582e: 3308 adds r3, #8
  11943. 8005830: 009b lsls r3, r3, #2
  11944. 8005832: 440b add r3, r1
  11945. 8005834: 3304 adds r3, #4
  11946. 8005836: 601a str r2, [r3, #0]
  11947. for (int i = 0; i < 3; i++) {
  11948. 8005838: 6ffb ldr r3, [r7, #124] @ 0x7c
  11949. 800583a: 3301 adds r3, #1
  11950. 800583c: 67fb str r3, [r7, #124] @ 0x7c
  11951. 800583e: 6ffb ldr r3, [r7, #124] @ 0x7c
  11952. 8005840: 2b02 cmp r3, #2
  11953. 8005842: dde0 ble.n 8005806 <Uart1ReceivedDataProcessCallback+0x6ee>
  11954. }
  11955. osMutexRelease (resMeasurementsMutex);
  11956. 8005844: 4b0f ldr r3, [pc, #60] @ (8005884 <Uart1ReceivedDataProcessCallback+0x76c>)
  11957. 8005846: 681b ldr r3, [r3, #0]
  11958. 8005848: 4618 mov r0, r3
  11959. 800584a: f00e fe6f bl 801452c <osMutexRelease>
  11960. respStatus = spOK;
  11961. 800584e: 2300 movs r3, #0
  11962. 8005850: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11963. } else {
  11964. respStatus = spInternalError;
  11965. }
  11966. break;
  11967. 8005854: e221 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11968. respStatus = spInternalError;
  11969. 8005856: 23fc movs r3, #252 @ 0xfc
  11970. 8005858: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11971. break;
  11972. 800585c: e21d b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  11973. 800585e: bf00 nop
  11974. 8005860: 2400081c .word 0x2400081c
  11975. 8005864: 24000744 .word 0x24000744
  11976. 8005868: 24000860 .word 0x24000860
  11977. 800586c: 240007c0 .word 0x240007c0
  11978. 8005870: 240004d4 .word 0x240004d4
  11979. 8005874: 24000774 .word 0x24000774
  11980. 8005878: 240006e4 .word 0x240006e4
  11981. 800587c: 457ff000 .word 0x457ff000
  11982. 8005880: 24000404 .word 0x24000404
  11983. 8005884: 24000818 .word 0x24000818
  11984. 8005888: 24000824 .word 0x24000824
  11985. case spSetEncoderXValue:
  11986. float enocoderXValue = 0;
  11987. 800588c: f04f 0300 mov.w r3, #0
  11988. 8005890: 61fb str r3, [r7, #28]
  11989. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  11990. 8005892: 683b ldr r3, [r7, #0]
  11991. 8005894: 330c adds r3, #12
  11992. 8005896: f107 021c add.w r2, r7, #28
  11993. 800589a: f107 0144 add.w r1, r7, #68 @ 0x44
  11994. 800589e: 4618 mov r0, r3
  11995. 80058a0: f7fe f8d4 bl 8003a4c <ReadWordFromBufer>
  11996. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11997. 80058a4: 4bbc ldr r3, [pc, #752] @ (8005b98 <Uart1ReceivedDataProcessCallback+0xa80>)
  11998. 80058a6: 681b ldr r3, [r3, #0]
  11999. 80058a8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12000. 80058ac: 4618 mov r0, r3
  12001. 80058ae: f00e fdf2 bl 8014496 <osMutexAcquire>
  12002. 80058b2: 4603 mov r3, r0
  12003. 80058b4: 2b00 cmp r3, #0
  12004. 80058b6: d10b bne.n 80058d0 <Uart1ReceivedDataProcessCallback+0x7b8>
  12005. sensorsInfo.pvEncoderX = enocoderXValue;
  12006. 80058b8: 69fb ldr r3, [r7, #28]
  12007. 80058ba: 4ab8 ldr r2, [pc, #736] @ (8005b9c <Uart1ReceivedDataProcessCallback+0xa84>)
  12008. 80058bc: 60d3 str r3, [r2, #12]
  12009. osMutexRelease (sensorsInfoMutex);
  12010. 80058be: 4bb6 ldr r3, [pc, #728] @ (8005b98 <Uart1ReceivedDataProcessCallback+0xa80>)
  12011. 80058c0: 681b ldr r3, [r3, #0]
  12012. 80058c2: 4618 mov r0, r3
  12013. 80058c4: f00e fe32 bl 801452c <osMutexRelease>
  12014. respStatus = spOK;
  12015. 80058c8: 2300 movs r3, #0
  12016. 80058ca: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12017. } else {
  12018. respStatus = spInternalError;
  12019. }
  12020. break;
  12021. 80058ce: e1e4 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12022. respStatus = spInternalError;
  12023. 80058d0: 23fc movs r3, #252 @ 0xfc
  12024. 80058d2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12025. break;
  12026. 80058d6: e1e0 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12027. case spSetEncoderYValue:
  12028. float enocoderYValue = 0;
  12029. 80058d8: f04f 0300 mov.w r3, #0
  12030. 80058dc: 61bb str r3, [r7, #24]
  12031. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  12032. 80058de: 683b ldr r3, [r7, #0]
  12033. 80058e0: 330c adds r3, #12
  12034. 80058e2: f107 0218 add.w r2, r7, #24
  12035. 80058e6: f107 0144 add.w r1, r7, #68 @ 0x44
  12036. 80058ea: 4618 mov r0, r3
  12037. 80058ec: f7fe f8ae bl 8003a4c <ReadWordFromBufer>
  12038. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12039. 80058f0: 4ba9 ldr r3, [pc, #676] @ (8005b98 <Uart1ReceivedDataProcessCallback+0xa80>)
  12040. 80058f2: 681b ldr r3, [r3, #0]
  12041. 80058f4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12042. 80058f8: 4618 mov r0, r3
  12043. 80058fa: f00e fdcc bl 8014496 <osMutexAcquire>
  12044. 80058fe: 4603 mov r3, r0
  12045. 8005900: 2b00 cmp r3, #0
  12046. 8005902: d10b bne.n 800591c <Uart1ReceivedDataProcessCallback+0x804>
  12047. sensorsInfo.pvEncoderY = enocoderYValue;
  12048. 8005904: 69bb ldr r3, [r7, #24]
  12049. 8005906: 4aa5 ldr r2, [pc, #660] @ (8005b9c <Uart1ReceivedDataProcessCallback+0xa84>)
  12050. 8005908: 6113 str r3, [r2, #16]
  12051. osMutexRelease (sensorsInfoMutex);
  12052. 800590a: 4ba3 ldr r3, [pc, #652] @ (8005b98 <Uart1ReceivedDataProcessCallback+0xa80>)
  12053. 800590c: 681b ldr r3, [r3, #0]
  12054. 800590e: 4618 mov r0, r3
  12055. 8005910: f00e fe0c bl 801452c <osMutexRelease>
  12056. respStatus = spOK;
  12057. 8005914: 2300 movs r3, #0
  12058. 8005916: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12059. } else {
  12060. respStatus = spInternalError;
  12061. }
  12062. break;
  12063. 800591a: e1be b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12064. respStatus = spInternalError;
  12065. 800591c: 23fc movs r3, #252 @ 0xfc
  12066. 800591e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12067. break;
  12068. 8005922: e1ba b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12069. case spSetVoltageMeasGains:
  12070. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12071. 8005924: 4b9e ldr r3, [pc, #632] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12072. 8005926: 681b ldr r3, [r3, #0]
  12073. 8005928: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12074. 800592c: 4618 mov r0, r3
  12075. 800592e: f00e fdb2 bl 8014496 <osMutexAcquire>
  12076. 8005932: 4603 mov r3, r0
  12077. 8005934: 2b00 cmp r3, #0
  12078. 8005936: d122 bne.n 800597e <Uart1ReceivedDataProcessCallback+0x866>
  12079. for (uint8_t i = 0; i < 3; i++) {
  12080. 8005938: 2300 movs r3, #0
  12081. 800593a: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12082. 800593e: e011 b.n 8005964 <Uart1ReceivedDataProcessCallback+0x84c>
  12083. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  12084. 8005940: 683b ldr r3, [r7, #0]
  12085. 8005942: f103 000c add.w r0, r3, #12
  12086. 8005946: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12087. 800594a: 00db lsls r3, r3, #3
  12088. 800594c: 4a95 ldr r2, [pc, #596] @ (8005ba4 <Uart1ReceivedDataProcessCallback+0xa8c>)
  12089. 800594e: 441a add r2, r3
  12090. 8005950: f107 0344 add.w r3, r7, #68 @ 0x44
  12091. 8005954: 4619 mov r1, r3
  12092. 8005956: f7fe f879 bl 8003a4c <ReadWordFromBufer>
  12093. for (uint8_t i = 0; i < 3; i++) {
  12094. 800595a: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12095. 800595e: 3301 adds r3, #1
  12096. 8005960: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12097. 8005964: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12098. 8005968: 2b02 cmp r3, #2
  12099. 800596a: d9e9 bls.n 8005940 <Uart1ReceivedDataProcessCallback+0x828>
  12100. }
  12101. osMutexRelease (resMeasurementsMutex);
  12102. 800596c: 4b8c ldr r3, [pc, #560] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12103. 800596e: 681b ldr r3, [r3, #0]
  12104. 8005970: 4618 mov r0, r3
  12105. 8005972: f00e fddb bl 801452c <osMutexRelease>
  12106. respStatus = spOK;
  12107. 8005976: 2300 movs r3, #0
  12108. 8005978: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12109. } else {
  12110. respStatus = spInternalError;
  12111. }
  12112. break;
  12113. 800597c: e18d b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12114. respStatus = spInternalError;
  12115. 800597e: 23fc movs r3, #252 @ 0xfc
  12116. 8005980: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12117. break;
  12118. 8005984: e189 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12119. case spSetVoltageMeasOffsets:
  12120. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12121. 8005986: 4b86 ldr r3, [pc, #536] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12122. 8005988: 681b ldr r3, [r3, #0]
  12123. 800598a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12124. 800598e: 4618 mov r0, r3
  12125. 8005990: f00e fd81 bl 8014496 <osMutexAcquire>
  12126. 8005994: 4603 mov r3, r0
  12127. 8005996: 2b00 cmp r3, #0
  12128. 8005998: d123 bne.n 80059e2 <Uart1ReceivedDataProcessCallback+0x8ca>
  12129. for (uint8_t i = 0; i < 3; i++) {
  12130. 800599a: 2300 movs r3, #0
  12131. 800599c: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12132. 80059a0: e012 b.n 80059c8 <Uart1ReceivedDataProcessCallback+0x8b0>
  12133. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  12134. 80059a2: 683b ldr r3, [r7, #0]
  12135. 80059a4: f103 000c add.w r0, r3, #12
  12136. 80059a8: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12137. 80059ac: 00db lsls r3, r3, #3
  12138. 80059ae: 4a7d ldr r2, [pc, #500] @ (8005ba4 <Uart1ReceivedDataProcessCallback+0xa8c>)
  12139. 80059b0: 4413 add r3, r2
  12140. 80059b2: 1d1a adds r2, r3, #4
  12141. 80059b4: f107 0344 add.w r3, r7, #68 @ 0x44
  12142. 80059b8: 4619 mov r1, r3
  12143. 80059ba: f7fe f847 bl 8003a4c <ReadWordFromBufer>
  12144. for (uint8_t i = 0; i < 3; i++) {
  12145. 80059be: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12146. 80059c2: 3301 adds r3, #1
  12147. 80059c4: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12148. 80059c8: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12149. 80059cc: 2b02 cmp r3, #2
  12150. 80059ce: d9e8 bls.n 80059a2 <Uart1ReceivedDataProcessCallback+0x88a>
  12151. }
  12152. osMutexRelease (resMeasurementsMutex);
  12153. 80059d0: 4b73 ldr r3, [pc, #460] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12154. 80059d2: 681b ldr r3, [r3, #0]
  12155. 80059d4: 4618 mov r0, r3
  12156. 80059d6: f00e fda9 bl 801452c <osMutexRelease>
  12157. respStatus = spOK;
  12158. 80059da: 2300 movs r3, #0
  12159. 80059dc: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12160. } else {
  12161. respStatus = spInternalError;
  12162. }
  12163. break;
  12164. 80059e0: e15b b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12165. respStatus = spInternalError;
  12166. 80059e2: 23fc movs r3, #252 @ 0xfc
  12167. 80059e4: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12168. break;
  12169. 80059e8: e157 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12170. case spSetCurrentMeasGains:
  12171. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12172. 80059ea: 4b6d ldr r3, [pc, #436] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12173. 80059ec: 681b ldr r3, [r3, #0]
  12174. 80059ee: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12175. 80059f2: 4618 mov r0, r3
  12176. 80059f4: f00e fd4f bl 8014496 <osMutexAcquire>
  12177. 80059f8: 4603 mov r3, r0
  12178. 80059fa: 2b00 cmp r3, #0
  12179. 80059fc: d122 bne.n 8005a44 <Uart1ReceivedDataProcessCallback+0x92c>
  12180. for (uint8_t i = 0; i < 3; i++) {
  12181. 80059fe: 2300 movs r3, #0
  12182. 8005a00: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12183. 8005a04: e011 b.n 8005a2a <Uart1ReceivedDataProcessCallback+0x912>
  12184. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  12185. 8005a06: 683b ldr r3, [r7, #0]
  12186. 8005a08: f103 000c add.w r0, r3, #12
  12187. 8005a0c: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12188. 8005a10: 00db lsls r3, r3, #3
  12189. 8005a12: 4a65 ldr r2, [pc, #404] @ (8005ba8 <Uart1ReceivedDataProcessCallback+0xa90>)
  12190. 8005a14: 441a add r2, r3
  12191. 8005a16: f107 0344 add.w r3, r7, #68 @ 0x44
  12192. 8005a1a: 4619 mov r1, r3
  12193. 8005a1c: f7fe f816 bl 8003a4c <ReadWordFromBufer>
  12194. for (uint8_t i = 0; i < 3; i++) {
  12195. 8005a20: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12196. 8005a24: 3301 adds r3, #1
  12197. 8005a26: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12198. 8005a2a: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12199. 8005a2e: 2b02 cmp r3, #2
  12200. 8005a30: d9e9 bls.n 8005a06 <Uart1ReceivedDataProcessCallback+0x8ee>
  12201. }
  12202. osMutexRelease (resMeasurementsMutex);
  12203. 8005a32: 4b5b ldr r3, [pc, #364] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12204. 8005a34: 681b ldr r3, [r3, #0]
  12205. 8005a36: 4618 mov r0, r3
  12206. 8005a38: f00e fd78 bl 801452c <osMutexRelease>
  12207. respStatus = spOK;
  12208. 8005a3c: 2300 movs r3, #0
  12209. 8005a3e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12210. } else {
  12211. respStatus = spInternalError;
  12212. }
  12213. break;
  12214. 8005a42: e12a b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12215. respStatus = spInternalError;
  12216. 8005a44: 23fc movs r3, #252 @ 0xfc
  12217. 8005a46: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12218. break;
  12219. 8005a4a: e126 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12220. case spSetCurrentMeasOffsets:
  12221. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12222. 8005a4c: 4b54 ldr r3, [pc, #336] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12223. 8005a4e: 681b ldr r3, [r3, #0]
  12224. 8005a50: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12225. 8005a54: 4618 mov r0, r3
  12226. 8005a56: f00e fd1e bl 8014496 <osMutexAcquire>
  12227. 8005a5a: 4603 mov r3, r0
  12228. 8005a5c: 2b00 cmp r3, #0
  12229. 8005a5e: d123 bne.n 8005aa8 <Uart1ReceivedDataProcessCallback+0x990>
  12230. for (uint8_t i = 0; i < 3; i++) {
  12231. 8005a60: 2300 movs r3, #0
  12232. 8005a62: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12233. 8005a66: e012 b.n 8005a8e <Uart1ReceivedDataProcessCallback+0x976>
  12234. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  12235. 8005a68: 683b ldr r3, [r7, #0]
  12236. 8005a6a: f103 000c add.w r0, r3, #12
  12237. 8005a6e: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12238. 8005a72: 00db lsls r3, r3, #3
  12239. 8005a74: 4a4c ldr r2, [pc, #304] @ (8005ba8 <Uart1ReceivedDataProcessCallback+0xa90>)
  12240. 8005a76: 4413 add r3, r2
  12241. 8005a78: 1d1a adds r2, r3, #4
  12242. 8005a7a: f107 0344 add.w r3, r7, #68 @ 0x44
  12243. 8005a7e: 4619 mov r1, r3
  12244. 8005a80: f7fd ffe4 bl 8003a4c <ReadWordFromBufer>
  12245. for (uint8_t i = 0; i < 3; i++) {
  12246. 8005a84: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12247. 8005a88: 3301 adds r3, #1
  12248. 8005a8a: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12249. 8005a8e: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12250. 8005a92: 2b02 cmp r3, #2
  12251. 8005a94: d9e8 bls.n 8005a68 <Uart1ReceivedDataProcessCallback+0x950>
  12252. }
  12253. osMutexRelease (resMeasurementsMutex);
  12254. 8005a96: 4b42 ldr r3, [pc, #264] @ (8005ba0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12255. 8005a98: 681b ldr r3, [r3, #0]
  12256. 8005a9a: 4618 mov r0, r3
  12257. 8005a9c: f00e fd46 bl 801452c <osMutexRelease>
  12258. respStatus = spOK;
  12259. 8005aa0: 2300 movs r3, #0
  12260. 8005aa2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12261. } else {
  12262. respStatus = spInternalError;
  12263. }
  12264. break;
  12265. 8005aa6: e0f8 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12266. respStatus = spInternalError;
  12267. 8005aa8: 23fc movs r3, #252 @ 0xfc
  12268. 8005aaa: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12269. break;
  12270. 8005aae: e0f4 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12271. __ASM volatile ("cpsid i" : : : "memory");
  12272. 8005ab0: b672 cpsid i
  12273. }
  12274. 8005ab2: bf00 nop
  12275. case spResetSystem:
  12276. __disable_irq();
  12277. NVIC_SystemReset();
  12278. 8005ab4: f7fe ff62 bl 800497c <__NVIC_SystemReset>
  12279. break;
  12280. case spSetPositonX:
  12281. PositionControlTaskData posXData = { 0 };
  12282. 8005ab8: f04f 0300 mov.w r3, #0
  12283. 8005abc: 617b str r3, [r7, #20]
  12284. if (positionXControlTaskInitArg.positionSettingQueue != NULL)
  12285. 8005abe: 4b3b ldr r3, [pc, #236] @ (8005bac <Uart1ReceivedDataProcessCallback+0xa94>)
  12286. 8005ac0: 691b ldr r3, [r3, #16]
  12287. 8005ac2: 2b00 cmp r3, #0
  12288. 8005ac4: f000 80e6 beq.w 8005c94 <Uart1ReceivedDataProcessCallback+0xb7c>
  12289. {
  12290. float posXPercent = 0;
  12291. 8005ac8: f04f 0300 mov.w r3, #0
  12292. 8005acc: 60fb str r3, [r7, #12]
  12293. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posXPercent);
  12294. 8005ace: 683b ldr r3, [r7, #0]
  12295. 8005ad0: 330c adds r3, #12
  12296. 8005ad2: f107 020c add.w r2, r7, #12
  12297. 8005ad6: f107 0144 add.w r1, r7, #68 @ 0x44
  12298. 8005ada: 4618 mov r0, r3
  12299. 8005adc: f7fd ff81 bl 80039e2 <ReadFloatFromBuffer>
  12300. float posXDegress = MAX_X_AXE_ANGLE * posXPercent * 0.01;
  12301. 8005ae0: edd7 7a03 vldr s15, [r7, #12]
  12302. 8005ae4: ed9f 7a32 vldr s14, [pc, #200] @ 8005bb0 <Uart1ReceivedDataProcessCallback+0xa98>
  12303. 8005ae8: ee67 7a87 vmul.f32 s15, s15, s14
  12304. 8005aec: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12305. 8005af0: ed9f 6b27 vldr d6, [pc, #156] @ 8005b90 <Uart1ReceivedDataProcessCallback+0xa78>
  12306. 8005af4: ee27 7b06 vmul.f64 d7, d7, d6
  12307. 8005af8: eef7 7bc7 vcvt.f32.f64 s15, d7
  12308. 8005afc: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  12309. float angleDelta = 360 / ENCODER_X_IMP_PER_TURN;
  12310. 8005b00: 4b2c ldr r3, [pc, #176] @ (8005bb4 <Uart1ReceivedDataProcessCallback+0xa9c>)
  12311. 8005b02: 65fb str r3, [r7, #92] @ 0x5c
  12312. float rest = fmodf(posXDegress, angleDelta);
  12313. 8005b04: edd7 0a17 vldr s1, [r7, #92] @ 0x5c
  12314. 8005b08: ed97 0a18 vldr s0, [r7, #96] @ 0x60
  12315. 8005b0c: f012 fcda bl 80184c4 <fmodf>
  12316. 8005b10: ed87 0a16 vstr s0, [r7, #88] @ 0x58
  12317. if ( rest > (angleDelta/2))
  12318. 8005b14: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  12319. 8005b18: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12320. 8005b1c: eec7 7a26 vdiv.f32 s15, s14, s13
  12321. 8005b20: ed97 7a16 vldr s14, [r7, #88] @ 0x58
  12322. 8005b24: eeb4 7ae7 vcmpe.f32 s14, s15
  12323. 8005b28: eef1 fa10 vmrs APSR_nzcv, fpscr
  12324. 8005b2c: dd14 ble.n 8005b58 <Uart1ReceivedDataProcessCallback+0xa40>
  12325. {
  12326. posXData.positionSettingValue = 100 * (posXDegress - rest + angleDelta) / MAX_X_AXE_ANGLE;
  12327. 8005b2e: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12328. 8005b32: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12329. 8005b36: ee37 7a67 vsub.f32 s14, s14, s15
  12330. 8005b3a: edd7 7a17 vldr s15, [r7, #92] @ 0x5c
  12331. 8005b3e: ee77 7a27 vadd.f32 s15, s14, s15
  12332. 8005b42: ed9f 7a1d vldr s14, [pc, #116] @ 8005bb8 <Uart1ReceivedDataProcessCallback+0xaa0>
  12333. 8005b46: ee27 7a87 vmul.f32 s14, s15, s14
  12334. 8005b4a: eddf 6a19 vldr s13, [pc, #100] @ 8005bb0 <Uart1ReceivedDataProcessCallback+0xa98>
  12335. 8005b4e: eec7 7a26 vdiv.f32 s15, s14, s13
  12336. 8005b52: edc7 7a05 vstr s15, [r7, #20]
  12337. 8005b56: e00f b.n 8005b78 <Uart1ReceivedDataProcessCallback+0xa60>
  12338. }
  12339. else
  12340. {
  12341. posXData.positionSettingValue = 100 * (posXDegress - rest) / MAX_X_AXE_ANGLE;
  12342. 8005b58: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12343. 8005b5c: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12344. 8005b60: ee77 7a67 vsub.f32 s15, s14, s15
  12345. 8005b64: ed9f 7a14 vldr s14, [pc, #80] @ 8005bb8 <Uart1ReceivedDataProcessCallback+0xaa0>
  12346. 8005b68: ee27 7a87 vmul.f32 s14, s15, s14
  12347. 8005b6c: eddf 6a10 vldr s13, [pc, #64] @ 8005bb0 <Uart1ReceivedDataProcessCallback+0xa98>
  12348. 8005b70: eec7 7a26 vdiv.f32 s15, s14, s13
  12349. 8005b74: edc7 7a05 vstr s15, [r7, #20]
  12350. }
  12351. osMessageQueuePut(positionXControlTaskInitArg.positionSettingQueue, &posXData, 0, 0);
  12352. 8005b78: 4b0c ldr r3, [pc, #48] @ (8005bac <Uart1ReceivedDataProcessCallback+0xa94>)
  12353. 8005b7a: 6918 ldr r0, [r3, #16]
  12354. 8005b7c: f107 0114 add.w r1, r7, #20
  12355. 8005b80: 2300 movs r3, #0
  12356. 8005b82: 2200 movs r2, #0
  12357. 8005b84: f00e fd82 bl 801468c <osMessageQueuePut>
  12358. }
  12359. break;
  12360. 8005b88: e084 b.n 8005c94 <Uart1ReceivedDataProcessCallback+0xb7c>
  12361. 8005b8a: bf00 nop
  12362. 8005b8c: f3af 8000 nop.w
  12363. 8005b90: 47ae147b .word 0x47ae147b
  12364. 8005b94: 3f847ae1 .word 0x3f847ae1
  12365. 8005b98: 2400081c .word 0x2400081c
  12366. 8005b9c: 24000860 .word 0x24000860
  12367. 8005ba0: 24000818 .word 0x24000818
  12368. 8005ba4: 24000000 .word 0x24000000
  12369. 8005ba8: 24000018 .word 0x24000018
  12370. 8005bac: 240008b4 .word 0x240008b4
  12371. 8005bb0: 43b40000 .word 0x43b40000
  12372. 8005bb4: 41900000 .word 0x41900000
  12373. 8005bb8: 42c80000 .word 0x42c80000
  12374. case spSetPositonY:
  12375. PositionControlTaskData posYData = { 0 };
  12376. 8005bbc: f04f 0300 mov.w r3, #0
  12377. 8005bc0: 613b str r3, [r7, #16]
  12378. if (positionYControlTaskInitArg.positionSettingQueue != NULL)
  12379. 8005bc2: 4b4b ldr r3, [pc, #300] @ (8005cf0 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12380. 8005bc4: 691b ldr r3, [r3, #16]
  12381. 8005bc6: 2b00 cmp r3, #0
  12382. 8005bc8: d066 beq.n 8005c98 <Uart1ReceivedDataProcessCallback+0xb80>
  12383. {
  12384. float posYPercent = 0;
  12385. 8005bca: f04f 0300 mov.w r3, #0
  12386. 8005bce: 60bb str r3, [r7, #8]
  12387. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posYPercent);
  12388. 8005bd0: 683b ldr r3, [r7, #0]
  12389. 8005bd2: 330c adds r3, #12
  12390. 8005bd4: f107 0208 add.w r2, r7, #8
  12391. 8005bd8: f107 0144 add.w r1, r7, #68 @ 0x44
  12392. 8005bdc: 4618 mov r0, r3
  12393. 8005bde: f7fd ff00 bl 80039e2 <ReadFloatFromBuffer>
  12394. float posYDegress = MAX_Y_AXE_ANGLE * posYPercent * 0.01;
  12395. 8005be2: edd7 7a02 vldr s15, [r7, #8]
  12396. 8005be6: ed9f 7a43 vldr s14, [pc, #268] @ 8005cf4 <Uart1ReceivedDataProcessCallback+0xbdc>
  12397. 8005bea: ee67 7a87 vmul.f32 s15, s15, s14
  12398. 8005bee: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12399. 8005bf2: ed9f 6b3d vldr d6, [pc, #244] @ 8005ce8 <Uart1ReceivedDataProcessCallback+0xbd0>
  12400. 8005bf6: ee27 7b06 vmul.f64 d7, d7, d6
  12401. 8005bfa: eef7 7bc7 vcvt.f32.f64 s15, d7
  12402. 8005bfe: edc7 7a1b vstr s15, [r7, #108] @ 0x6c
  12403. float angleDelta = 360 / ENCODER_Y_IMP_PER_TURN;
  12404. 8005c02: 4b3d ldr r3, [pc, #244] @ (8005cf8 <Uart1ReceivedDataProcessCallback+0xbe0>)
  12405. 8005c04: 66bb str r3, [r7, #104] @ 0x68
  12406. float rest = fmodf(posYDegress, angleDelta);
  12407. 8005c06: edd7 0a1a vldr s1, [r7, #104] @ 0x68
  12408. 8005c0a: ed97 0a1b vldr s0, [r7, #108] @ 0x6c
  12409. 8005c0e: f012 fc59 bl 80184c4 <fmodf>
  12410. 8005c12: ed87 0a19 vstr s0, [r7, #100] @ 0x64
  12411. if ( rest > (angleDelta/2))
  12412. 8005c16: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  12413. 8005c1a: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12414. 8005c1e: eec7 7a26 vdiv.f32 s15, s14, s13
  12415. 8005c22: ed97 7a19 vldr s14, [r7, #100] @ 0x64
  12416. 8005c26: eeb4 7ae7 vcmpe.f32 s14, s15
  12417. 8005c2a: eef1 fa10 vmrs APSR_nzcv, fpscr
  12418. 8005c2e: dd14 ble.n 8005c5a <Uart1ReceivedDataProcessCallback+0xb42>
  12419. {
  12420. posYData.positionSettingValue = 100 * (posYDegress - rest + angleDelta) / MAX_Y_AXE_ANGLE;
  12421. 8005c30: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12422. 8005c34: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12423. 8005c38: ee37 7a67 vsub.f32 s14, s14, s15
  12424. 8005c3c: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  12425. 8005c40: ee77 7a27 vadd.f32 s15, s14, s15
  12426. 8005c44: ed9f 7a2d vldr s14, [pc, #180] @ 8005cfc <Uart1ReceivedDataProcessCallback+0xbe4>
  12427. 8005c48: ee27 7a87 vmul.f32 s14, s15, s14
  12428. 8005c4c: eddf 6a29 vldr s13, [pc, #164] @ 8005cf4 <Uart1ReceivedDataProcessCallback+0xbdc>
  12429. 8005c50: eec7 7a26 vdiv.f32 s15, s14, s13
  12430. 8005c54: edc7 7a04 vstr s15, [r7, #16]
  12431. 8005c58: e00f b.n 8005c7a <Uart1ReceivedDataProcessCallback+0xb62>
  12432. }
  12433. else
  12434. {
  12435. posYData.positionSettingValue = 100 * (posYDegress - rest) / MAX_Y_AXE_ANGLE;
  12436. 8005c5a: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12437. 8005c5e: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12438. 8005c62: ee77 7a67 vsub.f32 s15, s14, s15
  12439. 8005c66: ed9f 7a25 vldr s14, [pc, #148] @ 8005cfc <Uart1ReceivedDataProcessCallback+0xbe4>
  12440. 8005c6a: ee27 7a87 vmul.f32 s14, s15, s14
  12441. 8005c6e: eddf 6a21 vldr s13, [pc, #132] @ 8005cf4 <Uart1ReceivedDataProcessCallback+0xbdc>
  12442. 8005c72: eec7 7a26 vdiv.f32 s15, s14, s13
  12443. 8005c76: edc7 7a04 vstr s15, [r7, #16]
  12444. }
  12445. osMessageQueuePut(positionYControlTaskInitArg.positionSettingQueue, &posYData, 0, 0);
  12446. 8005c7a: 4b1d ldr r3, [pc, #116] @ (8005cf0 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12447. 8005c7c: 6918 ldr r0, [r3, #16]
  12448. 8005c7e: f107 0110 add.w r1, r7, #16
  12449. 8005c82: 2300 movs r3, #0
  12450. 8005c84: 2200 movs r2, #0
  12451. 8005c86: f00e fd01 bl 801468c <osMessageQueuePut>
  12452. }
  12453. break;
  12454. 8005c8a: e005 b.n 8005c98 <Uart1ReceivedDataProcessCallback+0xb80>
  12455. default: respStatus = spUnknownCommand; break;
  12456. 8005c8c: 23fd movs r3, #253 @ 0xfd
  12457. 8005c8e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12458. 8005c92: e002 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12459. break;
  12460. 8005c94: bf00 nop
  12461. 8005c96: e000 b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb82>
  12462. break;
  12463. 8005c98: bf00 nop
  12464. }
  12465. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  12466. 8005c9a: 6f7b ldr r3, [r7, #116] @ 0x74
  12467. 8005c9c: 6898 ldr r0, [r3, #8]
  12468. 8005c9e: 683b ldr r3, [r7, #0]
  12469. 8005ca0: 8819 ldrh r1, [r3, #0]
  12470. 8005ca2: 683b ldr r3, [r7, #0]
  12471. 8005ca4: 789a ldrb r2, [r3, #2]
  12472. 8005ca6: 4b16 ldr r3, [pc, #88] @ (8005d00 <Uart1ReceivedDataProcessCallback+0xbe8>)
  12473. 8005ca8: 881b ldrh r3, [r3, #0]
  12474. 8005caa: f997 4097 ldrsb.w r4, [r7, #151] @ 0x97
  12475. 8005cae: 9301 str r3, [sp, #4]
  12476. 8005cb0: 4b14 ldr r3, [pc, #80] @ (8005d04 <Uart1ReceivedDataProcessCallback+0xbec>)
  12477. 8005cb2: 9300 str r3, [sp, #0]
  12478. 8005cb4: 4623 mov r3, r4
  12479. 8005cb6: f7fd fefd bl 8003ab4 <PrepareRespFrame>
  12480. 8005cba: 4603 mov r3, r0
  12481. 8005cbc: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  12482. if (dataToSend > 0) {
  12483. 8005cc0: f8b7 3072 ldrh.w r3, [r7, #114] @ 0x72
  12484. 8005cc4: 2b00 cmp r3, #0
  12485. 8005cc6: d008 beq.n 8005cda <Uart1ReceivedDataProcessCallback+0xbc2>
  12486. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  12487. 8005cc8: 6f7b ldr r3, [r7, #116] @ 0x74
  12488. 8005cca: 6b18 ldr r0, [r3, #48] @ 0x30
  12489. 8005ccc: 6f7b ldr r3, [r7, #116] @ 0x74
  12490. 8005cce: 689b ldr r3, [r3, #8]
  12491. 8005cd0: f8b7 2072 ldrh.w r2, [r7, #114] @ 0x72
  12492. 8005cd4: 4619 mov r1, r3
  12493. 8005cd6: f00b fbb1 bl 801143c <HAL_UART_Transmit_IT>
  12494. }
  12495. #ifdef SERIAL_PROTOCOL_DBG
  12496. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  12497. #endif
  12498. }
  12499. 8005cda: bf00 nop
  12500. 8005cdc: 379c adds r7, #156 @ 0x9c
  12501. 8005cde: 46bd mov sp, r7
  12502. 8005ce0: bd90 pop {r4, r7, pc}
  12503. 8005ce2: bf00 nop
  12504. 8005ce4: f3af 8000 nop.w
  12505. 8005ce8: 47ae147b .word 0x47ae147b
  12506. 8005cec: 3f847ae1 .word 0x3f847ae1
  12507. 8005cf0: 240008e8 .word 0x240008e8
  12508. 8005cf4: 43b40000 .word 0x43b40000
  12509. 8005cf8: 41900000 .word 0x41900000
  12510. 8005cfc: 42c80000 .word 0x42c80000
  12511. 8005d00: 2400105c .word 0x2400105c
  12512. 8005d04: 24000fdc .word 0x24000fdc
  12513. 08005d08 <Reset_Handler>:
  12514. .section .text.Reset_Handler
  12515. .weak Reset_Handler
  12516. .type Reset_Handler, %function
  12517. Reset_Handler:
  12518. ldr sp, =_estack /* set stack pointer */
  12519. 8005d08: f8df d034 ldr.w sp, [pc, #52] @ 8005d40 <LoopFillZerobss+0xe>
  12520. /* Call the clock system initialization function.*/
  12521. bl SystemInit
  12522. 8005d0c: f7fe fdae bl 800486c <SystemInit>
  12523. /* Copy the data segment initializers from flash to SRAM */
  12524. ldr r0, =_sdata
  12525. 8005d10: 480c ldr r0, [pc, #48] @ (8005d44 <LoopFillZerobss+0x12>)
  12526. ldr r1, =_edata
  12527. 8005d12: 490d ldr r1, [pc, #52] @ (8005d48 <LoopFillZerobss+0x16>)
  12528. ldr r2, =_sidata
  12529. 8005d14: 4a0d ldr r2, [pc, #52] @ (8005d4c <LoopFillZerobss+0x1a>)
  12530. movs r3, #0
  12531. 8005d16: 2300 movs r3, #0
  12532. b LoopCopyDataInit
  12533. 8005d18: e002 b.n 8005d20 <LoopCopyDataInit>
  12534. 08005d1a <CopyDataInit>:
  12535. CopyDataInit:
  12536. ldr r4, [r2, r3]
  12537. 8005d1a: 58d4 ldr r4, [r2, r3]
  12538. str r4, [r0, r3]
  12539. 8005d1c: 50c4 str r4, [r0, r3]
  12540. adds r3, r3, #4
  12541. 8005d1e: 3304 adds r3, #4
  12542. 08005d20 <LoopCopyDataInit>:
  12543. LoopCopyDataInit:
  12544. adds r4, r0, r3
  12545. 8005d20: 18c4 adds r4, r0, r3
  12546. cmp r4, r1
  12547. 8005d22: 428c cmp r4, r1
  12548. bcc CopyDataInit
  12549. 8005d24: d3f9 bcc.n 8005d1a <CopyDataInit>
  12550. /* Zero fill the bss segment. */
  12551. ldr r2, =_sbss
  12552. 8005d26: 4a0a ldr r2, [pc, #40] @ (8005d50 <LoopFillZerobss+0x1e>)
  12553. ldr r4, =_ebss
  12554. 8005d28: 4c0a ldr r4, [pc, #40] @ (8005d54 <LoopFillZerobss+0x22>)
  12555. movs r3, #0
  12556. 8005d2a: 2300 movs r3, #0
  12557. b LoopFillZerobss
  12558. 8005d2c: e001 b.n 8005d32 <LoopFillZerobss>
  12559. 08005d2e <FillZerobss>:
  12560. FillZerobss:
  12561. str r3, [r2]
  12562. 8005d2e: 6013 str r3, [r2, #0]
  12563. adds r2, r2, #4
  12564. 8005d30: 3204 adds r2, #4
  12565. 08005d32 <LoopFillZerobss>:
  12566. LoopFillZerobss:
  12567. cmp r2, r4
  12568. 8005d32: 42a2 cmp r2, r4
  12569. bcc FillZerobss
  12570. 8005d34: d3fb bcc.n 8005d2e <FillZerobss>
  12571. /* Call static constructors */
  12572. bl __libc_init_array
  12573. 8005d36: f012 fb3b bl 80183b0 <__libc_init_array>
  12574. /* Call the application's entry point.*/
  12575. bl main
  12576. 8005d3a: f7fa fc8b bl 8000654 <main>
  12577. bx lr
  12578. 8005d3e: 4770 bx lr
  12579. ldr sp, =_estack /* set stack pointer */
  12580. 8005d40: 24060000 .word 0x24060000
  12581. ldr r0, =_sdata
  12582. 8005d44: 24000000 .word 0x24000000
  12583. ldr r1, =_edata
  12584. 8005d48: 24000098 .word 0x24000098
  12585. ldr r2, =_sidata
  12586. 8005d4c: 08018734 .word 0x08018734
  12587. ldr r2, =_sbss
  12588. 8005d50: 240000a0 .word 0x240000a0
  12589. ldr r4, =_ebss
  12590. 8005d54: 2401318c .word 0x2401318c
  12591. 08005d58 <ADC3_IRQHandler>:
  12592. * @retval None
  12593. */
  12594. .section .text.Default_Handler,"ax",%progbits
  12595. Default_Handler:
  12596. Infinite_Loop:
  12597. b Infinite_Loop
  12598. 8005d58: e7fe b.n 8005d58 <ADC3_IRQHandler>
  12599. ...
  12600. 08005d5c <HAL_Init>:
  12601. * need to ensure that the SysTick time base is always set to 1 millisecond
  12602. * to have correct HAL operation.
  12603. * @retval HAL status
  12604. */
  12605. HAL_StatusTypeDef HAL_Init(void)
  12606. {
  12607. 8005d5c: b580 push {r7, lr}
  12608. 8005d5e: b082 sub sp, #8
  12609. 8005d60: af00 add r7, sp, #0
  12610. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  12611. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  12612. #endif /* DUAL_CORE && CORE_CM4 */
  12613. /* Set Interrupt Group Priority */
  12614. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  12615. 8005d62: 2003 movs r0, #3
  12616. 8005d64: f001 fee5 bl 8007b32 <HAL_NVIC_SetPriorityGrouping>
  12617. /* Update the SystemCoreClock global variable */
  12618. #if defined(RCC_D1CFGR_D1CPRE)
  12619. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  12620. 8005d68: f006 fbee bl 800c548 <HAL_RCC_GetSysClockFreq>
  12621. 8005d6c: 4602 mov r2, r0
  12622. 8005d6e: 4b15 ldr r3, [pc, #84] @ (8005dc4 <HAL_Init+0x68>)
  12623. 8005d70: 699b ldr r3, [r3, #24]
  12624. 8005d72: 0a1b lsrs r3, r3, #8
  12625. 8005d74: f003 030f and.w r3, r3, #15
  12626. 8005d78: 4913 ldr r1, [pc, #76] @ (8005dc8 <HAL_Init+0x6c>)
  12627. 8005d7a: 5ccb ldrb r3, [r1, r3]
  12628. 8005d7c: f003 031f and.w r3, r3, #31
  12629. 8005d80: fa22 f303 lsr.w r3, r2, r3
  12630. 8005d84: 607b str r3, [r7, #4]
  12631. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  12632. #endif
  12633. /* Update the SystemD2Clock global variable */
  12634. #if defined(RCC_D1CFGR_HPRE)
  12635. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  12636. 8005d86: 4b0f ldr r3, [pc, #60] @ (8005dc4 <HAL_Init+0x68>)
  12637. 8005d88: 699b ldr r3, [r3, #24]
  12638. 8005d8a: f003 030f and.w r3, r3, #15
  12639. 8005d8e: 4a0e ldr r2, [pc, #56] @ (8005dc8 <HAL_Init+0x6c>)
  12640. 8005d90: 5cd3 ldrb r3, [r2, r3]
  12641. 8005d92: f003 031f and.w r3, r3, #31
  12642. 8005d96: 687a ldr r2, [r7, #4]
  12643. 8005d98: fa22 f303 lsr.w r3, r2, r3
  12644. 8005d9c: 4a0b ldr r2, [pc, #44] @ (8005dcc <HAL_Init+0x70>)
  12645. 8005d9e: 6013 str r3, [r2, #0]
  12646. #endif
  12647. #if defined(DUAL_CORE) && defined(CORE_CM4)
  12648. SystemCoreClock = SystemD2Clock;
  12649. #else
  12650. SystemCoreClock = common_system_clock;
  12651. 8005da0: 4a0b ldr r2, [pc, #44] @ (8005dd0 <HAL_Init+0x74>)
  12652. 8005da2: 687b ldr r3, [r7, #4]
  12653. 8005da4: 6013 str r3, [r2, #0]
  12654. #endif /* DUAL_CORE && CORE_CM4 */
  12655. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  12656. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  12657. 8005da6: 2005 movs r0, #5
  12658. 8005da8: f7fe fc58 bl 800465c <HAL_InitTick>
  12659. 8005dac: 4603 mov r3, r0
  12660. 8005dae: 2b00 cmp r3, #0
  12661. 8005db0: d001 beq.n 8005db6 <HAL_Init+0x5a>
  12662. {
  12663. return HAL_ERROR;
  12664. 8005db2: 2301 movs r3, #1
  12665. 8005db4: e002 b.n 8005dbc <HAL_Init+0x60>
  12666. }
  12667. /* Init the low level hardware */
  12668. HAL_MspInit();
  12669. 8005db6: f7fd ff1b bl 8003bf0 <HAL_MspInit>
  12670. /* Return function status */
  12671. return HAL_OK;
  12672. 8005dba: 2300 movs r3, #0
  12673. }
  12674. 8005dbc: 4618 mov r0, r3
  12675. 8005dbe: 3708 adds r7, #8
  12676. 8005dc0: 46bd mov sp, r7
  12677. 8005dc2: bd80 pop {r7, pc}
  12678. 8005dc4: 58024400 .word 0x58024400
  12679. 8005dc8: 080186dc .word 0x080186dc
  12680. 8005dcc: 24000038 .word 0x24000038
  12681. 8005dd0: 24000034 .word 0x24000034
  12682. 08005dd4 <HAL_IncTick>:
  12683. * @note This function is declared as __weak to be overwritten in case of other
  12684. * implementations in user file.
  12685. * @retval None
  12686. */
  12687. __weak void HAL_IncTick(void)
  12688. {
  12689. 8005dd4: b480 push {r7}
  12690. 8005dd6: af00 add r7, sp, #0
  12691. uwTick += (uint32_t)uwTickFreq;
  12692. 8005dd8: 4b06 ldr r3, [pc, #24] @ (8005df4 <HAL_IncTick+0x20>)
  12693. 8005dda: 781b ldrb r3, [r3, #0]
  12694. 8005ddc: 461a mov r2, r3
  12695. 8005dde: 4b06 ldr r3, [pc, #24] @ (8005df8 <HAL_IncTick+0x24>)
  12696. 8005de0: 681b ldr r3, [r3, #0]
  12697. 8005de2: 4413 add r3, r2
  12698. 8005de4: 4a04 ldr r2, [pc, #16] @ (8005df8 <HAL_IncTick+0x24>)
  12699. 8005de6: 6013 str r3, [r2, #0]
  12700. }
  12701. 8005de8: bf00 nop
  12702. 8005dea: 46bd mov sp, r7
  12703. 8005dec: f85d 7b04 ldr.w r7, [sp], #4
  12704. 8005df0: 4770 bx lr
  12705. 8005df2: bf00 nop
  12706. 8005df4: 24000040 .word 0x24000040
  12707. 8005df8: 24001060 .word 0x24001060
  12708. 08005dfc <HAL_GetTick>:
  12709. * @note This function is declared as __weak to be overwritten in case of other
  12710. * implementations in user file.
  12711. * @retval tick value
  12712. */
  12713. __weak uint32_t HAL_GetTick(void)
  12714. {
  12715. 8005dfc: b480 push {r7}
  12716. 8005dfe: af00 add r7, sp, #0
  12717. return uwTick;
  12718. 8005e00: 4b03 ldr r3, [pc, #12] @ (8005e10 <HAL_GetTick+0x14>)
  12719. 8005e02: 681b ldr r3, [r3, #0]
  12720. }
  12721. 8005e04: 4618 mov r0, r3
  12722. 8005e06: 46bd mov sp, r7
  12723. 8005e08: f85d 7b04 ldr.w r7, [sp], #4
  12724. 8005e0c: 4770 bx lr
  12725. 8005e0e: bf00 nop
  12726. 8005e10: 24001060 .word 0x24001060
  12727. 08005e14 <HAL_GetREVID>:
  12728. /**
  12729. * @brief Returns the device revision identifier.
  12730. * @retval Device revision identifier
  12731. */
  12732. uint32_t HAL_GetREVID(void)
  12733. {
  12734. 8005e14: b480 push {r7}
  12735. 8005e16: af00 add r7, sp, #0
  12736. return((DBGMCU->IDCODE) >> 16);
  12737. 8005e18: 4b03 ldr r3, [pc, #12] @ (8005e28 <HAL_GetREVID+0x14>)
  12738. 8005e1a: 681b ldr r3, [r3, #0]
  12739. 8005e1c: 0c1b lsrs r3, r3, #16
  12740. }
  12741. 8005e1e: 4618 mov r0, r3
  12742. 8005e20: 46bd mov sp, r7
  12743. 8005e22: f85d 7b04 ldr.w r7, [sp], #4
  12744. 8005e26: 4770 bx lr
  12745. 8005e28: 5c001000 .word 0x5c001000
  12746. 08005e2c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  12747. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  12748. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  12749. * @retval None
  12750. */
  12751. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  12752. {
  12753. 8005e2c: b480 push {r7}
  12754. 8005e2e: b083 sub sp, #12
  12755. 8005e30: af00 add r7, sp, #0
  12756. 8005e32: 6078 str r0, [r7, #4]
  12757. /* Check the parameters */
  12758. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  12759. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  12760. 8005e34: 4b06 ldr r3, [pc, #24] @ (8005e50 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12761. 8005e36: 681b ldr r3, [r3, #0]
  12762. 8005e38: f023 0202 bic.w r2, r3, #2
  12763. 8005e3c: 4904 ldr r1, [pc, #16] @ (8005e50 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12764. 8005e3e: 687b ldr r3, [r7, #4]
  12765. 8005e40: 4313 orrs r3, r2
  12766. 8005e42: 600b str r3, [r1, #0]
  12767. }
  12768. 8005e44: bf00 nop
  12769. 8005e46: 370c adds r7, #12
  12770. 8005e48: 46bd mov sp, r7
  12771. 8005e4a: f85d 7b04 ldr.w r7, [sp], #4
  12772. 8005e4e: 4770 bx lr
  12773. 8005e50: 58003c00 .word 0x58003c00
  12774. 08005e54 <HAL_SYSCFG_DisableVREFBUF>:
  12775. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  12776. *
  12777. * @retval None
  12778. */
  12779. void HAL_SYSCFG_DisableVREFBUF(void)
  12780. {
  12781. 8005e54: b480 push {r7}
  12782. 8005e56: af00 add r7, sp, #0
  12783. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  12784. 8005e58: 4b05 ldr r3, [pc, #20] @ (8005e70 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12785. 8005e5a: 681b ldr r3, [r3, #0]
  12786. 8005e5c: 4a04 ldr r2, [pc, #16] @ (8005e70 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12787. 8005e5e: f023 0301 bic.w r3, r3, #1
  12788. 8005e62: 6013 str r3, [r2, #0]
  12789. }
  12790. 8005e64: bf00 nop
  12791. 8005e66: 46bd mov sp, r7
  12792. 8005e68: f85d 7b04 ldr.w r7, [sp], #4
  12793. 8005e6c: 4770 bx lr
  12794. 8005e6e: bf00 nop
  12795. 8005e70: 58003c00 .word 0x58003c00
  12796. 08005e74 <HAL_SYSCFG_AnalogSwitchConfig>:
  12797. * @arg SYSCFG_SWITCH_PC3_CLOSE
  12798. * @retval None
  12799. */
  12800. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  12801. {
  12802. 8005e74: b480 push {r7}
  12803. 8005e76: b083 sub sp, #12
  12804. 8005e78: af00 add r7, sp, #0
  12805. 8005e7a: 6078 str r0, [r7, #4]
  12806. 8005e7c: 6039 str r1, [r7, #0]
  12807. /* Check the parameter */
  12808. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  12809. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  12810. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  12811. 8005e7e: 4b07 ldr r3, [pc, #28] @ (8005e9c <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12812. 8005e80: 685a ldr r2, [r3, #4]
  12813. 8005e82: 687b ldr r3, [r7, #4]
  12814. 8005e84: 43db mvns r3, r3
  12815. 8005e86: 401a ands r2, r3
  12816. 8005e88: 4904 ldr r1, [pc, #16] @ (8005e9c <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12817. 8005e8a: 683b ldr r3, [r7, #0]
  12818. 8005e8c: 4313 orrs r3, r2
  12819. 8005e8e: 604b str r3, [r1, #4]
  12820. }
  12821. 8005e90: bf00 nop
  12822. 8005e92: 370c adds r7, #12
  12823. 8005e94: 46bd mov sp, r7
  12824. 8005e96: f85d 7b04 ldr.w r7, [sp], #4
  12825. 8005e9a: 4770 bx lr
  12826. 8005e9c: 58000400 .word 0x58000400
  12827. 08005ea0 <LL_ADC_SetCommonClock>:
  12828. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  12829. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  12830. * @retval None
  12831. */
  12832. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  12833. {
  12834. 8005ea0: b480 push {r7}
  12835. 8005ea2: b083 sub sp, #12
  12836. 8005ea4: af00 add r7, sp, #0
  12837. 8005ea6: 6078 str r0, [r7, #4]
  12838. 8005ea8: 6039 str r1, [r7, #0]
  12839. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  12840. 8005eaa: 687b ldr r3, [r7, #4]
  12841. 8005eac: 689b ldr r3, [r3, #8]
  12842. 8005eae: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  12843. 8005eb2: 683b ldr r3, [r7, #0]
  12844. 8005eb4: 431a orrs r2, r3
  12845. 8005eb6: 687b ldr r3, [r7, #4]
  12846. 8005eb8: 609a str r2, [r3, #8]
  12847. }
  12848. 8005eba: bf00 nop
  12849. 8005ebc: 370c adds r7, #12
  12850. 8005ebe: 46bd mov sp, r7
  12851. 8005ec0: f85d 7b04 ldr.w r7, [sp], #4
  12852. 8005ec4: 4770 bx lr
  12853. 08005ec6 <LL_ADC_SetCommonPathInternalCh>:
  12854. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12855. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12856. * @retval None
  12857. */
  12858. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  12859. {
  12860. 8005ec6: b480 push {r7}
  12861. 8005ec8: b083 sub sp, #12
  12862. 8005eca: af00 add r7, sp, #0
  12863. 8005ecc: 6078 str r0, [r7, #4]
  12864. 8005ece: 6039 str r1, [r7, #0]
  12865. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  12866. 8005ed0: 687b ldr r3, [r7, #4]
  12867. 8005ed2: 689b ldr r3, [r3, #8]
  12868. 8005ed4: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  12869. 8005ed8: 683b ldr r3, [r7, #0]
  12870. 8005eda: 431a orrs r2, r3
  12871. 8005edc: 687b ldr r3, [r7, #4]
  12872. 8005ede: 609a str r2, [r3, #8]
  12873. }
  12874. 8005ee0: bf00 nop
  12875. 8005ee2: 370c adds r7, #12
  12876. 8005ee4: 46bd mov sp, r7
  12877. 8005ee6: f85d 7b04 ldr.w r7, [sp], #4
  12878. 8005eea: 4770 bx lr
  12879. 08005eec <LL_ADC_GetCommonPathInternalCh>:
  12880. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  12881. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12882. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12883. */
  12884. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  12885. {
  12886. 8005eec: b480 push {r7}
  12887. 8005eee: b083 sub sp, #12
  12888. 8005ef0: af00 add r7, sp, #0
  12889. 8005ef2: 6078 str r0, [r7, #4]
  12890. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  12891. 8005ef4: 687b ldr r3, [r7, #4]
  12892. 8005ef6: 689b ldr r3, [r3, #8]
  12893. 8005ef8: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  12894. }
  12895. 8005efc: 4618 mov r0, r3
  12896. 8005efe: 370c adds r7, #12
  12897. 8005f00: 46bd mov sp, r7
  12898. 8005f02: f85d 7b04 ldr.w r7, [sp], #4
  12899. 8005f06: 4770 bx lr
  12900. 08005f08 <LL_ADC_SetOffset>:
  12901. * Other channels are slow channels (conversion rate: refer to reference manual).
  12902. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  12903. * @retval None
  12904. */
  12905. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  12906. {
  12907. 8005f08: b480 push {r7}
  12908. 8005f0a: b087 sub sp, #28
  12909. 8005f0c: af00 add r7, sp, #0
  12910. 8005f0e: 60f8 str r0, [r7, #12]
  12911. 8005f10: 60b9 str r1, [r7, #8]
  12912. 8005f12: 607a str r2, [r7, #4]
  12913. 8005f14: 603b str r3, [r7, #0]
  12914. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12915. 8005f16: 68fb ldr r3, [r7, #12]
  12916. 8005f18: 3360 adds r3, #96 @ 0x60
  12917. 8005f1a: 461a mov r2, r3
  12918. 8005f1c: 68bb ldr r3, [r7, #8]
  12919. 8005f1e: 009b lsls r3, r3, #2
  12920. 8005f20: 4413 add r3, r2
  12921. 8005f22: 617b str r3, [r7, #20]
  12922. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12923. }
  12924. else
  12925. #endif /* ADC_VER_V5_V90 */
  12926. {
  12927. MODIFY_REG(*preg,
  12928. 8005f24: 697b ldr r3, [r7, #20]
  12929. 8005f26: 681b ldr r3, [r3, #0]
  12930. 8005f28: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  12931. 8005f2c: 687b ldr r3, [r7, #4]
  12932. 8005f2e: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  12933. 8005f32: 683b ldr r3, [r7, #0]
  12934. 8005f34: 430b orrs r3, r1
  12935. 8005f36: 431a orrs r2, r3
  12936. 8005f38: 697b ldr r3, [r7, #20]
  12937. 8005f3a: 601a str r2, [r3, #0]
  12938. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  12939. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12940. }
  12941. }
  12942. 8005f3c: bf00 nop
  12943. 8005f3e: 371c adds r7, #28
  12944. 8005f40: 46bd mov sp, r7
  12945. 8005f42: f85d 7b04 ldr.w r7, [sp], #4
  12946. 8005f46: 4770 bx lr
  12947. 08005f48 <LL_ADC_SetDataRightShift>:
  12948. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  12949. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  12950. * @retval Returned None
  12951. */
  12952. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  12953. {
  12954. 8005f48: b480 push {r7}
  12955. 8005f4a: b085 sub sp, #20
  12956. 8005f4c: af00 add r7, sp, #0
  12957. 8005f4e: 60f8 str r0, [r7, #12]
  12958. 8005f50: 60b9 str r1, [r7, #8]
  12959. 8005f52: 607a str r2, [r7, #4]
  12960. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  12961. 8005f54: 68fb ldr r3, [r7, #12]
  12962. 8005f56: 691b ldr r3, [r3, #16]
  12963. 8005f58: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  12964. 8005f5c: 68bb ldr r3, [r7, #8]
  12965. 8005f5e: f003 031f and.w r3, r3, #31
  12966. 8005f62: 6879 ldr r1, [r7, #4]
  12967. 8005f64: fa01 f303 lsl.w r3, r1, r3
  12968. 8005f68: 431a orrs r2, r3
  12969. 8005f6a: 68fb ldr r3, [r7, #12]
  12970. 8005f6c: 611a str r2, [r3, #16]
  12971. }
  12972. 8005f6e: bf00 nop
  12973. 8005f70: 3714 adds r7, #20
  12974. 8005f72: 46bd mov sp, r7
  12975. 8005f74: f85d 7b04 ldr.w r7, [sp], #4
  12976. 8005f78: 4770 bx lr
  12977. 08005f7a <LL_ADC_SetOffsetSignedSaturation>:
  12978. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  12979. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  12980. * @retval Returned None
  12981. */
  12982. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  12983. {
  12984. 8005f7a: b480 push {r7}
  12985. 8005f7c: b087 sub sp, #28
  12986. 8005f7e: af00 add r7, sp, #0
  12987. 8005f80: 60f8 str r0, [r7, #12]
  12988. 8005f82: 60b9 str r1, [r7, #8]
  12989. 8005f84: 607a str r2, [r7, #4]
  12990. /* Function not available on this instance */
  12991. }
  12992. else
  12993. #endif /* ADC_VER_V5_V90 */
  12994. {
  12995. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12996. 8005f86: 68fb ldr r3, [r7, #12]
  12997. 8005f88: 3360 adds r3, #96 @ 0x60
  12998. 8005f8a: 461a mov r2, r3
  12999. 8005f8c: 68bb ldr r3, [r7, #8]
  13000. 8005f8e: 009b lsls r3, r3, #2
  13001. 8005f90: 4413 add r3, r2
  13002. 8005f92: 617b str r3, [r7, #20]
  13003. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  13004. 8005f94: 697b ldr r3, [r7, #20]
  13005. 8005f96: 681b ldr r3, [r3, #0]
  13006. 8005f98: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  13007. 8005f9c: 687b ldr r3, [r7, #4]
  13008. 8005f9e: 431a orrs r2, r3
  13009. 8005fa0: 697b ldr r3, [r7, #20]
  13010. 8005fa2: 601a str r2, [r3, #0]
  13011. }
  13012. }
  13013. 8005fa4: bf00 nop
  13014. 8005fa6: 371c adds r7, #28
  13015. 8005fa8: 46bd mov sp, r7
  13016. 8005faa: f85d 7b04 ldr.w r7, [sp], #4
  13017. 8005fae: 4770 bx lr
  13018. 08005fb0 <LL_ADC_REG_IsTriggerSourceSWStart>:
  13019. * @param ADCx ADC instance
  13020. * @retval Value "0" if trigger source external trigger
  13021. * Value "1" if trigger source SW start.
  13022. */
  13023. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  13024. {
  13025. 8005fb0: b480 push {r7}
  13026. 8005fb2: b083 sub sp, #12
  13027. 8005fb4: af00 add r7, sp, #0
  13028. 8005fb6: 6078 str r0, [r7, #4]
  13029. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  13030. 8005fb8: 687b ldr r3, [r7, #4]
  13031. 8005fba: 68db ldr r3, [r3, #12]
  13032. 8005fbc: f403 6340 and.w r3, r3, #3072 @ 0xc00
  13033. 8005fc0: 2b00 cmp r3, #0
  13034. 8005fc2: d101 bne.n 8005fc8 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  13035. 8005fc4: 2301 movs r3, #1
  13036. 8005fc6: e000 b.n 8005fca <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  13037. 8005fc8: 2300 movs r3, #0
  13038. }
  13039. 8005fca: 4618 mov r0, r3
  13040. 8005fcc: 370c adds r7, #12
  13041. 8005fce: 46bd mov sp, r7
  13042. 8005fd0: f85d 7b04 ldr.w r7, [sp], #4
  13043. 8005fd4: 4770 bx lr
  13044. 08005fd6 <LL_ADC_REG_SetSequencerRanks>:
  13045. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  13046. * Other channels are slow channels (conversion rate: refer to reference manual).
  13047. * @retval None
  13048. */
  13049. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  13050. {
  13051. 8005fd6: b480 push {r7}
  13052. 8005fd8: b087 sub sp, #28
  13053. 8005fda: af00 add r7, sp, #0
  13054. 8005fdc: 60f8 str r0, [r7, #12]
  13055. 8005fde: 60b9 str r1, [r7, #8]
  13056. 8005fe0: 607a str r2, [r7, #4]
  13057. /* Set bits with content of parameter "Channel" with bits position */
  13058. /* in register and register position depending on parameter "Rank". */
  13059. /* Parameters "Rank" and "Channel" are used with masks because containing */
  13060. /* other bits reserved for other purpose. */
  13061. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  13062. 8005fe2: 68fb ldr r3, [r7, #12]
  13063. 8005fe4: 3330 adds r3, #48 @ 0x30
  13064. 8005fe6: 461a mov r2, r3
  13065. 8005fe8: 68bb ldr r3, [r7, #8]
  13066. 8005fea: 0a1b lsrs r3, r3, #8
  13067. 8005fec: 009b lsls r3, r3, #2
  13068. 8005fee: f003 030c and.w r3, r3, #12
  13069. 8005ff2: 4413 add r3, r2
  13070. 8005ff4: 617b str r3, [r7, #20]
  13071. MODIFY_REG(*preg,
  13072. 8005ff6: 697b ldr r3, [r7, #20]
  13073. 8005ff8: 681a ldr r2, [r3, #0]
  13074. 8005ffa: 68bb ldr r3, [r7, #8]
  13075. 8005ffc: f003 031f and.w r3, r3, #31
  13076. 8006000: 211f movs r1, #31
  13077. 8006002: fa01 f303 lsl.w r3, r1, r3
  13078. 8006006: 43db mvns r3, r3
  13079. 8006008: 401a ands r2, r3
  13080. 800600a: 687b ldr r3, [r7, #4]
  13081. 800600c: 0e9b lsrs r3, r3, #26
  13082. 800600e: f003 011f and.w r1, r3, #31
  13083. 8006012: 68bb ldr r3, [r7, #8]
  13084. 8006014: f003 031f and.w r3, r3, #31
  13085. 8006018: fa01 f303 lsl.w r3, r1, r3
  13086. 800601c: 431a orrs r2, r3
  13087. 800601e: 697b ldr r3, [r7, #20]
  13088. 8006020: 601a str r2, [r3, #0]
  13089. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  13090. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  13091. }
  13092. 8006022: bf00 nop
  13093. 8006024: 371c adds r7, #28
  13094. 8006026: 46bd mov sp, r7
  13095. 8006028: f85d 7b04 ldr.w r7, [sp], #4
  13096. 800602c: 4770 bx lr
  13097. 0800602e <LL_ADC_REG_SetDataTransferMode>:
  13098. * @param ADCx ADC instance
  13099. * @param DataTransferMode Select Data Management configuration
  13100. * @retval None
  13101. */
  13102. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  13103. {
  13104. 800602e: b480 push {r7}
  13105. 8006030: b083 sub sp, #12
  13106. 8006032: af00 add r7, sp, #0
  13107. 8006034: 6078 str r0, [r7, #4]
  13108. 8006036: 6039 str r1, [r7, #0]
  13109. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  13110. 8006038: 687b ldr r3, [r7, #4]
  13111. 800603a: 68db ldr r3, [r3, #12]
  13112. 800603c: f023 0203 bic.w r2, r3, #3
  13113. 8006040: 683b ldr r3, [r7, #0]
  13114. 8006042: 431a orrs r2, r3
  13115. 8006044: 687b ldr r3, [r7, #4]
  13116. 8006046: 60da str r2, [r3, #12]
  13117. }
  13118. 8006048: bf00 nop
  13119. 800604a: 370c adds r7, #12
  13120. 800604c: 46bd mov sp, r7
  13121. 800604e: f85d 7b04 ldr.w r7, [sp], #4
  13122. 8006052: 4770 bx lr
  13123. 08006054 <LL_ADC_SetChannelSamplingTime>:
  13124. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  13125. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  13126. * @retval None
  13127. */
  13128. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  13129. {
  13130. 8006054: b480 push {r7}
  13131. 8006056: b087 sub sp, #28
  13132. 8006058: af00 add r7, sp, #0
  13133. 800605a: 60f8 str r0, [r7, #12]
  13134. 800605c: 60b9 str r1, [r7, #8]
  13135. 800605e: 607a str r2, [r7, #4]
  13136. /* Set bits with content of parameter "SamplingTime" with bits position */
  13137. /* in register and register position depending on parameter "Channel". */
  13138. /* Parameter "Channel" is used with masks because containing */
  13139. /* other bits reserved for other purpose. */
  13140. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  13141. 8006060: 68fb ldr r3, [r7, #12]
  13142. 8006062: 3314 adds r3, #20
  13143. 8006064: 461a mov r2, r3
  13144. 8006066: 68bb ldr r3, [r7, #8]
  13145. 8006068: 0e5b lsrs r3, r3, #25
  13146. 800606a: 009b lsls r3, r3, #2
  13147. 800606c: f003 0304 and.w r3, r3, #4
  13148. 8006070: 4413 add r3, r2
  13149. 8006072: 617b str r3, [r7, #20]
  13150. MODIFY_REG(*preg,
  13151. 8006074: 697b ldr r3, [r7, #20]
  13152. 8006076: 681a ldr r2, [r3, #0]
  13153. 8006078: 68bb ldr r3, [r7, #8]
  13154. 800607a: 0d1b lsrs r3, r3, #20
  13155. 800607c: f003 031f and.w r3, r3, #31
  13156. 8006080: 2107 movs r1, #7
  13157. 8006082: fa01 f303 lsl.w r3, r1, r3
  13158. 8006086: 43db mvns r3, r3
  13159. 8006088: 401a ands r2, r3
  13160. 800608a: 68bb ldr r3, [r7, #8]
  13161. 800608c: 0d1b lsrs r3, r3, #20
  13162. 800608e: f003 031f and.w r3, r3, #31
  13163. 8006092: 6879 ldr r1, [r7, #4]
  13164. 8006094: fa01 f303 lsl.w r3, r1, r3
  13165. 8006098: 431a orrs r2, r3
  13166. 800609a: 697b ldr r3, [r7, #20]
  13167. 800609c: 601a str r2, [r3, #0]
  13168. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  13169. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  13170. }
  13171. 800609e: bf00 nop
  13172. 80060a0: 371c adds r7, #28
  13173. 80060a2: 46bd mov sp, r7
  13174. 80060a4: f85d 7b04 ldr.w r7, [sp], #4
  13175. 80060a8: 4770 bx lr
  13176. ...
  13177. 080060ac <LL_ADC_SetChannelSingleDiff>:
  13178. * @arg @ref LL_ADC_SINGLE_ENDED
  13179. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  13180. * @retval None
  13181. */
  13182. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  13183. {
  13184. 80060ac: b480 push {r7}
  13185. 80060ae: b085 sub sp, #20
  13186. 80060b0: af00 add r7, sp, #0
  13187. 80060b2: 60f8 str r0, [r7, #12]
  13188. 80060b4: 60b9 str r1, [r7, #8]
  13189. 80060b6: 607a str r2, [r7, #4]
  13190. }
  13191. #else /* ADC_VER_V5_V90 */
  13192. /* Bits of channels in single or differential mode are set only for */
  13193. /* differential mode (for single mode, mask of bits allowed to be set is */
  13194. /* shifted out of range of bits of channels in single or differential mode. */
  13195. MODIFY_REG(ADCx->DIFSEL,
  13196. 80060b8: 68fb ldr r3, [r7, #12]
  13197. 80060ba: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  13198. 80060be: 68bb ldr r3, [r7, #8]
  13199. 80060c0: f3c3 0313 ubfx r3, r3, #0, #20
  13200. 80060c4: 43db mvns r3, r3
  13201. 80060c6: 401a ands r2, r3
  13202. 80060c8: 687b ldr r3, [r7, #4]
  13203. 80060ca: f003 0318 and.w r3, r3, #24
  13204. 80060ce: 4908 ldr r1, [pc, #32] @ (80060f0 <LL_ADC_SetChannelSingleDiff+0x44>)
  13205. 80060d0: 40d9 lsrs r1, r3
  13206. 80060d2: 68bb ldr r3, [r7, #8]
  13207. 80060d4: 400b ands r3, r1
  13208. 80060d6: f3c3 0313 ubfx r3, r3, #0, #20
  13209. 80060da: 431a orrs r2, r3
  13210. 80060dc: 68fb ldr r3, [r7, #12]
  13211. 80060de: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  13212. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  13213. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  13214. #endif /* ADC_VER_V5_V90 */
  13215. }
  13216. 80060e2: bf00 nop
  13217. 80060e4: 3714 adds r7, #20
  13218. 80060e6: 46bd mov sp, r7
  13219. 80060e8: f85d 7b04 ldr.w r7, [sp], #4
  13220. 80060ec: 4770 bx lr
  13221. 80060ee: bf00 nop
  13222. 80060f0: 000fffff .word 0x000fffff
  13223. 080060f4 <LL_ADC_GetMultimode>:
  13224. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  13225. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  13226. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  13227. */
  13228. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  13229. {
  13230. 80060f4: b480 push {r7}
  13231. 80060f6: b083 sub sp, #12
  13232. 80060f8: af00 add r7, sp, #0
  13233. 80060fa: 6078 str r0, [r7, #4]
  13234. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  13235. 80060fc: 687b ldr r3, [r7, #4]
  13236. 80060fe: 689b ldr r3, [r3, #8]
  13237. 8006100: f003 031f and.w r3, r3, #31
  13238. }
  13239. 8006104: 4618 mov r0, r3
  13240. 8006106: 370c adds r7, #12
  13241. 8006108: 46bd mov sp, r7
  13242. 800610a: f85d 7b04 ldr.w r7, [sp], #4
  13243. 800610e: 4770 bx lr
  13244. 08006110 <LL_ADC_DisableDeepPowerDown>:
  13245. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  13246. * @param ADCx ADC instance
  13247. * @retval None
  13248. */
  13249. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  13250. {
  13251. 8006110: b480 push {r7}
  13252. 8006112: b083 sub sp, #12
  13253. 8006114: af00 add r7, sp, #0
  13254. 8006116: 6078 str r0, [r7, #4]
  13255. /* Note: Write register with some additional bits forced to state reset */
  13256. /* instead of modifying only the selected bit for this function, */
  13257. /* to not interfere with bits with HW property "rs". */
  13258. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  13259. 8006118: 687b ldr r3, [r7, #4]
  13260. 800611a: 689a ldr r2, [r3, #8]
  13261. 800611c: 4b04 ldr r3, [pc, #16] @ (8006130 <LL_ADC_DisableDeepPowerDown+0x20>)
  13262. 800611e: 4013 ands r3, r2
  13263. 8006120: 687a ldr r2, [r7, #4]
  13264. 8006122: 6093 str r3, [r2, #8]
  13265. }
  13266. 8006124: bf00 nop
  13267. 8006126: 370c adds r7, #12
  13268. 8006128: 46bd mov sp, r7
  13269. 800612a: f85d 7b04 ldr.w r7, [sp], #4
  13270. 800612e: 4770 bx lr
  13271. 8006130: 5fffffc0 .word 0x5fffffc0
  13272. 08006134 <LL_ADC_IsDeepPowerDownEnabled>:
  13273. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  13274. * @param ADCx ADC instance
  13275. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  13276. */
  13277. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  13278. {
  13279. 8006134: b480 push {r7}
  13280. 8006136: b083 sub sp, #12
  13281. 8006138: af00 add r7, sp, #0
  13282. 800613a: 6078 str r0, [r7, #4]
  13283. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  13284. 800613c: 687b ldr r3, [r7, #4]
  13285. 800613e: 689b ldr r3, [r3, #8]
  13286. 8006140: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  13287. 8006144: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  13288. 8006148: d101 bne.n 800614e <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  13289. 800614a: 2301 movs r3, #1
  13290. 800614c: e000 b.n 8006150 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  13291. 800614e: 2300 movs r3, #0
  13292. }
  13293. 8006150: 4618 mov r0, r3
  13294. 8006152: 370c adds r7, #12
  13295. 8006154: 46bd mov sp, r7
  13296. 8006156: f85d 7b04 ldr.w r7, [sp], #4
  13297. 800615a: 4770 bx lr
  13298. 0800615c <LL_ADC_EnableInternalRegulator>:
  13299. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  13300. * @param ADCx ADC instance
  13301. * @retval None
  13302. */
  13303. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  13304. {
  13305. 800615c: b480 push {r7}
  13306. 800615e: b083 sub sp, #12
  13307. 8006160: af00 add r7, sp, #0
  13308. 8006162: 6078 str r0, [r7, #4]
  13309. /* Note: Write register with some additional bits forced to state reset */
  13310. /* instead of modifying only the selected bit for this function, */
  13311. /* to not interfere with bits with HW property "rs". */
  13312. MODIFY_REG(ADCx->CR,
  13313. 8006164: 687b ldr r3, [r7, #4]
  13314. 8006166: 689a ldr r2, [r3, #8]
  13315. 8006168: 4b05 ldr r3, [pc, #20] @ (8006180 <LL_ADC_EnableInternalRegulator+0x24>)
  13316. 800616a: 4013 ands r3, r2
  13317. 800616c: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  13318. 8006170: 687b ldr r3, [r7, #4]
  13319. 8006172: 609a str r2, [r3, #8]
  13320. ADC_CR_BITS_PROPERTY_RS,
  13321. ADC_CR_ADVREGEN);
  13322. }
  13323. 8006174: bf00 nop
  13324. 8006176: 370c adds r7, #12
  13325. 8006178: 46bd mov sp, r7
  13326. 800617a: f85d 7b04 ldr.w r7, [sp], #4
  13327. 800617e: 4770 bx lr
  13328. 8006180: 6fffffc0 .word 0x6fffffc0
  13329. 08006184 <LL_ADC_IsInternalRegulatorEnabled>:
  13330. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  13331. * @param ADCx ADC instance
  13332. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  13333. */
  13334. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  13335. {
  13336. 8006184: b480 push {r7}
  13337. 8006186: b083 sub sp, #12
  13338. 8006188: af00 add r7, sp, #0
  13339. 800618a: 6078 str r0, [r7, #4]
  13340. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  13341. 800618c: 687b ldr r3, [r7, #4]
  13342. 800618e: 689b ldr r3, [r3, #8]
  13343. 8006190: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  13344. 8006194: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13345. 8006198: d101 bne.n 800619e <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  13346. 800619a: 2301 movs r3, #1
  13347. 800619c: e000 b.n 80061a0 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  13348. 800619e: 2300 movs r3, #0
  13349. }
  13350. 80061a0: 4618 mov r0, r3
  13351. 80061a2: 370c adds r7, #12
  13352. 80061a4: 46bd mov sp, r7
  13353. 80061a6: f85d 7b04 ldr.w r7, [sp], #4
  13354. 80061aa: 4770 bx lr
  13355. 080061ac <LL_ADC_Enable>:
  13356. * @rmtoll CR ADEN LL_ADC_Enable
  13357. * @param ADCx ADC instance
  13358. * @retval None
  13359. */
  13360. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  13361. {
  13362. 80061ac: b480 push {r7}
  13363. 80061ae: b083 sub sp, #12
  13364. 80061b0: af00 add r7, sp, #0
  13365. 80061b2: 6078 str r0, [r7, #4]
  13366. /* Note: Write register with some additional bits forced to state reset */
  13367. /* instead of modifying only the selected bit for this function, */
  13368. /* to not interfere with bits with HW property "rs". */
  13369. MODIFY_REG(ADCx->CR,
  13370. 80061b4: 687b ldr r3, [r7, #4]
  13371. 80061b6: 689a ldr r2, [r3, #8]
  13372. 80061b8: 4b05 ldr r3, [pc, #20] @ (80061d0 <LL_ADC_Enable+0x24>)
  13373. 80061ba: 4013 ands r3, r2
  13374. 80061bc: f043 0201 orr.w r2, r3, #1
  13375. 80061c0: 687b ldr r3, [r7, #4]
  13376. 80061c2: 609a str r2, [r3, #8]
  13377. ADC_CR_BITS_PROPERTY_RS,
  13378. ADC_CR_ADEN);
  13379. }
  13380. 80061c4: bf00 nop
  13381. 80061c6: 370c adds r7, #12
  13382. 80061c8: 46bd mov sp, r7
  13383. 80061ca: f85d 7b04 ldr.w r7, [sp], #4
  13384. 80061ce: 4770 bx lr
  13385. 80061d0: 7fffffc0 .word 0x7fffffc0
  13386. 080061d4 <LL_ADC_Disable>:
  13387. * @rmtoll CR ADDIS LL_ADC_Disable
  13388. * @param ADCx ADC instance
  13389. * @retval None
  13390. */
  13391. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  13392. {
  13393. 80061d4: b480 push {r7}
  13394. 80061d6: b083 sub sp, #12
  13395. 80061d8: af00 add r7, sp, #0
  13396. 80061da: 6078 str r0, [r7, #4]
  13397. /* Note: Write register with some additional bits forced to state reset */
  13398. /* instead of modifying only the selected bit for this function, */
  13399. /* to not interfere with bits with HW property "rs". */
  13400. MODIFY_REG(ADCx->CR,
  13401. 80061dc: 687b ldr r3, [r7, #4]
  13402. 80061de: 689a ldr r2, [r3, #8]
  13403. 80061e0: 4b05 ldr r3, [pc, #20] @ (80061f8 <LL_ADC_Disable+0x24>)
  13404. 80061e2: 4013 ands r3, r2
  13405. 80061e4: f043 0202 orr.w r2, r3, #2
  13406. 80061e8: 687b ldr r3, [r7, #4]
  13407. 80061ea: 609a str r2, [r3, #8]
  13408. ADC_CR_BITS_PROPERTY_RS,
  13409. ADC_CR_ADDIS);
  13410. }
  13411. 80061ec: bf00 nop
  13412. 80061ee: 370c adds r7, #12
  13413. 80061f0: 46bd mov sp, r7
  13414. 80061f2: f85d 7b04 ldr.w r7, [sp], #4
  13415. 80061f6: 4770 bx lr
  13416. 80061f8: 7fffffc0 .word 0x7fffffc0
  13417. 080061fc <LL_ADC_IsEnabled>:
  13418. * @rmtoll CR ADEN LL_ADC_IsEnabled
  13419. * @param ADCx ADC instance
  13420. * @retval 0: ADC is disabled, 1: ADC is enabled.
  13421. */
  13422. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  13423. {
  13424. 80061fc: b480 push {r7}
  13425. 80061fe: b083 sub sp, #12
  13426. 8006200: af00 add r7, sp, #0
  13427. 8006202: 6078 str r0, [r7, #4]
  13428. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  13429. 8006204: 687b ldr r3, [r7, #4]
  13430. 8006206: 689b ldr r3, [r3, #8]
  13431. 8006208: f003 0301 and.w r3, r3, #1
  13432. 800620c: 2b01 cmp r3, #1
  13433. 800620e: d101 bne.n 8006214 <LL_ADC_IsEnabled+0x18>
  13434. 8006210: 2301 movs r3, #1
  13435. 8006212: e000 b.n 8006216 <LL_ADC_IsEnabled+0x1a>
  13436. 8006214: 2300 movs r3, #0
  13437. }
  13438. 8006216: 4618 mov r0, r3
  13439. 8006218: 370c adds r7, #12
  13440. 800621a: 46bd mov sp, r7
  13441. 800621c: f85d 7b04 ldr.w r7, [sp], #4
  13442. 8006220: 4770 bx lr
  13443. 08006222 <LL_ADC_IsDisableOngoing>:
  13444. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  13445. * @param ADCx ADC instance
  13446. * @retval 0: no ADC disable command on going.
  13447. */
  13448. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  13449. {
  13450. 8006222: b480 push {r7}
  13451. 8006224: b083 sub sp, #12
  13452. 8006226: af00 add r7, sp, #0
  13453. 8006228: 6078 str r0, [r7, #4]
  13454. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  13455. 800622a: 687b ldr r3, [r7, #4]
  13456. 800622c: 689b ldr r3, [r3, #8]
  13457. 800622e: f003 0302 and.w r3, r3, #2
  13458. 8006232: 2b02 cmp r3, #2
  13459. 8006234: d101 bne.n 800623a <LL_ADC_IsDisableOngoing+0x18>
  13460. 8006236: 2301 movs r3, #1
  13461. 8006238: e000 b.n 800623c <LL_ADC_IsDisableOngoing+0x1a>
  13462. 800623a: 2300 movs r3, #0
  13463. }
  13464. 800623c: 4618 mov r0, r3
  13465. 800623e: 370c adds r7, #12
  13466. 8006240: 46bd mov sp, r7
  13467. 8006242: f85d 7b04 ldr.w r7, [sp], #4
  13468. 8006246: 4770 bx lr
  13469. 08006248 <LL_ADC_REG_StartConversion>:
  13470. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  13471. * @param ADCx ADC instance
  13472. * @retval None
  13473. */
  13474. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  13475. {
  13476. 8006248: b480 push {r7}
  13477. 800624a: b083 sub sp, #12
  13478. 800624c: af00 add r7, sp, #0
  13479. 800624e: 6078 str r0, [r7, #4]
  13480. /* Note: Write register with some additional bits forced to state reset */
  13481. /* instead of modifying only the selected bit for this function, */
  13482. /* to not interfere with bits with HW property "rs". */
  13483. MODIFY_REG(ADCx->CR,
  13484. 8006250: 687b ldr r3, [r7, #4]
  13485. 8006252: 689a ldr r2, [r3, #8]
  13486. 8006254: 4b05 ldr r3, [pc, #20] @ (800626c <LL_ADC_REG_StartConversion+0x24>)
  13487. 8006256: 4013 ands r3, r2
  13488. 8006258: f043 0204 orr.w r2, r3, #4
  13489. 800625c: 687b ldr r3, [r7, #4]
  13490. 800625e: 609a str r2, [r3, #8]
  13491. ADC_CR_BITS_PROPERTY_RS,
  13492. ADC_CR_ADSTART);
  13493. }
  13494. 8006260: bf00 nop
  13495. 8006262: 370c adds r7, #12
  13496. 8006264: 46bd mov sp, r7
  13497. 8006266: f85d 7b04 ldr.w r7, [sp], #4
  13498. 800626a: 4770 bx lr
  13499. 800626c: 7fffffc0 .word 0x7fffffc0
  13500. 08006270 <LL_ADC_REG_IsConversionOngoing>:
  13501. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  13502. * @param ADCx ADC instance
  13503. * @retval 0: no conversion is on going on ADC group regular.
  13504. */
  13505. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  13506. {
  13507. 8006270: b480 push {r7}
  13508. 8006272: b083 sub sp, #12
  13509. 8006274: af00 add r7, sp, #0
  13510. 8006276: 6078 str r0, [r7, #4]
  13511. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  13512. 8006278: 687b ldr r3, [r7, #4]
  13513. 800627a: 689b ldr r3, [r3, #8]
  13514. 800627c: f003 0304 and.w r3, r3, #4
  13515. 8006280: 2b04 cmp r3, #4
  13516. 8006282: d101 bne.n 8006288 <LL_ADC_REG_IsConversionOngoing+0x18>
  13517. 8006284: 2301 movs r3, #1
  13518. 8006286: e000 b.n 800628a <LL_ADC_REG_IsConversionOngoing+0x1a>
  13519. 8006288: 2300 movs r3, #0
  13520. }
  13521. 800628a: 4618 mov r0, r3
  13522. 800628c: 370c adds r7, #12
  13523. 800628e: 46bd mov sp, r7
  13524. 8006290: f85d 7b04 ldr.w r7, [sp], #4
  13525. 8006294: 4770 bx lr
  13526. 08006296 <LL_ADC_INJ_IsConversionOngoing>:
  13527. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  13528. * @param ADCx ADC instance
  13529. * @retval 0: no conversion is on going on ADC group injected.
  13530. */
  13531. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  13532. {
  13533. 8006296: b480 push {r7}
  13534. 8006298: b083 sub sp, #12
  13535. 800629a: af00 add r7, sp, #0
  13536. 800629c: 6078 str r0, [r7, #4]
  13537. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  13538. 800629e: 687b ldr r3, [r7, #4]
  13539. 80062a0: 689b ldr r3, [r3, #8]
  13540. 80062a2: f003 0308 and.w r3, r3, #8
  13541. 80062a6: 2b08 cmp r3, #8
  13542. 80062a8: d101 bne.n 80062ae <LL_ADC_INJ_IsConversionOngoing+0x18>
  13543. 80062aa: 2301 movs r3, #1
  13544. 80062ac: e000 b.n 80062b0 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  13545. 80062ae: 2300 movs r3, #0
  13546. }
  13547. 80062b0: 4618 mov r0, r3
  13548. 80062b2: 370c adds r7, #12
  13549. 80062b4: 46bd mov sp, r7
  13550. 80062b6: f85d 7b04 ldr.w r7, [sp], #4
  13551. 80062ba: 4770 bx lr
  13552. 080062bc <HAL_ADC_Init>:
  13553. * without disabling the other ADCs.
  13554. * @param hadc ADC handle
  13555. * @retval HAL status
  13556. */
  13557. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  13558. {
  13559. 80062bc: b590 push {r4, r7, lr}
  13560. 80062be: b089 sub sp, #36 @ 0x24
  13561. 80062c0: af00 add r7, sp, #0
  13562. 80062c2: 6078 str r0, [r7, #4]
  13563. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13564. 80062c4: 2300 movs r3, #0
  13565. 80062c6: 77fb strb r3, [r7, #31]
  13566. uint32_t tmpCFGR;
  13567. uint32_t tmp_adc_reg_is_conversion_on_going;
  13568. __IO uint32_t wait_loop_index = 0UL;
  13569. 80062c8: 2300 movs r3, #0
  13570. 80062ca: 60bb str r3, [r7, #8]
  13571. uint32_t tmp_adc_is_conversion_on_going_regular;
  13572. uint32_t tmp_adc_is_conversion_on_going_injected;
  13573. /* Check ADC handle */
  13574. if (hadc == NULL)
  13575. 80062cc: 687b ldr r3, [r7, #4]
  13576. 80062ce: 2b00 cmp r3, #0
  13577. 80062d0: d101 bne.n 80062d6 <HAL_ADC_Init+0x1a>
  13578. {
  13579. return HAL_ERROR;
  13580. 80062d2: 2301 movs r3, #1
  13581. 80062d4: e18f b.n 80065f6 <HAL_ADC_Init+0x33a>
  13582. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  13583. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  13584. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  13585. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  13586. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  13587. 80062d6: 687b ldr r3, [r7, #4]
  13588. 80062d8: 68db ldr r3, [r3, #12]
  13589. 80062da: 2b00 cmp r3, #0
  13590. /* DISCEN and CONT bits cannot be set at the same time */
  13591. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  13592. /* Actions performed only if ADC is coming from state reset: */
  13593. /* - Initialization of ADC MSP */
  13594. if (hadc->State == HAL_ADC_STATE_RESET)
  13595. 80062dc: 687b ldr r3, [r7, #4]
  13596. 80062de: 6d5b ldr r3, [r3, #84] @ 0x54
  13597. 80062e0: 2b00 cmp r3, #0
  13598. 80062e2: d109 bne.n 80062f8 <HAL_ADC_Init+0x3c>
  13599. /* Init the low level hardware */
  13600. hadc->MspInitCallback(hadc);
  13601. #else
  13602. /* Init the low level hardware */
  13603. HAL_ADC_MspInit(hadc);
  13604. 80062e4: 6878 ldr r0, [r7, #4]
  13605. 80062e6: f7fd fcdf bl 8003ca8 <HAL_ADC_MspInit>
  13606. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  13607. /* Set ADC error code to none */
  13608. ADC_CLEAR_ERRORCODE(hadc);
  13609. 80062ea: 687b ldr r3, [r7, #4]
  13610. 80062ec: 2200 movs r2, #0
  13611. 80062ee: 659a str r2, [r3, #88] @ 0x58
  13612. /* Initialize Lock */
  13613. hadc->Lock = HAL_UNLOCKED;
  13614. 80062f0: 687b ldr r3, [r7, #4]
  13615. 80062f2: 2200 movs r2, #0
  13616. 80062f4: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13617. }
  13618. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  13619. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  13620. 80062f8: 687b ldr r3, [r7, #4]
  13621. 80062fa: 681b ldr r3, [r3, #0]
  13622. 80062fc: 4618 mov r0, r3
  13623. 80062fe: f7ff ff19 bl 8006134 <LL_ADC_IsDeepPowerDownEnabled>
  13624. 8006302: 4603 mov r3, r0
  13625. 8006304: 2b00 cmp r3, #0
  13626. 8006306: d004 beq.n 8006312 <HAL_ADC_Init+0x56>
  13627. {
  13628. /* Disable ADC deep power down mode */
  13629. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  13630. 8006308: 687b ldr r3, [r7, #4]
  13631. 800630a: 681b ldr r3, [r3, #0]
  13632. 800630c: 4618 mov r0, r3
  13633. 800630e: f7ff feff bl 8006110 <LL_ADC_DisableDeepPowerDown>
  13634. /* System was in deep power down mode, calibration must
  13635. be relaunched or a previously saved calibration factor
  13636. re-applied once the ADC voltage regulator is enabled */
  13637. }
  13638. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13639. 8006312: 687b ldr r3, [r7, #4]
  13640. 8006314: 681b ldr r3, [r3, #0]
  13641. 8006316: 4618 mov r0, r3
  13642. 8006318: f7ff ff34 bl 8006184 <LL_ADC_IsInternalRegulatorEnabled>
  13643. 800631c: 4603 mov r3, r0
  13644. 800631e: 2b00 cmp r3, #0
  13645. 8006320: d114 bne.n 800634c <HAL_ADC_Init+0x90>
  13646. {
  13647. /* Enable ADC internal voltage regulator */
  13648. LL_ADC_EnableInternalRegulator(hadc->Instance);
  13649. 8006322: 687b ldr r3, [r7, #4]
  13650. 8006324: 681b ldr r3, [r3, #0]
  13651. 8006326: 4618 mov r0, r3
  13652. 8006328: f7ff ff18 bl 800615c <LL_ADC_EnableInternalRegulator>
  13653. /* Note: Variable divided by 2 to compensate partially */
  13654. /* CPU processing cycles, scaling in us split to not */
  13655. /* exceed 32 bits register capacity and handle low frequency. */
  13656. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  13657. 800632c: 4b87 ldr r3, [pc, #540] @ (800654c <HAL_ADC_Init+0x290>)
  13658. 800632e: 681b ldr r3, [r3, #0]
  13659. 8006330: 099b lsrs r3, r3, #6
  13660. 8006332: 4a87 ldr r2, [pc, #540] @ (8006550 <HAL_ADC_Init+0x294>)
  13661. 8006334: fba2 2303 umull r2, r3, r2, r3
  13662. 8006338: 099b lsrs r3, r3, #6
  13663. 800633a: 3301 adds r3, #1
  13664. 800633c: 60bb str r3, [r7, #8]
  13665. while (wait_loop_index != 0UL)
  13666. 800633e: e002 b.n 8006346 <HAL_ADC_Init+0x8a>
  13667. {
  13668. wait_loop_index--;
  13669. 8006340: 68bb ldr r3, [r7, #8]
  13670. 8006342: 3b01 subs r3, #1
  13671. 8006344: 60bb str r3, [r7, #8]
  13672. while (wait_loop_index != 0UL)
  13673. 8006346: 68bb ldr r3, [r7, #8]
  13674. 8006348: 2b00 cmp r3, #0
  13675. 800634a: d1f9 bne.n 8006340 <HAL_ADC_Init+0x84>
  13676. }
  13677. /* Verification that ADC voltage regulator is correctly enabled, whether */
  13678. /* or not ADC is coming from state reset (if any potential problem of */
  13679. /* clocking, voltage regulator would not be enabled). */
  13680. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13681. 800634c: 687b ldr r3, [r7, #4]
  13682. 800634e: 681b ldr r3, [r3, #0]
  13683. 8006350: 4618 mov r0, r3
  13684. 8006352: f7ff ff17 bl 8006184 <LL_ADC_IsInternalRegulatorEnabled>
  13685. 8006356: 4603 mov r3, r0
  13686. 8006358: 2b00 cmp r3, #0
  13687. 800635a: d10d bne.n 8006378 <HAL_ADC_Init+0xbc>
  13688. {
  13689. /* Update ADC state machine to error */
  13690. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13691. 800635c: 687b ldr r3, [r7, #4]
  13692. 800635e: 6d5b ldr r3, [r3, #84] @ 0x54
  13693. 8006360: f043 0210 orr.w r2, r3, #16
  13694. 8006364: 687b ldr r3, [r7, #4]
  13695. 8006366: 655a str r2, [r3, #84] @ 0x54
  13696. /* Set ADC error code to ADC peripheral internal error */
  13697. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  13698. 8006368: 687b ldr r3, [r7, #4]
  13699. 800636a: 6d9b ldr r3, [r3, #88] @ 0x58
  13700. 800636c: f043 0201 orr.w r2, r3, #1
  13701. 8006370: 687b ldr r3, [r7, #4]
  13702. 8006372: 659a str r2, [r3, #88] @ 0x58
  13703. tmp_hal_status = HAL_ERROR;
  13704. 8006374: 2301 movs r3, #1
  13705. 8006376: 77fb strb r3, [r7, #31]
  13706. /* Configuration of ADC parameters if previous preliminary actions are */
  13707. /* correctly completed and if there is no conversion on going on regular */
  13708. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  13709. /* called to update a parameter on the fly). */
  13710. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13711. 8006378: 687b ldr r3, [r7, #4]
  13712. 800637a: 681b ldr r3, [r3, #0]
  13713. 800637c: 4618 mov r0, r3
  13714. 800637e: f7ff ff77 bl 8006270 <LL_ADC_REG_IsConversionOngoing>
  13715. 8006382: 6178 str r0, [r7, #20]
  13716. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  13717. 8006384: 687b ldr r3, [r7, #4]
  13718. 8006386: 6d5b ldr r3, [r3, #84] @ 0x54
  13719. 8006388: f003 0310 and.w r3, r3, #16
  13720. 800638c: 2b00 cmp r3, #0
  13721. 800638e: f040 8129 bne.w 80065e4 <HAL_ADC_Init+0x328>
  13722. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  13723. 8006392: 697b ldr r3, [r7, #20]
  13724. 8006394: 2b00 cmp r3, #0
  13725. 8006396: f040 8125 bne.w 80065e4 <HAL_ADC_Init+0x328>
  13726. )
  13727. {
  13728. /* Set ADC state */
  13729. ADC_STATE_CLR_SET(hadc->State,
  13730. 800639a: 687b ldr r3, [r7, #4]
  13731. 800639c: 6d5b ldr r3, [r3, #84] @ 0x54
  13732. 800639e: f423 7381 bic.w r3, r3, #258 @ 0x102
  13733. 80063a2: f043 0202 orr.w r2, r3, #2
  13734. 80063a6: 687b ldr r3, [r7, #4]
  13735. 80063a8: 655a str r2, [r3, #84] @ 0x54
  13736. /* Configuration of common ADC parameters */
  13737. /* Parameters update conditioned to ADC state: */
  13738. /* Parameters that can be updated only when ADC is disabled: */
  13739. /* - clock configuration */
  13740. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13741. 80063aa: 687b ldr r3, [r7, #4]
  13742. 80063ac: 681b ldr r3, [r3, #0]
  13743. 80063ae: 4618 mov r0, r3
  13744. 80063b0: f7ff ff24 bl 80061fc <LL_ADC_IsEnabled>
  13745. 80063b4: 4603 mov r3, r0
  13746. 80063b6: 2b00 cmp r3, #0
  13747. 80063b8: d136 bne.n 8006428 <HAL_ADC_Init+0x16c>
  13748. {
  13749. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13750. 80063ba: 687b ldr r3, [r7, #4]
  13751. 80063bc: 681b ldr r3, [r3, #0]
  13752. 80063be: 4a65 ldr r2, [pc, #404] @ (8006554 <HAL_ADC_Init+0x298>)
  13753. 80063c0: 4293 cmp r3, r2
  13754. 80063c2: d004 beq.n 80063ce <HAL_ADC_Init+0x112>
  13755. 80063c4: 687b ldr r3, [r7, #4]
  13756. 80063c6: 681b ldr r3, [r3, #0]
  13757. 80063c8: 4a63 ldr r2, [pc, #396] @ (8006558 <HAL_ADC_Init+0x29c>)
  13758. 80063ca: 4293 cmp r3, r2
  13759. 80063cc: d10e bne.n 80063ec <HAL_ADC_Init+0x130>
  13760. 80063ce: 4861 ldr r0, [pc, #388] @ (8006554 <HAL_ADC_Init+0x298>)
  13761. 80063d0: f7ff ff14 bl 80061fc <LL_ADC_IsEnabled>
  13762. 80063d4: 4604 mov r4, r0
  13763. 80063d6: 4860 ldr r0, [pc, #384] @ (8006558 <HAL_ADC_Init+0x29c>)
  13764. 80063d8: f7ff ff10 bl 80061fc <LL_ADC_IsEnabled>
  13765. 80063dc: 4603 mov r3, r0
  13766. 80063de: 4323 orrs r3, r4
  13767. 80063e0: 2b00 cmp r3, #0
  13768. 80063e2: bf0c ite eq
  13769. 80063e4: 2301 moveq r3, #1
  13770. 80063e6: 2300 movne r3, #0
  13771. 80063e8: b2db uxtb r3, r3
  13772. 80063ea: e008 b.n 80063fe <HAL_ADC_Init+0x142>
  13773. 80063ec: 485b ldr r0, [pc, #364] @ (800655c <HAL_ADC_Init+0x2a0>)
  13774. 80063ee: f7ff ff05 bl 80061fc <LL_ADC_IsEnabled>
  13775. 80063f2: 4603 mov r3, r0
  13776. 80063f4: 2b00 cmp r3, #0
  13777. 80063f6: bf0c ite eq
  13778. 80063f8: 2301 moveq r3, #1
  13779. 80063fa: 2300 movne r3, #0
  13780. 80063fc: b2db uxtb r3, r3
  13781. 80063fe: 2b00 cmp r3, #0
  13782. 8006400: d012 beq.n 8006428 <HAL_ADC_Init+0x16c>
  13783. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  13784. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  13785. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  13786. /* (set into HAL_ADC_ConfigChannel() or */
  13787. /* HAL_ADCEx_InjectedConfigChannel() ) */
  13788. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  13789. 8006402: 687b ldr r3, [r7, #4]
  13790. 8006404: 681b ldr r3, [r3, #0]
  13791. 8006406: 4a53 ldr r2, [pc, #332] @ (8006554 <HAL_ADC_Init+0x298>)
  13792. 8006408: 4293 cmp r3, r2
  13793. 800640a: d004 beq.n 8006416 <HAL_ADC_Init+0x15a>
  13794. 800640c: 687b ldr r3, [r7, #4]
  13795. 800640e: 681b ldr r3, [r3, #0]
  13796. 8006410: 4a51 ldr r2, [pc, #324] @ (8006558 <HAL_ADC_Init+0x29c>)
  13797. 8006412: 4293 cmp r3, r2
  13798. 8006414: d101 bne.n 800641a <HAL_ADC_Init+0x15e>
  13799. 8006416: 4a52 ldr r2, [pc, #328] @ (8006560 <HAL_ADC_Init+0x2a4>)
  13800. 8006418: e000 b.n 800641c <HAL_ADC_Init+0x160>
  13801. 800641a: 4a52 ldr r2, [pc, #328] @ (8006564 <HAL_ADC_Init+0x2a8>)
  13802. 800641c: 687b ldr r3, [r7, #4]
  13803. 800641e: 685b ldr r3, [r3, #4]
  13804. 8006420: 4619 mov r1, r3
  13805. 8006422: 4610 mov r0, r2
  13806. 8006424: f7ff fd3c bl 8005ea0 <LL_ADC_SetCommonClock>
  13807. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13808. }
  13809. #else
  13810. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  13811. 8006428: f7ff fcf4 bl 8005e14 <HAL_GetREVID>
  13812. 800642c: 4603 mov r3, r0
  13813. 800642e: f241 0203 movw r2, #4099 @ 0x1003
  13814. 8006432: 4293 cmp r3, r2
  13815. 8006434: d914 bls.n 8006460 <HAL_ADC_Init+0x1a4>
  13816. 8006436: 687b ldr r3, [r7, #4]
  13817. 8006438: 689b ldr r3, [r3, #8]
  13818. 800643a: 2b10 cmp r3, #16
  13819. 800643c: d110 bne.n 8006460 <HAL_ADC_Init+0x1a4>
  13820. {
  13821. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  13822. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13823. 800643e: 687b ldr r3, [r7, #4]
  13824. 8006440: 7d5b ldrb r3, [r3, #21]
  13825. 8006442: 035a lsls r2, r3, #13
  13826. hadc->Init.Overrun |
  13827. 8006444: 687b ldr r3, [r7, #4]
  13828. 8006446: 6b1b ldr r3, [r3, #48] @ 0x30
  13829. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13830. 8006448: 431a orrs r2, r3
  13831. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13832. 800644a: 687b ldr r3, [r7, #4]
  13833. 800644c: 689b ldr r3, [r3, #8]
  13834. hadc->Init.Overrun |
  13835. 800644e: 431a orrs r2, r3
  13836. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13837. 8006450: 687b ldr r3, [r7, #4]
  13838. 8006452: 7f1b ldrb r3, [r3, #28]
  13839. 8006454: 041b lsls r3, r3, #16
  13840. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13841. 8006456: 4313 orrs r3, r2
  13842. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13843. 8006458: f043 030c orr.w r3, r3, #12
  13844. 800645c: 61bb str r3, [r7, #24]
  13845. 800645e: e00d b.n 800647c <HAL_ADC_Init+0x1c0>
  13846. }
  13847. else
  13848. {
  13849. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13850. 8006460: 687b ldr r3, [r7, #4]
  13851. 8006462: 7d5b ldrb r3, [r3, #21]
  13852. 8006464: 035a lsls r2, r3, #13
  13853. hadc->Init.Overrun |
  13854. 8006466: 687b ldr r3, [r7, #4]
  13855. 8006468: 6b1b ldr r3, [r3, #48] @ 0x30
  13856. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13857. 800646a: 431a orrs r2, r3
  13858. hadc->Init.Resolution |
  13859. 800646c: 687b ldr r3, [r7, #4]
  13860. 800646e: 689b ldr r3, [r3, #8]
  13861. hadc->Init.Overrun |
  13862. 8006470: 431a orrs r2, r3
  13863. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13864. 8006472: 687b ldr r3, [r7, #4]
  13865. 8006474: 7f1b ldrb r3, [r3, #28]
  13866. 8006476: 041b lsls r3, r3, #16
  13867. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13868. 8006478: 4313 orrs r3, r2
  13869. 800647a: 61bb str r3, [r7, #24]
  13870. }
  13871. #endif /* ADC_VER_V5_3 */
  13872. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  13873. 800647c: 687b ldr r3, [r7, #4]
  13874. 800647e: 7f1b ldrb r3, [r3, #28]
  13875. 8006480: 2b01 cmp r3, #1
  13876. 8006482: d106 bne.n 8006492 <HAL_ADC_Init+0x1d6>
  13877. {
  13878. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  13879. 8006484: 687b ldr r3, [r7, #4]
  13880. 8006486: 6a1b ldr r3, [r3, #32]
  13881. 8006488: 3b01 subs r3, #1
  13882. 800648a: 045b lsls r3, r3, #17
  13883. 800648c: 69ba ldr r2, [r7, #24]
  13884. 800648e: 4313 orrs r3, r2
  13885. 8006490: 61bb str r3, [r7, #24]
  13886. /* Enable external trigger if trigger selection is different of software */
  13887. /* start. */
  13888. /* Note: This configuration keeps the hardware feature of parameter */
  13889. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  13890. /* software start. */
  13891. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  13892. 8006492: 687b ldr r3, [r7, #4]
  13893. 8006494: 6a5b ldr r3, [r3, #36] @ 0x24
  13894. 8006496: 2b00 cmp r3, #0
  13895. 8006498: d009 beq.n 80064ae <HAL_ADC_Init+0x1f2>
  13896. {
  13897. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13898. 800649a: 687b ldr r3, [r7, #4]
  13899. 800649c: 6a5b ldr r3, [r3, #36] @ 0x24
  13900. 800649e: f403 7278 and.w r2, r3, #992 @ 0x3e0
  13901. | hadc->Init.ExternalTrigConvEdge
  13902. 80064a2: 687b ldr r3, [r7, #4]
  13903. 80064a4: 6a9b ldr r3, [r3, #40] @ 0x28
  13904. 80064a6: 4313 orrs r3, r2
  13905. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13906. 80064a8: 69ba ldr r2, [r7, #24]
  13907. 80064aa: 4313 orrs r3, r2
  13908. 80064ac: 61bb str r3, [r7, #24]
  13909. /* Update Configuration Register CFGR */
  13910. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13911. }
  13912. #else
  13913. /* Update Configuration Register CFGR */
  13914. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13915. 80064ae: 687b ldr r3, [r7, #4]
  13916. 80064b0: 681b ldr r3, [r3, #0]
  13917. 80064b2: 68da ldr r2, [r3, #12]
  13918. 80064b4: 4b2c ldr r3, [pc, #176] @ (8006568 <HAL_ADC_Init+0x2ac>)
  13919. 80064b6: 4013 ands r3, r2
  13920. 80064b8: 687a ldr r2, [r7, #4]
  13921. 80064ba: 6812 ldr r2, [r2, #0]
  13922. 80064bc: 69b9 ldr r1, [r7, #24]
  13923. 80064be: 430b orrs r3, r1
  13924. 80064c0: 60d3 str r3, [r2, #12]
  13925. /* Parameters that can be updated when ADC is disabled or enabled without */
  13926. /* conversion on going on regular and injected groups: */
  13927. /* - Conversion data management Init.ConversionDataManagement */
  13928. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  13929. /* - Oversampling parameters Init.Oversampling */
  13930. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13931. 80064c2: 687b ldr r3, [r7, #4]
  13932. 80064c4: 681b ldr r3, [r3, #0]
  13933. 80064c6: 4618 mov r0, r3
  13934. 80064c8: f7ff fed2 bl 8006270 <LL_ADC_REG_IsConversionOngoing>
  13935. 80064cc: 6138 str r0, [r7, #16]
  13936. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13937. 80064ce: 687b ldr r3, [r7, #4]
  13938. 80064d0: 681b ldr r3, [r3, #0]
  13939. 80064d2: 4618 mov r0, r3
  13940. 80064d4: f7ff fedf bl 8006296 <LL_ADC_INJ_IsConversionOngoing>
  13941. 80064d8: 60f8 str r0, [r7, #12]
  13942. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13943. 80064da: 693b ldr r3, [r7, #16]
  13944. 80064dc: 2b00 cmp r3, #0
  13945. 80064de: d15f bne.n 80065a0 <HAL_ADC_Init+0x2e4>
  13946. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13947. 80064e0: 68fb ldr r3, [r7, #12]
  13948. 80064e2: 2b00 cmp r3, #0
  13949. 80064e4: d15c bne.n 80065a0 <HAL_ADC_Init+0x2e4>
  13950. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13951. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13952. }
  13953. #else
  13954. tmpCFGR = (
  13955. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13956. 80064e6: 687b ldr r3, [r7, #4]
  13957. 80064e8: 7d1b ldrb r3, [r3, #20]
  13958. 80064ea: 039a lsls r2, r3, #14
  13959. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13960. 80064ec: 687b ldr r3, [r7, #4]
  13961. 80064ee: 6adb ldr r3, [r3, #44] @ 0x2c
  13962. tmpCFGR = (
  13963. 80064f0: 4313 orrs r3, r2
  13964. 80064f2: 61bb str r3, [r7, #24]
  13965. #endif
  13966. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  13967. 80064f4: 687b ldr r3, [r7, #4]
  13968. 80064f6: 681b ldr r3, [r3, #0]
  13969. 80064f8: 68da ldr r2, [r3, #12]
  13970. 80064fa: 4b1c ldr r3, [pc, #112] @ (800656c <HAL_ADC_Init+0x2b0>)
  13971. 80064fc: 4013 ands r3, r2
  13972. 80064fe: 687a ldr r2, [r7, #4]
  13973. 8006500: 6812 ldr r2, [r2, #0]
  13974. 8006502: 69b9 ldr r1, [r7, #24]
  13975. 8006504: 430b orrs r3, r1
  13976. 8006506: 60d3 str r3, [r2, #12]
  13977. if (hadc->Init.OversamplingMode == ENABLE)
  13978. 8006508: 687b ldr r3, [r7, #4]
  13979. 800650a: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  13980. 800650e: 2b01 cmp r3, #1
  13981. 8006510: d130 bne.n 8006574 <HAL_ADC_Init+0x2b8>
  13982. #endif
  13983. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  13984. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  13985. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  13986. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  13987. 8006512: 687b ldr r3, [r7, #4]
  13988. 8006514: 6a5b ldr r3, [r3, #36] @ 0x24
  13989. 8006516: 2b00 cmp r3, #0
  13990. /* - Oversampling Ratio */
  13991. /* - Right bit shift */
  13992. /* - Left bit shift */
  13993. /* - Triggered mode */
  13994. /* - Oversampling mode (continued/resumed) */
  13995. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  13996. 8006518: 687b ldr r3, [r7, #4]
  13997. 800651a: 681b ldr r3, [r3, #0]
  13998. 800651c: 691a ldr r2, [r3, #16]
  13999. 800651e: 4b14 ldr r3, [pc, #80] @ (8006570 <HAL_ADC_Init+0x2b4>)
  14000. 8006520: 4013 ands r3, r2
  14001. 8006522: 687a ldr r2, [r7, #4]
  14002. 8006524: 6bd2 ldr r2, [r2, #60] @ 0x3c
  14003. 8006526: 3a01 subs r2, #1
  14004. 8006528: 0411 lsls r1, r2, #16
  14005. 800652a: 687a ldr r2, [r7, #4]
  14006. 800652c: 6c12 ldr r2, [r2, #64] @ 0x40
  14007. 800652e: 4311 orrs r1, r2
  14008. 8006530: 687a ldr r2, [r7, #4]
  14009. 8006532: 6c52 ldr r2, [r2, #68] @ 0x44
  14010. 8006534: 4311 orrs r1, r2
  14011. 8006536: 687a ldr r2, [r7, #4]
  14012. 8006538: 6c92 ldr r2, [r2, #72] @ 0x48
  14013. 800653a: 430a orrs r2, r1
  14014. 800653c: 431a orrs r2, r3
  14015. 800653e: 687b ldr r3, [r7, #4]
  14016. 8006540: 681b ldr r3, [r3, #0]
  14017. 8006542: f042 0201 orr.w r2, r2, #1
  14018. 8006546: 611a str r2, [r3, #16]
  14019. 8006548: e01c b.n 8006584 <HAL_ADC_Init+0x2c8>
  14020. 800654a: bf00 nop
  14021. 800654c: 24000034 .word 0x24000034
  14022. 8006550: 053e2d63 .word 0x053e2d63
  14023. 8006554: 40022000 .word 0x40022000
  14024. 8006558: 40022100 .word 0x40022100
  14025. 800655c: 58026000 .word 0x58026000
  14026. 8006560: 40022300 .word 0x40022300
  14027. 8006564: 58026300 .word 0x58026300
  14028. 8006568: fff0c003 .word 0xfff0c003
  14029. 800656c: ffffbffc .word 0xffffbffc
  14030. 8006570: fc00f81e .word 0xfc00f81e
  14031. }
  14032. else
  14033. {
  14034. /* Disable ADC oversampling scope on ADC group regular */
  14035. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  14036. 8006574: 687b ldr r3, [r7, #4]
  14037. 8006576: 681b ldr r3, [r3, #0]
  14038. 8006578: 691a ldr r2, [r3, #16]
  14039. 800657a: 687b ldr r3, [r7, #4]
  14040. 800657c: 681b ldr r3, [r3, #0]
  14041. 800657e: f022 0201 bic.w r2, r2, #1
  14042. 8006582: 611a str r2, [r3, #16]
  14043. }
  14044. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  14045. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  14046. 8006584: 687b ldr r3, [r7, #4]
  14047. 8006586: 681b ldr r3, [r3, #0]
  14048. 8006588: 691b ldr r3, [r3, #16]
  14049. 800658a: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  14050. 800658e: 687b ldr r3, [r7, #4]
  14051. 8006590: 6b5a ldr r2, [r3, #52] @ 0x34
  14052. 8006592: 687b ldr r3, [r7, #4]
  14053. 8006594: 681b ldr r3, [r3, #0]
  14054. 8006596: 430a orrs r2, r1
  14055. 8006598: 611a str r2, [r3, #16]
  14056. /* Configure the BOOST Mode */
  14057. ADC_ConfigureBoostMode(hadc);
  14058. }
  14059. #else
  14060. /* Configure the BOOST Mode */
  14061. ADC_ConfigureBoostMode(hadc);
  14062. 800659a: 6878 ldr r0, [r7, #4]
  14063. 800659c: f000 fde2 bl 8007164 <ADC_ConfigureBoostMode>
  14064. /* Note: Scan mode is not present by hardware on this device, but */
  14065. /* emulated by software for alignment over all STM32 devices. */
  14066. /* - if scan mode is enabled, regular channels sequence length is set to */
  14067. /* parameter "NbrOfConversion". */
  14068. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  14069. 80065a0: 687b ldr r3, [r7, #4]
  14070. 80065a2: 68db ldr r3, [r3, #12]
  14071. 80065a4: 2b01 cmp r3, #1
  14072. 80065a6: d10c bne.n 80065c2 <HAL_ADC_Init+0x306>
  14073. {
  14074. /* Set number of ranks in regular group sequencer */
  14075. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  14076. 80065a8: 687b ldr r3, [r7, #4]
  14077. 80065aa: 681b ldr r3, [r3, #0]
  14078. 80065ac: 6b1b ldr r3, [r3, #48] @ 0x30
  14079. 80065ae: f023 010f bic.w r1, r3, #15
  14080. 80065b2: 687b ldr r3, [r7, #4]
  14081. 80065b4: 699b ldr r3, [r3, #24]
  14082. 80065b6: 1e5a subs r2, r3, #1
  14083. 80065b8: 687b ldr r3, [r7, #4]
  14084. 80065ba: 681b ldr r3, [r3, #0]
  14085. 80065bc: 430a orrs r2, r1
  14086. 80065be: 631a str r2, [r3, #48] @ 0x30
  14087. 80065c0: e007 b.n 80065d2 <HAL_ADC_Init+0x316>
  14088. }
  14089. else
  14090. {
  14091. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  14092. 80065c2: 687b ldr r3, [r7, #4]
  14093. 80065c4: 681b ldr r3, [r3, #0]
  14094. 80065c6: 6b1a ldr r2, [r3, #48] @ 0x30
  14095. 80065c8: 687b ldr r3, [r7, #4]
  14096. 80065ca: 681b ldr r3, [r3, #0]
  14097. 80065cc: f022 020f bic.w r2, r2, #15
  14098. 80065d0: 631a str r2, [r3, #48] @ 0x30
  14099. }
  14100. /* Initialize the ADC state */
  14101. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  14102. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  14103. 80065d2: 687b ldr r3, [r7, #4]
  14104. 80065d4: 6d5b ldr r3, [r3, #84] @ 0x54
  14105. 80065d6: f023 0303 bic.w r3, r3, #3
  14106. 80065da: f043 0201 orr.w r2, r3, #1
  14107. 80065de: 687b ldr r3, [r7, #4]
  14108. 80065e0: 655a str r2, [r3, #84] @ 0x54
  14109. 80065e2: e007 b.n 80065f4 <HAL_ADC_Init+0x338>
  14110. }
  14111. else
  14112. {
  14113. /* Update ADC state machine to error */
  14114. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14115. 80065e4: 687b ldr r3, [r7, #4]
  14116. 80065e6: 6d5b ldr r3, [r3, #84] @ 0x54
  14117. 80065e8: f043 0210 orr.w r2, r3, #16
  14118. 80065ec: 687b ldr r3, [r7, #4]
  14119. 80065ee: 655a str r2, [r3, #84] @ 0x54
  14120. tmp_hal_status = HAL_ERROR;
  14121. 80065f0: 2301 movs r3, #1
  14122. 80065f2: 77fb strb r3, [r7, #31]
  14123. }
  14124. /* Return function status */
  14125. return tmp_hal_status;
  14126. 80065f4: 7ffb ldrb r3, [r7, #31]
  14127. }
  14128. 80065f6: 4618 mov r0, r3
  14129. 80065f8: 3724 adds r7, #36 @ 0x24
  14130. 80065fa: 46bd mov sp, r7
  14131. 80065fc: bd90 pop {r4, r7, pc}
  14132. 80065fe: bf00 nop
  14133. 08006600 <HAL_ADC_Start_DMA>:
  14134. * @param pData Destination Buffer address.
  14135. * @param Length Number of data to be transferred from ADC peripheral to memory
  14136. * @retval HAL status.
  14137. */
  14138. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  14139. {
  14140. 8006600: b580 push {r7, lr}
  14141. 8006602: b086 sub sp, #24
  14142. 8006604: af00 add r7, sp, #0
  14143. 8006606: 60f8 str r0, [r7, #12]
  14144. 8006608: 60b9 str r1, [r7, #8]
  14145. 800660a: 607a str r2, [r7, #4]
  14146. HAL_StatusTypeDef tmp_hal_status;
  14147. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14148. 800660c: 68fb ldr r3, [r7, #12]
  14149. 800660e: 681b ldr r3, [r3, #0]
  14150. 8006610: 4a55 ldr r2, [pc, #340] @ (8006768 <HAL_ADC_Start_DMA+0x168>)
  14151. 8006612: 4293 cmp r3, r2
  14152. 8006614: d004 beq.n 8006620 <HAL_ADC_Start_DMA+0x20>
  14153. 8006616: 68fb ldr r3, [r7, #12]
  14154. 8006618: 681b ldr r3, [r3, #0]
  14155. 800661a: 4a54 ldr r2, [pc, #336] @ (800676c <HAL_ADC_Start_DMA+0x16c>)
  14156. 800661c: 4293 cmp r3, r2
  14157. 800661e: d101 bne.n 8006624 <HAL_ADC_Start_DMA+0x24>
  14158. 8006620: 4b53 ldr r3, [pc, #332] @ (8006770 <HAL_ADC_Start_DMA+0x170>)
  14159. 8006622: e000 b.n 8006626 <HAL_ADC_Start_DMA+0x26>
  14160. 8006624: 4b53 ldr r3, [pc, #332] @ (8006774 <HAL_ADC_Start_DMA+0x174>)
  14161. 8006626: 4618 mov r0, r3
  14162. 8006628: f7ff fd64 bl 80060f4 <LL_ADC_GetMultimode>
  14163. 800662c: 6138 str r0, [r7, #16]
  14164. /* Check the parameters */
  14165. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  14166. /* Perform ADC enable and conversion start if no conversion is on going */
  14167. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14168. 800662e: 68fb ldr r3, [r7, #12]
  14169. 8006630: 681b ldr r3, [r3, #0]
  14170. 8006632: 4618 mov r0, r3
  14171. 8006634: f7ff fe1c bl 8006270 <LL_ADC_REG_IsConversionOngoing>
  14172. 8006638: 4603 mov r3, r0
  14173. 800663a: 2b00 cmp r3, #0
  14174. 800663c: f040 808c bne.w 8006758 <HAL_ADC_Start_DMA+0x158>
  14175. {
  14176. /* Process locked */
  14177. __HAL_LOCK(hadc);
  14178. 8006640: 68fb ldr r3, [r7, #12]
  14179. 8006642: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14180. 8006646: 2b01 cmp r3, #1
  14181. 8006648: d101 bne.n 800664e <HAL_ADC_Start_DMA+0x4e>
  14182. 800664a: 2302 movs r3, #2
  14183. 800664c: e087 b.n 800675e <HAL_ADC_Start_DMA+0x15e>
  14184. 800664e: 68fb ldr r3, [r7, #12]
  14185. 8006650: 2201 movs r2, #1
  14186. 8006652: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14187. /* Ensure that multimode regular conversions are not enabled. */
  14188. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  14189. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14190. 8006656: 693b ldr r3, [r7, #16]
  14191. 8006658: 2b00 cmp r3, #0
  14192. 800665a: d005 beq.n 8006668 <HAL_ADC_Start_DMA+0x68>
  14193. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  14194. 800665c: 693b ldr r3, [r7, #16]
  14195. 800665e: 2b05 cmp r3, #5
  14196. 8006660: d002 beq.n 8006668 <HAL_ADC_Start_DMA+0x68>
  14197. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  14198. 8006662: 693b ldr r3, [r7, #16]
  14199. 8006664: 2b09 cmp r3, #9
  14200. 8006666: d170 bne.n 800674a <HAL_ADC_Start_DMA+0x14a>
  14201. )
  14202. {
  14203. /* Enable the ADC peripheral */
  14204. tmp_hal_status = ADC_Enable(hadc);
  14205. 8006668: 68f8 ldr r0, [r7, #12]
  14206. 800666a: f000 fbfd bl 8006e68 <ADC_Enable>
  14207. 800666e: 4603 mov r3, r0
  14208. 8006670: 75fb strb r3, [r7, #23]
  14209. /* Start conversion if ADC is effectively enabled */
  14210. if (tmp_hal_status == HAL_OK)
  14211. 8006672: 7dfb ldrb r3, [r7, #23]
  14212. 8006674: 2b00 cmp r3, #0
  14213. 8006676: d163 bne.n 8006740 <HAL_ADC_Start_DMA+0x140>
  14214. {
  14215. /* Set ADC state */
  14216. /* - Clear state bitfield related to regular group conversion results */
  14217. /* - Set state bitfield related to regular operation */
  14218. ADC_STATE_CLR_SET(hadc->State,
  14219. 8006678: 68fb ldr r3, [r7, #12]
  14220. 800667a: 6d5a ldr r2, [r3, #84] @ 0x54
  14221. 800667c: 4b3e ldr r3, [pc, #248] @ (8006778 <HAL_ADC_Start_DMA+0x178>)
  14222. 800667e: 4013 ands r3, r2
  14223. 8006680: f443 7280 orr.w r2, r3, #256 @ 0x100
  14224. 8006684: 68fb ldr r3, [r7, #12]
  14225. 8006686: 655a str r2, [r3, #84] @ 0x54
  14226. HAL_ADC_STATE_REG_BUSY);
  14227. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  14228. - if ADC instance is master or if multimode feature is not available
  14229. - if multimode setting is disabled (ADC instance slave in independent mode) */
  14230. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14231. 8006688: 68fb ldr r3, [r7, #12]
  14232. 800668a: 681b ldr r3, [r3, #0]
  14233. 800668c: 4a37 ldr r2, [pc, #220] @ (800676c <HAL_ADC_Start_DMA+0x16c>)
  14234. 800668e: 4293 cmp r3, r2
  14235. 8006690: d002 beq.n 8006698 <HAL_ADC_Start_DMA+0x98>
  14236. 8006692: 68fb ldr r3, [r7, #12]
  14237. 8006694: 681b ldr r3, [r3, #0]
  14238. 8006696: e000 b.n 800669a <HAL_ADC_Start_DMA+0x9a>
  14239. 8006698: 4b33 ldr r3, [pc, #204] @ (8006768 <HAL_ADC_Start_DMA+0x168>)
  14240. 800669a: 68fa ldr r2, [r7, #12]
  14241. 800669c: 6812 ldr r2, [r2, #0]
  14242. 800669e: 4293 cmp r3, r2
  14243. 80066a0: d002 beq.n 80066a8 <HAL_ADC_Start_DMA+0xa8>
  14244. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14245. 80066a2: 693b ldr r3, [r7, #16]
  14246. 80066a4: 2b00 cmp r3, #0
  14247. 80066a6: d105 bne.n 80066b4 <HAL_ADC_Start_DMA+0xb4>
  14248. )
  14249. {
  14250. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  14251. 80066a8: 68fb ldr r3, [r7, #12]
  14252. 80066aa: 6d5b ldr r3, [r3, #84] @ 0x54
  14253. 80066ac: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  14254. 80066b0: 68fb ldr r3, [r7, #12]
  14255. 80066b2: 655a str r2, [r3, #84] @ 0x54
  14256. }
  14257. /* Check if a conversion is on going on ADC group injected */
  14258. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  14259. 80066b4: 68fb ldr r3, [r7, #12]
  14260. 80066b6: 6d5b ldr r3, [r3, #84] @ 0x54
  14261. 80066b8: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14262. 80066bc: 2b00 cmp r3, #0
  14263. 80066be: d006 beq.n 80066ce <HAL_ADC_Start_DMA+0xce>
  14264. {
  14265. /* Reset ADC error code fields related to regular conversions only */
  14266. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  14267. 80066c0: 68fb ldr r3, [r7, #12]
  14268. 80066c2: 6d9b ldr r3, [r3, #88] @ 0x58
  14269. 80066c4: f023 0206 bic.w r2, r3, #6
  14270. 80066c8: 68fb ldr r3, [r7, #12]
  14271. 80066ca: 659a str r2, [r3, #88] @ 0x58
  14272. 80066cc: e002 b.n 80066d4 <HAL_ADC_Start_DMA+0xd4>
  14273. }
  14274. else
  14275. {
  14276. /* Reset all ADC error code fields */
  14277. ADC_CLEAR_ERRORCODE(hadc);
  14278. 80066ce: 68fb ldr r3, [r7, #12]
  14279. 80066d0: 2200 movs r2, #0
  14280. 80066d2: 659a str r2, [r3, #88] @ 0x58
  14281. }
  14282. /* Set the DMA transfer complete callback */
  14283. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  14284. 80066d4: 68fb ldr r3, [r7, #12]
  14285. 80066d6: 6cdb ldr r3, [r3, #76] @ 0x4c
  14286. 80066d8: 4a28 ldr r2, [pc, #160] @ (800677c <HAL_ADC_Start_DMA+0x17c>)
  14287. 80066da: 63da str r2, [r3, #60] @ 0x3c
  14288. /* Set the DMA half transfer complete callback */
  14289. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  14290. 80066dc: 68fb ldr r3, [r7, #12]
  14291. 80066de: 6cdb ldr r3, [r3, #76] @ 0x4c
  14292. 80066e0: 4a27 ldr r2, [pc, #156] @ (8006780 <HAL_ADC_Start_DMA+0x180>)
  14293. 80066e2: 641a str r2, [r3, #64] @ 0x40
  14294. /* Set the DMA error callback */
  14295. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  14296. 80066e4: 68fb ldr r3, [r7, #12]
  14297. 80066e6: 6cdb ldr r3, [r3, #76] @ 0x4c
  14298. 80066e8: 4a26 ldr r2, [pc, #152] @ (8006784 <HAL_ADC_Start_DMA+0x184>)
  14299. 80066ea: 64da str r2, [r3, #76] @ 0x4c
  14300. /* ADC start (in case of SW start): */
  14301. /* Clear regular group conversion flag and overrun flag */
  14302. /* (To ensure of no unknown state from potential previous ADC */
  14303. /* operations) */
  14304. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  14305. 80066ec: 68fb ldr r3, [r7, #12]
  14306. 80066ee: 681b ldr r3, [r3, #0]
  14307. 80066f0: 221c movs r2, #28
  14308. 80066f2: 601a str r2, [r3, #0]
  14309. /* Process unlocked */
  14310. /* Unlock before starting ADC conversions: in case of potential */
  14311. /* interruption, to let the process to ADC IRQ Handler. */
  14312. __HAL_UNLOCK(hadc);
  14313. 80066f4: 68fb ldr r3, [r7, #12]
  14314. 80066f6: 2200 movs r2, #0
  14315. 80066f8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14316. /* With DMA, overrun event is always considered as an error even if
  14317. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  14318. ADC_IT_OVR is enabled. */
  14319. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  14320. 80066fc: 68fb ldr r3, [r7, #12]
  14321. 80066fe: 681b ldr r3, [r3, #0]
  14322. 8006700: 685a ldr r2, [r3, #4]
  14323. 8006702: 68fb ldr r3, [r7, #12]
  14324. 8006704: 681b ldr r3, [r3, #0]
  14325. 8006706: f042 0210 orr.w r2, r2, #16
  14326. 800670a: 605a str r2, [r3, #4]
  14327. {
  14328. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14329. }
  14330. #else
  14331. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  14332. 800670c: 68fb ldr r3, [r7, #12]
  14333. 800670e: 681a ldr r2, [r3, #0]
  14334. 8006710: 68fb ldr r3, [r7, #12]
  14335. 8006712: 6adb ldr r3, [r3, #44] @ 0x2c
  14336. 8006714: 4619 mov r1, r3
  14337. 8006716: 4610 mov r0, r2
  14338. 8006718: f7ff fc89 bl 800602e <LL_ADC_REG_SetDataTransferMode>
  14339. #endif
  14340. /* Start the DMA channel */
  14341. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  14342. 800671c: 68fb ldr r3, [r7, #12]
  14343. 800671e: 6cd8 ldr r0, [r3, #76] @ 0x4c
  14344. 8006720: 68fb ldr r3, [r7, #12]
  14345. 8006722: 681b ldr r3, [r3, #0]
  14346. 8006724: 3340 adds r3, #64 @ 0x40
  14347. 8006726: 4619 mov r1, r3
  14348. 8006728: 68ba ldr r2, [r7, #8]
  14349. 800672a: 687b ldr r3, [r7, #4]
  14350. 800672c: f002 fa5e bl 8008bec <HAL_DMA_Start_IT>
  14351. 8006730: 4603 mov r3, r0
  14352. 8006732: 75fb strb r3, [r7, #23]
  14353. /* Enable conversion of regular group. */
  14354. /* If software start has been selected, conversion starts immediately. */
  14355. /* If external trigger has been selected, conversion will start at next */
  14356. /* trigger event. */
  14357. /* Start ADC group regular conversion */
  14358. LL_ADC_REG_StartConversion(hadc->Instance);
  14359. 8006734: 68fb ldr r3, [r7, #12]
  14360. 8006736: 681b ldr r3, [r3, #0]
  14361. 8006738: 4618 mov r0, r3
  14362. 800673a: f7ff fd85 bl 8006248 <LL_ADC_REG_StartConversion>
  14363. if (tmp_hal_status == HAL_OK)
  14364. 800673e: e00d b.n 800675c <HAL_ADC_Start_DMA+0x15c>
  14365. }
  14366. else
  14367. {
  14368. /* Process unlocked */
  14369. __HAL_UNLOCK(hadc);
  14370. 8006740: 68fb ldr r3, [r7, #12]
  14371. 8006742: 2200 movs r2, #0
  14372. 8006744: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14373. if (tmp_hal_status == HAL_OK)
  14374. 8006748: e008 b.n 800675c <HAL_ADC_Start_DMA+0x15c>
  14375. }
  14376. }
  14377. else
  14378. {
  14379. tmp_hal_status = HAL_ERROR;
  14380. 800674a: 2301 movs r3, #1
  14381. 800674c: 75fb strb r3, [r7, #23]
  14382. /* Process unlocked */
  14383. __HAL_UNLOCK(hadc);
  14384. 800674e: 68fb ldr r3, [r7, #12]
  14385. 8006750: 2200 movs r2, #0
  14386. 8006752: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14387. 8006756: e001 b.n 800675c <HAL_ADC_Start_DMA+0x15c>
  14388. }
  14389. }
  14390. else
  14391. {
  14392. tmp_hal_status = HAL_BUSY;
  14393. 8006758: 2302 movs r3, #2
  14394. 800675a: 75fb strb r3, [r7, #23]
  14395. }
  14396. /* Return function status */
  14397. return tmp_hal_status;
  14398. 800675c: 7dfb ldrb r3, [r7, #23]
  14399. }
  14400. 800675e: 4618 mov r0, r3
  14401. 8006760: 3718 adds r7, #24
  14402. 8006762: 46bd mov sp, r7
  14403. 8006764: bd80 pop {r7, pc}
  14404. 8006766: bf00 nop
  14405. 8006768: 40022000 .word 0x40022000
  14406. 800676c: 40022100 .word 0x40022100
  14407. 8006770: 40022300 .word 0x40022300
  14408. 8006774: 58026300 .word 0x58026300
  14409. 8006778: fffff0fe .word 0xfffff0fe
  14410. 800677c: 0800703b .word 0x0800703b
  14411. 8006780: 08007113 .word 0x08007113
  14412. 8006784: 0800712f .word 0x0800712f
  14413. 08006788 <HAL_ADC_ConvHalfCpltCallback>:
  14414. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  14415. * @param hadc ADC handle
  14416. * @retval None
  14417. */
  14418. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  14419. {
  14420. 8006788: b480 push {r7}
  14421. 800678a: b083 sub sp, #12
  14422. 800678c: af00 add r7, sp, #0
  14423. 800678e: 6078 str r0, [r7, #4]
  14424. UNUSED(hadc);
  14425. /* NOTE : This function should not be modified. When the callback is needed,
  14426. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  14427. */
  14428. }
  14429. 8006790: bf00 nop
  14430. 8006792: 370c adds r7, #12
  14431. 8006794: 46bd mov sp, r7
  14432. 8006796: f85d 7b04 ldr.w r7, [sp], #4
  14433. 800679a: 4770 bx lr
  14434. 0800679c <HAL_ADC_ErrorCallback>:
  14435. * (this function is also clearing overrun flag)
  14436. * @param hadc ADC handle
  14437. * @retval None
  14438. */
  14439. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  14440. {
  14441. 800679c: b480 push {r7}
  14442. 800679e: b083 sub sp, #12
  14443. 80067a0: af00 add r7, sp, #0
  14444. 80067a2: 6078 str r0, [r7, #4]
  14445. UNUSED(hadc);
  14446. /* NOTE : This function should not be modified. When the callback is needed,
  14447. function HAL_ADC_ErrorCallback must be implemented in the user file.
  14448. */
  14449. }
  14450. 80067a4: bf00 nop
  14451. 80067a6: 370c adds r7, #12
  14452. 80067a8: 46bd mov sp, r7
  14453. 80067aa: f85d 7b04 ldr.w r7, [sp], #4
  14454. 80067ae: 4770 bx lr
  14455. 080067b0 <HAL_ADC_ConfigChannel>:
  14456. * @param hadc ADC handle
  14457. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  14458. * @retval HAL status
  14459. */
  14460. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  14461. {
  14462. 80067b0: b590 push {r4, r7, lr}
  14463. 80067b2: b0a1 sub sp, #132 @ 0x84
  14464. 80067b4: af00 add r7, sp, #0
  14465. 80067b6: 6078 str r0, [r7, #4]
  14466. 80067b8: 6039 str r1, [r7, #0]
  14467. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  14468. 80067ba: 2300 movs r3, #0
  14469. 80067bc: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14470. uint32_t tmpOffsetShifted;
  14471. uint32_t tmp_config_internal_channel;
  14472. __IO uint32_t wait_loop_index = 0;
  14473. 80067c0: 2300 movs r3, #0
  14474. 80067c2: 60bb str r3, [r7, #8]
  14475. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  14476. ignored (considered as reset) */
  14477. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  14478. /* Verification of channel number */
  14479. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  14480. 80067c4: 683b ldr r3, [r7, #0]
  14481. 80067c6: 68db ldr r3, [r3, #12]
  14482. 80067c8: 4a65 ldr r2, [pc, #404] @ (8006960 <HAL_ADC_ConfigChannel+0x1b0>)
  14483. 80067ca: 4293 cmp r3, r2
  14484. }
  14485. #endif
  14486. }
  14487. /* Process locked */
  14488. __HAL_LOCK(hadc);
  14489. 80067cc: 687b ldr r3, [r7, #4]
  14490. 80067ce: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14491. 80067d2: 2b01 cmp r3, #1
  14492. 80067d4: d101 bne.n 80067da <HAL_ADC_ConfigChannel+0x2a>
  14493. 80067d6: 2302 movs r3, #2
  14494. 80067d8: e32e b.n 8006e38 <HAL_ADC_ConfigChannel+0x688>
  14495. 80067da: 687b ldr r3, [r7, #4]
  14496. 80067dc: 2201 movs r2, #1
  14497. 80067de: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14498. /* Parameters update conditioned to ADC state: */
  14499. /* Parameters that can be updated when ADC is disabled or enabled without */
  14500. /* conversion on going on regular group: */
  14501. /* - Channel number */
  14502. /* - Channel rank */
  14503. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14504. 80067e2: 687b ldr r3, [r7, #4]
  14505. 80067e4: 681b ldr r3, [r3, #0]
  14506. 80067e6: 4618 mov r0, r3
  14507. 80067e8: f7ff fd42 bl 8006270 <LL_ADC_REG_IsConversionOngoing>
  14508. 80067ec: 4603 mov r3, r0
  14509. 80067ee: 2b00 cmp r3, #0
  14510. 80067f0: f040 8313 bne.w 8006e1a <HAL_ADC_ConfigChannel+0x66a>
  14511. {
  14512. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  14513. 80067f4: 683b ldr r3, [r7, #0]
  14514. 80067f6: 681b ldr r3, [r3, #0]
  14515. 80067f8: 2b00 cmp r3, #0
  14516. 80067fa: db2c blt.n 8006856 <HAL_ADC_ConfigChannel+0xa6>
  14517. /* ADC channels preselection */
  14518. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14519. }
  14520. #else
  14521. /* ADC channels preselection */
  14522. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14523. 80067fc: 683b ldr r3, [r7, #0]
  14524. 80067fe: 681b ldr r3, [r3, #0]
  14525. 8006800: f3c3 0313 ubfx r3, r3, #0, #20
  14526. 8006804: 2b00 cmp r3, #0
  14527. 8006806: d108 bne.n 800681a <HAL_ADC_ConfigChannel+0x6a>
  14528. 8006808: 683b ldr r3, [r7, #0]
  14529. 800680a: 681b ldr r3, [r3, #0]
  14530. 800680c: 0e9b lsrs r3, r3, #26
  14531. 800680e: f003 031f and.w r3, r3, #31
  14532. 8006812: 2201 movs r2, #1
  14533. 8006814: fa02 f303 lsl.w r3, r2, r3
  14534. 8006818: e016 b.n 8006848 <HAL_ADC_ConfigChannel+0x98>
  14535. 800681a: 683b ldr r3, [r7, #0]
  14536. 800681c: 681b ldr r3, [r3, #0]
  14537. 800681e: 667b str r3, [r7, #100] @ 0x64
  14538. uint32_t result;
  14539. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  14540. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  14541. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  14542. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14543. 8006820: 6e7b ldr r3, [r7, #100] @ 0x64
  14544. 8006822: fa93 f3a3 rbit r3, r3
  14545. 8006826: 663b str r3, [r7, #96] @ 0x60
  14546. result |= value & 1U;
  14547. s--;
  14548. }
  14549. result <<= s; /* shift when v's highest bits are zero */
  14550. #endif
  14551. return result;
  14552. 8006828: 6e3b ldr r3, [r7, #96] @ 0x60
  14553. 800682a: 66bb str r3, [r7, #104] @ 0x68
  14554. optimisations using the logic "value was passed to __builtin_clz, so it
  14555. is non-zero".
  14556. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  14557. single CLZ instruction.
  14558. */
  14559. if (value == 0U)
  14560. 800682c: 6ebb ldr r3, [r7, #104] @ 0x68
  14561. 800682e: 2b00 cmp r3, #0
  14562. 8006830: d101 bne.n 8006836 <HAL_ADC_ConfigChannel+0x86>
  14563. {
  14564. return 32U;
  14565. 8006832: 2320 movs r3, #32
  14566. 8006834: e003 b.n 800683e <HAL_ADC_ConfigChannel+0x8e>
  14567. }
  14568. return __builtin_clz(value);
  14569. 8006836: 6ebb ldr r3, [r7, #104] @ 0x68
  14570. 8006838: fab3 f383 clz r3, r3
  14571. 800683c: b2db uxtb r3, r3
  14572. 800683e: f003 031f and.w r3, r3, #31
  14573. 8006842: 2201 movs r2, #1
  14574. 8006844: fa02 f303 lsl.w r3, r2, r3
  14575. 8006848: 687a ldr r2, [r7, #4]
  14576. 800684a: 6812 ldr r2, [r2, #0]
  14577. 800684c: 69d1 ldr r1, [r2, #28]
  14578. 800684e: 687a ldr r2, [r7, #4]
  14579. 8006850: 6812 ldr r2, [r2, #0]
  14580. 8006852: 430b orrs r3, r1
  14581. 8006854: 61d3 str r3, [r2, #28]
  14582. #endif /* ADC_VER_V5_V90 */
  14583. }
  14584. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  14585. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  14586. 8006856: 687b ldr r3, [r7, #4]
  14587. 8006858: 6818 ldr r0, [r3, #0]
  14588. 800685a: 683b ldr r3, [r7, #0]
  14589. 800685c: 6859 ldr r1, [r3, #4]
  14590. 800685e: 683b ldr r3, [r7, #0]
  14591. 8006860: 681b ldr r3, [r3, #0]
  14592. 8006862: 461a mov r2, r3
  14593. 8006864: f7ff fbb7 bl 8005fd6 <LL_ADC_REG_SetSequencerRanks>
  14594. /* Parameters update conditioned to ADC state: */
  14595. /* Parameters that can be updated when ADC is disabled or enabled without */
  14596. /* conversion on going on regular group: */
  14597. /* - Channel sampling time */
  14598. /* - Channel offset */
  14599. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  14600. 8006868: 687b ldr r3, [r7, #4]
  14601. 800686a: 681b ldr r3, [r3, #0]
  14602. 800686c: 4618 mov r0, r3
  14603. 800686e: f7ff fcff bl 8006270 <LL_ADC_REG_IsConversionOngoing>
  14604. 8006872: 67b8 str r0, [r7, #120] @ 0x78
  14605. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  14606. 8006874: 687b ldr r3, [r7, #4]
  14607. 8006876: 681b ldr r3, [r3, #0]
  14608. 8006878: 4618 mov r0, r3
  14609. 800687a: f7ff fd0c bl 8006296 <LL_ADC_INJ_IsConversionOngoing>
  14610. 800687e: 6778 str r0, [r7, #116] @ 0x74
  14611. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  14612. 8006880: 6fbb ldr r3, [r7, #120] @ 0x78
  14613. 8006882: 2b00 cmp r3, #0
  14614. 8006884: f040 80b8 bne.w 80069f8 <HAL_ADC_ConfigChannel+0x248>
  14615. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  14616. 8006888: 6f7b ldr r3, [r7, #116] @ 0x74
  14617. 800688a: 2b00 cmp r3, #0
  14618. 800688c: f040 80b4 bne.w 80069f8 <HAL_ADC_ConfigChannel+0x248>
  14619. )
  14620. {
  14621. /* Set sampling time of the selected ADC channel */
  14622. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  14623. 8006890: 687b ldr r3, [r7, #4]
  14624. 8006892: 6818 ldr r0, [r3, #0]
  14625. 8006894: 683b ldr r3, [r7, #0]
  14626. 8006896: 6819 ldr r1, [r3, #0]
  14627. 8006898: 683b ldr r3, [r7, #0]
  14628. 800689a: 689b ldr r3, [r3, #8]
  14629. 800689c: 461a mov r2, r3
  14630. 800689e: f7ff fbd9 bl 8006054 <LL_ADC_SetChannelSamplingTime>
  14631. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14632. }
  14633. else
  14634. #endif /* ADC_VER_V5_V90 */
  14635. {
  14636. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14637. 80068a2: 4b30 ldr r3, [pc, #192] @ (8006964 <HAL_ADC_ConfigChannel+0x1b4>)
  14638. 80068a4: 681b ldr r3, [r3, #0]
  14639. 80068a6: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  14640. 80068aa: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  14641. 80068ae: d10b bne.n 80068c8 <HAL_ADC_ConfigChannel+0x118>
  14642. 80068b0: 683b ldr r3, [r7, #0]
  14643. 80068b2: 695a ldr r2, [r3, #20]
  14644. 80068b4: 687b ldr r3, [r7, #4]
  14645. 80068b6: 681b ldr r3, [r3, #0]
  14646. 80068b8: 68db ldr r3, [r3, #12]
  14647. 80068ba: 089b lsrs r3, r3, #2
  14648. 80068bc: f003 0307 and.w r3, r3, #7
  14649. 80068c0: 005b lsls r3, r3, #1
  14650. 80068c2: fa02 f303 lsl.w r3, r2, r3
  14651. 80068c6: e01d b.n 8006904 <HAL_ADC_ConfigChannel+0x154>
  14652. 80068c8: 687b ldr r3, [r7, #4]
  14653. 80068ca: 681b ldr r3, [r3, #0]
  14654. 80068cc: 68db ldr r3, [r3, #12]
  14655. 80068ce: f003 0310 and.w r3, r3, #16
  14656. 80068d2: 2b00 cmp r3, #0
  14657. 80068d4: d10b bne.n 80068ee <HAL_ADC_ConfigChannel+0x13e>
  14658. 80068d6: 683b ldr r3, [r7, #0]
  14659. 80068d8: 695a ldr r2, [r3, #20]
  14660. 80068da: 687b ldr r3, [r7, #4]
  14661. 80068dc: 681b ldr r3, [r3, #0]
  14662. 80068de: 68db ldr r3, [r3, #12]
  14663. 80068e0: 089b lsrs r3, r3, #2
  14664. 80068e2: f003 0307 and.w r3, r3, #7
  14665. 80068e6: 005b lsls r3, r3, #1
  14666. 80068e8: fa02 f303 lsl.w r3, r2, r3
  14667. 80068ec: e00a b.n 8006904 <HAL_ADC_ConfigChannel+0x154>
  14668. 80068ee: 683b ldr r3, [r7, #0]
  14669. 80068f0: 695a ldr r2, [r3, #20]
  14670. 80068f2: 687b ldr r3, [r7, #4]
  14671. 80068f4: 681b ldr r3, [r3, #0]
  14672. 80068f6: 68db ldr r3, [r3, #12]
  14673. 80068f8: 089b lsrs r3, r3, #2
  14674. 80068fa: f003 0304 and.w r3, r3, #4
  14675. 80068fe: 005b lsls r3, r3, #1
  14676. 8006900: fa02 f303 lsl.w r3, r2, r3
  14677. 8006904: 673b str r3, [r7, #112] @ 0x70
  14678. }
  14679. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  14680. 8006906: 683b ldr r3, [r7, #0]
  14681. 8006908: 691b ldr r3, [r3, #16]
  14682. 800690a: 2b04 cmp r3, #4
  14683. 800690c: d02c beq.n 8006968 <HAL_ADC_ConfigChannel+0x1b8>
  14684. {
  14685. /* Set ADC selected offset number */
  14686. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  14687. 800690e: 687b ldr r3, [r7, #4]
  14688. 8006910: 6818 ldr r0, [r3, #0]
  14689. 8006912: 683b ldr r3, [r7, #0]
  14690. 8006914: 6919 ldr r1, [r3, #16]
  14691. 8006916: 683b ldr r3, [r7, #0]
  14692. 8006918: 681a ldr r2, [r3, #0]
  14693. 800691a: 6f3b ldr r3, [r7, #112] @ 0x70
  14694. 800691c: f7ff faf4 bl 8005f08 <LL_ADC_SetOffset>
  14695. else
  14696. #endif /* ADC_VER_V5_V90 */
  14697. {
  14698. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  14699. /* Set ADC selected offset signed saturation */
  14700. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  14701. 8006920: 687b ldr r3, [r7, #4]
  14702. 8006922: 6818 ldr r0, [r3, #0]
  14703. 8006924: 683b ldr r3, [r7, #0]
  14704. 8006926: 6919 ldr r1, [r3, #16]
  14705. 8006928: 683b ldr r3, [r7, #0]
  14706. 800692a: 7e5b ldrb r3, [r3, #25]
  14707. 800692c: 2b01 cmp r3, #1
  14708. 800692e: d102 bne.n 8006936 <HAL_ADC_ConfigChannel+0x186>
  14709. 8006930: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  14710. 8006934: e000 b.n 8006938 <HAL_ADC_ConfigChannel+0x188>
  14711. 8006936: 2300 movs r3, #0
  14712. 8006938: 461a mov r2, r3
  14713. 800693a: f7ff fb1e bl 8005f7a <LL_ADC_SetOffsetSignedSaturation>
  14714. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  14715. /* Set ADC selected offset right shift */
  14716. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  14717. 800693e: 687b ldr r3, [r7, #4]
  14718. 8006940: 6818 ldr r0, [r3, #0]
  14719. 8006942: 683b ldr r3, [r7, #0]
  14720. 8006944: 6919 ldr r1, [r3, #16]
  14721. 8006946: 683b ldr r3, [r7, #0]
  14722. 8006948: 7e1b ldrb r3, [r3, #24]
  14723. 800694a: 2b01 cmp r3, #1
  14724. 800694c: d102 bne.n 8006954 <HAL_ADC_ConfigChannel+0x1a4>
  14725. 800694e: f44f 6300 mov.w r3, #2048 @ 0x800
  14726. 8006952: e000 b.n 8006956 <HAL_ADC_ConfigChannel+0x1a6>
  14727. 8006954: 2300 movs r3, #0
  14728. 8006956: 461a mov r2, r3
  14729. 8006958: f7ff faf6 bl 8005f48 <LL_ADC_SetDataRightShift>
  14730. 800695c: e04c b.n 80069f8 <HAL_ADC_ConfigChannel+0x248>
  14731. 800695e: bf00 nop
  14732. 8006960: 47ff0000 .word 0x47ff0000
  14733. 8006964: 5c001000 .word 0x5c001000
  14734. }
  14735. }
  14736. else
  14737. #endif /* ADC_VER_V5_V90 */
  14738. {
  14739. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14740. 8006968: 687b ldr r3, [r7, #4]
  14741. 800696a: 681b ldr r3, [r3, #0]
  14742. 800696c: 6e1b ldr r3, [r3, #96] @ 0x60
  14743. 800696e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14744. 8006972: 683b ldr r3, [r7, #0]
  14745. 8006974: 681b ldr r3, [r3, #0]
  14746. 8006976: 069b lsls r3, r3, #26
  14747. 8006978: 429a cmp r2, r3
  14748. 800697a: d107 bne.n 800698c <HAL_ADC_ConfigChannel+0x1dc>
  14749. {
  14750. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  14751. 800697c: 687b ldr r3, [r7, #4]
  14752. 800697e: 681b ldr r3, [r3, #0]
  14753. 8006980: 6e1a ldr r2, [r3, #96] @ 0x60
  14754. 8006982: 687b ldr r3, [r7, #4]
  14755. 8006984: 681b ldr r3, [r3, #0]
  14756. 8006986: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14757. 800698a: 661a str r2, [r3, #96] @ 0x60
  14758. }
  14759. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14760. 800698c: 687b ldr r3, [r7, #4]
  14761. 800698e: 681b ldr r3, [r3, #0]
  14762. 8006990: 6e5b ldr r3, [r3, #100] @ 0x64
  14763. 8006992: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14764. 8006996: 683b ldr r3, [r7, #0]
  14765. 8006998: 681b ldr r3, [r3, #0]
  14766. 800699a: 069b lsls r3, r3, #26
  14767. 800699c: 429a cmp r2, r3
  14768. 800699e: d107 bne.n 80069b0 <HAL_ADC_ConfigChannel+0x200>
  14769. {
  14770. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  14771. 80069a0: 687b ldr r3, [r7, #4]
  14772. 80069a2: 681b ldr r3, [r3, #0]
  14773. 80069a4: 6e5a ldr r2, [r3, #100] @ 0x64
  14774. 80069a6: 687b ldr r3, [r7, #4]
  14775. 80069a8: 681b ldr r3, [r3, #0]
  14776. 80069aa: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14777. 80069ae: 665a str r2, [r3, #100] @ 0x64
  14778. }
  14779. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14780. 80069b0: 687b ldr r3, [r7, #4]
  14781. 80069b2: 681b ldr r3, [r3, #0]
  14782. 80069b4: 6e9b ldr r3, [r3, #104] @ 0x68
  14783. 80069b6: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14784. 80069ba: 683b ldr r3, [r7, #0]
  14785. 80069bc: 681b ldr r3, [r3, #0]
  14786. 80069be: 069b lsls r3, r3, #26
  14787. 80069c0: 429a cmp r2, r3
  14788. 80069c2: d107 bne.n 80069d4 <HAL_ADC_ConfigChannel+0x224>
  14789. {
  14790. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  14791. 80069c4: 687b ldr r3, [r7, #4]
  14792. 80069c6: 681b ldr r3, [r3, #0]
  14793. 80069c8: 6e9a ldr r2, [r3, #104] @ 0x68
  14794. 80069ca: 687b ldr r3, [r7, #4]
  14795. 80069cc: 681b ldr r3, [r3, #0]
  14796. 80069ce: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14797. 80069d2: 669a str r2, [r3, #104] @ 0x68
  14798. }
  14799. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14800. 80069d4: 687b ldr r3, [r7, #4]
  14801. 80069d6: 681b ldr r3, [r3, #0]
  14802. 80069d8: 6edb ldr r3, [r3, #108] @ 0x6c
  14803. 80069da: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14804. 80069de: 683b ldr r3, [r7, #0]
  14805. 80069e0: 681b ldr r3, [r3, #0]
  14806. 80069e2: 069b lsls r3, r3, #26
  14807. 80069e4: 429a cmp r2, r3
  14808. 80069e6: d107 bne.n 80069f8 <HAL_ADC_ConfigChannel+0x248>
  14809. {
  14810. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  14811. 80069e8: 687b ldr r3, [r7, #4]
  14812. 80069ea: 681b ldr r3, [r3, #0]
  14813. 80069ec: 6eda ldr r2, [r3, #108] @ 0x6c
  14814. 80069ee: 687b ldr r3, [r7, #4]
  14815. 80069f0: 681b ldr r3, [r3, #0]
  14816. 80069f2: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14817. 80069f6: 66da str r2, [r3, #108] @ 0x6c
  14818. /* Parameters update conditioned to ADC state: */
  14819. /* Parameters that can be updated only when ADC is disabled: */
  14820. /* - Single or differential mode */
  14821. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  14822. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14823. 80069f8: 687b ldr r3, [r7, #4]
  14824. 80069fa: 681b ldr r3, [r3, #0]
  14825. 80069fc: 4618 mov r0, r3
  14826. 80069fe: f7ff fbfd bl 80061fc <LL_ADC_IsEnabled>
  14827. 8006a02: 4603 mov r3, r0
  14828. 8006a04: 2b00 cmp r3, #0
  14829. 8006a06: f040 8211 bne.w 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  14830. {
  14831. /* Set mode single-ended or differential input of the selected ADC channel */
  14832. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  14833. 8006a0a: 687b ldr r3, [r7, #4]
  14834. 8006a0c: 6818 ldr r0, [r3, #0]
  14835. 8006a0e: 683b ldr r3, [r7, #0]
  14836. 8006a10: 6819 ldr r1, [r3, #0]
  14837. 8006a12: 683b ldr r3, [r7, #0]
  14838. 8006a14: 68db ldr r3, [r3, #12]
  14839. 8006a16: 461a mov r2, r3
  14840. 8006a18: f7ff fb48 bl 80060ac <LL_ADC_SetChannelSingleDiff>
  14841. /* Configuration of differential mode */
  14842. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  14843. 8006a1c: 683b ldr r3, [r7, #0]
  14844. 8006a1e: 68db ldr r3, [r3, #12]
  14845. 8006a20: 4aa1 ldr r2, [pc, #644] @ (8006ca8 <HAL_ADC_ConfigChannel+0x4f8>)
  14846. 8006a22: 4293 cmp r3, r2
  14847. 8006a24: f040 812e bne.w 8006c84 <HAL_ADC_ConfigChannel+0x4d4>
  14848. {
  14849. /* Set sampling time of the selected ADC channel */
  14850. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  14851. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14852. 8006a28: 687b ldr r3, [r7, #4]
  14853. 8006a2a: 6818 ldr r0, [r3, #0]
  14854. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14855. 8006a2c: 683b ldr r3, [r7, #0]
  14856. 8006a2e: 681b ldr r3, [r3, #0]
  14857. 8006a30: f3c3 0313 ubfx r3, r3, #0, #20
  14858. 8006a34: 2b00 cmp r3, #0
  14859. 8006a36: d10b bne.n 8006a50 <HAL_ADC_ConfigChannel+0x2a0>
  14860. 8006a38: 683b ldr r3, [r7, #0]
  14861. 8006a3a: 681b ldr r3, [r3, #0]
  14862. 8006a3c: 0e9b lsrs r3, r3, #26
  14863. 8006a3e: 3301 adds r3, #1
  14864. 8006a40: f003 031f and.w r3, r3, #31
  14865. 8006a44: 2b09 cmp r3, #9
  14866. 8006a46: bf94 ite ls
  14867. 8006a48: 2301 movls r3, #1
  14868. 8006a4a: 2300 movhi r3, #0
  14869. 8006a4c: b2db uxtb r3, r3
  14870. 8006a4e: e019 b.n 8006a84 <HAL_ADC_ConfigChannel+0x2d4>
  14871. 8006a50: 683b ldr r3, [r7, #0]
  14872. 8006a52: 681b ldr r3, [r3, #0]
  14873. 8006a54: 65bb str r3, [r7, #88] @ 0x58
  14874. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14875. 8006a56: 6dbb ldr r3, [r7, #88] @ 0x58
  14876. 8006a58: fa93 f3a3 rbit r3, r3
  14877. 8006a5c: 657b str r3, [r7, #84] @ 0x54
  14878. return result;
  14879. 8006a5e: 6d7b ldr r3, [r7, #84] @ 0x54
  14880. 8006a60: 65fb str r3, [r7, #92] @ 0x5c
  14881. if (value == 0U)
  14882. 8006a62: 6dfb ldr r3, [r7, #92] @ 0x5c
  14883. 8006a64: 2b00 cmp r3, #0
  14884. 8006a66: d101 bne.n 8006a6c <HAL_ADC_ConfigChannel+0x2bc>
  14885. return 32U;
  14886. 8006a68: 2320 movs r3, #32
  14887. 8006a6a: e003 b.n 8006a74 <HAL_ADC_ConfigChannel+0x2c4>
  14888. return __builtin_clz(value);
  14889. 8006a6c: 6dfb ldr r3, [r7, #92] @ 0x5c
  14890. 8006a6e: fab3 f383 clz r3, r3
  14891. 8006a72: b2db uxtb r3, r3
  14892. 8006a74: 3301 adds r3, #1
  14893. 8006a76: f003 031f and.w r3, r3, #31
  14894. 8006a7a: 2b09 cmp r3, #9
  14895. 8006a7c: bf94 ite ls
  14896. 8006a7e: 2301 movls r3, #1
  14897. 8006a80: 2300 movhi r3, #0
  14898. 8006a82: b2db uxtb r3, r3
  14899. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14900. 8006a84: 2b00 cmp r3, #0
  14901. 8006a86: d079 beq.n 8006b7c <HAL_ADC_ConfigChannel+0x3cc>
  14902. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14903. 8006a88: 683b ldr r3, [r7, #0]
  14904. 8006a8a: 681b ldr r3, [r3, #0]
  14905. 8006a8c: f3c3 0313 ubfx r3, r3, #0, #20
  14906. 8006a90: 2b00 cmp r3, #0
  14907. 8006a92: d107 bne.n 8006aa4 <HAL_ADC_ConfigChannel+0x2f4>
  14908. 8006a94: 683b ldr r3, [r7, #0]
  14909. 8006a96: 681b ldr r3, [r3, #0]
  14910. 8006a98: 0e9b lsrs r3, r3, #26
  14911. 8006a9a: 3301 adds r3, #1
  14912. 8006a9c: 069b lsls r3, r3, #26
  14913. 8006a9e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14914. 8006aa2: e015 b.n 8006ad0 <HAL_ADC_ConfigChannel+0x320>
  14915. 8006aa4: 683b ldr r3, [r7, #0]
  14916. 8006aa6: 681b ldr r3, [r3, #0]
  14917. 8006aa8: 64fb str r3, [r7, #76] @ 0x4c
  14918. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14919. 8006aaa: 6cfb ldr r3, [r7, #76] @ 0x4c
  14920. 8006aac: fa93 f3a3 rbit r3, r3
  14921. 8006ab0: 64bb str r3, [r7, #72] @ 0x48
  14922. return result;
  14923. 8006ab2: 6cbb ldr r3, [r7, #72] @ 0x48
  14924. 8006ab4: 653b str r3, [r7, #80] @ 0x50
  14925. if (value == 0U)
  14926. 8006ab6: 6d3b ldr r3, [r7, #80] @ 0x50
  14927. 8006ab8: 2b00 cmp r3, #0
  14928. 8006aba: d101 bne.n 8006ac0 <HAL_ADC_ConfigChannel+0x310>
  14929. return 32U;
  14930. 8006abc: 2320 movs r3, #32
  14931. 8006abe: e003 b.n 8006ac8 <HAL_ADC_ConfigChannel+0x318>
  14932. return __builtin_clz(value);
  14933. 8006ac0: 6d3b ldr r3, [r7, #80] @ 0x50
  14934. 8006ac2: fab3 f383 clz r3, r3
  14935. 8006ac6: b2db uxtb r3, r3
  14936. 8006ac8: 3301 adds r3, #1
  14937. 8006aca: 069b lsls r3, r3, #26
  14938. 8006acc: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14939. 8006ad0: 683b ldr r3, [r7, #0]
  14940. 8006ad2: 681b ldr r3, [r3, #0]
  14941. 8006ad4: f3c3 0313 ubfx r3, r3, #0, #20
  14942. 8006ad8: 2b00 cmp r3, #0
  14943. 8006ada: d109 bne.n 8006af0 <HAL_ADC_ConfigChannel+0x340>
  14944. 8006adc: 683b ldr r3, [r7, #0]
  14945. 8006ade: 681b ldr r3, [r3, #0]
  14946. 8006ae0: 0e9b lsrs r3, r3, #26
  14947. 8006ae2: 3301 adds r3, #1
  14948. 8006ae4: f003 031f and.w r3, r3, #31
  14949. 8006ae8: 2101 movs r1, #1
  14950. 8006aea: fa01 f303 lsl.w r3, r1, r3
  14951. 8006aee: e017 b.n 8006b20 <HAL_ADC_ConfigChannel+0x370>
  14952. 8006af0: 683b ldr r3, [r7, #0]
  14953. 8006af2: 681b ldr r3, [r3, #0]
  14954. 8006af4: 643b str r3, [r7, #64] @ 0x40
  14955. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14956. 8006af6: 6c3b ldr r3, [r7, #64] @ 0x40
  14957. 8006af8: fa93 f3a3 rbit r3, r3
  14958. 8006afc: 63fb str r3, [r7, #60] @ 0x3c
  14959. return result;
  14960. 8006afe: 6bfb ldr r3, [r7, #60] @ 0x3c
  14961. 8006b00: 647b str r3, [r7, #68] @ 0x44
  14962. if (value == 0U)
  14963. 8006b02: 6c7b ldr r3, [r7, #68] @ 0x44
  14964. 8006b04: 2b00 cmp r3, #0
  14965. 8006b06: d101 bne.n 8006b0c <HAL_ADC_ConfigChannel+0x35c>
  14966. return 32U;
  14967. 8006b08: 2320 movs r3, #32
  14968. 8006b0a: e003 b.n 8006b14 <HAL_ADC_ConfigChannel+0x364>
  14969. return __builtin_clz(value);
  14970. 8006b0c: 6c7b ldr r3, [r7, #68] @ 0x44
  14971. 8006b0e: fab3 f383 clz r3, r3
  14972. 8006b12: b2db uxtb r3, r3
  14973. 8006b14: 3301 adds r3, #1
  14974. 8006b16: f003 031f and.w r3, r3, #31
  14975. 8006b1a: 2101 movs r1, #1
  14976. 8006b1c: fa01 f303 lsl.w r3, r1, r3
  14977. 8006b20: ea42 0103 orr.w r1, r2, r3
  14978. 8006b24: 683b ldr r3, [r7, #0]
  14979. 8006b26: 681b ldr r3, [r3, #0]
  14980. 8006b28: f3c3 0313 ubfx r3, r3, #0, #20
  14981. 8006b2c: 2b00 cmp r3, #0
  14982. 8006b2e: d10a bne.n 8006b46 <HAL_ADC_ConfigChannel+0x396>
  14983. 8006b30: 683b ldr r3, [r7, #0]
  14984. 8006b32: 681b ldr r3, [r3, #0]
  14985. 8006b34: 0e9b lsrs r3, r3, #26
  14986. 8006b36: 3301 adds r3, #1
  14987. 8006b38: f003 021f and.w r2, r3, #31
  14988. 8006b3c: 4613 mov r3, r2
  14989. 8006b3e: 005b lsls r3, r3, #1
  14990. 8006b40: 4413 add r3, r2
  14991. 8006b42: 051b lsls r3, r3, #20
  14992. 8006b44: e018 b.n 8006b78 <HAL_ADC_ConfigChannel+0x3c8>
  14993. 8006b46: 683b ldr r3, [r7, #0]
  14994. 8006b48: 681b ldr r3, [r3, #0]
  14995. 8006b4a: 637b str r3, [r7, #52] @ 0x34
  14996. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14997. 8006b4c: 6b7b ldr r3, [r7, #52] @ 0x34
  14998. 8006b4e: fa93 f3a3 rbit r3, r3
  14999. 8006b52: 633b str r3, [r7, #48] @ 0x30
  15000. return result;
  15001. 8006b54: 6b3b ldr r3, [r7, #48] @ 0x30
  15002. 8006b56: 63bb str r3, [r7, #56] @ 0x38
  15003. if (value == 0U)
  15004. 8006b58: 6bbb ldr r3, [r7, #56] @ 0x38
  15005. 8006b5a: 2b00 cmp r3, #0
  15006. 8006b5c: d101 bne.n 8006b62 <HAL_ADC_ConfigChannel+0x3b2>
  15007. return 32U;
  15008. 8006b5e: 2320 movs r3, #32
  15009. 8006b60: e003 b.n 8006b6a <HAL_ADC_ConfigChannel+0x3ba>
  15010. return __builtin_clz(value);
  15011. 8006b62: 6bbb ldr r3, [r7, #56] @ 0x38
  15012. 8006b64: fab3 f383 clz r3, r3
  15013. 8006b68: b2db uxtb r3, r3
  15014. 8006b6a: 3301 adds r3, #1
  15015. 8006b6c: f003 021f and.w r2, r3, #31
  15016. 8006b70: 4613 mov r3, r2
  15017. 8006b72: 005b lsls r3, r3, #1
  15018. 8006b74: 4413 add r3, r2
  15019. 8006b76: 051b lsls r3, r3, #20
  15020. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15021. 8006b78: 430b orrs r3, r1
  15022. 8006b7a: e07e b.n 8006c7a <HAL_ADC_ConfigChannel+0x4ca>
  15023. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  15024. 8006b7c: 683b ldr r3, [r7, #0]
  15025. 8006b7e: 681b ldr r3, [r3, #0]
  15026. 8006b80: f3c3 0313 ubfx r3, r3, #0, #20
  15027. 8006b84: 2b00 cmp r3, #0
  15028. 8006b86: d107 bne.n 8006b98 <HAL_ADC_ConfigChannel+0x3e8>
  15029. 8006b88: 683b ldr r3, [r7, #0]
  15030. 8006b8a: 681b ldr r3, [r3, #0]
  15031. 8006b8c: 0e9b lsrs r3, r3, #26
  15032. 8006b8e: 3301 adds r3, #1
  15033. 8006b90: 069b lsls r3, r3, #26
  15034. 8006b92: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15035. 8006b96: e015 b.n 8006bc4 <HAL_ADC_ConfigChannel+0x414>
  15036. 8006b98: 683b ldr r3, [r7, #0]
  15037. 8006b9a: 681b ldr r3, [r3, #0]
  15038. 8006b9c: 62bb str r3, [r7, #40] @ 0x28
  15039. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15040. 8006b9e: 6abb ldr r3, [r7, #40] @ 0x28
  15041. 8006ba0: fa93 f3a3 rbit r3, r3
  15042. 8006ba4: 627b str r3, [r7, #36] @ 0x24
  15043. return result;
  15044. 8006ba6: 6a7b ldr r3, [r7, #36] @ 0x24
  15045. 8006ba8: 62fb str r3, [r7, #44] @ 0x2c
  15046. if (value == 0U)
  15047. 8006baa: 6afb ldr r3, [r7, #44] @ 0x2c
  15048. 8006bac: 2b00 cmp r3, #0
  15049. 8006bae: d101 bne.n 8006bb4 <HAL_ADC_ConfigChannel+0x404>
  15050. return 32U;
  15051. 8006bb0: 2320 movs r3, #32
  15052. 8006bb2: e003 b.n 8006bbc <HAL_ADC_ConfigChannel+0x40c>
  15053. return __builtin_clz(value);
  15054. 8006bb4: 6afb ldr r3, [r7, #44] @ 0x2c
  15055. 8006bb6: fab3 f383 clz r3, r3
  15056. 8006bba: b2db uxtb r3, r3
  15057. 8006bbc: 3301 adds r3, #1
  15058. 8006bbe: 069b lsls r3, r3, #26
  15059. 8006bc0: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15060. 8006bc4: 683b ldr r3, [r7, #0]
  15061. 8006bc6: 681b ldr r3, [r3, #0]
  15062. 8006bc8: f3c3 0313 ubfx r3, r3, #0, #20
  15063. 8006bcc: 2b00 cmp r3, #0
  15064. 8006bce: d109 bne.n 8006be4 <HAL_ADC_ConfigChannel+0x434>
  15065. 8006bd0: 683b ldr r3, [r7, #0]
  15066. 8006bd2: 681b ldr r3, [r3, #0]
  15067. 8006bd4: 0e9b lsrs r3, r3, #26
  15068. 8006bd6: 3301 adds r3, #1
  15069. 8006bd8: f003 031f and.w r3, r3, #31
  15070. 8006bdc: 2101 movs r1, #1
  15071. 8006bde: fa01 f303 lsl.w r3, r1, r3
  15072. 8006be2: e017 b.n 8006c14 <HAL_ADC_ConfigChannel+0x464>
  15073. 8006be4: 683b ldr r3, [r7, #0]
  15074. 8006be6: 681b ldr r3, [r3, #0]
  15075. 8006be8: 61fb str r3, [r7, #28]
  15076. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15077. 8006bea: 69fb ldr r3, [r7, #28]
  15078. 8006bec: fa93 f3a3 rbit r3, r3
  15079. 8006bf0: 61bb str r3, [r7, #24]
  15080. return result;
  15081. 8006bf2: 69bb ldr r3, [r7, #24]
  15082. 8006bf4: 623b str r3, [r7, #32]
  15083. if (value == 0U)
  15084. 8006bf6: 6a3b ldr r3, [r7, #32]
  15085. 8006bf8: 2b00 cmp r3, #0
  15086. 8006bfa: d101 bne.n 8006c00 <HAL_ADC_ConfigChannel+0x450>
  15087. return 32U;
  15088. 8006bfc: 2320 movs r3, #32
  15089. 8006bfe: e003 b.n 8006c08 <HAL_ADC_ConfigChannel+0x458>
  15090. return __builtin_clz(value);
  15091. 8006c00: 6a3b ldr r3, [r7, #32]
  15092. 8006c02: fab3 f383 clz r3, r3
  15093. 8006c06: b2db uxtb r3, r3
  15094. 8006c08: 3301 adds r3, #1
  15095. 8006c0a: f003 031f and.w r3, r3, #31
  15096. 8006c0e: 2101 movs r1, #1
  15097. 8006c10: fa01 f303 lsl.w r3, r1, r3
  15098. 8006c14: ea42 0103 orr.w r1, r2, r3
  15099. 8006c18: 683b ldr r3, [r7, #0]
  15100. 8006c1a: 681b ldr r3, [r3, #0]
  15101. 8006c1c: f3c3 0313 ubfx r3, r3, #0, #20
  15102. 8006c20: 2b00 cmp r3, #0
  15103. 8006c22: d10d bne.n 8006c40 <HAL_ADC_ConfigChannel+0x490>
  15104. 8006c24: 683b ldr r3, [r7, #0]
  15105. 8006c26: 681b ldr r3, [r3, #0]
  15106. 8006c28: 0e9b lsrs r3, r3, #26
  15107. 8006c2a: 3301 adds r3, #1
  15108. 8006c2c: f003 021f and.w r2, r3, #31
  15109. 8006c30: 4613 mov r3, r2
  15110. 8006c32: 005b lsls r3, r3, #1
  15111. 8006c34: 4413 add r3, r2
  15112. 8006c36: 3b1e subs r3, #30
  15113. 8006c38: 051b lsls r3, r3, #20
  15114. 8006c3a: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15115. 8006c3e: e01b b.n 8006c78 <HAL_ADC_ConfigChannel+0x4c8>
  15116. 8006c40: 683b ldr r3, [r7, #0]
  15117. 8006c42: 681b ldr r3, [r3, #0]
  15118. 8006c44: 613b str r3, [r7, #16]
  15119. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15120. 8006c46: 693b ldr r3, [r7, #16]
  15121. 8006c48: fa93 f3a3 rbit r3, r3
  15122. 8006c4c: 60fb str r3, [r7, #12]
  15123. return result;
  15124. 8006c4e: 68fb ldr r3, [r7, #12]
  15125. 8006c50: 617b str r3, [r7, #20]
  15126. if (value == 0U)
  15127. 8006c52: 697b ldr r3, [r7, #20]
  15128. 8006c54: 2b00 cmp r3, #0
  15129. 8006c56: d101 bne.n 8006c5c <HAL_ADC_ConfigChannel+0x4ac>
  15130. return 32U;
  15131. 8006c58: 2320 movs r3, #32
  15132. 8006c5a: e003 b.n 8006c64 <HAL_ADC_ConfigChannel+0x4b4>
  15133. return __builtin_clz(value);
  15134. 8006c5c: 697b ldr r3, [r7, #20]
  15135. 8006c5e: fab3 f383 clz r3, r3
  15136. 8006c62: b2db uxtb r3, r3
  15137. 8006c64: 3301 adds r3, #1
  15138. 8006c66: f003 021f and.w r2, r3, #31
  15139. 8006c6a: 4613 mov r3, r2
  15140. 8006c6c: 005b lsls r3, r3, #1
  15141. 8006c6e: 4413 add r3, r2
  15142. 8006c70: 3b1e subs r3, #30
  15143. 8006c72: 051b lsls r3, r3, #20
  15144. 8006c74: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15145. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15146. 8006c78: 430b orrs r3, r1
  15147. 8006c7a: 683a ldr r2, [r7, #0]
  15148. 8006c7c: 6892 ldr r2, [r2, #8]
  15149. 8006c7e: 4619 mov r1, r3
  15150. 8006c80: f7ff f9e8 bl 8006054 <LL_ADC_SetChannelSamplingTime>
  15151. /* If internal channel selected, enable dedicated internal buffers and */
  15152. /* paths. */
  15153. /* Note: these internal measurement paths can be disabled using */
  15154. /* HAL_ADC_DeInit(). */
  15155. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  15156. 8006c84: 683b ldr r3, [r7, #0]
  15157. 8006c86: 681b ldr r3, [r3, #0]
  15158. 8006c88: 2b00 cmp r3, #0
  15159. 8006c8a: f280 80cf bge.w 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15160. {
  15161. /* Configuration of common ADC parameters */
  15162. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15163. 8006c8e: 687b ldr r3, [r7, #4]
  15164. 8006c90: 681b ldr r3, [r3, #0]
  15165. 8006c92: 4a06 ldr r2, [pc, #24] @ (8006cac <HAL_ADC_ConfigChannel+0x4fc>)
  15166. 8006c94: 4293 cmp r3, r2
  15167. 8006c96: d004 beq.n 8006ca2 <HAL_ADC_ConfigChannel+0x4f2>
  15168. 8006c98: 687b ldr r3, [r7, #4]
  15169. 8006c9a: 681b ldr r3, [r3, #0]
  15170. 8006c9c: 4a04 ldr r2, [pc, #16] @ (8006cb0 <HAL_ADC_ConfigChannel+0x500>)
  15171. 8006c9e: 4293 cmp r3, r2
  15172. 8006ca0: d10a bne.n 8006cb8 <HAL_ADC_ConfigChannel+0x508>
  15173. 8006ca2: 4b04 ldr r3, [pc, #16] @ (8006cb4 <HAL_ADC_ConfigChannel+0x504>)
  15174. 8006ca4: e009 b.n 8006cba <HAL_ADC_ConfigChannel+0x50a>
  15175. 8006ca6: bf00 nop
  15176. 8006ca8: 47ff0000 .word 0x47ff0000
  15177. 8006cac: 40022000 .word 0x40022000
  15178. 8006cb0: 40022100 .word 0x40022100
  15179. 8006cb4: 40022300 .word 0x40022300
  15180. 8006cb8: 4b61 ldr r3, [pc, #388] @ (8006e40 <HAL_ADC_ConfigChannel+0x690>)
  15181. 8006cba: 4618 mov r0, r3
  15182. 8006cbc: f7ff f916 bl 8005eec <LL_ADC_GetCommonPathInternalCh>
  15183. 8006cc0: 66f8 str r0, [r7, #108] @ 0x6c
  15184. /* Software is allowed to change common parameters only when all ADCs */
  15185. /* of the common group are disabled. */
  15186. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15187. 8006cc2: 687b ldr r3, [r7, #4]
  15188. 8006cc4: 681b ldr r3, [r3, #0]
  15189. 8006cc6: 4a5f ldr r2, [pc, #380] @ (8006e44 <HAL_ADC_ConfigChannel+0x694>)
  15190. 8006cc8: 4293 cmp r3, r2
  15191. 8006cca: d004 beq.n 8006cd6 <HAL_ADC_ConfigChannel+0x526>
  15192. 8006ccc: 687b ldr r3, [r7, #4]
  15193. 8006cce: 681b ldr r3, [r3, #0]
  15194. 8006cd0: 4a5d ldr r2, [pc, #372] @ (8006e48 <HAL_ADC_ConfigChannel+0x698>)
  15195. 8006cd2: 4293 cmp r3, r2
  15196. 8006cd4: d10e bne.n 8006cf4 <HAL_ADC_ConfigChannel+0x544>
  15197. 8006cd6: 485b ldr r0, [pc, #364] @ (8006e44 <HAL_ADC_ConfigChannel+0x694>)
  15198. 8006cd8: f7ff fa90 bl 80061fc <LL_ADC_IsEnabled>
  15199. 8006cdc: 4604 mov r4, r0
  15200. 8006cde: 485a ldr r0, [pc, #360] @ (8006e48 <HAL_ADC_ConfigChannel+0x698>)
  15201. 8006ce0: f7ff fa8c bl 80061fc <LL_ADC_IsEnabled>
  15202. 8006ce4: 4603 mov r3, r0
  15203. 8006ce6: 4323 orrs r3, r4
  15204. 8006ce8: 2b00 cmp r3, #0
  15205. 8006cea: bf0c ite eq
  15206. 8006cec: 2301 moveq r3, #1
  15207. 8006cee: 2300 movne r3, #0
  15208. 8006cf0: b2db uxtb r3, r3
  15209. 8006cf2: e008 b.n 8006d06 <HAL_ADC_ConfigChannel+0x556>
  15210. 8006cf4: 4855 ldr r0, [pc, #340] @ (8006e4c <HAL_ADC_ConfigChannel+0x69c>)
  15211. 8006cf6: f7ff fa81 bl 80061fc <LL_ADC_IsEnabled>
  15212. 8006cfa: 4603 mov r3, r0
  15213. 8006cfc: 2b00 cmp r3, #0
  15214. 8006cfe: bf0c ite eq
  15215. 8006d00: 2301 moveq r3, #1
  15216. 8006d02: 2300 movne r3, #0
  15217. 8006d04: b2db uxtb r3, r3
  15218. 8006d06: 2b00 cmp r3, #0
  15219. 8006d08: d07d beq.n 8006e06 <HAL_ADC_ConfigChannel+0x656>
  15220. {
  15221. /* If the requested internal measurement path has already been enabled, */
  15222. /* bypass the configuration processing. */
  15223. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  15224. 8006d0a: 683b ldr r3, [r7, #0]
  15225. 8006d0c: 681b ldr r3, [r3, #0]
  15226. 8006d0e: 4a50 ldr r2, [pc, #320] @ (8006e50 <HAL_ADC_ConfigChannel+0x6a0>)
  15227. 8006d10: 4293 cmp r3, r2
  15228. 8006d12: d130 bne.n 8006d76 <HAL_ADC_ConfigChannel+0x5c6>
  15229. 8006d14: 6efb ldr r3, [r7, #108] @ 0x6c
  15230. 8006d16: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  15231. 8006d1a: 2b00 cmp r3, #0
  15232. 8006d1c: d12b bne.n 8006d76 <HAL_ADC_ConfigChannel+0x5c6>
  15233. {
  15234. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15235. 8006d1e: 687b ldr r3, [r7, #4]
  15236. 8006d20: 681b ldr r3, [r3, #0]
  15237. 8006d22: 4a4a ldr r2, [pc, #296] @ (8006e4c <HAL_ADC_ConfigChannel+0x69c>)
  15238. 8006d24: 4293 cmp r3, r2
  15239. 8006d26: f040 8081 bne.w 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15240. {
  15241. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  15242. 8006d2a: 687b ldr r3, [r7, #4]
  15243. 8006d2c: 681b ldr r3, [r3, #0]
  15244. 8006d2e: 4a45 ldr r2, [pc, #276] @ (8006e44 <HAL_ADC_ConfigChannel+0x694>)
  15245. 8006d30: 4293 cmp r3, r2
  15246. 8006d32: d004 beq.n 8006d3e <HAL_ADC_ConfigChannel+0x58e>
  15247. 8006d34: 687b ldr r3, [r7, #4]
  15248. 8006d36: 681b ldr r3, [r3, #0]
  15249. 8006d38: 4a43 ldr r2, [pc, #268] @ (8006e48 <HAL_ADC_ConfigChannel+0x698>)
  15250. 8006d3a: 4293 cmp r3, r2
  15251. 8006d3c: d101 bne.n 8006d42 <HAL_ADC_ConfigChannel+0x592>
  15252. 8006d3e: 4a45 ldr r2, [pc, #276] @ (8006e54 <HAL_ADC_ConfigChannel+0x6a4>)
  15253. 8006d40: e000 b.n 8006d44 <HAL_ADC_ConfigChannel+0x594>
  15254. 8006d42: 4a3f ldr r2, [pc, #252] @ (8006e40 <HAL_ADC_ConfigChannel+0x690>)
  15255. 8006d44: 6efb ldr r3, [r7, #108] @ 0x6c
  15256. 8006d46: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  15257. 8006d4a: 4619 mov r1, r3
  15258. 8006d4c: 4610 mov r0, r2
  15259. 8006d4e: f7ff f8ba bl 8005ec6 <LL_ADC_SetCommonPathInternalCh>
  15260. /* Delay for temperature sensor stabilization time */
  15261. /* Wait loop initialization and execution */
  15262. /* Note: Variable divided by 2 to compensate partially */
  15263. /* CPU processing cycles, scaling in us split to not */
  15264. /* exceed 32 bits register capacity and handle low frequency. */
  15265. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15266. 8006d52: 4b41 ldr r3, [pc, #260] @ (8006e58 <HAL_ADC_ConfigChannel+0x6a8>)
  15267. 8006d54: 681b ldr r3, [r3, #0]
  15268. 8006d56: 099b lsrs r3, r3, #6
  15269. 8006d58: 4a40 ldr r2, [pc, #256] @ (8006e5c <HAL_ADC_ConfigChannel+0x6ac>)
  15270. 8006d5a: fba2 2303 umull r2, r3, r2, r3
  15271. 8006d5e: 099b lsrs r3, r3, #6
  15272. 8006d60: 3301 adds r3, #1
  15273. 8006d62: 005b lsls r3, r3, #1
  15274. 8006d64: 60bb str r3, [r7, #8]
  15275. while (wait_loop_index != 0UL)
  15276. 8006d66: e002 b.n 8006d6e <HAL_ADC_ConfigChannel+0x5be>
  15277. {
  15278. wait_loop_index--;
  15279. 8006d68: 68bb ldr r3, [r7, #8]
  15280. 8006d6a: 3b01 subs r3, #1
  15281. 8006d6c: 60bb str r3, [r7, #8]
  15282. while (wait_loop_index != 0UL)
  15283. 8006d6e: 68bb ldr r3, [r7, #8]
  15284. 8006d70: 2b00 cmp r3, #0
  15285. 8006d72: d1f9 bne.n 8006d68 <HAL_ADC_ConfigChannel+0x5b8>
  15286. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15287. 8006d74: e05a b.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15288. }
  15289. }
  15290. }
  15291. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  15292. 8006d76: 683b ldr r3, [r7, #0]
  15293. 8006d78: 681b ldr r3, [r3, #0]
  15294. 8006d7a: 4a39 ldr r2, [pc, #228] @ (8006e60 <HAL_ADC_ConfigChannel+0x6b0>)
  15295. 8006d7c: 4293 cmp r3, r2
  15296. 8006d7e: d11e bne.n 8006dbe <HAL_ADC_ConfigChannel+0x60e>
  15297. 8006d80: 6efb ldr r3, [r7, #108] @ 0x6c
  15298. 8006d82: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15299. 8006d86: 2b00 cmp r3, #0
  15300. 8006d88: d119 bne.n 8006dbe <HAL_ADC_ConfigChannel+0x60e>
  15301. {
  15302. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15303. 8006d8a: 687b ldr r3, [r7, #4]
  15304. 8006d8c: 681b ldr r3, [r3, #0]
  15305. 8006d8e: 4a2f ldr r2, [pc, #188] @ (8006e4c <HAL_ADC_ConfigChannel+0x69c>)
  15306. 8006d90: 4293 cmp r3, r2
  15307. 8006d92: d14b bne.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15308. {
  15309. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  15310. 8006d94: 687b ldr r3, [r7, #4]
  15311. 8006d96: 681b ldr r3, [r3, #0]
  15312. 8006d98: 4a2a ldr r2, [pc, #168] @ (8006e44 <HAL_ADC_ConfigChannel+0x694>)
  15313. 8006d9a: 4293 cmp r3, r2
  15314. 8006d9c: d004 beq.n 8006da8 <HAL_ADC_ConfigChannel+0x5f8>
  15315. 8006d9e: 687b ldr r3, [r7, #4]
  15316. 8006da0: 681b ldr r3, [r3, #0]
  15317. 8006da2: 4a29 ldr r2, [pc, #164] @ (8006e48 <HAL_ADC_ConfigChannel+0x698>)
  15318. 8006da4: 4293 cmp r3, r2
  15319. 8006da6: d101 bne.n 8006dac <HAL_ADC_ConfigChannel+0x5fc>
  15320. 8006da8: 4a2a ldr r2, [pc, #168] @ (8006e54 <HAL_ADC_ConfigChannel+0x6a4>)
  15321. 8006daa: e000 b.n 8006dae <HAL_ADC_ConfigChannel+0x5fe>
  15322. 8006dac: 4a24 ldr r2, [pc, #144] @ (8006e40 <HAL_ADC_ConfigChannel+0x690>)
  15323. 8006dae: 6efb ldr r3, [r7, #108] @ 0x6c
  15324. 8006db0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  15325. 8006db4: 4619 mov r1, r3
  15326. 8006db6: 4610 mov r0, r2
  15327. 8006db8: f7ff f885 bl 8005ec6 <LL_ADC_SetCommonPathInternalCh>
  15328. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15329. 8006dbc: e036 b.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15330. }
  15331. }
  15332. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  15333. 8006dbe: 683b ldr r3, [r7, #0]
  15334. 8006dc0: 681b ldr r3, [r3, #0]
  15335. 8006dc2: 4a28 ldr r2, [pc, #160] @ (8006e64 <HAL_ADC_ConfigChannel+0x6b4>)
  15336. 8006dc4: 4293 cmp r3, r2
  15337. 8006dc6: d131 bne.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15338. 8006dc8: 6efb ldr r3, [r7, #108] @ 0x6c
  15339. 8006dca: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  15340. 8006dce: 2b00 cmp r3, #0
  15341. 8006dd0: d12c bne.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15342. {
  15343. if (ADC_VREFINT_INSTANCE(hadc))
  15344. 8006dd2: 687b ldr r3, [r7, #4]
  15345. 8006dd4: 681b ldr r3, [r3, #0]
  15346. 8006dd6: 4a1d ldr r2, [pc, #116] @ (8006e4c <HAL_ADC_ConfigChannel+0x69c>)
  15347. 8006dd8: 4293 cmp r3, r2
  15348. 8006dda: d127 bne.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15349. {
  15350. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  15351. 8006ddc: 687b ldr r3, [r7, #4]
  15352. 8006dde: 681b ldr r3, [r3, #0]
  15353. 8006de0: 4a18 ldr r2, [pc, #96] @ (8006e44 <HAL_ADC_ConfigChannel+0x694>)
  15354. 8006de2: 4293 cmp r3, r2
  15355. 8006de4: d004 beq.n 8006df0 <HAL_ADC_ConfigChannel+0x640>
  15356. 8006de6: 687b ldr r3, [r7, #4]
  15357. 8006de8: 681b ldr r3, [r3, #0]
  15358. 8006dea: 4a17 ldr r2, [pc, #92] @ (8006e48 <HAL_ADC_ConfigChannel+0x698>)
  15359. 8006dec: 4293 cmp r3, r2
  15360. 8006dee: d101 bne.n 8006df4 <HAL_ADC_ConfigChannel+0x644>
  15361. 8006df0: 4a18 ldr r2, [pc, #96] @ (8006e54 <HAL_ADC_ConfigChannel+0x6a4>)
  15362. 8006df2: e000 b.n 8006df6 <HAL_ADC_ConfigChannel+0x646>
  15363. 8006df4: 4a12 ldr r2, [pc, #72] @ (8006e40 <HAL_ADC_ConfigChannel+0x690>)
  15364. 8006df6: 6efb ldr r3, [r7, #108] @ 0x6c
  15365. 8006df8: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  15366. 8006dfc: 4619 mov r1, r3
  15367. 8006dfe: 4610 mov r0, r2
  15368. 8006e00: f7ff f861 bl 8005ec6 <LL_ADC_SetCommonPathInternalCh>
  15369. 8006e04: e012 b.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15370. /* enabled and other ADC of the common group are enabled, internal */
  15371. /* measurement paths cannot be enabled. */
  15372. else
  15373. {
  15374. /* Update ADC state machine to error */
  15375. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15376. 8006e06: 687b ldr r3, [r7, #4]
  15377. 8006e08: 6d5b ldr r3, [r3, #84] @ 0x54
  15378. 8006e0a: f043 0220 orr.w r2, r3, #32
  15379. 8006e0e: 687b ldr r3, [r7, #4]
  15380. 8006e10: 655a str r2, [r3, #84] @ 0x54
  15381. tmp_hal_status = HAL_ERROR;
  15382. 8006e12: 2301 movs r3, #1
  15383. 8006e14: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15384. 8006e18: e008 b.n 8006e2c <HAL_ADC_ConfigChannel+0x67c>
  15385. /* channel could be done on neither of the channel configuration structure */
  15386. /* parameters. */
  15387. else
  15388. {
  15389. /* Update ADC state machine to error */
  15390. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15391. 8006e1a: 687b ldr r3, [r7, #4]
  15392. 8006e1c: 6d5b ldr r3, [r3, #84] @ 0x54
  15393. 8006e1e: f043 0220 orr.w r2, r3, #32
  15394. 8006e22: 687b ldr r3, [r7, #4]
  15395. 8006e24: 655a str r2, [r3, #84] @ 0x54
  15396. tmp_hal_status = HAL_ERROR;
  15397. 8006e26: 2301 movs r3, #1
  15398. 8006e28: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15399. }
  15400. /* Process unlocked */
  15401. __HAL_UNLOCK(hadc);
  15402. 8006e2c: 687b ldr r3, [r7, #4]
  15403. 8006e2e: 2200 movs r2, #0
  15404. 8006e30: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15405. /* Return function status */
  15406. return tmp_hal_status;
  15407. 8006e34: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15408. }
  15409. 8006e38: 4618 mov r0, r3
  15410. 8006e3a: 3784 adds r7, #132 @ 0x84
  15411. 8006e3c: 46bd mov sp, r7
  15412. 8006e3e: bd90 pop {r4, r7, pc}
  15413. 8006e40: 58026300 .word 0x58026300
  15414. 8006e44: 40022000 .word 0x40022000
  15415. 8006e48: 40022100 .word 0x40022100
  15416. 8006e4c: 58026000 .word 0x58026000
  15417. 8006e50: cb840000 .word 0xcb840000
  15418. 8006e54: 40022300 .word 0x40022300
  15419. 8006e58: 24000034 .word 0x24000034
  15420. 8006e5c: 053e2d63 .word 0x053e2d63
  15421. 8006e60: c7520000 .word 0xc7520000
  15422. 8006e64: cfb80000 .word 0xcfb80000
  15423. 08006e68 <ADC_Enable>:
  15424. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  15425. * @param hadc ADC handle
  15426. * @retval HAL status.
  15427. */
  15428. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  15429. {
  15430. 8006e68: b580 push {r7, lr}
  15431. 8006e6a: b084 sub sp, #16
  15432. 8006e6c: af00 add r7, sp, #0
  15433. 8006e6e: 6078 str r0, [r7, #4]
  15434. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  15435. /* enabling phase not yet completed: flag ADC ready not yet set). */
  15436. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  15437. /* causes: ADC clock not running, ...). */
  15438. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15439. 8006e70: 687b ldr r3, [r7, #4]
  15440. 8006e72: 681b ldr r3, [r3, #0]
  15441. 8006e74: 4618 mov r0, r3
  15442. 8006e76: f7ff f9c1 bl 80061fc <LL_ADC_IsEnabled>
  15443. 8006e7a: 4603 mov r3, r0
  15444. 8006e7c: 2b00 cmp r3, #0
  15445. 8006e7e: d16e bne.n 8006f5e <ADC_Enable+0xf6>
  15446. {
  15447. /* Check if conditions to enable the ADC are fulfilled */
  15448. 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)
  15449. 8006e80: 687b ldr r3, [r7, #4]
  15450. 8006e82: 681b ldr r3, [r3, #0]
  15451. 8006e84: 689a ldr r2, [r3, #8]
  15452. 8006e86: 4b38 ldr r3, [pc, #224] @ (8006f68 <ADC_Enable+0x100>)
  15453. 8006e88: 4013 ands r3, r2
  15454. 8006e8a: 2b00 cmp r3, #0
  15455. 8006e8c: d00d beq.n 8006eaa <ADC_Enable+0x42>
  15456. {
  15457. /* Update ADC state machine to error */
  15458. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15459. 8006e8e: 687b ldr r3, [r7, #4]
  15460. 8006e90: 6d5b ldr r3, [r3, #84] @ 0x54
  15461. 8006e92: f043 0210 orr.w r2, r3, #16
  15462. 8006e96: 687b ldr r3, [r7, #4]
  15463. 8006e98: 655a str r2, [r3, #84] @ 0x54
  15464. /* Set ADC error code to ADC peripheral internal error */
  15465. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15466. 8006e9a: 687b ldr r3, [r7, #4]
  15467. 8006e9c: 6d9b ldr r3, [r3, #88] @ 0x58
  15468. 8006e9e: f043 0201 orr.w r2, r3, #1
  15469. 8006ea2: 687b ldr r3, [r7, #4]
  15470. 8006ea4: 659a str r2, [r3, #88] @ 0x58
  15471. return HAL_ERROR;
  15472. 8006ea6: 2301 movs r3, #1
  15473. 8006ea8: e05a b.n 8006f60 <ADC_Enable+0xf8>
  15474. }
  15475. /* Enable the ADC peripheral */
  15476. LL_ADC_Enable(hadc->Instance);
  15477. 8006eaa: 687b ldr r3, [r7, #4]
  15478. 8006eac: 681b ldr r3, [r3, #0]
  15479. 8006eae: 4618 mov r0, r3
  15480. 8006eb0: f7ff f97c bl 80061ac <LL_ADC_Enable>
  15481. /* Wait for ADC effectively enabled */
  15482. tickstart = HAL_GetTick();
  15483. 8006eb4: f7fe ffa2 bl 8005dfc <HAL_GetTick>
  15484. 8006eb8: 60f8 str r0, [r7, #12]
  15485. /* Poll for ADC ready flag raised except case of multimode enabled
  15486. and ADC slave selected. */
  15487. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15488. 8006eba: 687b ldr r3, [r7, #4]
  15489. 8006ebc: 681b ldr r3, [r3, #0]
  15490. 8006ebe: 4a2b ldr r2, [pc, #172] @ (8006f6c <ADC_Enable+0x104>)
  15491. 8006ec0: 4293 cmp r3, r2
  15492. 8006ec2: d004 beq.n 8006ece <ADC_Enable+0x66>
  15493. 8006ec4: 687b ldr r3, [r7, #4]
  15494. 8006ec6: 681b ldr r3, [r3, #0]
  15495. 8006ec8: 4a29 ldr r2, [pc, #164] @ (8006f70 <ADC_Enable+0x108>)
  15496. 8006eca: 4293 cmp r3, r2
  15497. 8006ecc: d101 bne.n 8006ed2 <ADC_Enable+0x6a>
  15498. 8006ece: 4b29 ldr r3, [pc, #164] @ (8006f74 <ADC_Enable+0x10c>)
  15499. 8006ed0: e000 b.n 8006ed4 <ADC_Enable+0x6c>
  15500. 8006ed2: 4b29 ldr r3, [pc, #164] @ (8006f78 <ADC_Enable+0x110>)
  15501. 8006ed4: 4618 mov r0, r3
  15502. 8006ed6: f7ff f90d bl 80060f4 <LL_ADC_GetMultimode>
  15503. 8006eda: 60b8 str r0, [r7, #8]
  15504. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  15505. 8006edc: 687b ldr r3, [r7, #4]
  15506. 8006ede: 681b ldr r3, [r3, #0]
  15507. 8006ee0: 4a23 ldr r2, [pc, #140] @ (8006f70 <ADC_Enable+0x108>)
  15508. 8006ee2: 4293 cmp r3, r2
  15509. 8006ee4: d002 beq.n 8006eec <ADC_Enable+0x84>
  15510. 8006ee6: 687b ldr r3, [r7, #4]
  15511. 8006ee8: 681b ldr r3, [r3, #0]
  15512. 8006eea: e000 b.n 8006eee <ADC_Enable+0x86>
  15513. 8006eec: 4b1f ldr r3, [pc, #124] @ (8006f6c <ADC_Enable+0x104>)
  15514. 8006eee: 687a ldr r2, [r7, #4]
  15515. 8006ef0: 6812 ldr r2, [r2, #0]
  15516. 8006ef2: 4293 cmp r3, r2
  15517. 8006ef4: d02c beq.n 8006f50 <ADC_Enable+0xe8>
  15518. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  15519. 8006ef6: 68bb ldr r3, [r7, #8]
  15520. 8006ef8: 2b00 cmp r3, #0
  15521. 8006efa: d130 bne.n 8006f5e <ADC_Enable+0xf6>
  15522. )
  15523. {
  15524. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15525. 8006efc: e028 b.n 8006f50 <ADC_Enable+0xe8>
  15526. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  15527. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  15528. 4 ADC clock cycle duration */
  15529. /* Note: Test of ADC enabled required due to hardware constraint to */
  15530. /* not enable ADC if already enabled. */
  15531. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15532. 8006efe: 687b ldr r3, [r7, #4]
  15533. 8006f00: 681b ldr r3, [r3, #0]
  15534. 8006f02: 4618 mov r0, r3
  15535. 8006f04: f7ff f97a bl 80061fc <LL_ADC_IsEnabled>
  15536. 8006f08: 4603 mov r3, r0
  15537. 8006f0a: 2b00 cmp r3, #0
  15538. 8006f0c: d104 bne.n 8006f18 <ADC_Enable+0xb0>
  15539. {
  15540. LL_ADC_Enable(hadc->Instance);
  15541. 8006f0e: 687b ldr r3, [r7, #4]
  15542. 8006f10: 681b ldr r3, [r3, #0]
  15543. 8006f12: 4618 mov r0, r3
  15544. 8006f14: f7ff f94a bl 80061ac <LL_ADC_Enable>
  15545. }
  15546. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  15547. 8006f18: f7fe ff70 bl 8005dfc <HAL_GetTick>
  15548. 8006f1c: 4602 mov r2, r0
  15549. 8006f1e: 68fb ldr r3, [r7, #12]
  15550. 8006f20: 1ad3 subs r3, r2, r3
  15551. 8006f22: 2b02 cmp r3, #2
  15552. 8006f24: d914 bls.n 8006f50 <ADC_Enable+0xe8>
  15553. {
  15554. /* New check to avoid false timeout detection in case of preemption */
  15555. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15556. 8006f26: 687b ldr r3, [r7, #4]
  15557. 8006f28: 681b ldr r3, [r3, #0]
  15558. 8006f2a: 681b ldr r3, [r3, #0]
  15559. 8006f2c: f003 0301 and.w r3, r3, #1
  15560. 8006f30: 2b01 cmp r3, #1
  15561. 8006f32: d00d beq.n 8006f50 <ADC_Enable+0xe8>
  15562. {
  15563. /* Update ADC state machine to error */
  15564. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15565. 8006f34: 687b ldr r3, [r7, #4]
  15566. 8006f36: 6d5b ldr r3, [r3, #84] @ 0x54
  15567. 8006f38: f043 0210 orr.w r2, r3, #16
  15568. 8006f3c: 687b ldr r3, [r7, #4]
  15569. 8006f3e: 655a str r2, [r3, #84] @ 0x54
  15570. /* Set ADC error code to ADC peripheral internal error */
  15571. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15572. 8006f40: 687b ldr r3, [r7, #4]
  15573. 8006f42: 6d9b ldr r3, [r3, #88] @ 0x58
  15574. 8006f44: f043 0201 orr.w r2, r3, #1
  15575. 8006f48: 687b ldr r3, [r7, #4]
  15576. 8006f4a: 659a str r2, [r3, #88] @ 0x58
  15577. return HAL_ERROR;
  15578. 8006f4c: 2301 movs r3, #1
  15579. 8006f4e: e007 b.n 8006f60 <ADC_Enable+0xf8>
  15580. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15581. 8006f50: 687b ldr r3, [r7, #4]
  15582. 8006f52: 681b ldr r3, [r3, #0]
  15583. 8006f54: 681b ldr r3, [r3, #0]
  15584. 8006f56: f003 0301 and.w r3, r3, #1
  15585. 8006f5a: 2b01 cmp r3, #1
  15586. 8006f5c: d1cf bne.n 8006efe <ADC_Enable+0x96>
  15587. }
  15588. }
  15589. }
  15590. /* Return HAL status */
  15591. return HAL_OK;
  15592. 8006f5e: 2300 movs r3, #0
  15593. }
  15594. 8006f60: 4618 mov r0, r3
  15595. 8006f62: 3710 adds r7, #16
  15596. 8006f64: 46bd mov sp, r7
  15597. 8006f66: bd80 pop {r7, pc}
  15598. 8006f68: 8000003f .word 0x8000003f
  15599. 8006f6c: 40022000 .word 0x40022000
  15600. 8006f70: 40022100 .word 0x40022100
  15601. 8006f74: 40022300 .word 0x40022300
  15602. 8006f78: 58026300 .word 0x58026300
  15603. 08006f7c <ADC_Disable>:
  15604. * stopped.
  15605. * @param hadc ADC handle
  15606. * @retval HAL status.
  15607. */
  15608. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  15609. {
  15610. 8006f7c: b580 push {r7, lr}
  15611. 8006f7e: b084 sub sp, #16
  15612. 8006f80: af00 add r7, sp, #0
  15613. 8006f82: 6078 str r0, [r7, #4]
  15614. uint32_t tickstart;
  15615. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  15616. 8006f84: 687b ldr r3, [r7, #4]
  15617. 8006f86: 681b ldr r3, [r3, #0]
  15618. 8006f88: 4618 mov r0, r3
  15619. 8006f8a: f7ff f94a bl 8006222 <LL_ADC_IsDisableOngoing>
  15620. 8006f8e: 60f8 str r0, [r7, #12]
  15621. /* Verification if ADC is not already disabled: */
  15622. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  15623. /* disabled. */
  15624. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  15625. 8006f90: 687b ldr r3, [r7, #4]
  15626. 8006f92: 681b ldr r3, [r3, #0]
  15627. 8006f94: 4618 mov r0, r3
  15628. 8006f96: f7ff f931 bl 80061fc <LL_ADC_IsEnabled>
  15629. 8006f9a: 4603 mov r3, r0
  15630. 8006f9c: 2b00 cmp r3, #0
  15631. 8006f9e: d047 beq.n 8007030 <ADC_Disable+0xb4>
  15632. && (tmp_adc_is_disable_on_going == 0UL)
  15633. 8006fa0: 68fb ldr r3, [r7, #12]
  15634. 8006fa2: 2b00 cmp r3, #0
  15635. 8006fa4: d144 bne.n 8007030 <ADC_Disable+0xb4>
  15636. )
  15637. {
  15638. /* Check if conditions to disable the ADC are fulfilled */
  15639. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  15640. 8006fa6: 687b ldr r3, [r7, #4]
  15641. 8006fa8: 681b ldr r3, [r3, #0]
  15642. 8006faa: 689b ldr r3, [r3, #8]
  15643. 8006fac: f003 030d and.w r3, r3, #13
  15644. 8006fb0: 2b01 cmp r3, #1
  15645. 8006fb2: d10c bne.n 8006fce <ADC_Disable+0x52>
  15646. {
  15647. /* Disable the ADC peripheral */
  15648. LL_ADC_Disable(hadc->Instance);
  15649. 8006fb4: 687b ldr r3, [r7, #4]
  15650. 8006fb6: 681b ldr r3, [r3, #0]
  15651. 8006fb8: 4618 mov r0, r3
  15652. 8006fba: f7ff f90b bl 80061d4 <LL_ADC_Disable>
  15653. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  15654. 8006fbe: 687b ldr r3, [r7, #4]
  15655. 8006fc0: 681b ldr r3, [r3, #0]
  15656. 8006fc2: 2203 movs r2, #3
  15657. 8006fc4: 601a str r2, [r3, #0]
  15658. return HAL_ERROR;
  15659. }
  15660. /* Wait for ADC effectively disabled */
  15661. /* Get tick count */
  15662. tickstart = HAL_GetTick();
  15663. 8006fc6: f7fe ff19 bl 8005dfc <HAL_GetTick>
  15664. 8006fca: 60b8 str r0, [r7, #8]
  15665. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15666. 8006fcc: e029 b.n 8007022 <ADC_Disable+0xa6>
  15667. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15668. 8006fce: 687b ldr r3, [r7, #4]
  15669. 8006fd0: 6d5b ldr r3, [r3, #84] @ 0x54
  15670. 8006fd2: f043 0210 orr.w r2, r3, #16
  15671. 8006fd6: 687b ldr r3, [r7, #4]
  15672. 8006fd8: 655a str r2, [r3, #84] @ 0x54
  15673. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15674. 8006fda: 687b ldr r3, [r7, #4]
  15675. 8006fdc: 6d9b ldr r3, [r3, #88] @ 0x58
  15676. 8006fde: f043 0201 orr.w r2, r3, #1
  15677. 8006fe2: 687b ldr r3, [r7, #4]
  15678. 8006fe4: 659a str r2, [r3, #88] @ 0x58
  15679. return HAL_ERROR;
  15680. 8006fe6: 2301 movs r3, #1
  15681. 8006fe8: e023 b.n 8007032 <ADC_Disable+0xb6>
  15682. {
  15683. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  15684. 8006fea: f7fe ff07 bl 8005dfc <HAL_GetTick>
  15685. 8006fee: 4602 mov r2, r0
  15686. 8006ff0: 68bb ldr r3, [r7, #8]
  15687. 8006ff2: 1ad3 subs r3, r2, r3
  15688. 8006ff4: 2b02 cmp r3, #2
  15689. 8006ff6: d914 bls.n 8007022 <ADC_Disable+0xa6>
  15690. {
  15691. /* New check to avoid false timeout detection in case of preemption */
  15692. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15693. 8006ff8: 687b ldr r3, [r7, #4]
  15694. 8006ffa: 681b ldr r3, [r3, #0]
  15695. 8006ffc: 689b ldr r3, [r3, #8]
  15696. 8006ffe: f003 0301 and.w r3, r3, #1
  15697. 8007002: 2b00 cmp r3, #0
  15698. 8007004: d00d beq.n 8007022 <ADC_Disable+0xa6>
  15699. {
  15700. /* Update ADC state machine to error */
  15701. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15702. 8007006: 687b ldr r3, [r7, #4]
  15703. 8007008: 6d5b ldr r3, [r3, #84] @ 0x54
  15704. 800700a: f043 0210 orr.w r2, r3, #16
  15705. 800700e: 687b ldr r3, [r7, #4]
  15706. 8007010: 655a str r2, [r3, #84] @ 0x54
  15707. /* Set ADC error code to ADC peripheral internal error */
  15708. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15709. 8007012: 687b ldr r3, [r7, #4]
  15710. 8007014: 6d9b ldr r3, [r3, #88] @ 0x58
  15711. 8007016: f043 0201 orr.w r2, r3, #1
  15712. 800701a: 687b ldr r3, [r7, #4]
  15713. 800701c: 659a str r2, [r3, #88] @ 0x58
  15714. return HAL_ERROR;
  15715. 800701e: 2301 movs r3, #1
  15716. 8007020: e007 b.n 8007032 <ADC_Disable+0xb6>
  15717. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15718. 8007022: 687b ldr r3, [r7, #4]
  15719. 8007024: 681b ldr r3, [r3, #0]
  15720. 8007026: 689b ldr r3, [r3, #8]
  15721. 8007028: f003 0301 and.w r3, r3, #1
  15722. 800702c: 2b00 cmp r3, #0
  15723. 800702e: d1dc bne.n 8006fea <ADC_Disable+0x6e>
  15724. }
  15725. }
  15726. }
  15727. /* Return HAL status */
  15728. return HAL_OK;
  15729. 8007030: 2300 movs r3, #0
  15730. }
  15731. 8007032: 4618 mov r0, r3
  15732. 8007034: 3710 adds r7, #16
  15733. 8007036: 46bd mov sp, r7
  15734. 8007038: bd80 pop {r7, pc}
  15735. 0800703a <ADC_DMAConvCplt>:
  15736. * @brief DMA transfer complete callback.
  15737. * @param hdma pointer to DMA handle.
  15738. * @retval None
  15739. */
  15740. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  15741. {
  15742. 800703a: b580 push {r7, lr}
  15743. 800703c: b084 sub sp, #16
  15744. 800703e: af00 add r7, sp, #0
  15745. 8007040: 6078 str r0, [r7, #4]
  15746. /* Retrieve ADC handle corresponding to current DMA handle */
  15747. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15748. 8007042: 687b ldr r3, [r7, #4]
  15749. 8007044: 6b9b ldr r3, [r3, #56] @ 0x38
  15750. 8007046: 60fb str r3, [r7, #12]
  15751. /* Update state machine on conversion status if not in error state */
  15752. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  15753. 8007048: 68fb ldr r3, [r7, #12]
  15754. 800704a: 6d5b ldr r3, [r3, #84] @ 0x54
  15755. 800704c: f003 0350 and.w r3, r3, #80 @ 0x50
  15756. 8007050: 2b00 cmp r3, #0
  15757. 8007052: d14b bne.n 80070ec <ADC_DMAConvCplt+0xb2>
  15758. {
  15759. /* Set ADC state */
  15760. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  15761. 8007054: 68fb ldr r3, [r7, #12]
  15762. 8007056: 6d5b ldr r3, [r3, #84] @ 0x54
  15763. 8007058: f443 7200 orr.w r2, r3, #512 @ 0x200
  15764. 800705c: 68fb ldr r3, [r7, #12]
  15765. 800705e: 655a str r2, [r3, #84] @ 0x54
  15766. /* Determine whether any further conversion upcoming on group regular */
  15767. /* by external trigger, continuous mode or scan sequence on going */
  15768. /* to disable interruption. */
  15769. /* Is it the end of the regular sequence ? */
  15770. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  15771. 8007060: 68fb ldr r3, [r7, #12]
  15772. 8007062: 681b ldr r3, [r3, #0]
  15773. 8007064: 681b ldr r3, [r3, #0]
  15774. 8007066: f003 0308 and.w r3, r3, #8
  15775. 800706a: 2b00 cmp r3, #0
  15776. 800706c: d021 beq.n 80070b2 <ADC_DMAConvCplt+0x78>
  15777. {
  15778. /* Are conversions software-triggered ? */
  15779. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  15780. 800706e: 68fb ldr r3, [r7, #12]
  15781. 8007070: 681b ldr r3, [r3, #0]
  15782. 8007072: 4618 mov r0, r3
  15783. 8007074: f7fe ff9c bl 8005fb0 <LL_ADC_REG_IsTriggerSourceSWStart>
  15784. 8007078: 4603 mov r3, r0
  15785. 800707a: 2b00 cmp r3, #0
  15786. 800707c: d032 beq.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15787. {
  15788. /* Is CONT bit set ? */
  15789. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  15790. 800707e: 68fb ldr r3, [r7, #12]
  15791. 8007080: 681b ldr r3, [r3, #0]
  15792. 8007082: 68db ldr r3, [r3, #12]
  15793. 8007084: f403 5300 and.w r3, r3, #8192 @ 0x2000
  15794. 8007088: 2b00 cmp r3, #0
  15795. 800708a: d12b bne.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15796. {
  15797. /* CONT bit is not set, no more conversions expected */
  15798. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15799. 800708c: 68fb ldr r3, [r7, #12]
  15800. 800708e: 6d5b ldr r3, [r3, #84] @ 0x54
  15801. 8007090: f423 7280 bic.w r2, r3, #256 @ 0x100
  15802. 8007094: 68fb ldr r3, [r7, #12]
  15803. 8007096: 655a str r2, [r3, #84] @ 0x54
  15804. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15805. 8007098: 68fb ldr r3, [r7, #12]
  15806. 800709a: 6d5b ldr r3, [r3, #84] @ 0x54
  15807. 800709c: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15808. 80070a0: 2b00 cmp r3, #0
  15809. 80070a2: d11f bne.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15810. {
  15811. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15812. 80070a4: 68fb ldr r3, [r7, #12]
  15813. 80070a6: 6d5b ldr r3, [r3, #84] @ 0x54
  15814. 80070a8: f043 0201 orr.w r2, r3, #1
  15815. 80070ac: 68fb ldr r3, [r7, #12]
  15816. 80070ae: 655a str r2, [r3, #84] @ 0x54
  15817. 80070b0: e018 b.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15818. }
  15819. else
  15820. {
  15821. /* DMA End of Transfer interrupt was triggered but conversions sequence
  15822. is not over. If DMACFG is set to 0, conversions are stopped. */
  15823. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  15824. 80070b2: 68fb ldr r3, [r7, #12]
  15825. 80070b4: 681b ldr r3, [r3, #0]
  15826. 80070b6: 68db ldr r3, [r3, #12]
  15827. 80070b8: f003 0303 and.w r3, r3, #3
  15828. 80070bc: 2b00 cmp r3, #0
  15829. 80070be: d111 bne.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15830. {
  15831. /* DMACFG bit is not set, conversions are stopped. */
  15832. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15833. 80070c0: 68fb ldr r3, [r7, #12]
  15834. 80070c2: 6d5b ldr r3, [r3, #84] @ 0x54
  15835. 80070c4: f423 7280 bic.w r2, r3, #256 @ 0x100
  15836. 80070c8: 68fb ldr r3, [r7, #12]
  15837. 80070ca: 655a str r2, [r3, #84] @ 0x54
  15838. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15839. 80070cc: 68fb ldr r3, [r7, #12]
  15840. 80070ce: 6d5b ldr r3, [r3, #84] @ 0x54
  15841. 80070d0: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15842. 80070d4: 2b00 cmp r3, #0
  15843. 80070d6: d105 bne.n 80070e4 <ADC_DMAConvCplt+0xaa>
  15844. {
  15845. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15846. 80070d8: 68fb ldr r3, [r7, #12]
  15847. 80070da: 6d5b ldr r3, [r3, #84] @ 0x54
  15848. 80070dc: f043 0201 orr.w r2, r3, #1
  15849. 80070e0: 68fb ldr r3, [r7, #12]
  15850. 80070e2: 655a str r2, [r3, #84] @ 0x54
  15851. /* Conversion complete callback */
  15852. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15853. hadc->ConvCpltCallback(hadc);
  15854. #else
  15855. HAL_ADC_ConvCpltCallback(hadc);
  15856. 80070e4: 68f8 ldr r0, [r7, #12]
  15857. 80070e6: f7fa fb6f bl 80017c8 <HAL_ADC_ConvCpltCallback>
  15858. {
  15859. /* Call ADC DMA error callback */
  15860. hadc->DMA_Handle->XferErrorCallback(hdma);
  15861. }
  15862. }
  15863. }
  15864. 80070ea: e00e b.n 800710a <ADC_DMAConvCplt+0xd0>
  15865. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  15866. 80070ec: 68fb ldr r3, [r7, #12]
  15867. 80070ee: 6d5b ldr r3, [r3, #84] @ 0x54
  15868. 80070f0: f003 0310 and.w r3, r3, #16
  15869. 80070f4: 2b00 cmp r3, #0
  15870. 80070f6: d003 beq.n 8007100 <ADC_DMAConvCplt+0xc6>
  15871. HAL_ADC_ErrorCallback(hadc);
  15872. 80070f8: 68f8 ldr r0, [r7, #12]
  15873. 80070fa: f7ff fb4f bl 800679c <HAL_ADC_ErrorCallback>
  15874. }
  15875. 80070fe: e004 b.n 800710a <ADC_DMAConvCplt+0xd0>
  15876. hadc->DMA_Handle->XferErrorCallback(hdma);
  15877. 8007100: 68fb ldr r3, [r7, #12]
  15878. 8007102: 6cdb ldr r3, [r3, #76] @ 0x4c
  15879. 8007104: 6cdb ldr r3, [r3, #76] @ 0x4c
  15880. 8007106: 6878 ldr r0, [r7, #4]
  15881. 8007108: 4798 blx r3
  15882. }
  15883. 800710a: bf00 nop
  15884. 800710c: 3710 adds r7, #16
  15885. 800710e: 46bd mov sp, r7
  15886. 8007110: bd80 pop {r7, pc}
  15887. 08007112 <ADC_DMAHalfConvCplt>:
  15888. * @brief DMA half transfer complete callback.
  15889. * @param hdma pointer to DMA handle.
  15890. * @retval None
  15891. */
  15892. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  15893. {
  15894. 8007112: b580 push {r7, lr}
  15895. 8007114: b084 sub sp, #16
  15896. 8007116: af00 add r7, sp, #0
  15897. 8007118: 6078 str r0, [r7, #4]
  15898. /* Retrieve ADC handle corresponding to current DMA handle */
  15899. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15900. 800711a: 687b ldr r3, [r7, #4]
  15901. 800711c: 6b9b ldr r3, [r3, #56] @ 0x38
  15902. 800711e: 60fb str r3, [r7, #12]
  15903. /* Half conversion callback */
  15904. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15905. hadc->ConvHalfCpltCallback(hadc);
  15906. #else
  15907. HAL_ADC_ConvHalfCpltCallback(hadc);
  15908. 8007120: 68f8 ldr r0, [r7, #12]
  15909. 8007122: f7ff fb31 bl 8006788 <HAL_ADC_ConvHalfCpltCallback>
  15910. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15911. }
  15912. 8007126: bf00 nop
  15913. 8007128: 3710 adds r7, #16
  15914. 800712a: 46bd mov sp, r7
  15915. 800712c: bd80 pop {r7, pc}
  15916. 0800712e <ADC_DMAError>:
  15917. * @brief DMA error callback.
  15918. * @param hdma pointer to DMA handle.
  15919. * @retval None
  15920. */
  15921. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  15922. {
  15923. 800712e: b580 push {r7, lr}
  15924. 8007130: b084 sub sp, #16
  15925. 8007132: af00 add r7, sp, #0
  15926. 8007134: 6078 str r0, [r7, #4]
  15927. /* Retrieve ADC handle corresponding to current DMA handle */
  15928. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15929. 8007136: 687b ldr r3, [r7, #4]
  15930. 8007138: 6b9b ldr r3, [r3, #56] @ 0x38
  15931. 800713a: 60fb str r3, [r7, #12]
  15932. /* Set ADC state */
  15933. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  15934. 800713c: 68fb ldr r3, [r7, #12]
  15935. 800713e: 6d5b ldr r3, [r3, #84] @ 0x54
  15936. 8007140: f043 0240 orr.w r2, r3, #64 @ 0x40
  15937. 8007144: 68fb ldr r3, [r7, #12]
  15938. 8007146: 655a str r2, [r3, #84] @ 0x54
  15939. /* Set ADC error code to DMA error */
  15940. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  15941. 8007148: 68fb ldr r3, [r7, #12]
  15942. 800714a: 6d9b ldr r3, [r3, #88] @ 0x58
  15943. 800714c: f043 0204 orr.w r2, r3, #4
  15944. 8007150: 68fb ldr r3, [r7, #12]
  15945. 8007152: 659a str r2, [r3, #88] @ 0x58
  15946. /* Error callback */
  15947. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15948. hadc->ErrorCallback(hadc);
  15949. #else
  15950. HAL_ADC_ErrorCallback(hadc);
  15951. 8007154: 68f8 ldr r0, [r7, #12]
  15952. 8007156: f7ff fb21 bl 800679c <HAL_ADC_ErrorCallback>
  15953. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15954. }
  15955. 800715a: bf00 nop
  15956. 800715c: 3710 adds r7, #16
  15957. 800715e: 46bd mov sp, r7
  15958. 8007160: bd80 pop {r7, pc}
  15959. ...
  15960. 08007164 <ADC_ConfigureBoostMode>:
  15961. * stopped.
  15962. * @param hadc ADC handle
  15963. * @retval None.
  15964. */
  15965. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  15966. {
  15967. 8007164: b580 push {r7, lr}
  15968. 8007166: b084 sub sp, #16
  15969. 8007168: af00 add r7, sp, #0
  15970. 800716a: 6078 str r0, [r7, #4]
  15971. uint32_t freq;
  15972. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  15973. 800716c: 687b ldr r3, [r7, #4]
  15974. 800716e: 681b ldr r3, [r3, #0]
  15975. 8007170: 4a7a ldr r2, [pc, #488] @ (800735c <ADC_ConfigureBoostMode+0x1f8>)
  15976. 8007172: 4293 cmp r3, r2
  15977. 8007174: d004 beq.n 8007180 <ADC_ConfigureBoostMode+0x1c>
  15978. 8007176: 687b ldr r3, [r7, #4]
  15979. 8007178: 681b ldr r3, [r3, #0]
  15980. 800717a: 4a79 ldr r2, [pc, #484] @ (8007360 <ADC_ConfigureBoostMode+0x1fc>)
  15981. 800717c: 4293 cmp r3, r2
  15982. 800717e: d109 bne.n 8007194 <ADC_ConfigureBoostMode+0x30>
  15983. 8007180: 4b78 ldr r3, [pc, #480] @ (8007364 <ADC_ConfigureBoostMode+0x200>)
  15984. 8007182: 689b ldr r3, [r3, #8]
  15985. 8007184: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15986. 8007188: 2b00 cmp r3, #0
  15987. 800718a: bf14 ite ne
  15988. 800718c: 2301 movne r3, #1
  15989. 800718e: 2300 moveq r3, #0
  15990. 8007190: b2db uxtb r3, r3
  15991. 8007192: e008 b.n 80071a6 <ADC_ConfigureBoostMode+0x42>
  15992. 8007194: 4b74 ldr r3, [pc, #464] @ (8007368 <ADC_ConfigureBoostMode+0x204>)
  15993. 8007196: 689b ldr r3, [r3, #8]
  15994. 8007198: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15995. 800719c: 2b00 cmp r3, #0
  15996. 800719e: bf14 ite ne
  15997. 80071a0: 2301 movne r3, #1
  15998. 80071a2: 2300 moveq r3, #0
  15999. 80071a4: b2db uxtb r3, r3
  16000. 80071a6: 2b00 cmp r3, #0
  16001. 80071a8: d01c beq.n 80071e4 <ADC_ConfigureBoostMode+0x80>
  16002. {
  16003. freq = HAL_RCC_GetHCLKFreq();
  16004. 80071aa: f005 fb47 bl 800c83c <HAL_RCC_GetHCLKFreq>
  16005. 80071ae: 60f8 str r0, [r7, #12]
  16006. switch (hadc->Init.ClockPrescaler)
  16007. 80071b0: 687b ldr r3, [r7, #4]
  16008. 80071b2: 685b ldr r3, [r3, #4]
  16009. 80071b4: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16010. 80071b8: d010 beq.n 80071dc <ADC_ConfigureBoostMode+0x78>
  16011. 80071ba: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16012. 80071be: d873 bhi.n 80072a8 <ADC_ConfigureBoostMode+0x144>
  16013. 80071c0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  16014. 80071c4: d002 beq.n 80071cc <ADC_ConfigureBoostMode+0x68>
  16015. 80071c6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  16016. 80071ca: d16d bne.n 80072a8 <ADC_ConfigureBoostMode+0x144>
  16017. {
  16018. case ADC_CLOCK_SYNC_PCLK_DIV1:
  16019. case ADC_CLOCK_SYNC_PCLK_DIV2:
  16020. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  16021. 80071cc: 687b ldr r3, [r7, #4]
  16022. 80071ce: 685b ldr r3, [r3, #4]
  16023. 80071d0: 0c1b lsrs r3, r3, #16
  16024. 80071d2: 68fa ldr r2, [r7, #12]
  16025. 80071d4: fbb2 f3f3 udiv r3, r2, r3
  16026. 80071d8: 60fb str r3, [r7, #12]
  16027. break;
  16028. 80071da: e068 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16029. case ADC_CLOCK_SYNC_PCLK_DIV4:
  16030. freq /= 4UL;
  16031. 80071dc: 68fb ldr r3, [r7, #12]
  16032. 80071de: 089b lsrs r3, r3, #2
  16033. 80071e0: 60fb str r3, [r7, #12]
  16034. break;
  16035. 80071e2: e064 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16036. break;
  16037. }
  16038. }
  16039. else
  16040. {
  16041. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  16042. 80071e4: f44f 2000 mov.w r0, #524288 @ 0x80000
  16043. 80071e8: f04f 0100 mov.w r1, #0
  16044. 80071ec: f006 fdb2 bl 800dd54 <HAL_RCCEx_GetPeriphCLKFreq>
  16045. 80071f0: 60f8 str r0, [r7, #12]
  16046. switch (hadc->Init.ClockPrescaler)
  16047. 80071f2: 687b ldr r3, [r7, #4]
  16048. 80071f4: 685b ldr r3, [r3, #4]
  16049. 80071f6: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16050. 80071fa: d051 beq.n 80072a0 <ADC_ConfigureBoostMode+0x13c>
  16051. 80071fc: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16052. 8007200: d854 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16053. 8007202: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16054. 8007206: d047 beq.n 8007298 <ADC_ConfigureBoostMode+0x134>
  16055. 8007208: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16056. 800720c: d84e bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16057. 800720e: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16058. 8007212: d03d beq.n 8007290 <ADC_ConfigureBoostMode+0x12c>
  16059. 8007214: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16060. 8007218: d848 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16061. 800721a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16062. 800721e: d033 beq.n 8007288 <ADC_ConfigureBoostMode+0x124>
  16063. 8007220: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16064. 8007224: d842 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16065. 8007226: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16066. 800722a: d029 beq.n 8007280 <ADC_ConfigureBoostMode+0x11c>
  16067. 800722c: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16068. 8007230: d83c bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16069. 8007232: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16070. 8007236: d01a beq.n 800726e <ADC_ConfigureBoostMode+0x10a>
  16071. 8007238: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16072. 800723c: d836 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16073. 800723e: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16074. 8007242: d014 beq.n 800726e <ADC_ConfigureBoostMode+0x10a>
  16075. 8007244: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16076. 8007248: d830 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16077. 800724a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16078. 800724e: d00e beq.n 800726e <ADC_ConfigureBoostMode+0x10a>
  16079. 8007250: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16080. 8007254: d82a bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16081. 8007256: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16082. 800725a: d008 beq.n 800726e <ADC_ConfigureBoostMode+0x10a>
  16083. 800725c: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16084. 8007260: d824 bhi.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16085. 8007262: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  16086. 8007266: d002 beq.n 800726e <ADC_ConfigureBoostMode+0x10a>
  16087. 8007268: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  16088. 800726c: d11e bne.n 80072ac <ADC_ConfigureBoostMode+0x148>
  16089. case ADC_CLOCK_ASYNC_DIV4:
  16090. case ADC_CLOCK_ASYNC_DIV6:
  16091. case ADC_CLOCK_ASYNC_DIV8:
  16092. case ADC_CLOCK_ASYNC_DIV10:
  16093. case ADC_CLOCK_ASYNC_DIV12:
  16094. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  16095. 800726e: 687b ldr r3, [r7, #4]
  16096. 8007270: 685b ldr r3, [r3, #4]
  16097. 8007272: 0c9b lsrs r3, r3, #18
  16098. 8007274: 005b lsls r3, r3, #1
  16099. 8007276: 68fa ldr r2, [r7, #12]
  16100. 8007278: fbb2 f3f3 udiv r3, r2, r3
  16101. 800727c: 60fb str r3, [r7, #12]
  16102. break;
  16103. 800727e: e016 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16104. case ADC_CLOCK_ASYNC_DIV16:
  16105. freq /= 16UL;
  16106. 8007280: 68fb ldr r3, [r7, #12]
  16107. 8007282: 091b lsrs r3, r3, #4
  16108. 8007284: 60fb str r3, [r7, #12]
  16109. break;
  16110. 8007286: e012 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16111. case ADC_CLOCK_ASYNC_DIV32:
  16112. freq /= 32UL;
  16113. 8007288: 68fb ldr r3, [r7, #12]
  16114. 800728a: 095b lsrs r3, r3, #5
  16115. 800728c: 60fb str r3, [r7, #12]
  16116. break;
  16117. 800728e: e00e b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16118. case ADC_CLOCK_ASYNC_DIV64:
  16119. freq /= 64UL;
  16120. 8007290: 68fb ldr r3, [r7, #12]
  16121. 8007292: 099b lsrs r3, r3, #6
  16122. 8007294: 60fb str r3, [r7, #12]
  16123. break;
  16124. 8007296: e00a b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16125. case ADC_CLOCK_ASYNC_DIV128:
  16126. freq /= 128UL;
  16127. 8007298: 68fb ldr r3, [r7, #12]
  16128. 800729a: 09db lsrs r3, r3, #7
  16129. 800729c: 60fb str r3, [r7, #12]
  16130. break;
  16131. 800729e: e006 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16132. case ADC_CLOCK_ASYNC_DIV256:
  16133. freq /= 256UL;
  16134. 80072a0: 68fb ldr r3, [r7, #12]
  16135. 80072a2: 0a1b lsrs r3, r3, #8
  16136. 80072a4: 60fb str r3, [r7, #12]
  16137. break;
  16138. 80072a6: e002 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16139. break;
  16140. 80072a8: bf00 nop
  16141. 80072aa: e000 b.n 80072ae <ADC_ConfigureBoostMode+0x14a>
  16142. default:
  16143. break;
  16144. 80072ac: bf00 nop
  16145. else /* if(freq > 25000000UL) */
  16146. {
  16147. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16148. }
  16149. #else
  16150. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  16151. 80072ae: f7fe fdb1 bl 8005e14 <HAL_GetREVID>
  16152. 80072b2: 4603 mov r3, r0
  16153. 80072b4: f241 0203 movw r2, #4099 @ 0x1003
  16154. 80072b8: 4293 cmp r3, r2
  16155. 80072ba: d815 bhi.n 80072e8 <ADC_ConfigureBoostMode+0x184>
  16156. {
  16157. if (freq > 20000000UL)
  16158. 80072bc: 68fb ldr r3, [r7, #12]
  16159. 80072be: 4a2b ldr r2, [pc, #172] @ (800736c <ADC_ConfigureBoostMode+0x208>)
  16160. 80072c0: 4293 cmp r3, r2
  16161. 80072c2: d908 bls.n 80072d6 <ADC_ConfigureBoostMode+0x172>
  16162. {
  16163. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16164. 80072c4: 687b ldr r3, [r7, #4]
  16165. 80072c6: 681b ldr r3, [r3, #0]
  16166. 80072c8: 689a ldr r2, [r3, #8]
  16167. 80072ca: 687b ldr r3, [r7, #4]
  16168. 80072cc: 681b ldr r3, [r3, #0]
  16169. 80072ce: f442 7280 orr.w r2, r2, #256 @ 0x100
  16170. 80072d2: 609a str r2, [r3, #8]
  16171. {
  16172. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16173. }
  16174. }
  16175. #endif /* ADC_VER_V5_3 */
  16176. }
  16177. 80072d4: e03e b.n 8007354 <ADC_ConfigureBoostMode+0x1f0>
  16178. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16179. 80072d6: 687b ldr r3, [r7, #4]
  16180. 80072d8: 681b ldr r3, [r3, #0]
  16181. 80072da: 689a ldr r2, [r3, #8]
  16182. 80072dc: 687b ldr r3, [r7, #4]
  16183. 80072de: 681b ldr r3, [r3, #0]
  16184. 80072e0: f422 7280 bic.w r2, r2, #256 @ 0x100
  16185. 80072e4: 609a str r2, [r3, #8]
  16186. }
  16187. 80072e6: e035 b.n 8007354 <ADC_ConfigureBoostMode+0x1f0>
  16188. freq /= 2U; /* divider by 2 for Rev.V */
  16189. 80072e8: 68fb ldr r3, [r7, #12]
  16190. 80072ea: 085b lsrs r3, r3, #1
  16191. 80072ec: 60fb str r3, [r7, #12]
  16192. if (freq <= 6250000UL)
  16193. 80072ee: 68fb ldr r3, [r7, #12]
  16194. 80072f0: 4a1f ldr r2, [pc, #124] @ (8007370 <ADC_ConfigureBoostMode+0x20c>)
  16195. 80072f2: 4293 cmp r3, r2
  16196. 80072f4: d808 bhi.n 8007308 <ADC_ConfigureBoostMode+0x1a4>
  16197. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  16198. 80072f6: 687b ldr r3, [r7, #4]
  16199. 80072f8: 681b ldr r3, [r3, #0]
  16200. 80072fa: 689a ldr r2, [r3, #8]
  16201. 80072fc: 687b ldr r3, [r7, #4]
  16202. 80072fe: 681b ldr r3, [r3, #0]
  16203. 8007300: f422 7240 bic.w r2, r2, #768 @ 0x300
  16204. 8007304: 609a str r2, [r3, #8]
  16205. }
  16206. 8007306: e025 b.n 8007354 <ADC_ConfigureBoostMode+0x1f0>
  16207. else if (freq <= 12500000UL)
  16208. 8007308: 68fb ldr r3, [r7, #12]
  16209. 800730a: 4a1a ldr r2, [pc, #104] @ (8007374 <ADC_ConfigureBoostMode+0x210>)
  16210. 800730c: 4293 cmp r3, r2
  16211. 800730e: d80a bhi.n 8007326 <ADC_ConfigureBoostMode+0x1c2>
  16212. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  16213. 8007310: 687b ldr r3, [r7, #4]
  16214. 8007312: 681b ldr r3, [r3, #0]
  16215. 8007314: 689b ldr r3, [r3, #8]
  16216. 8007316: f423 7240 bic.w r2, r3, #768 @ 0x300
  16217. 800731a: 687b ldr r3, [r7, #4]
  16218. 800731c: 681b ldr r3, [r3, #0]
  16219. 800731e: f442 7280 orr.w r2, r2, #256 @ 0x100
  16220. 8007322: 609a str r2, [r3, #8]
  16221. }
  16222. 8007324: e016 b.n 8007354 <ADC_ConfigureBoostMode+0x1f0>
  16223. else if (freq <= 25000000UL)
  16224. 8007326: 68fb ldr r3, [r7, #12]
  16225. 8007328: 4a13 ldr r2, [pc, #76] @ (8007378 <ADC_ConfigureBoostMode+0x214>)
  16226. 800732a: 4293 cmp r3, r2
  16227. 800732c: d80a bhi.n 8007344 <ADC_ConfigureBoostMode+0x1e0>
  16228. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  16229. 800732e: 687b ldr r3, [r7, #4]
  16230. 8007330: 681b ldr r3, [r3, #0]
  16231. 8007332: 689b ldr r3, [r3, #8]
  16232. 8007334: f423 7240 bic.w r2, r3, #768 @ 0x300
  16233. 8007338: 687b ldr r3, [r7, #4]
  16234. 800733a: 681b ldr r3, [r3, #0]
  16235. 800733c: f442 7200 orr.w r2, r2, #512 @ 0x200
  16236. 8007340: 609a str r2, [r3, #8]
  16237. }
  16238. 8007342: e007 b.n 8007354 <ADC_ConfigureBoostMode+0x1f0>
  16239. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16240. 8007344: 687b ldr r3, [r7, #4]
  16241. 8007346: 681b ldr r3, [r3, #0]
  16242. 8007348: 689a ldr r2, [r3, #8]
  16243. 800734a: 687b ldr r3, [r7, #4]
  16244. 800734c: 681b ldr r3, [r3, #0]
  16245. 800734e: f442 7240 orr.w r2, r2, #768 @ 0x300
  16246. 8007352: 609a str r2, [r3, #8]
  16247. }
  16248. 8007354: bf00 nop
  16249. 8007356: 3710 adds r7, #16
  16250. 8007358: 46bd mov sp, r7
  16251. 800735a: bd80 pop {r7, pc}
  16252. 800735c: 40022000 .word 0x40022000
  16253. 8007360: 40022100 .word 0x40022100
  16254. 8007364: 40022300 .word 0x40022300
  16255. 8007368: 58026300 .word 0x58026300
  16256. 800736c: 01312d00 .word 0x01312d00
  16257. 8007370: 005f5e10 .word 0x005f5e10
  16258. 8007374: 00bebc20 .word 0x00bebc20
  16259. 8007378: 017d7840 .word 0x017d7840
  16260. 0800737c <LL_ADC_IsEnabled>:
  16261. {
  16262. 800737c: b480 push {r7}
  16263. 800737e: b083 sub sp, #12
  16264. 8007380: af00 add r7, sp, #0
  16265. 8007382: 6078 str r0, [r7, #4]
  16266. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  16267. 8007384: 687b ldr r3, [r7, #4]
  16268. 8007386: 689b ldr r3, [r3, #8]
  16269. 8007388: f003 0301 and.w r3, r3, #1
  16270. 800738c: 2b01 cmp r3, #1
  16271. 800738e: d101 bne.n 8007394 <LL_ADC_IsEnabled+0x18>
  16272. 8007390: 2301 movs r3, #1
  16273. 8007392: e000 b.n 8007396 <LL_ADC_IsEnabled+0x1a>
  16274. 8007394: 2300 movs r3, #0
  16275. }
  16276. 8007396: 4618 mov r0, r3
  16277. 8007398: 370c adds r7, #12
  16278. 800739a: 46bd mov sp, r7
  16279. 800739c: f85d 7b04 ldr.w r7, [sp], #4
  16280. 80073a0: 4770 bx lr
  16281. ...
  16282. 080073a4 <LL_ADC_StartCalibration>:
  16283. {
  16284. 80073a4: b480 push {r7}
  16285. 80073a6: b085 sub sp, #20
  16286. 80073a8: af00 add r7, sp, #0
  16287. 80073aa: 60f8 str r0, [r7, #12]
  16288. 80073ac: 60b9 str r1, [r7, #8]
  16289. 80073ae: 607a str r2, [r7, #4]
  16290. MODIFY_REG(ADCx->CR,
  16291. 80073b0: 68fb ldr r3, [r7, #12]
  16292. 80073b2: 689a ldr r2, [r3, #8]
  16293. 80073b4: 4b09 ldr r3, [pc, #36] @ (80073dc <LL_ADC_StartCalibration+0x38>)
  16294. 80073b6: 4013 ands r3, r2
  16295. 80073b8: 68ba ldr r2, [r7, #8]
  16296. 80073ba: f402 3180 and.w r1, r2, #65536 @ 0x10000
  16297. 80073be: 687a ldr r2, [r7, #4]
  16298. 80073c0: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  16299. 80073c4: 430a orrs r2, r1
  16300. 80073c6: 4313 orrs r3, r2
  16301. 80073c8: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  16302. 80073cc: 68fb ldr r3, [r7, #12]
  16303. 80073ce: 609a str r2, [r3, #8]
  16304. }
  16305. 80073d0: bf00 nop
  16306. 80073d2: 3714 adds r7, #20
  16307. 80073d4: 46bd mov sp, r7
  16308. 80073d6: f85d 7b04 ldr.w r7, [sp], #4
  16309. 80073da: 4770 bx lr
  16310. 80073dc: 3ffeffc0 .word 0x3ffeffc0
  16311. 080073e0 <LL_ADC_IsCalibrationOnGoing>:
  16312. {
  16313. 80073e0: b480 push {r7}
  16314. 80073e2: b083 sub sp, #12
  16315. 80073e4: af00 add r7, sp, #0
  16316. 80073e6: 6078 str r0, [r7, #4]
  16317. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  16318. 80073e8: 687b ldr r3, [r7, #4]
  16319. 80073ea: 689b ldr r3, [r3, #8]
  16320. 80073ec: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16321. 80073f0: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16322. 80073f4: d101 bne.n 80073fa <LL_ADC_IsCalibrationOnGoing+0x1a>
  16323. 80073f6: 2301 movs r3, #1
  16324. 80073f8: e000 b.n 80073fc <LL_ADC_IsCalibrationOnGoing+0x1c>
  16325. 80073fa: 2300 movs r3, #0
  16326. }
  16327. 80073fc: 4618 mov r0, r3
  16328. 80073fe: 370c adds r7, #12
  16329. 8007400: 46bd mov sp, r7
  16330. 8007402: f85d 7b04 ldr.w r7, [sp], #4
  16331. 8007406: 4770 bx lr
  16332. 08007408 <LL_ADC_REG_IsConversionOngoing>:
  16333. {
  16334. 8007408: b480 push {r7}
  16335. 800740a: b083 sub sp, #12
  16336. 800740c: af00 add r7, sp, #0
  16337. 800740e: 6078 str r0, [r7, #4]
  16338. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  16339. 8007410: 687b ldr r3, [r7, #4]
  16340. 8007412: 689b ldr r3, [r3, #8]
  16341. 8007414: f003 0304 and.w r3, r3, #4
  16342. 8007418: 2b04 cmp r3, #4
  16343. 800741a: d101 bne.n 8007420 <LL_ADC_REG_IsConversionOngoing+0x18>
  16344. 800741c: 2301 movs r3, #1
  16345. 800741e: e000 b.n 8007422 <LL_ADC_REG_IsConversionOngoing+0x1a>
  16346. 8007420: 2300 movs r3, #0
  16347. }
  16348. 8007422: 4618 mov r0, r3
  16349. 8007424: 370c adds r7, #12
  16350. 8007426: 46bd mov sp, r7
  16351. 8007428: f85d 7b04 ldr.w r7, [sp], #4
  16352. 800742c: 4770 bx lr
  16353. ...
  16354. 08007430 <HAL_ADCEx_Calibration_Start>:
  16355. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  16356. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  16357. * @retval HAL status
  16358. */
  16359. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  16360. {
  16361. 8007430: b580 push {r7, lr}
  16362. 8007432: b086 sub sp, #24
  16363. 8007434: af00 add r7, sp, #0
  16364. 8007436: 60f8 str r0, [r7, #12]
  16365. 8007438: 60b9 str r1, [r7, #8]
  16366. 800743a: 607a str r2, [r7, #4]
  16367. HAL_StatusTypeDef tmp_hal_status;
  16368. __IO uint32_t wait_loop_index = 0UL;
  16369. 800743c: 2300 movs r3, #0
  16370. 800743e: 613b str r3, [r7, #16]
  16371. /* Check the parameters */
  16372. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  16373. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  16374. /* Process locked */
  16375. __HAL_LOCK(hadc);
  16376. 8007440: 68fb ldr r3, [r7, #12]
  16377. 8007442: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16378. 8007446: 2b01 cmp r3, #1
  16379. 8007448: d101 bne.n 800744e <HAL_ADCEx_Calibration_Start+0x1e>
  16380. 800744a: 2302 movs r3, #2
  16381. 800744c: e04c b.n 80074e8 <HAL_ADCEx_Calibration_Start+0xb8>
  16382. 800744e: 68fb ldr r3, [r7, #12]
  16383. 8007450: 2201 movs r2, #1
  16384. 8007452: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16385. /* Calibration prerequisite: ADC must be disabled. */
  16386. /* Disable the ADC (if not already disabled) */
  16387. tmp_hal_status = ADC_Disable(hadc);
  16388. 8007456: 68f8 ldr r0, [r7, #12]
  16389. 8007458: f7ff fd90 bl 8006f7c <ADC_Disable>
  16390. 800745c: 4603 mov r3, r0
  16391. 800745e: 75fb strb r3, [r7, #23]
  16392. /* Check if ADC is effectively disabled */
  16393. if (tmp_hal_status == HAL_OK)
  16394. 8007460: 7dfb ldrb r3, [r7, #23]
  16395. 8007462: 2b00 cmp r3, #0
  16396. 8007464: d135 bne.n 80074d2 <HAL_ADCEx_Calibration_Start+0xa2>
  16397. {
  16398. /* Set ADC state */
  16399. ADC_STATE_CLR_SET(hadc->State,
  16400. 8007466: 68fb ldr r3, [r7, #12]
  16401. 8007468: 6d5a ldr r2, [r3, #84] @ 0x54
  16402. 800746a: 4b21 ldr r3, [pc, #132] @ (80074f0 <HAL_ADCEx_Calibration_Start+0xc0>)
  16403. 800746c: 4013 ands r3, r2
  16404. 800746e: f043 0202 orr.w r2, r3, #2
  16405. 8007472: 68fb ldr r3, [r7, #12]
  16406. 8007474: 655a str r2, [r3, #84] @ 0x54
  16407. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  16408. HAL_ADC_STATE_BUSY_INTERNAL);
  16409. /* Start ADC calibration in mode single-ended or differential */
  16410. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  16411. 8007476: 68fb ldr r3, [r7, #12]
  16412. 8007478: 681b ldr r3, [r3, #0]
  16413. 800747a: 687a ldr r2, [r7, #4]
  16414. 800747c: 68b9 ldr r1, [r7, #8]
  16415. 800747e: 4618 mov r0, r3
  16416. 8007480: f7ff ff90 bl 80073a4 <LL_ADC_StartCalibration>
  16417. /* Wait for calibration completion */
  16418. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16419. 8007484: e014 b.n 80074b0 <HAL_ADCEx_Calibration_Start+0x80>
  16420. {
  16421. wait_loop_index++;
  16422. 8007486: 693b ldr r3, [r7, #16]
  16423. 8007488: 3301 adds r3, #1
  16424. 800748a: 613b str r3, [r7, #16]
  16425. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  16426. 800748c: 693b ldr r3, [r7, #16]
  16427. 800748e: 4a19 ldr r2, [pc, #100] @ (80074f4 <HAL_ADCEx_Calibration_Start+0xc4>)
  16428. 8007490: 4293 cmp r3, r2
  16429. 8007492: d30d bcc.n 80074b0 <HAL_ADCEx_Calibration_Start+0x80>
  16430. {
  16431. /* Update ADC state machine to error */
  16432. ADC_STATE_CLR_SET(hadc->State,
  16433. 8007494: 68fb ldr r3, [r7, #12]
  16434. 8007496: 6d5b ldr r3, [r3, #84] @ 0x54
  16435. 8007498: f023 0312 bic.w r3, r3, #18
  16436. 800749c: f043 0210 orr.w r2, r3, #16
  16437. 80074a0: 68fb ldr r3, [r7, #12]
  16438. 80074a2: 655a str r2, [r3, #84] @ 0x54
  16439. HAL_ADC_STATE_BUSY_INTERNAL,
  16440. HAL_ADC_STATE_ERROR_INTERNAL);
  16441. /* Process unlocked */
  16442. __HAL_UNLOCK(hadc);
  16443. 80074a4: 68fb ldr r3, [r7, #12]
  16444. 80074a6: 2200 movs r2, #0
  16445. 80074a8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16446. return HAL_ERROR;
  16447. 80074ac: 2301 movs r3, #1
  16448. 80074ae: e01b b.n 80074e8 <HAL_ADCEx_Calibration_Start+0xb8>
  16449. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16450. 80074b0: 68fb ldr r3, [r7, #12]
  16451. 80074b2: 681b ldr r3, [r3, #0]
  16452. 80074b4: 4618 mov r0, r3
  16453. 80074b6: f7ff ff93 bl 80073e0 <LL_ADC_IsCalibrationOnGoing>
  16454. 80074ba: 4603 mov r3, r0
  16455. 80074bc: 2b00 cmp r3, #0
  16456. 80074be: d1e2 bne.n 8007486 <HAL_ADCEx_Calibration_Start+0x56>
  16457. }
  16458. }
  16459. /* Set ADC state */
  16460. ADC_STATE_CLR_SET(hadc->State,
  16461. 80074c0: 68fb ldr r3, [r7, #12]
  16462. 80074c2: 6d5b ldr r3, [r3, #84] @ 0x54
  16463. 80074c4: f023 0303 bic.w r3, r3, #3
  16464. 80074c8: f043 0201 orr.w r2, r3, #1
  16465. 80074cc: 68fb ldr r3, [r7, #12]
  16466. 80074ce: 655a str r2, [r3, #84] @ 0x54
  16467. 80074d0: e005 b.n 80074de <HAL_ADCEx_Calibration_Start+0xae>
  16468. HAL_ADC_STATE_BUSY_INTERNAL,
  16469. HAL_ADC_STATE_READY);
  16470. }
  16471. else
  16472. {
  16473. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  16474. 80074d2: 68fb ldr r3, [r7, #12]
  16475. 80074d4: 6d5b ldr r3, [r3, #84] @ 0x54
  16476. 80074d6: f043 0210 orr.w r2, r3, #16
  16477. 80074da: 68fb ldr r3, [r7, #12]
  16478. 80074dc: 655a str r2, [r3, #84] @ 0x54
  16479. /* Note: No need to update variable "tmp_hal_status" here: already set */
  16480. /* to state "HAL_ERROR" by function disabling the ADC. */
  16481. }
  16482. /* Process unlocked */
  16483. __HAL_UNLOCK(hadc);
  16484. 80074de: 68fb ldr r3, [r7, #12]
  16485. 80074e0: 2200 movs r2, #0
  16486. 80074e2: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16487. /* Return function status */
  16488. return tmp_hal_status;
  16489. 80074e6: 7dfb ldrb r3, [r7, #23]
  16490. }
  16491. 80074e8: 4618 mov r0, r3
  16492. 80074ea: 3718 adds r7, #24
  16493. 80074ec: 46bd mov sp, r7
  16494. 80074ee: bd80 pop {r7, pc}
  16495. 80074f0: ffffeefd .word 0xffffeefd
  16496. 80074f4: 25c3f800 .word 0x25c3f800
  16497. 080074f8 <HAL_ADCEx_MultiModeConfigChannel>:
  16498. * @param hadc Master ADC handle
  16499. * @param multimode Structure of ADC multimode configuration
  16500. * @retval HAL status
  16501. */
  16502. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  16503. {
  16504. 80074f8: b590 push {r4, r7, lr}
  16505. 80074fa: b09f sub sp, #124 @ 0x7c
  16506. 80074fc: af00 add r7, sp, #0
  16507. 80074fe: 6078 str r0, [r7, #4]
  16508. 8007500: 6039 str r1, [r7, #0]
  16509. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  16510. 8007502: 2300 movs r3, #0
  16511. 8007504: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16512. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  16513. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  16514. }
  16515. /* Process locked */
  16516. __HAL_LOCK(hadc);
  16517. 8007508: 687b ldr r3, [r7, #4]
  16518. 800750a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16519. 800750e: 2b01 cmp r3, #1
  16520. 8007510: d101 bne.n 8007516 <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  16521. 8007512: 2302 movs r3, #2
  16522. 8007514: e0be b.n 8007694 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16523. 8007516: 687b ldr r3, [r7, #4]
  16524. 8007518: 2201 movs r2, #1
  16525. 800751a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16526. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  16527. 800751e: 2300 movs r3, #0
  16528. 8007520: 65fb str r3, [r7, #92] @ 0x5c
  16529. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  16530. 8007522: 2300 movs r3, #0
  16531. 8007524: 663b str r3, [r7, #96] @ 0x60
  16532. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  16533. 8007526: 687b ldr r3, [r7, #4]
  16534. 8007528: 681b ldr r3, [r3, #0]
  16535. 800752a: 4a5c ldr r2, [pc, #368] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16536. 800752c: 4293 cmp r3, r2
  16537. 800752e: d102 bne.n 8007536 <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  16538. 8007530: 4b5b ldr r3, [pc, #364] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16539. 8007532: 60bb str r3, [r7, #8]
  16540. 8007534: e001 b.n 800753a <HAL_ADCEx_MultiModeConfigChannel+0x42>
  16541. 8007536: 2300 movs r3, #0
  16542. 8007538: 60bb str r3, [r7, #8]
  16543. if (tmphadcSlave.Instance == NULL)
  16544. 800753a: 68bb ldr r3, [r7, #8]
  16545. 800753c: 2b00 cmp r3, #0
  16546. 800753e: d10b bne.n 8007558 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  16547. {
  16548. /* Update ADC state machine to error */
  16549. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16550. 8007540: 687b ldr r3, [r7, #4]
  16551. 8007542: 6d5b ldr r3, [r3, #84] @ 0x54
  16552. 8007544: f043 0220 orr.w r2, r3, #32
  16553. 8007548: 687b ldr r3, [r7, #4]
  16554. 800754a: 655a str r2, [r3, #84] @ 0x54
  16555. /* Process unlocked */
  16556. __HAL_UNLOCK(hadc);
  16557. 800754c: 687b ldr r3, [r7, #4]
  16558. 800754e: 2200 movs r2, #0
  16559. 8007550: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16560. return HAL_ERROR;
  16561. 8007554: 2301 movs r3, #1
  16562. 8007556: e09d b.n 8007694 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16563. /* Parameters update conditioned to ADC state: */
  16564. /* Parameters that can be updated when ADC is disabled or enabled without */
  16565. /* conversion on going on regular group: */
  16566. /* - Multimode DATA Format configuration */
  16567. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  16568. 8007558: 68bb ldr r3, [r7, #8]
  16569. 800755a: 4618 mov r0, r3
  16570. 800755c: f7ff ff54 bl 8007408 <LL_ADC_REG_IsConversionOngoing>
  16571. 8007560: 6738 str r0, [r7, #112] @ 0x70
  16572. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  16573. 8007562: 687b ldr r3, [r7, #4]
  16574. 8007564: 681b ldr r3, [r3, #0]
  16575. 8007566: 4618 mov r0, r3
  16576. 8007568: f7ff ff4e bl 8007408 <LL_ADC_REG_IsConversionOngoing>
  16577. 800756c: 4603 mov r3, r0
  16578. 800756e: 2b00 cmp r3, #0
  16579. 8007570: d17f bne.n 8007672 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16580. && (tmphadcSlave_conversion_on_going == 0UL))
  16581. 8007572: 6f3b ldr r3, [r7, #112] @ 0x70
  16582. 8007574: 2b00 cmp r3, #0
  16583. 8007576: d17c bne.n 8007672 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16584. {
  16585. /* Pointer to the common control register */
  16586. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16587. 8007578: 687b ldr r3, [r7, #4]
  16588. 800757a: 681b ldr r3, [r3, #0]
  16589. 800757c: 4a47 ldr r2, [pc, #284] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16590. 800757e: 4293 cmp r3, r2
  16591. 8007580: d004 beq.n 800758c <HAL_ADCEx_MultiModeConfigChannel+0x94>
  16592. 8007582: 687b ldr r3, [r7, #4]
  16593. 8007584: 681b ldr r3, [r3, #0]
  16594. 8007586: 4a46 ldr r2, [pc, #280] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16595. 8007588: 4293 cmp r3, r2
  16596. 800758a: d101 bne.n 8007590 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  16597. 800758c: 4b45 ldr r3, [pc, #276] @ (80076a4 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  16598. 800758e: e000 b.n 8007592 <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  16599. 8007590: 4b45 ldr r3, [pc, #276] @ (80076a8 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  16600. 8007592: 66fb str r3, [r7, #108] @ 0x6c
  16601. /* If multimode is selected, configure all multimode parameters. */
  16602. /* Otherwise, reset multimode parameters (can be used in case of */
  16603. /* transition from multimode to independent mode). */
  16604. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16605. 8007594: 683b ldr r3, [r7, #0]
  16606. 8007596: 681b ldr r3, [r3, #0]
  16607. 8007598: 2b00 cmp r3, #0
  16608. 800759a: d039 beq.n 8007610 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  16609. {
  16610. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  16611. 800759c: 6efb ldr r3, [r7, #108] @ 0x6c
  16612. 800759e: 689b ldr r3, [r3, #8]
  16613. 80075a0: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16614. 80075a4: 683b ldr r3, [r7, #0]
  16615. 80075a6: 685b ldr r3, [r3, #4]
  16616. 80075a8: 431a orrs r2, r3
  16617. 80075aa: 6efb ldr r3, [r7, #108] @ 0x6c
  16618. 80075ac: 609a str r2, [r3, #8]
  16619. /* from 1 to 8 clock cycles for 12 bits */
  16620. /* from 1 to 6 clock cycles for 10 and 8 bits */
  16621. /* If a higher delay is selected, it will be clipped to maximum delay */
  16622. /* range */
  16623. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16624. 80075ae: 687b ldr r3, [r7, #4]
  16625. 80075b0: 681b ldr r3, [r3, #0]
  16626. 80075b2: 4a3a ldr r2, [pc, #232] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16627. 80075b4: 4293 cmp r3, r2
  16628. 80075b6: d004 beq.n 80075c2 <HAL_ADCEx_MultiModeConfigChannel+0xca>
  16629. 80075b8: 687b ldr r3, [r7, #4]
  16630. 80075ba: 681b ldr r3, [r3, #0]
  16631. 80075bc: 4a38 ldr r2, [pc, #224] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16632. 80075be: 4293 cmp r3, r2
  16633. 80075c0: d10e bne.n 80075e0 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  16634. 80075c2: 4836 ldr r0, [pc, #216] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16635. 80075c4: f7ff feda bl 800737c <LL_ADC_IsEnabled>
  16636. 80075c8: 4604 mov r4, r0
  16637. 80075ca: 4835 ldr r0, [pc, #212] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16638. 80075cc: f7ff fed6 bl 800737c <LL_ADC_IsEnabled>
  16639. 80075d0: 4603 mov r3, r0
  16640. 80075d2: 4323 orrs r3, r4
  16641. 80075d4: 2b00 cmp r3, #0
  16642. 80075d6: bf0c ite eq
  16643. 80075d8: 2301 moveq r3, #1
  16644. 80075da: 2300 movne r3, #0
  16645. 80075dc: b2db uxtb r3, r3
  16646. 80075de: e008 b.n 80075f2 <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  16647. 80075e0: 4832 ldr r0, [pc, #200] @ (80076ac <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16648. 80075e2: f7ff fecb bl 800737c <LL_ADC_IsEnabled>
  16649. 80075e6: 4603 mov r3, r0
  16650. 80075e8: 2b00 cmp r3, #0
  16651. 80075ea: bf0c ite eq
  16652. 80075ec: 2301 moveq r3, #1
  16653. 80075ee: 2300 movne r3, #0
  16654. 80075f0: b2db uxtb r3, r3
  16655. 80075f2: 2b00 cmp r3, #0
  16656. 80075f4: d047 beq.n 8007686 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16657. {
  16658. MODIFY_REG(tmpADC_Common->CCR,
  16659. 80075f6: 6efb ldr r3, [r7, #108] @ 0x6c
  16660. 80075f8: 689a ldr r2, [r3, #8]
  16661. 80075fa: 4b2d ldr r3, [pc, #180] @ (80076b0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16662. 80075fc: 4013 ands r3, r2
  16663. 80075fe: 683a ldr r2, [r7, #0]
  16664. 8007600: 6811 ldr r1, [r2, #0]
  16665. 8007602: 683a ldr r2, [r7, #0]
  16666. 8007604: 6892 ldr r2, [r2, #8]
  16667. 8007606: 430a orrs r2, r1
  16668. 8007608: 431a orrs r2, r3
  16669. 800760a: 6efb ldr r3, [r7, #108] @ 0x6c
  16670. 800760c: 609a str r2, [r3, #8]
  16671. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16672. 800760e: e03a b.n 8007686 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16673. );
  16674. }
  16675. }
  16676. else /* ADC_MODE_INDEPENDENT */
  16677. {
  16678. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  16679. 8007610: 6efb ldr r3, [r7, #108] @ 0x6c
  16680. 8007612: 689b ldr r3, [r3, #8]
  16681. 8007614: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16682. 8007618: 6efb ldr r3, [r7, #108] @ 0x6c
  16683. 800761a: 609a str r2, [r3, #8]
  16684. /* Parameters that can be updated only when ADC is disabled: */
  16685. /* - Multimode mode selection */
  16686. /* - Multimode delay */
  16687. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16688. 800761c: 687b ldr r3, [r7, #4]
  16689. 800761e: 681b ldr r3, [r3, #0]
  16690. 8007620: 4a1e ldr r2, [pc, #120] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16691. 8007622: 4293 cmp r3, r2
  16692. 8007624: d004 beq.n 8007630 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  16693. 8007626: 687b ldr r3, [r7, #4]
  16694. 8007628: 681b ldr r3, [r3, #0]
  16695. 800762a: 4a1d ldr r2, [pc, #116] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16696. 800762c: 4293 cmp r3, r2
  16697. 800762e: d10e bne.n 800764e <HAL_ADCEx_MultiModeConfigChannel+0x156>
  16698. 8007630: 481a ldr r0, [pc, #104] @ (800769c <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16699. 8007632: f7ff fea3 bl 800737c <LL_ADC_IsEnabled>
  16700. 8007636: 4604 mov r4, r0
  16701. 8007638: 4819 ldr r0, [pc, #100] @ (80076a0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16702. 800763a: f7ff fe9f bl 800737c <LL_ADC_IsEnabled>
  16703. 800763e: 4603 mov r3, r0
  16704. 8007640: 4323 orrs r3, r4
  16705. 8007642: 2b00 cmp r3, #0
  16706. 8007644: bf0c ite eq
  16707. 8007646: 2301 moveq r3, #1
  16708. 8007648: 2300 movne r3, #0
  16709. 800764a: b2db uxtb r3, r3
  16710. 800764c: e008 b.n 8007660 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  16711. 800764e: 4817 ldr r0, [pc, #92] @ (80076ac <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16712. 8007650: f7ff fe94 bl 800737c <LL_ADC_IsEnabled>
  16713. 8007654: 4603 mov r3, r0
  16714. 8007656: 2b00 cmp r3, #0
  16715. 8007658: bf0c ite eq
  16716. 800765a: 2301 moveq r3, #1
  16717. 800765c: 2300 movne r3, #0
  16718. 800765e: b2db uxtb r3, r3
  16719. 8007660: 2b00 cmp r3, #0
  16720. 8007662: d010 beq.n 8007686 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16721. {
  16722. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  16723. 8007664: 6efb ldr r3, [r7, #108] @ 0x6c
  16724. 8007666: 689a ldr r2, [r3, #8]
  16725. 8007668: 4b11 ldr r3, [pc, #68] @ (80076b0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16726. 800766a: 4013 ands r3, r2
  16727. 800766c: 6efa ldr r2, [r7, #108] @ 0x6c
  16728. 800766e: 6093 str r3, [r2, #8]
  16729. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16730. 8007670: e009 b.n 8007686 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16731. /* If one of the ADC sharing the same common group is enabled, no update */
  16732. /* could be done on neither of the multimode structure parameters. */
  16733. else
  16734. {
  16735. /* Update ADC state machine to error */
  16736. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16737. 8007672: 687b ldr r3, [r7, #4]
  16738. 8007674: 6d5b ldr r3, [r3, #84] @ 0x54
  16739. 8007676: f043 0220 orr.w r2, r3, #32
  16740. 800767a: 687b ldr r3, [r7, #4]
  16741. 800767c: 655a str r2, [r3, #84] @ 0x54
  16742. tmp_hal_status = HAL_ERROR;
  16743. 800767e: 2301 movs r3, #1
  16744. 8007680: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16745. 8007684: e000 b.n 8007688 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  16746. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16747. 8007686: bf00 nop
  16748. }
  16749. /* Process unlocked */
  16750. __HAL_UNLOCK(hadc);
  16751. 8007688: 687b ldr r3, [r7, #4]
  16752. 800768a: 2200 movs r2, #0
  16753. 800768c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16754. /* Return function status */
  16755. return tmp_hal_status;
  16756. 8007690: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  16757. }
  16758. 8007694: 4618 mov r0, r3
  16759. 8007696: 377c adds r7, #124 @ 0x7c
  16760. 8007698: 46bd mov sp, r7
  16761. 800769a: bd90 pop {r4, r7, pc}
  16762. 800769c: 40022000 .word 0x40022000
  16763. 80076a0: 40022100 .word 0x40022100
  16764. 80076a4: 40022300 .word 0x40022300
  16765. 80076a8: 58026300 .word 0x58026300
  16766. 80076ac: 58026000 .word 0x58026000
  16767. 80076b0: fffff0e0 .word 0xfffff0e0
  16768. 080076b4 <HAL_COMP_Init>:
  16769. * To unlock the configuration, perform a system reset.
  16770. * @param hcomp COMP handle
  16771. * @retval HAL status
  16772. */
  16773. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  16774. {
  16775. 80076b4: b580 push {r7, lr}
  16776. 80076b6: b088 sub sp, #32
  16777. 80076b8: af00 add r7, sp, #0
  16778. 80076ba: 6078 str r0, [r7, #4]
  16779. uint32_t tmp_csr ;
  16780. uint32_t exti_line ;
  16781. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  16782. __IO uint32_t wait_loop_index = 0UL;
  16783. 80076bc: 2300 movs r3, #0
  16784. 80076be: 60fb str r3, [r7, #12]
  16785. HAL_StatusTypeDef status = HAL_OK;
  16786. 80076c0: 2300 movs r3, #0
  16787. 80076c2: 77fb strb r3, [r7, #31]
  16788. /* Check the COMP handle allocation and lock status */
  16789. if(hcomp == NULL)
  16790. 80076c4: 687b ldr r3, [r7, #4]
  16791. 80076c6: 2b00 cmp r3, #0
  16792. 80076c8: d102 bne.n 80076d0 <HAL_COMP_Init+0x1c>
  16793. {
  16794. status = HAL_ERROR;
  16795. 80076ca: 2301 movs r3, #1
  16796. 80076cc: 77fb strb r3, [r7, #31]
  16797. 80076ce: e10e b.n 80078ee <HAL_COMP_Init+0x23a>
  16798. }
  16799. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16800. 80076d0: 687b ldr r3, [r7, #4]
  16801. 80076d2: 681b ldr r3, [r3, #0]
  16802. 80076d4: 681b ldr r3, [r3, #0]
  16803. 80076d6: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16804. 80076da: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16805. 80076de: d102 bne.n 80076e6 <HAL_COMP_Init+0x32>
  16806. {
  16807. status = HAL_ERROR;
  16808. 80076e0: 2301 movs r3, #1
  16809. 80076e2: 77fb strb r3, [r7, #31]
  16810. 80076e4: e103 b.n 80078ee <HAL_COMP_Init+0x23a>
  16811. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  16812. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  16813. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  16814. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  16815. if(hcomp->State == HAL_COMP_STATE_RESET)
  16816. 80076e6: 687b ldr r3, [r7, #4]
  16817. 80076e8: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16818. 80076ec: b2db uxtb r3, r3
  16819. 80076ee: 2b00 cmp r3, #0
  16820. 80076f0: d109 bne.n 8007706 <HAL_COMP_Init+0x52>
  16821. {
  16822. /* Allocate lock resource and initialize it */
  16823. hcomp->Lock = HAL_UNLOCKED;
  16824. 80076f2: 687b ldr r3, [r7, #4]
  16825. 80076f4: 2200 movs r2, #0
  16826. 80076f6: f883 2024 strb.w r2, [r3, #36] @ 0x24
  16827. /* Set COMP error code to none */
  16828. COMP_CLEAR_ERRORCODE(hcomp);
  16829. 80076fa: 687b ldr r3, [r7, #4]
  16830. 80076fc: 2200 movs r2, #0
  16831. 80076fe: 629a str r2, [r3, #40] @ 0x28
  16832. /* Init the low level hardware */
  16833. hcomp->MspInitCallback(hcomp);
  16834. #else
  16835. /* Init the low level hardware */
  16836. HAL_COMP_MspInit(hcomp);
  16837. 8007700: 6878 ldr r0, [r7, #4]
  16838. 8007702: f7fc fca9 bl 8004058 <HAL_COMP_MspInit>
  16839. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  16840. }
  16841. /* Memorize voltage scaler state before initialization */
  16842. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  16843. 8007706: 687b ldr r3, [r7, #4]
  16844. 8007708: 681b ldr r3, [r3, #0]
  16845. 800770a: 681b ldr r3, [r3, #0]
  16846. 800770c: f003 0304 and.w r3, r3, #4
  16847. 8007710: 61bb str r3, [r7, #24]
  16848. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  16849. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  16850. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  16851. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  16852. tmp_csr = (hcomp->Init.InvertingInput | \
  16853. 8007712: 687b ldr r3, [r7, #4]
  16854. 8007714: 691a ldr r2, [r3, #16]
  16855. hcomp->Init.NonInvertingInput | \
  16856. 8007716: 687b ldr r3, [r7, #4]
  16857. 8007718: 68db ldr r3, [r3, #12]
  16858. tmp_csr = (hcomp->Init.InvertingInput | \
  16859. 800771a: 431a orrs r2, r3
  16860. hcomp->Init.BlankingSrce | \
  16861. 800771c: 687b ldr r3, [r7, #4]
  16862. 800771e: 69db ldr r3, [r3, #28]
  16863. hcomp->Init.NonInvertingInput | \
  16864. 8007720: 431a orrs r2, r3
  16865. hcomp->Init.Hysteresis | \
  16866. 8007722: 687b ldr r3, [r7, #4]
  16867. 8007724: 695b ldr r3, [r3, #20]
  16868. hcomp->Init.BlankingSrce | \
  16869. 8007726: 431a orrs r2, r3
  16870. hcomp->Init.OutputPol | \
  16871. 8007728: 687b ldr r3, [r7, #4]
  16872. 800772a: 699b ldr r3, [r3, #24]
  16873. hcomp->Init.Hysteresis | \
  16874. 800772c: 431a orrs r2, r3
  16875. hcomp->Init.Mode );
  16876. 800772e: 687b ldr r3, [r7, #4]
  16877. 8007730: 689b ldr r3, [r3, #8]
  16878. tmp_csr = (hcomp->Init.InvertingInput | \
  16879. 8007732: 4313 orrs r3, r2
  16880. 8007734: 617b str r3, [r7, #20]
  16881. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  16882. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  16883. tmp_csr
  16884. );
  16885. #else
  16886. MODIFY_REG(hcomp->Instance->CFGR,
  16887. 8007736: 687b ldr r3, [r7, #4]
  16888. 8007738: 681b ldr r3, [r3, #0]
  16889. 800773a: 681a ldr r2, [r3, #0]
  16890. 800773c: 4b6e ldr r3, [pc, #440] @ (80078f8 <HAL_COMP_Init+0x244>)
  16891. 800773e: 4013 ands r3, r2
  16892. 8007740: 687a ldr r2, [r7, #4]
  16893. 8007742: 6812 ldr r2, [r2, #0]
  16894. 8007744: 6979 ldr r1, [r7, #20]
  16895. 8007746: 430b orrs r3, r1
  16896. 8007748: 6013 str r3, [r2, #0]
  16897. #endif
  16898. /* Set window mode */
  16899. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  16900. /* instances. Therefore, this function can update another COMP */
  16901. /* instance that the one currently selected. */
  16902. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  16903. 800774a: 687b ldr r3, [r7, #4]
  16904. 800774c: 685b ldr r3, [r3, #4]
  16905. 800774e: 2b10 cmp r3, #16
  16906. 8007750: d108 bne.n 8007764 <HAL_COMP_Init+0xb0>
  16907. {
  16908. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16909. 8007752: 687b ldr r3, [r7, #4]
  16910. 8007754: 681b ldr r3, [r3, #0]
  16911. 8007756: 681a ldr r2, [r3, #0]
  16912. 8007758: 687b ldr r3, [r7, #4]
  16913. 800775a: 681b ldr r3, [r3, #0]
  16914. 800775c: f042 0210 orr.w r2, r2, #16
  16915. 8007760: 601a str r2, [r3, #0]
  16916. 8007762: e007 b.n 8007774 <HAL_COMP_Init+0xc0>
  16917. }
  16918. else
  16919. {
  16920. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16921. 8007764: 687b ldr r3, [r7, #4]
  16922. 8007766: 681b ldr r3, [r3, #0]
  16923. 8007768: 681a ldr r2, [r3, #0]
  16924. 800776a: 687b ldr r3, [r7, #4]
  16925. 800776c: 681b ldr r3, [r3, #0]
  16926. 800776e: f022 0210 bic.w r2, r2, #16
  16927. 8007772: 601a str r2, [r3, #0]
  16928. }
  16929. /* Delay for COMP scaler bridge voltage stabilization */
  16930. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  16931. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  16932. 8007774: 687b ldr r3, [r7, #4]
  16933. 8007776: 681b ldr r3, [r3, #0]
  16934. 8007778: 681b ldr r3, [r3, #0]
  16935. 800777a: f003 0304 and.w r3, r3, #4
  16936. 800777e: 2b00 cmp r3, #0
  16937. 8007780: d016 beq.n 80077b0 <HAL_COMP_Init+0xfc>
  16938. 8007782: 69bb ldr r3, [r7, #24]
  16939. 8007784: 2b00 cmp r3, #0
  16940. 8007786: d013 beq.n 80077b0 <HAL_COMP_Init+0xfc>
  16941. {
  16942. /* Wait loop initialization and execution */
  16943. /* Note: Variable divided by 2 to compensate partially */
  16944. /* CPU processing cycles.*/
  16945. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16946. 8007788: 4b5c ldr r3, [pc, #368] @ (80078fc <HAL_COMP_Init+0x248>)
  16947. 800778a: 681b ldr r3, [r3, #0]
  16948. 800778c: 099b lsrs r3, r3, #6
  16949. 800778e: 4a5c ldr r2, [pc, #368] @ (8007900 <HAL_COMP_Init+0x24c>)
  16950. 8007790: fba2 2303 umull r2, r3, r2, r3
  16951. 8007794: 099b lsrs r3, r3, #6
  16952. 8007796: 1c5a adds r2, r3, #1
  16953. 8007798: 4613 mov r3, r2
  16954. 800779a: 009b lsls r3, r3, #2
  16955. 800779c: 4413 add r3, r2
  16956. 800779e: 009b lsls r3, r3, #2
  16957. 80077a0: 60fb str r3, [r7, #12]
  16958. while(wait_loop_index != 0UL)
  16959. 80077a2: e002 b.n 80077aa <HAL_COMP_Init+0xf6>
  16960. {
  16961. wait_loop_index --;
  16962. 80077a4: 68fb ldr r3, [r7, #12]
  16963. 80077a6: 3b01 subs r3, #1
  16964. 80077a8: 60fb str r3, [r7, #12]
  16965. while(wait_loop_index != 0UL)
  16966. 80077aa: 68fb ldr r3, [r7, #12]
  16967. 80077ac: 2b00 cmp r3, #0
  16968. 80077ae: d1f9 bne.n 80077a4 <HAL_COMP_Init+0xf0>
  16969. }
  16970. }
  16971. /* Get the EXTI line corresponding to the selected COMP instance */
  16972. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  16973. 80077b0: 687b ldr r3, [r7, #4]
  16974. 80077b2: 681b ldr r3, [r3, #0]
  16975. 80077b4: 4a53 ldr r2, [pc, #332] @ (8007904 <HAL_COMP_Init+0x250>)
  16976. 80077b6: 4293 cmp r3, r2
  16977. 80077b8: d102 bne.n 80077c0 <HAL_COMP_Init+0x10c>
  16978. 80077ba: f44f 1380 mov.w r3, #1048576 @ 0x100000
  16979. 80077be: e001 b.n 80077c4 <HAL_COMP_Init+0x110>
  16980. 80077c0: f44f 1300 mov.w r3, #2097152 @ 0x200000
  16981. 80077c4: 613b str r3, [r7, #16]
  16982. /* Manage EXTI settings */
  16983. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  16984. 80077c6: 687b ldr r3, [r7, #4]
  16985. 80077c8: 6a1b ldr r3, [r3, #32]
  16986. 80077ca: f003 0303 and.w r3, r3, #3
  16987. 80077ce: 2b00 cmp r3, #0
  16988. 80077d0: d06d beq.n 80078ae <HAL_COMP_Init+0x1fa>
  16989. {
  16990. /* Configure EXTI rising edge */
  16991. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  16992. 80077d2: 687b ldr r3, [r7, #4]
  16993. 80077d4: 6a1b ldr r3, [r3, #32]
  16994. 80077d6: f003 0310 and.w r3, r3, #16
  16995. 80077da: 2b00 cmp r3, #0
  16996. 80077dc: d008 beq.n 80077f0 <HAL_COMP_Init+0x13c>
  16997. {
  16998. SET_BIT(EXTI->RTSR1, exti_line);
  16999. 80077de: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17000. 80077e2: 681a ldr r2, [r3, #0]
  17001. 80077e4: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17002. 80077e8: 693b ldr r3, [r7, #16]
  17003. 80077ea: 4313 orrs r3, r2
  17004. 80077ec: 600b str r3, [r1, #0]
  17005. 80077ee: e008 b.n 8007802 <HAL_COMP_Init+0x14e>
  17006. }
  17007. else
  17008. {
  17009. CLEAR_BIT(EXTI->RTSR1, exti_line);
  17010. 80077f0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17011. 80077f4: 681a ldr r2, [r3, #0]
  17012. 80077f6: 693b ldr r3, [r7, #16]
  17013. 80077f8: 43db mvns r3, r3
  17014. 80077fa: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17015. 80077fe: 4013 ands r3, r2
  17016. 8007800: 600b str r3, [r1, #0]
  17017. }
  17018. /* Configure EXTI falling edge */
  17019. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  17020. 8007802: 687b ldr r3, [r7, #4]
  17021. 8007804: 6a1b ldr r3, [r3, #32]
  17022. 8007806: f003 0320 and.w r3, r3, #32
  17023. 800780a: 2b00 cmp r3, #0
  17024. 800780c: d008 beq.n 8007820 <HAL_COMP_Init+0x16c>
  17025. {
  17026. SET_BIT(EXTI->FTSR1, exti_line);
  17027. 800780e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17028. 8007812: 685a ldr r2, [r3, #4]
  17029. 8007814: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17030. 8007818: 693b ldr r3, [r7, #16]
  17031. 800781a: 4313 orrs r3, r2
  17032. 800781c: 604b str r3, [r1, #4]
  17033. 800781e: e008 b.n 8007832 <HAL_COMP_Init+0x17e>
  17034. }
  17035. else
  17036. {
  17037. CLEAR_BIT(EXTI->FTSR1, exti_line);
  17038. 8007820: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17039. 8007824: 685a ldr r2, [r3, #4]
  17040. 8007826: 693b ldr r3, [r7, #16]
  17041. 8007828: 43db mvns r3, r3
  17042. 800782a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17043. 800782e: 4013 ands r3, r2
  17044. 8007830: 604b str r3, [r1, #4]
  17045. }
  17046. #if !defined (CORE_CM4)
  17047. /* Clear COMP EXTI pending bit (if any) */
  17048. WRITE_REG(EXTI->PR1, exti_line);
  17049. 8007832: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  17050. 8007836: 693b ldr r3, [r7, #16]
  17051. 8007838: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  17052. /* Configure EXTI event mode */
  17053. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  17054. 800783c: 687b ldr r3, [r7, #4]
  17055. 800783e: 6a1b ldr r3, [r3, #32]
  17056. 8007840: f003 0302 and.w r3, r3, #2
  17057. 8007844: 2b00 cmp r3, #0
  17058. 8007846: d00a beq.n 800785e <HAL_COMP_Init+0x1aa>
  17059. {
  17060. SET_BIT(EXTI->EMR1, exti_line);
  17061. 8007848: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17062. 800784c: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17063. 8007850: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17064. 8007854: 693b ldr r3, [r7, #16]
  17065. 8007856: 4313 orrs r3, r2
  17066. 8007858: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17067. 800785c: e00a b.n 8007874 <HAL_COMP_Init+0x1c0>
  17068. }
  17069. else
  17070. {
  17071. CLEAR_BIT(EXTI->EMR1, exti_line);
  17072. 800785e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17073. 8007862: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17074. 8007866: 693b ldr r3, [r7, #16]
  17075. 8007868: 43db mvns r3, r3
  17076. 800786a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17077. 800786e: 4013 ands r3, r2
  17078. 8007870: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17079. }
  17080. /* Configure EXTI interrupt mode */
  17081. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  17082. 8007874: 687b ldr r3, [r7, #4]
  17083. 8007876: 6a1b ldr r3, [r3, #32]
  17084. 8007878: f003 0301 and.w r3, r3, #1
  17085. 800787c: 2b00 cmp r3, #0
  17086. 800787e: d00a beq.n 8007896 <HAL_COMP_Init+0x1e2>
  17087. {
  17088. SET_BIT(EXTI->IMR1, exti_line);
  17089. 8007880: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17090. 8007884: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17091. 8007888: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17092. 800788c: 693b ldr r3, [r7, #16]
  17093. 800788e: 4313 orrs r3, r2
  17094. 8007890: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17095. 8007894: e021 b.n 80078da <HAL_COMP_Init+0x226>
  17096. }
  17097. else
  17098. {
  17099. CLEAR_BIT(EXTI->IMR1, exti_line);
  17100. 8007896: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17101. 800789a: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17102. 800789e: 693b ldr r3, [r7, #16]
  17103. 80078a0: 43db mvns r3, r3
  17104. 80078a2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17105. 80078a6: 4013 ands r3, r2
  17106. 80078a8: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17107. 80078ac: e015 b.n 80078da <HAL_COMP_Init+0x226>
  17108. }
  17109. }
  17110. else
  17111. {
  17112. /* Disable EXTI event mode */
  17113. CLEAR_BIT(EXTI->EMR1, exti_line);
  17114. 80078ae: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17115. 80078b2: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17116. 80078b6: 693b ldr r3, [r7, #16]
  17117. 80078b8: 43db mvns r3, r3
  17118. 80078ba: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17119. 80078be: 4013 ands r3, r2
  17120. 80078c0: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17121. /* Disable EXTI interrupt mode */
  17122. CLEAR_BIT(EXTI->IMR1, exti_line);
  17123. 80078c4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17124. 80078c8: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17125. 80078cc: 693b ldr r3, [r7, #16]
  17126. 80078ce: 43db mvns r3, r3
  17127. 80078d0: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17128. 80078d4: 4013 ands r3, r2
  17129. 80078d6: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17130. }
  17131. #endif
  17132. /* Set HAL COMP handle state */
  17133. /* Note: Transition from state reset to state ready, */
  17134. /* otherwise (coming from state ready or busy) no state update. */
  17135. if (hcomp->State == HAL_COMP_STATE_RESET)
  17136. 80078da: 687b ldr r3, [r7, #4]
  17137. 80078dc: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17138. 80078e0: b2db uxtb r3, r3
  17139. 80078e2: 2b00 cmp r3, #0
  17140. 80078e4: d103 bne.n 80078ee <HAL_COMP_Init+0x23a>
  17141. {
  17142. hcomp->State = HAL_COMP_STATE_READY;
  17143. 80078e6: 687b ldr r3, [r7, #4]
  17144. 80078e8: 2201 movs r2, #1
  17145. 80078ea: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17146. }
  17147. }
  17148. return status;
  17149. 80078ee: 7ffb ldrb r3, [r7, #31]
  17150. }
  17151. 80078f0: 4618 mov r0, r3
  17152. 80078f2: 3720 adds r7, #32
  17153. 80078f4: 46bd mov sp, r7
  17154. 80078f6: bd80 pop {r7, pc}
  17155. 80078f8: f0e8cce1 .word 0xf0e8cce1
  17156. 80078fc: 24000034 .word 0x24000034
  17157. 8007900: 053e2d63 .word 0x053e2d63
  17158. 8007904: 5800380c .word 0x5800380c
  17159. 08007908 <HAL_COMP_Start>:
  17160. * @brief Start the comparator.
  17161. * @param hcomp COMP handle
  17162. * @retval HAL status
  17163. */
  17164. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  17165. {
  17166. 8007908: b480 push {r7}
  17167. 800790a: b085 sub sp, #20
  17168. 800790c: af00 add r7, sp, #0
  17169. 800790e: 6078 str r0, [r7, #4]
  17170. __IO uint32_t wait_loop_index = 0UL;
  17171. 8007910: 2300 movs r3, #0
  17172. 8007912: 60bb str r3, [r7, #8]
  17173. HAL_StatusTypeDef status = HAL_OK;
  17174. 8007914: 2300 movs r3, #0
  17175. 8007916: 73fb strb r3, [r7, #15]
  17176. /* Check the COMP handle allocation and lock status */
  17177. if(hcomp == NULL)
  17178. 8007918: 687b ldr r3, [r7, #4]
  17179. 800791a: 2b00 cmp r3, #0
  17180. 800791c: d102 bne.n 8007924 <HAL_COMP_Start+0x1c>
  17181. {
  17182. status = HAL_ERROR;
  17183. 800791e: 2301 movs r3, #1
  17184. 8007920: 73fb strb r3, [r7, #15]
  17185. 8007922: e030 b.n 8007986 <HAL_COMP_Start+0x7e>
  17186. }
  17187. else if(__HAL_COMP_IS_LOCKED(hcomp))
  17188. 8007924: 687b ldr r3, [r7, #4]
  17189. 8007926: 681b ldr r3, [r3, #0]
  17190. 8007928: 681b ldr r3, [r3, #0]
  17191. 800792a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  17192. 800792e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  17193. 8007932: d102 bne.n 800793a <HAL_COMP_Start+0x32>
  17194. {
  17195. status = HAL_ERROR;
  17196. 8007934: 2301 movs r3, #1
  17197. 8007936: 73fb strb r3, [r7, #15]
  17198. 8007938: e025 b.n 8007986 <HAL_COMP_Start+0x7e>
  17199. else
  17200. {
  17201. /* Check the parameter */
  17202. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17203. if(hcomp->State == HAL_COMP_STATE_READY)
  17204. 800793a: 687b ldr r3, [r7, #4]
  17205. 800793c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17206. 8007940: b2db uxtb r3, r3
  17207. 8007942: 2b01 cmp r3, #1
  17208. 8007944: d11d bne.n 8007982 <HAL_COMP_Start+0x7a>
  17209. {
  17210. /* Enable the selected comparator */
  17211. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  17212. 8007946: 687b ldr r3, [r7, #4]
  17213. 8007948: 681b ldr r3, [r3, #0]
  17214. 800794a: 681a ldr r2, [r3, #0]
  17215. 800794c: 687b ldr r3, [r7, #4]
  17216. 800794e: 681b ldr r3, [r3, #0]
  17217. 8007950: f042 0201 orr.w r2, r2, #1
  17218. 8007954: 601a str r2, [r3, #0]
  17219. /* Set HAL COMP handle state */
  17220. hcomp->State = HAL_COMP_STATE_BUSY;
  17221. 8007956: 687b ldr r3, [r7, #4]
  17222. 8007958: 2202 movs r2, #2
  17223. 800795a: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17224. /* Delay for COMP startup time */
  17225. /* Wait loop initialization and execution */
  17226. /* Note: Variable divided by 2 to compensate partially */
  17227. /* CPU processing cycles. */
  17228. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  17229. 800795e: 4b0d ldr r3, [pc, #52] @ (8007994 <HAL_COMP_Start+0x8c>)
  17230. 8007960: 681b ldr r3, [r3, #0]
  17231. 8007962: 099b lsrs r3, r3, #6
  17232. 8007964: 4a0c ldr r2, [pc, #48] @ (8007998 <HAL_COMP_Start+0x90>)
  17233. 8007966: fba2 2303 umull r2, r3, r2, r3
  17234. 800796a: 099b lsrs r3, r3, #6
  17235. 800796c: 3301 adds r3, #1
  17236. 800796e: 00db lsls r3, r3, #3
  17237. 8007970: 60bb str r3, [r7, #8]
  17238. while(wait_loop_index != 0UL)
  17239. 8007972: e002 b.n 800797a <HAL_COMP_Start+0x72>
  17240. {
  17241. wait_loop_index--;
  17242. 8007974: 68bb ldr r3, [r7, #8]
  17243. 8007976: 3b01 subs r3, #1
  17244. 8007978: 60bb str r3, [r7, #8]
  17245. while(wait_loop_index != 0UL)
  17246. 800797a: 68bb ldr r3, [r7, #8]
  17247. 800797c: 2b00 cmp r3, #0
  17248. 800797e: d1f9 bne.n 8007974 <HAL_COMP_Start+0x6c>
  17249. 8007980: e001 b.n 8007986 <HAL_COMP_Start+0x7e>
  17250. }
  17251. }
  17252. else
  17253. {
  17254. status = HAL_ERROR;
  17255. 8007982: 2301 movs r3, #1
  17256. 8007984: 73fb strb r3, [r7, #15]
  17257. }
  17258. }
  17259. return status;
  17260. 8007986: 7bfb ldrb r3, [r7, #15]
  17261. }
  17262. 8007988: 4618 mov r0, r3
  17263. 800798a: 3714 adds r7, #20
  17264. 800798c: 46bd mov sp, r7
  17265. 800798e: f85d 7b04 ldr.w r7, [sp], #4
  17266. 8007992: 4770 bx lr
  17267. 8007994: 24000034 .word 0x24000034
  17268. 8007998: 053e2d63 .word 0x053e2d63
  17269. 0800799c <HAL_COMP_GetOutputLevel>:
  17270. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  17271. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  17272. *
  17273. */
  17274. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  17275. {
  17276. 800799c: b480 push {r7}
  17277. 800799e: b083 sub sp, #12
  17278. 80079a0: af00 add r7, sp, #0
  17279. 80079a2: 6078 str r0, [r7, #4]
  17280. /* Check the parameter */
  17281. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17282. if (hcomp->Instance == COMP1)
  17283. 80079a4: 687b ldr r3, [r7, #4]
  17284. 80079a6: 681b ldr r3, [r3, #0]
  17285. 80079a8: 4a09 ldr r2, [pc, #36] @ (80079d0 <HAL_COMP_GetOutputLevel+0x34>)
  17286. 80079aa: 4293 cmp r3, r2
  17287. 80079ac: d104 bne.n 80079b8 <HAL_COMP_GetOutputLevel+0x1c>
  17288. {
  17289. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  17290. 80079ae: 4b09 ldr r3, [pc, #36] @ (80079d4 <HAL_COMP_GetOutputLevel+0x38>)
  17291. 80079b0: 681b ldr r3, [r3, #0]
  17292. 80079b2: f003 0301 and.w r3, r3, #1
  17293. 80079b6: e004 b.n 80079c2 <HAL_COMP_GetOutputLevel+0x26>
  17294. }
  17295. else
  17296. {
  17297. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  17298. 80079b8: 4b06 ldr r3, [pc, #24] @ (80079d4 <HAL_COMP_GetOutputLevel+0x38>)
  17299. 80079ba: 681b ldr r3, [r3, #0]
  17300. 80079bc: 085b lsrs r3, r3, #1
  17301. 80079be: f003 0301 and.w r3, r3, #1
  17302. }
  17303. }
  17304. 80079c2: 4618 mov r0, r3
  17305. 80079c4: 370c adds r7, #12
  17306. 80079c6: 46bd mov sp, r7
  17307. 80079c8: f85d 7b04 ldr.w r7, [sp], #4
  17308. 80079cc: 4770 bx lr
  17309. 80079ce: bf00 nop
  17310. 80079d0: 5800380c .word 0x5800380c
  17311. 80079d4: 58003800 .word 0x58003800
  17312. 080079d8 <__NVIC_SetPriorityGrouping>:
  17313. {
  17314. 80079d8: b480 push {r7}
  17315. 80079da: b085 sub sp, #20
  17316. 80079dc: af00 add r7, sp, #0
  17317. 80079de: 6078 str r0, [r7, #4]
  17318. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17319. 80079e0: 687b ldr r3, [r7, #4]
  17320. 80079e2: f003 0307 and.w r3, r3, #7
  17321. 80079e6: 60fb str r3, [r7, #12]
  17322. reg_value = SCB->AIRCR; /* read old register configuration */
  17323. 80079e8: 4b0b ldr r3, [pc, #44] @ (8007a18 <__NVIC_SetPriorityGrouping+0x40>)
  17324. 80079ea: 68db ldr r3, [r3, #12]
  17325. 80079ec: 60bb str r3, [r7, #8]
  17326. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  17327. 80079ee: 68ba ldr r2, [r7, #8]
  17328. 80079f0: f64f 03ff movw r3, #63743 @ 0xf8ff
  17329. 80079f4: 4013 ands r3, r2
  17330. 80079f6: 60bb str r3, [r7, #8]
  17331. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  17332. 80079f8: 68fb ldr r3, [r7, #12]
  17333. 80079fa: 021a lsls r2, r3, #8
  17334. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  17335. 80079fc: 68bb ldr r3, [r7, #8]
  17336. 80079fe: 431a orrs r2, r3
  17337. reg_value = (reg_value |
  17338. 8007a00: 4b06 ldr r3, [pc, #24] @ (8007a1c <__NVIC_SetPriorityGrouping+0x44>)
  17339. 8007a02: 4313 orrs r3, r2
  17340. 8007a04: 60bb str r3, [r7, #8]
  17341. SCB->AIRCR = reg_value;
  17342. 8007a06: 4a04 ldr r2, [pc, #16] @ (8007a18 <__NVIC_SetPriorityGrouping+0x40>)
  17343. 8007a08: 68bb ldr r3, [r7, #8]
  17344. 8007a0a: 60d3 str r3, [r2, #12]
  17345. }
  17346. 8007a0c: bf00 nop
  17347. 8007a0e: 3714 adds r7, #20
  17348. 8007a10: 46bd mov sp, r7
  17349. 8007a12: f85d 7b04 ldr.w r7, [sp], #4
  17350. 8007a16: 4770 bx lr
  17351. 8007a18: e000ed00 .word 0xe000ed00
  17352. 8007a1c: 05fa0000 .word 0x05fa0000
  17353. 08007a20 <__NVIC_GetPriorityGrouping>:
  17354. {
  17355. 8007a20: b480 push {r7}
  17356. 8007a22: af00 add r7, sp, #0
  17357. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  17358. 8007a24: 4b04 ldr r3, [pc, #16] @ (8007a38 <__NVIC_GetPriorityGrouping+0x18>)
  17359. 8007a26: 68db ldr r3, [r3, #12]
  17360. 8007a28: 0a1b lsrs r3, r3, #8
  17361. 8007a2a: f003 0307 and.w r3, r3, #7
  17362. }
  17363. 8007a2e: 4618 mov r0, r3
  17364. 8007a30: 46bd mov sp, r7
  17365. 8007a32: f85d 7b04 ldr.w r7, [sp], #4
  17366. 8007a36: 4770 bx lr
  17367. 8007a38: e000ed00 .word 0xe000ed00
  17368. 08007a3c <__NVIC_EnableIRQ>:
  17369. {
  17370. 8007a3c: b480 push {r7}
  17371. 8007a3e: b083 sub sp, #12
  17372. 8007a40: af00 add r7, sp, #0
  17373. 8007a42: 4603 mov r3, r0
  17374. 8007a44: 80fb strh r3, [r7, #6]
  17375. if ((int32_t)(IRQn) >= 0)
  17376. 8007a46: f9b7 3006 ldrsh.w r3, [r7, #6]
  17377. 8007a4a: 2b00 cmp r3, #0
  17378. 8007a4c: db0b blt.n 8007a66 <__NVIC_EnableIRQ+0x2a>
  17379. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  17380. 8007a4e: 88fb ldrh r3, [r7, #6]
  17381. 8007a50: f003 021f and.w r2, r3, #31
  17382. 8007a54: 4907 ldr r1, [pc, #28] @ (8007a74 <__NVIC_EnableIRQ+0x38>)
  17383. 8007a56: f9b7 3006 ldrsh.w r3, [r7, #6]
  17384. 8007a5a: 095b lsrs r3, r3, #5
  17385. 8007a5c: 2001 movs r0, #1
  17386. 8007a5e: fa00 f202 lsl.w r2, r0, r2
  17387. 8007a62: f841 2023 str.w r2, [r1, r3, lsl #2]
  17388. }
  17389. 8007a66: bf00 nop
  17390. 8007a68: 370c adds r7, #12
  17391. 8007a6a: 46bd mov sp, r7
  17392. 8007a6c: f85d 7b04 ldr.w r7, [sp], #4
  17393. 8007a70: 4770 bx lr
  17394. 8007a72: bf00 nop
  17395. 8007a74: e000e100 .word 0xe000e100
  17396. 08007a78 <__NVIC_SetPriority>:
  17397. {
  17398. 8007a78: b480 push {r7}
  17399. 8007a7a: b083 sub sp, #12
  17400. 8007a7c: af00 add r7, sp, #0
  17401. 8007a7e: 4603 mov r3, r0
  17402. 8007a80: 6039 str r1, [r7, #0]
  17403. 8007a82: 80fb strh r3, [r7, #6]
  17404. if ((int32_t)(IRQn) >= 0)
  17405. 8007a84: f9b7 3006 ldrsh.w r3, [r7, #6]
  17406. 8007a88: 2b00 cmp r3, #0
  17407. 8007a8a: db0a blt.n 8007aa2 <__NVIC_SetPriority+0x2a>
  17408. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17409. 8007a8c: 683b ldr r3, [r7, #0]
  17410. 8007a8e: b2da uxtb r2, r3
  17411. 8007a90: 490c ldr r1, [pc, #48] @ (8007ac4 <__NVIC_SetPriority+0x4c>)
  17412. 8007a92: f9b7 3006 ldrsh.w r3, [r7, #6]
  17413. 8007a96: 0112 lsls r2, r2, #4
  17414. 8007a98: b2d2 uxtb r2, r2
  17415. 8007a9a: 440b add r3, r1
  17416. 8007a9c: f883 2300 strb.w r2, [r3, #768] @ 0x300
  17417. }
  17418. 8007aa0: e00a b.n 8007ab8 <__NVIC_SetPriority+0x40>
  17419. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17420. 8007aa2: 683b ldr r3, [r7, #0]
  17421. 8007aa4: b2da uxtb r2, r3
  17422. 8007aa6: 4908 ldr r1, [pc, #32] @ (8007ac8 <__NVIC_SetPriority+0x50>)
  17423. 8007aa8: 88fb ldrh r3, [r7, #6]
  17424. 8007aaa: f003 030f and.w r3, r3, #15
  17425. 8007aae: 3b04 subs r3, #4
  17426. 8007ab0: 0112 lsls r2, r2, #4
  17427. 8007ab2: b2d2 uxtb r2, r2
  17428. 8007ab4: 440b add r3, r1
  17429. 8007ab6: 761a strb r2, [r3, #24]
  17430. }
  17431. 8007ab8: bf00 nop
  17432. 8007aba: 370c adds r7, #12
  17433. 8007abc: 46bd mov sp, r7
  17434. 8007abe: f85d 7b04 ldr.w r7, [sp], #4
  17435. 8007ac2: 4770 bx lr
  17436. 8007ac4: e000e100 .word 0xe000e100
  17437. 8007ac8: e000ed00 .word 0xe000ed00
  17438. 08007acc <NVIC_EncodePriority>:
  17439. {
  17440. 8007acc: b480 push {r7}
  17441. 8007ace: b089 sub sp, #36 @ 0x24
  17442. 8007ad0: af00 add r7, sp, #0
  17443. 8007ad2: 60f8 str r0, [r7, #12]
  17444. 8007ad4: 60b9 str r1, [r7, #8]
  17445. 8007ad6: 607a str r2, [r7, #4]
  17446. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17447. 8007ad8: 68fb ldr r3, [r7, #12]
  17448. 8007ada: f003 0307 and.w r3, r3, #7
  17449. 8007ade: 61fb str r3, [r7, #28]
  17450. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  17451. 8007ae0: 69fb ldr r3, [r7, #28]
  17452. 8007ae2: f1c3 0307 rsb r3, r3, #7
  17453. 8007ae6: 2b04 cmp r3, #4
  17454. 8007ae8: bf28 it cs
  17455. 8007aea: 2304 movcs r3, #4
  17456. 8007aec: 61bb str r3, [r7, #24]
  17457. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  17458. 8007aee: 69fb ldr r3, [r7, #28]
  17459. 8007af0: 3304 adds r3, #4
  17460. 8007af2: 2b06 cmp r3, #6
  17461. 8007af4: d902 bls.n 8007afc <NVIC_EncodePriority+0x30>
  17462. 8007af6: 69fb ldr r3, [r7, #28]
  17463. 8007af8: 3b03 subs r3, #3
  17464. 8007afa: e000 b.n 8007afe <NVIC_EncodePriority+0x32>
  17465. 8007afc: 2300 movs r3, #0
  17466. 8007afe: 617b str r3, [r7, #20]
  17467. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17468. 8007b00: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17469. 8007b04: 69bb ldr r3, [r7, #24]
  17470. 8007b06: fa02 f303 lsl.w r3, r2, r3
  17471. 8007b0a: 43da mvns r2, r3
  17472. 8007b0c: 68bb ldr r3, [r7, #8]
  17473. 8007b0e: 401a ands r2, r3
  17474. 8007b10: 697b ldr r3, [r7, #20]
  17475. 8007b12: 409a lsls r2, r3
  17476. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  17477. 8007b14: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  17478. 8007b18: 697b ldr r3, [r7, #20]
  17479. 8007b1a: fa01 f303 lsl.w r3, r1, r3
  17480. 8007b1e: 43d9 mvns r1, r3
  17481. 8007b20: 687b ldr r3, [r7, #4]
  17482. 8007b22: 400b ands r3, r1
  17483. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17484. 8007b24: 4313 orrs r3, r2
  17485. }
  17486. 8007b26: 4618 mov r0, r3
  17487. 8007b28: 3724 adds r7, #36 @ 0x24
  17488. 8007b2a: 46bd mov sp, r7
  17489. 8007b2c: f85d 7b04 ldr.w r7, [sp], #4
  17490. 8007b30: 4770 bx lr
  17491. 08007b32 <HAL_NVIC_SetPriorityGrouping>:
  17492. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  17493. * The pending IRQ priority will be managed only by the subpriority.
  17494. * @retval None
  17495. */
  17496. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  17497. {
  17498. 8007b32: b580 push {r7, lr}
  17499. 8007b34: b082 sub sp, #8
  17500. 8007b36: af00 add r7, sp, #0
  17501. 8007b38: 6078 str r0, [r7, #4]
  17502. /* Check the parameters */
  17503. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  17504. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  17505. NVIC_SetPriorityGrouping(PriorityGroup);
  17506. 8007b3a: 6878 ldr r0, [r7, #4]
  17507. 8007b3c: f7ff ff4c bl 80079d8 <__NVIC_SetPriorityGrouping>
  17508. }
  17509. 8007b40: bf00 nop
  17510. 8007b42: 3708 adds r7, #8
  17511. 8007b44: 46bd mov sp, r7
  17512. 8007b46: bd80 pop {r7, pc}
  17513. 08007b48 <HAL_NVIC_SetPriority>:
  17514. * This parameter can be a value between 0 and 15
  17515. * A lower priority value indicates a higher priority.
  17516. * @retval None
  17517. */
  17518. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  17519. {
  17520. 8007b48: b580 push {r7, lr}
  17521. 8007b4a: b086 sub sp, #24
  17522. 8007b4c: af00 add r7, sp, #0
  17523. 8007b4e: 4603 mov r3, r0
  17524. 8007b50: 60b9 str r1, [r7, #8]
  17525. 8007b52: 607a str r2, [r7, #4]
  17526. 8007b54: 81fb strh r3, [r7, #14]
  17527. /* Check the parameters */
  17528. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  17529. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  17530. prioritygroup = NVIC_GetPriorityGrouping();
  17531. 8007b56: f7ff ff63 bl 8007a20 <__NVIC_GetPriorityGrouping>
  17532. 8007b5a: 6178 str r0, [r7, #20]
  17533. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  17534. 8007b5c: 687a ldr r2, [r7, #4]
  17535. 8007b5e: 68b9 ldr r1, [r7, #8]
  17536. 8007b60: 6978 ldr r0, [r7, #20]
  17537. 8007b62: f7ff ffb3 bl 8007acc <NVIC_EncodePriority>
  17538. 8007b66: 4602 mov r2, r0
  17539. 8007b68: f9b7 300e ldrsh.w r3, [r7, #14]
  17540. 8007b6c: 4611 mov r1, r2
  17541. 8007b6e: 4618 mov r0, r3
  17542. 8007b70: f7ff ff82 bl 8007a78 <__NVIC_SetPriority>
  17543. }
  17544. 8007b74: bf00 nop
  17545. 8007b76: 3718 adds r7, #24
  17546. 8007b78: 46bd mov sp, r7
  17547. 8007b7a: bd80 pop {r7, pc}
  17548. 08007b7c <HAL_NVIC_EnableIRQ>:
  17549. * This parameter can be an enumerator of IRQn_Type enumeration
  17550. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  17551. * @retval None
  17552. */
  17553. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  17554. {
  17555. 8007b7c: b580 push {r7, lr}
  17556. 8007b7e: b082 sub sp, #8
  17557. 8007b80: af00 add r7, sp, #0
  17558. 8007b82: 4603 mov r3, r0
  17559. 8007b84: 80fb strh r3, [r7, #6]
  17560. /* Check the parameters */
  17561. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  17562. /* Enable interrupt */
  17563. NVIC_EnableIRQ(IRQn);
  17564. 8007b86: f9b7 3006 ldrsh.w r3, [r7, #6]
  17565. 8007b8a: 4618 mov r0, r3
  17566. 8007b8c: f7ff ff56 bl 8007a3c <__NVIC_EnableIRQ>
  17567. }
  17568. 8007b90: bf00 nop
  17569. 8007b92: 3708 adds r7, #8
  17570. 8007b94: 46bd mov sp, r7
  17571. 8007b96: bd80 pop {r7, pc}
  17572. 08007b98 <HAL_MPU_Disable>:
  17573. /**
  17574. * @brief Disables the MPU
  17575. * @retval None
  17576. */
  17577. void HAL_MPU_Disable(void)
  17578. {
  17579. 8007b98: b480 push {r7}
  17580. 8007b9a: af00 add r7, sp, #0
  17581. __ASM volatile ("dmb 0xF":::"memory");
  17582. 8007b9c: f3bf 8f5f dmb sy
  17583. }
  17584. 8007ba0: bf00 nop
  17585. /* Make sure outstanding transfers are done */
  17586. __DMB();
  17587. /* Disable fault exceptions */
  17588. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  17589. 8007ba2: 4b07 ldr r3, [pc, #28] @ (8007bc0 <HAL_MPU_Disable+0x28>)
  17590. 8007ba4: 6a5b ldr r3, [r3, #36] @ 0x24
  17591. 8007ba6: 4a06 ldr r2, [pc, #24] @ (8007bc0 <HAL_MPU_Disable+0x28>)
  17592. 8007ba8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  17593. 8007bac: 6253 str r3, [r2, #36] @ 0x24
  17594. /* Disable the MPU and clear the control register*/
  17595. MPU->CTRL = 0;
  17596. 8007bae: 4b05 ldr r3, [pc, #20] @ (8007bc4 <HAL_MPU_Disable+0x2c>)
  17597. 8007bb0: 2200 movs r2, #0
  17598. 8007bb2: 605a str r2, [r3, #4]
  17599. }
  17600. 8007bb4: bf00 nop
  17601. 8007bb6: 46bd mov sp, r7
  17602. 8007bb8: f85d 7b04 ldr.w r7, [sp], #4
  17603. 8007bbc: 4770 bx lr
  17604. 8007bbe: bf00 nop
  17605. 8007bc0: e000ed00 .word 0xe000ed00
  17606. 8007bc4: e000ed90 .word 0xe000ed90
  17607. 08007bc8 <HAL_MPU_Enable>:
  17608. * @arg MPU_PRIVILEGED_DEFAULT
  17609. * @arg MPU_HFNMI_PRIVDEF
  17610. * @retval None
  17611. */
  17612. void HAL_MPU_Enable(uint32_t MPU_Control)
  17613. {
  17614. 8007bc8: b480 push {r7}
  17615. 8007bca: b083 sub sp, #12
  17616. 8007bcc: af00 add r7, sp, #0
  17617. 8007bce: 6078 str r0, [r7, #4]
  17618. /* Enable the MPU */
  17619. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  17620. 8007bd0: 4a0b ldr r2, [pc, #44] @ (8007c00 <HAL_MPU_Enable+0x38>)
  17621. 8007bd2: 687b ldr r3, [r7, #4]
  17622. 8007bd4: f043 0301 orr.w r3, r3, #1
  17623. 8007bd8: 6053 str r3, [r2, #4]
  17624. /* Enable fault exceptions */
  17625. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  17626. 8007bda: 4b0a ldr r3, [pc, #40] @ (8007c04 <HAL_MPU_Enable+0x3c>)
  17627. 8007bdc: 6a5b ldr r3, [r3, #36] @ 0x24
  17628. 8007bde: 4a09 ldr r2, [pc, #36] @ (8007c04 <HAL_MPU_Enable+0x3c>)
  17629. 8007be0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  17630. 8007be4: 6253 str r3, [r2, #36] @ 0x24
  17631. __ASM volatile ("dsb 0xF":::"memory");
  17632. 8007be6: f3bf 8f4f dsb sy
  17633. }
  17634. 8007bea: bf00 nop
  17635. __ASM volatile ("isb 0xF":::"memory");
  17636. 8007bec: f3bf 8f6f isb sy
  17637. }
  17638. 8007bf0: bf00 nop
  17639. /* Ensure MPU setting take effects */
  17640. __DSB();
  17641. __ISB();
  17642. }
  17643. 8007bf2: bf00 nop
  17644. 8007bf4: 370c adds r7, #12
  17645. 8007bf6: 46bd mov sp, r7
  17646. 8007bf8: f85d 7b04 ldr.w r7, [sp], #4
  17647. 8007bfc: 4770 bx lr
  17648. 8007bfe: bf00 nop
  17649. 8007c00: e000ed90 .word 0xe000ed90
  17650. 8007c04: e000ed00 .word 0xe000ed00
  17651. 08007c08 <HAL_MPU_ConfigRegion>:
  17652. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  17653. * the initialization and configuration information.
  17654. * @retval None
  17655. */
  17656. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  17657. {
  17658. 8007c08: b480 push {r7}
  17659. 8007c0a: b083 sub sp, #12
  17660. 8007c0c: af00 add r7, sp, #0
  17661. 8007c0e: 6078 str r0, [r7, #4]
  17662. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  17663. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  17664. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  17665. /* Set the Region number */
  17666. MPU->RNR = MPU_Init->Number;
  17667. 8007c10: 687b ldr r3, [r7, #4]
  17668. 8007c12: 785a ldrb r2, [r3, #1]
  17669. 8007c14: 4b1b ldr r3, [pc, #108] @ (8007c84 <HAL_MPU_ConfigRegion+0x7c>)
  17670. 8007c16: 609a str r2, [r3, #8]
  17671. /* Disable the Region */
  17672. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  17673. 8007c18: 4b1a ldr r3, [pc, #104] @ (8007c84 <HAL_MPU_ConfigRegion+0x7c>)
  17674. 8007c1a: 691b ldr r3, [r3, #16]
  17675. 8007c1c: 4a19 ldr r2, [pc, #100] @ (8007c84 <HAL_MPU_ConfigRegion+0x7c>)
  17676. 8007c1e: f023 0301 bic.w r3, r3, #1
  17677. 8007c22: 6113 str r3, [r2, #16]
  17678. /* Apply configuration */
  17679. MPU->RBAR = MPU_Init->BaseAddress;
  17680. 8007c24: 4a17 ldr r2, [pc, #92] @ (8007c84 <HAL_MPU_ConfigRegion+0x7c>)
  17681. 8007c26: 687b ldr r3, [r7, #4]
  17682. 8007c28: 685b ldr r3, [r3, #4]
  17683. 8007c2a: 60d3 str r3, [r2, #12]
  17684. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17685. 8007c2c: 687b ldr r3, [r7, #4]
  17686. 8007c2e: 7b1b ldrb r3, [r3, #12]
  17687. 8007c30: 071a lsls r2, r3, #28
  17688. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17689. 8007c32: 687b ldr r3, [r7, #4]
  17690. 8007c34: 7adb ldrb r3, [r3, #11]
  17691. 8007c36: 061b lsls r3, r3, #24
  17692. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17693. 8007c38: 431a orrs r2, r3
  17694. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17695. 8007c3a: 687b ldr r3, [r7, #4]
  17696. 8007c3c: 7a9b ldrb r3, [r3, #10]
  17697. 8007c3e: 04db lsls r3, r3, #19
  17698. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17699. 8007c40: 431a orrs r2, r3
  17700. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17701. 8007c42: 687b ldr r3, [r7, #4]
  17702. 8007c44: 7b5b ldrb r3, [r3, #13]
  17703. 8007c46: 049b lsls r3, r3, #18
  17704. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17705. 8007c48: 431a orrs r2, r3
  17706. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17707. 8007c4a: 687b ldr r3, [r7, #4]
  17708. 8007c4c: 7b9b ldrb r3, [r3, #14]
  17709. 8007c4e: 045b lsls r3, r3, #17
  17710. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17711. 8007c50: 431a orrs r2, r3
  17712. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17713. 8007c52: 687b ldr r3, [r7, #4]
  17714. 8007c54: 7bdb ldrb r3, [r3, #15]
  17715. 8007c56: 041b lsls r3, r3, #16
  17716. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17717. 8007c58: 431a orrs r2, r3
  17718. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17719. 8007c5a: 687b ldr r3, [r7, #4]
  17720. 8007c5c: 7a5b ldrb r3, [r3, #9]
  17721. 8007c5e: 021b lsls r3, r3, #8
  17722. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17723. 8007c60: 431a orrs r2, r3
  17724. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17725. 8007c62: 687b ldr r3, [r7, #4]
  17726. 8007c64: 7a1b ldrb r3, [r3, #8]
  17727. 8007c66: 005b lsls r3, r3, #1
  17728. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17729. 8007c68: 4313 orrs r3, r2
  17730. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  17731. 8007c6a: 687a ldr r2, [r7, #4]
  17732. 8007c6c: 7812 ldrb r2, [r2, #0]
  17733. 8007c6e: 4611 mov r1, r2
  17734. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17735. 8007c70: 4a04 ldr r2, [pc, #16] @ (8007c84 <HAL_MPU_ConfigRegion+0x7c>)
  17736. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17737. 8007c72: 430b orrs r3, r1
  17738. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17739. 8007c74: 6113 str r3, [r2, #16]
  17740. }
  17741. 8007c76: bf00 nop
  17742. 8007c78: 370c adds r7, #12
  17743. 8007c7a: 46bd mov sp, r7
  17744. 8007c7c: f85d 7b04 ldr.w r7, [sp], #4
  17745. 8007c80: 4770 bx lr
  17746. 8007c82: bf00 nop
  17747. 8007c84: e000ed90 .word 0xe000ed90
  17748. 08007c88 <HAL_CRC_Init>:
  17749. * parameters in the CRC_InitTypeDef and create the associated handle.
  17750. * @param hcrc CRC handle
  17751. * @retval HAL status
  17752. */
  17753. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  17754. {
  17755. 8007c88: b580 push {r7, lr}
  17756. 8007c8a: b082 sub sp, #8
  17757. 8007c8c: af00 add r7, sp, #0
  17758. 8007c8e: 6078 str r0, [r7, #4]
  17759. /* Check the CRC handle allocation */
  17760. if (hcrc == NULL)
  17761. 8007c90: 687b ldr r3, [r7, #4]
  17762. 8007c92: 2b00 cmp r3, #0
  17763. 8007c94: d101 bne.n 8007c9a <HAL_CRC_Init+0x12>
  17764. {
  17765. return HAL_ERROR;
  17766. 8007c96: 2301 movs r3, #1
  17767. 8007c98: e054 b.n 8007d44 <HAL_CRC_Init+0xbc>
  17768. }
  17769. /* Check the parameters */
  17770. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  17771. if (hcrc->State == HAL_CRC_STATE_RESET)
  17772. 8007c9a: 687b ldr r3, [r7, #4]
  17773. 8007c9c: 7f5b ldrb r3, [r3, #29]
  17774. 8007c9e: b2db uxtb r3, r3
  17775. 8007ca0: 2b00 cmp r3, #0
  17776. 8007ca2: d105 bne.n 8007cb0 <HAL_CRC_Init+0x28>
  17777. {
  17778. /* Allocate lock resource and initialize it */
  17779. hcrc->Lock = HAL_UNLOCKED;
  17780. 8007ca4: 687b ldr r3, [r7, #4]
  17781. 8007ca6: 2200 movs r2, #0
  17782. 8007ca8: 771a strb r2, [r3, #28]
  17783. /* Init the low level hardware */
  17784. HAL_CRC_MspInit(hcrc);
  17785. 8007caa: 6878 ldr r0, [r7, #4]
  17786. 8007cac: f7fc fa1a bl 80040e4 <HAL_CRC_MspInit>
  17787. }
  17788. hcrc->State = HAL_CRC_STATE_BUSY;
  17789. 8007cb0: 687b ldr r3, [r7, #4]
  17790. 8007cb2: 2202 movs r2, #2
  17791. 8007cb4: 775a strb r2, [r3, #29]
  17792. /* check whether or not non-default generating polynomial has been
  17793. * picked up by user */
  17794. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  17795. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  17796. 8007cb6: 687b ldr r3, [r7, #4]
  17797. 8007cb8: 791b ldrb r3, [r3, #4]
  17798. 8007cba: 2b00 cmp r3, #0
  17799. 8007cbc: d10c bne.n 8007cd8 <HAL_CRC_Init+0x50>
  17800. {
  17801. /* initialize peripheral with default generating polynomial */
  17802. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  17803. 8007cbe: 687b ldr r3, [r7, #4]
  17804. 8007cc0: 681b ldr r3, [r3, #0]
  17805. 8007cc2: 4a22 ldr r2, [pc, #136] @ (8007d4c <HAL_CRC_Init+0xc4>)
  17806. 8007cc4: 615a str r2, [r3, #20]
  17807. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  17808. 8007cc6: 687b ldr r3, [r7, #4]
  17809. 8007cc8: 681b ldr r3, [r3, #0]
  17810. 8007cca: 689a ldr r2, [r3, #8]
  17811. 8007ccc: 687b ldr r3, [r7, #4]
  17812. 8007cce: 681b ldr r3, [r3, #0]
  17813. 8007cd0: f022 0218 bic.w r2, r2, #24
  17814. 8007cd4: 609a str r2, [r3, #8]
  17815. 8007cd6: e00c b.n 8007cf2 <HAL_CRC_Init+0x6a>
  17816. }
  17817. else
  17818. {
  17819. /* initialize CRC peripheral with generating polynomial defined by user */
  17820. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  17821. 8007cd8: 687b ldr r3, [r7, #4]
  17822. 8007cda: 6899 ldr r1, [r3, #8]
  17823. 8007cdc: 687b ldr r3, [r7, #4]
  17824. 8007cde: 68db ldr r3, [r3, #12]
  17825. 8007ce0: 461a mov r2, r3
  17826. 8007ce2: 6878 ldr r0, [r7, #4]
  17827. 8007ce4: f000 f948 bl 8007f78 <HAL_CRCEx_Polynomial_Set>
  17828. 8007ce8: 4603 mov r3, r0
  17829. 8007cea: 2b00 cmp r3, #0
  17830. 8007cec: d001 beq.n 8007cf2 <HAL_CRC_Init+0x6a>
  17831. {
  17832. return HAL_ERROR;
  17833. 8007cee: 2301 movs r3, #1
  17834. 8007cf0: e028 b.n 8007d44 <HAL_CRC_Init+0xbc>
  17835. }
  17836. /* check whether or not non-default CRC initial value has been
  17837. * picked up by user */
  17838. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  17839. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  17840. 8007cf2: 687b ldr r3, [r7, #4]
  17841. 8007cf4: 795b ldrb r3, [r3, #5]
  17842. 8007cf6: 2b00 cmp r3, #0
  17843. 8007cf8: d105 bne.n 8007d06 <HAL_CRC_Init+0x7e>
  17844. {
  17845. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  17846. 8007cfa: 687b ldr r3, [r7, #4]
  17847. 8007cfc: 681b ldr r3, [r3, #0]
  17848. 8007cfe: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17849. 8007d02: 611a str r2, [r3, #16]
  17850. 8007d04: e004 b.n 8007d10 <HAL_CRC_Init+0x88>
  17851. }
  17852. else
  17853. {
  17854. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  17855. 8007d06: 687b ldr r3, [r7, #4]
  17856. 8007d08: 681b ldr r3, [r3, #0]
  17857. 8007d0a: 687a ldr r2, [r7, #4]
  17858. 8007d0c: 6912 ldr r2, [r2, #16]
  17859. 8007d0e: 611a str r2, [r3, #16]
  17860. }
  17861. /* set input data inversion mode */
  17862. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  17863. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  17864. 8007d10: 687b ldr r3, [r7, #4]
  17865. 8007d12: 681b ldr r3, [r3, #0]
  17866. 8007d14: 689b ldr r3, [r3, #8]
  17867. 8007d16: f023 0160 bic.w r1, r3, #96 @ 0x60
  17868. 8007d1a: 687b ldr r3, [r7, #4]
  17869. 8007d1c: 695a ldr r2, [r3, #20]
  17870. 8007d1e: 687b ldr r3, [r7, #4]
  17871. 8007d20: 681b ldr r3, [r3, #0]
  17872. 8007d22: 430a orrs r2, r1
  17873. 8007d24: 609a str r2, [r3, #8]
  17874. /* set output data inversion mode */
  17875. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  17876. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  17877. 8007d26: 687b ldr r3, [r7, #4]
  17878. 8007d28: 681b ldr r3, [r3, #0]
  17879. 8007d2a: 689b ldr r3, [r3, #8]
  17880. 8007d2c: f023 0180 bic.w r1, r3, #128 @ 0x80
  17881. 8007d30: 687b ldr r3, [r7, #4]
  17882. 8007d32: 699a ldr r2, [r3, #24]
  17883. 8007d34: 687b ldr r3, [r7, #4]
  17884. 8007d36: 681b ldr r3, [r3, #0]
  17885. 8007d38: 430a orrs r2, r1
  17886. 8007d3a: 609a str r2, [r3, #8]
  17887. /* makes sure the input data format (bytes, halfwords or words stream)
  17888. * is properly specified by user */
  17889. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  17890. /* Change CRC peripheral state */
  17891. hcrc->State = HAL_CRC_STATE_READY;
  17892. 8007d3c: 687b ldr r3, [r7, #4]
  17893. 8007d3e: 2201 movs r2, #1
  17894. 8007d40: 775a strb r2, [r3, #29]
  17895. /* Return function status */
  17896. return HAL_OK;
  17897. 8007d42: 2300 movs r3, #0
  17898. }
  17899. 8007d44: 4618 mov r0, r3
  17900. 8007d46: 3708 adds r7, #8
  17901. 8007d48: 46bd mov sp, r7
  17902. 8007d4a: bd80 pop {r7, pc}
  17903. 8007d4c: 04c11db7 .word 0x04c11db7
  17904. 08007d50 <HAL_CRC_Calculate>:
  17905. * and the API will internally adjust its input data processing based on the
  17906. * handle field hcrc->InputDataFormat.
  17907. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17908. */
  17909. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  17910. {
  17911. 8007d50: b580 push {r7, lr}
  17912. 8007d52: b086 sub sp, #24
  17913. 8007d54: af00 add r7, sp, #0
  17914. 8007d56: 60f8 str r0, [r7, #12]
  17915. 8007d58: 60b9 str r1, [r7, #8]
  17916. 8007d5a: 607a str r2, [r7, #4]
  17917. uint32_t index; /* CRC input data buffer index */
  17918. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  17919. 8007d5c: 2300 movs r3, #0
  17920. 8007d5e: 613b str r3, [r7, #16]
  17921. /* Change CRC peripheral state */
  17922. hcrc->State = HAL_CRC_STATE_BUSY;
  17923. 8007d60: 68fb ldr r3, [r7, #12]
  17924. 8007d62: 2202 movs r2, #2
  17925. 8007d64: 775a strb r2, [r3, #29]
  17926. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  17927. * written in hcrc->Instance->DR) */
  17928. __HAL_CRC_DR_RESET(hcrc);
  17929. 8007d66: 68fb ldr r3, [r7, #12]
  17930. 8007d68: 681b ldr r3, [r3, #0]
  17931. 8007d6a: 689a ldr r2, [r3, #8]
  17932. 8007d6c: 68fb ldr r3, [r7, #12]
  17933. 8007d6e: 681b ldr r3, [r3, #0]
  17934. 8007d70: f042 0201 orr.w r2, r2, #1
  17935. 8007d74: 609a str r2, [r3, #8]
  17936. switch (hcrc->InputDataFormat)
  17937. 8007d76: 68fb ldr r3, [r7, #12]
  17938. 8007d78: 6a1b ldr r3, [r3, #32]
  17939. 8007d7a: 2b03 cmp r3, #3
  17940. 8007d7c: d006 beq.n 8007d8c <HAL_CRC_Calculate+0x3c>
  17941. 8007d7e: 2b03 cmp r3, #3
  17942. 8007d80: d829 bhi.n 8007dd6 <HAL_CRC_Calculate+0x86>
  17943. 8007d82: 2b01 cmp r3, #1
  17944. 8007d84: d019 beq.n 8007dba <HAL_CRC_Calculate+0x6a>
  17945. 8007d86: 2b02 cmp r3, #2
  17946. 8007d88: d01e beq.n 8007dc8 <HAL_CRC_Calculate+0x78>
  17947. /* Specific 16-bit input data handling */
  17948. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17949. break;
  17950. default:
  17951. break;
  17952. 8007d8a: e024 b.n 8007dd6 <HAL_CRC_Calculate+0x86>
  17953. for (index = 0U; index < BufferLength; index++)
  17954. 8007d8c: 2300 movs r3, #0
  17955. 8007d8e: 617b str r3, [r7, #20]
  17956. 8007d90: e00a b.n 8007da8 <HAL_CRC_Calculate+0x58>
  17957. hcrc->Instance->DR = pBuffer[index];
  17958. 8007d92: 697b ldr r3, [r7, #20]
  17959. 8007d94: 009b lsls r3, r3, #2
  17960. 8007d96: 68ba ldr r2, [r7, #8]
  17961. 8007d98: 441a add r2, r3
  17962. 8007d9a: 68fb ldr r3, [r7, #12]
  17963. 8007d9c: 681b ldr r3, [r3, #0]
  17964. 8007d9e: 6812 ldr r2, [r2, #0]
  17965. 8007da0: 601a str r2, [r3, #0]
  17966. for (index = 0U; index < BufferLength; index++)
  17967. 8007da2: 697b ldr r3, [r7, #20]
  17968. 8007da4: 3301 adds r3, #1
  17969. 8007da6: 617b str r3, [r7, #20]
  17970. 8007da8: 697a ldr r2, [r7, #20]
  17971. 8007daa: 687b ldr r3, [r7, #4]
  17972. 8007dac: 429a cmp r2, r3
  17973. 8007dae: d3f0 bcc.n 8007d92 <HAL_CRC_Calculate+0x42>
  17974. temp = hcrc->Instance->DR;
  17975. 8007db0: 68fb ldr r3, [r7, #12]
  17976. 8007db2: 681b ldr r3, [r3, #0]
  17977. 8007db4: 681b ldr r3, [r3, #0]
  17978. 8007db6: 613b str r3, [r7, #16]
  17979. break;
  17980. 8007db8: e00e b.n 8007dd8 <HAL_CRC_Calculate+0x88>
  17981. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  17982. 8007dba: 687a ldr r2, [r7, #4]
  17983. 8007dbc: 68b9 ldr r1, [r7, #8]
  17984. 8007dbe: 68f8 ldr r0, [r7, #12]
  17985. 8007dc0: f000 f812 bl 8007de8 <CRC_Handle_8>
  17986. 8007dc4: 6138 str r0, [r7, #16]
  17987. break;
  17988. 8007dc6: e007 b.n 8007dd8 <HAL_CRC_Calculate+0x88>
  17989. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17990. 8007dc8: 687a ldr r2, [r7, #4]
  17991. 8007dca: 68b9 ldr r1, [r7, #8]
  17992. 8007dcc: 68f8 ldr r0, [r7, #12]
  17993. 8007dce: f000 f899 bl 8007f04 <CRC_Handle_16>
  17994. 8007dd2: 6138 str r0, [r7, #16]
  17995. break;
  17996. 8007dd4: e000 b.n 8007dd8 <HAL_CRC_Calculate+0x88>
  17997. break;
  17998. 8007dd6: bf00 nop
  17999. }
  18000. /* Change CRC peripheral state */
  18001. hcrc->State = HAL_CRC_STATE_READY;
  18002. 8007dd8: 68fb ldr r3, [r7, #12]
  18003. 8007dda: 2201 movs r2, #1
  18004. 8007ddc: 775a strb r2, [r3, #29]
  18005. /* Return the CRC computed value */
  18006. return temp;
  18007. 8007dde: 693b ldr r3, [r7, #16]
  18008. }
  18009. 8007de0: 4618 mov r0, r3
  18010. 8007de2: 3718 adds r7, #24
  18011. 8007de4: 46bd mov sp, r7
  18012. 8007de6: bd80 pop {r7, pc}
  18013. 08007de8 <CRC_Handle_8>:
  18014. * @param pBuffer pointer to the input data buffer
  18015. * @param BufferLength input data buffer length
  18016. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18017. */
  18018. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  18019. {
  18020. 8007de8: b480 push {r7}
  18021. 8007dea: b089 sub sp, #36 @ 0x24
  18022. 8007dec: af00 add r7, sp, #0
  18023. 8007dee: 60f8 str r0, [r7, #12]
  18024. 8007df0: 60b9 str r1, [r7, #8]
  18025. 8007df2: 607a str r2, [r7, #4]
  18026. __IO uint16_t *pReg;
  18027. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  18028. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  18029. * handling by the peripheral */
  18030. for (i = 0U; i < (BufferLength / 4U); i++)
  18031. 8007df4: 2300 movs r3, #0
  18032. 8007df6: 61fb str r3, [r7, #28]
  18033. 8007df8: e023 b.n 8007e42 <CRC_Handle_8+0x5a>
  18034. {
  18035. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18036. 8007dfa: 69fb ldr r3, [r7, #28]
  18037. 8007dfc: 009b lsls r3, r3, #2
  18038. 8007dfe: 68ba ldr r2, [r7, #8]
  18039. 8007e00: 4413 add r3, r2
  18040. 8007e02: 781b ldrb r3, [r3, #0]
  18041. 8007e04: 061a lsls r2, r3, #24
  18042. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18043. 8007e06: 69fb ldr r3, [r7, #28]
  18044. 8007e08: 009b lsls r3, r3, #2
  18045. 8007e0a: 3301 adds r3, #1
  18046. 8007e0c: 68b9 ldr r1, [r7, #8]
  18047. 8007e0e: 440b add r3, r1
  18048. 8007e10: 781b ldrb r3, [r3, #0]
  18049. 8007e12: 041b lsls r3, r3, #16
  18050. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18051. 8007e14: 431a orrs r2, r3
  18052. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18053. 8007e16: 69fb ldr r3, [r7, #28]
  18054. 8007e18: 009b lsls r3, r3, #2
  18055. 8007e1a: 3302 adds r3, #2
  18056. 8007e1c: 68b9 ldr r1, [r7, #8]
  18057. 8007e1e: 440b add r3, r1
  18058. 8007e20: 781b ldrb r3, [r3, #0]
  18059. 8007e22: 021b lsls r3, r3, #8
  18060. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18061. 8007e24: 431a orrs r2, r3
  18062. (uint32_t)pBuffer[(4U * i) + 3U];
  18063. 8007e26: 69fb ldr r3, [r7, #28]
  18064. 8007e28: 009b lsls r3, r3, #2
  18065. 8007e2a: 3303 adds r3, #3
  18066. 8007e2c: 68b9 ldr r1, [r7, #8]
  18067. 8007e2e: 440b add r3, r1
  18068. 8007e30: 781b ldrb r3, [r3, #0]
  18069. 8007e32: 4619 mov r1, r3
  18070. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18071. 8007e34: 68fb ldr r3, [r7, #12]
  18072. 8007e36: 681b ldr r3, [r3, #0]
  18073. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18074. 8007e38: 430a orrs r2, r1
  18075. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18076. 8007e3a: 601a str r2, [r3, #0]
  18077. for (i = 0U; i < (BufferLength / 4U); i++)
  18078. 8007e3c: 69fb ldr r3, [r7, #28]
  18079. 8007e3e: 3301 adds r3, #1
  18080. 8007e40: 61fb str r3, [r7, #28]
  18081. 8007e42: 687b ldr r3, [r7, #4]
  18082. 8007e44: 089b lsrs r3, r3, #2
  18083. 8007e46: 69fa ldr r2, [r7, #28]
  18084. 8007e48: 429a cmp r2, r3
  18085. 8007e4a: d3d6 bcc.n 8007dfa <CRC_Handle_8+0x12>
  18086. }
  18087. /* last bytes specific handling */
  18088. if ((BufferLength % 4U) != 0U)
  18089. 8007e4c: 687b ldr r3, [r7, #4]
  18090. 8007e4e: f003 0303 and.w r3, r3, #3
  18091. 8007e52: 2b00 cmp r3, #0
  18092. 8007e54: d04d beq.n 8007ef2 <CRC_Handle_8+0x10a>
  18093. {
  18094. if ((BufferLength % 4U) == 1U)
  18095. 8007e56: 687b ldr r3, [r7, #4]
  18096. 8007e58: f003 0303 and.w r3, r3, #3
  18097. 8007e5c: 2b01 cmp r3, #1
  18098. 8007e5e: d107 bne.n 8007e70 <CRC_Handle_8+0x88>
  18099. {
  18100. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  18101. 8007e60: 69fb ldr r3, [r7, #28]
  18102. 8007e62: 009b lsls r3, r3, #2
  18103. 8007e64: 68ba ldr r2, [r7, #8]
  18104. 8007e66: 4413 add r3, r2
  18105. 8007e68: 68fa ldr r2, [r7, #12]
  18106. 8007e6a: 6812 ldr r2, [r2, #0]
  18107. 8007e6c: 781b ldrb r3, [r3, #0]
  18108. 8007e6e: 7013 strb r3, [r2, #0]
  18109. }
  18110. if ((BufferLength % 4U) == 2U)
  18111. 8007e70: 687b ldr r3, [r7, #4]
  18112. 8007e72: f003 0303 and.w r3, r3, #3
  18113. 8007e76: 2b02 cmp r3, #2
  18114. 8007e78: d116 bne.n 8007ea8 <CRC_Handle_8+0xc0>
  18115. {
  18116. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18117. 8007e7a: 69fb ldr r3, [r7, #28]
  18118. 8007e7c: 009b lsls r3, r3, #2
  18119. 8007e7e: 68ba ldr r2, [r7, #8]
  18120. 8007e80: 4413 add r3, r2
  18121. 8007e82: 781b ldrb r3, [r3, #0]
  18122. 8007e84: 021b lsls r3, r3, #8
  18123. 8007e86: b21a sxth r2, r3
  18124. 8007e88: 69fb ldr r3, [r7, #28]
  18125. 8007e8a: 009b lsls r3, r3, #2
  18126. 8007e8c: 3301 adds r3, #1
  18127. 8007e8e: 68b9 ldr r1, [r7, #8]
  18128. 8007e90: 440b add r3, r1
  18129. 8007e92: 781b ldrb r3, [r3, #0]
  18130. 8007e94: b21b sxth r3, r3
  18131. 8007e96: 4313 orrs r3, r2
  18132. 8007e98: b21b sxth r3, r3
  18133. 8007e9a: 837b strh r3, [r7, #26]
  18134. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18135. 8007e9c: 68fb ldr r3, [r7, #12]
  18136. 8007e9e: 681b ldr r3, [r3, #0]
  18137. 8007ea0: 617b str r3, [r7, #20]
  18138. *pReg = data;
  18139. 8007ea2: 697b ldr r3, [r7, #20]
  18140. 8007ea4: 8b7a ldrh r2, [r7, #26]
  18141. 8007ea6: 801a strh r2, [r3, #0]
  18142. }
  18143. if ((BufferLength % 4U) == 3U)
  18144. 8007ea8: 687b ldr r3, [r7, #4]
  18145. 8007eaa: f003 0303 and.w r3, r3, #3
  18146. 8007eae: 2b03 cmp r3, #3
  18147. 8007eb0: d11f bne.n 8007ef2 <CRC_Handle_8+0x10a>
  18148. {
  18149. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18150. 8007eb2: 69fb ldr r3, [r7, #28]
  18151. 8007eb4: 009b lsls r3, r3, #2
  18152. 8007eb6: 68ba ldr r2, [r7, #8]
  18153. 8007eb8: 4413 add r3, r2
  18154. 8007eba: 781b ldrb r3, [r3, #0]
  18155. 8007ebc: 021b lsls r3, r3, #8
  18156. 8007ebe: b21a sxth r2, r3
  18157. 8007ec0: 69fb ldr r3, [r7, #28]
  18158. 8007ec2: 009b lsls r3, r3, #2
  18159. 8007ec4: 3301 adds r3, #1
  18160. 8007ec6: 68b9 ldr r1, [r7, #8]
  18161. 8007ec8: 440b add r3, r1
  18162. 8007eca: 781b ldrb r3, [r3, #0]
  18163. 8007ecc: b21b sxth r3, r3
  18164. 8007ece: 4313 orrs r3, r2
  18165. 8007ed0: b21b sxth r3, r3
  18166. 8007ed2: 837b strh r3, [r7, #26]
  18167. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18168. 8007ed4: 68fb ldr r3, [r7, #12]
  18169. 8007ed6: 681b ldr r3, [r3, #0]
  18170. 8007ed8: 617b str r3, [r7, #20]
  18171. *pReg = data;
  18172. 8007eda: 697b ldr r3, [r7, #20]
  18173. 8007edc: 8b7a ldrh r2, [r7, #26]
  18174. 8007ede: 801a strh r2, [r3, #0]
  18175. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  18176. 8007ee0: 69fb ldr r3, [r7, #28]
  18177. 8007ee2: 009b lsls r3, r3, #2
  18178. 8007ee4: 3302 adds r3, #2
  18179. 8007ee6: 68ba ldr r2, [r7, #8]
  18180. 8007ee8: 4413 add r3, r2
  18181. 8007eea: 68fa ldr r2, [r7, #12]
  18182. 8007eec: 6812 ldr r2, [r2, #0]
  18183. 8007eee: 781b ldrb r3, [r3, #0]
  18184. 8007ef0: 7013 strb r3, [r2, #0]
  18185. }
  18186. }
  18187. /* Return the CRC computed value */
  18188. return hcrc->Instance->DR;
  18189. 8007ef2: 68fb ldr r3, [r7, #12]
  18190. 8007ef4: 681b ldr r3, [r3, #0]
  18191. 8007ef6: 681b ldr r3, [r3, #0]
  18192. }
  18193. 8007ef8: 4618 mov r0, r3
  18194. 8007efa: 3724 adds r7, #36 @ 0x24
  18195. 8007efc: 46bd mov sp, r7
  18196. 8007efe: f85d 7b04 ldr.w r7, [sp], #4
  18197. 8007f02: 4770 bx lr
  18198. 08007f04 <CRC_Handle_16>:
  18199. * @param pBuffer pointer to the input data buffer
  18200. * @param BufferLength input data buffer length
  18201. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18202. */
  18203. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  18204. {
  18205. 8007f04: b480 push {r7}
  18206. 8007f06: b087 sub sp, #28
  18207. 8007f08: af00 add r7, sp, #0
  18208. 8007f0a: 60f8 str r0, [r7, #12]
  18209. 8007f0c: 60b9 str r1, [r7, #8]
  18210. 8007f0e: 607a str r2, [r7, #4]
  18211. __IO uint16_t *pReg;
  18212. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  18213. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  18214. * a correct type handling by the peripheral */
  18215. for (i = 0U; i < (BufferLength / 2U); i++)
  18216. 8007f10: 2300 movs r3, #0
  18217. 8007f12: 617b str r3, [r7, #20]
  18218. 8007f14: e013 b.n 8007f3e <CRC_Handle_16+0x3a>
  18219. {
  18220. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  18221. 8007f16: 697b ldr r3, [r7, #20]
  18222. 8007f18: 009b lsls r3, r3, #2
  18223. 8007f1a: 68ba ldr r2, [r7, #8]
  18224. 8007f1c: 4413 add r3, r2
  18225. 8007f1e: 881b ldrh r3, [r3, #0]
  18226. 8007f20: 041a lsls r2, r3, #16
  18227. 8007f22: 697b ldr r3, [r7, #20]
  18228. 8007f24: 009b lsls r3, r3, #2
  18229. 8007f26: 3302 adds r3, #2
  18230. 8007f28: 68b9 ldr r1, [r7, #8]
  18231. 8007f2a: 440b add r3, r1
  18232. 8007f2c: 881b ldrh r3, [r3, #0]
  18233. 8007f2e: 4619 mov r1, r3
  18234. 8007f30: 68fb ldr r3, [r7, #12]
  18235. 8007f32: 681b ldr r3, [r3, #0]
  18236. 8007f34: 430a orrs r2, r1
  18237. 8007f36: 601a str r2, [r3, #0]
  18238. for (i = 0U; i < (BufferLength / 2U); i++)
  18239. 8007f38: 697b ldr r3, [r7, #20]
  18240. 8007f3a: 3301 adds r3, #1
  18241. 8007f3c: 617b str r3, [r7, #20]
  18242. 8007f3e: 687b ldr r3, [r7, #4]
  18243. 8007f40: 085b lsrs r3, r3, #1
  18244. 8007f42: 697a ldr r2, [r7, #20]
  18245. 8007f44: 429a cmp r2, r3
  18246. 8007f46: d3e6 bcc.n 8007f16 <CRC_Handle_16+0x12>
  18247. }
  18248. if ((BufferLength % 2U) != 0U)
  18249. 8007f48: 687b ldr r3, [r7, #4]
  18250. 8007f4a: f003 0301 and.w r3, r3, #1
  18251. 8007f4e: 2b00 cmp r3, #0
  18252. 8007f50: d009 beq.n 8007f66 <CRC_Handle_16+0x62>
  18253. {
  18254. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18255. 8007f52: 68fb ldr r3, [r7, #12]
  18256. 8007f54: 681b ldr r3, [r3, #0]
  18257. 8007f56: 613b str r3, [r7, #16]
  18258. *pReg = pBuffer[2U * i];
  18259. 8007f58: 697b ldr r3, [r7, #20]
  18260. 8007f5a: 009b lsls r3, r3, #2
  18261. 8007f5c: 68ba ldr r2, [r7, #8]
  18262. 8007f5e: 4413 add r3, r2
  18263. 8007f60: 881a ldrh r2, [r3, #0]
  18264. 8007f62: 693b ldr r3, [r7, #16]
  18265. 8007f64: 801a strh r2, [r3, #0]
  18266. }
  18267. /* Return the CRC computed value */
  18268. return hcrc->Instance->DR;
  18269. 8007f66: 68fb ldr r3, [r7, #12]
  18270. 8007f68: 681b ldr r3, [r3, #0]
  18271. 8007f6a: 681b ldr r3, [r3, #0]
  18272. }
  18273. 8007f6c: 4618 mov r0, r3
  18274. 8007f6e: 371c adds r7, #28
  18275. 8007f70: 46bd mov sp, r7
  18276. 8007f72: f85d 7b04 ldr.w r7, [sp], #4
  18277. 8007f76: 4770 bx lr
  18278. 08007f78 <HAL_CRCEx_Polynomial_Set>:
  18279. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  18280. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  18281. * @retval HAL status
  18282. */
  18283. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  18284. {
  18285. 8007f78: b480 push {r7}
  18286. 8007f7a: b087 sub sp, #28
  18287. 8007f7c: af00 add r7, sp, #0
  18288. 8007f7e: 60f8 str r0, [r7, #12]
  18289. 8007f80: 60b9 str r1, [r7, #8]
  18290. 8007f82: 607a str r2, [r7, #4]
  18291. HAL_StatusTypeDef status = HAL_OK;
  18292. 8007f84: 2300 movs r3, #0
  18293. 8007f86: 75fb strb r3, [r7, #23]
  18294. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  18295. 8007f88: 231f movs r3, #31
  18296. 8007f8a: 613b str r3, [r7, #16]
  18297. /* Check the parameters */
  18298. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  18299. /* Ensure that the generating polynomial is odd */
  18300. if ((Pol & (uint32_t)(0x1U)) == 0U)
  18301. 8007f8c: 68bb ldr r3, [r7, #8]
  18302. 8007f8e: f003 0301 and.w r3, r3, #1
  18303. 8007f92: 2b00 cmp r3, #0
  18304. 8007f94: d102 bne.n 8007f9c <HAL_CRCEx_Polynomial_Set+0x24>
  18305. {
  18306. status = HAL_ERROR;
  18307. 8007f96: 2301 movs r3, #1
  18308. 8007f98: 75fb strb r3, [r7, #23]
  18309. 8007f9a: e063 b.n 8008064 <HAL_CRCEx_Polynomial_Set+0xec>
  18310. * definition. HAL_ERROR is reported if Pol degree is
  18311. * larger than that indicated by PolyLength.
  18312. * Look for MSB position: msb will contain the degree of
  18313. * the second to the largest polynomial member. E.g., for
  18314. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  18315. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  18316. 8007f9c: bf00 nop
  18317. 8007f9e: 693b ldr r3, [r7, #16]
  18318. 8007fa0: 1e5a subs r2, r3, #1
  18319. 8007fa2: 613a str r2, [r7, #16]
  18320. 8007fa4: 2b00 cmp r3, #0
  18321. 8007fa6: d009 beq.n 8007fbc <HAL_CRCEx_Polynomial_Set+0x44>
  18322. 8007fa8: 693b ldr r3, [r7, #16]
  18323. 8007faa: f003 031f and.w r3, r3, #31
  18324. 8007fae: 68ba ldr r2, [r7, #8]
  18325. 8007fb0: fa22 f303 lsr.w r3, r2, r3
  18326. 8007fb4: f003 0301 and.w r3, r3, #1
  18327. 8007fb8: 2b00 cmp r3, #0
  18328. 8007fba: d0f0 beq.n 8007f9e <HAL_CRCEx_Polynomial_Set+0x26>
  18329. {
  18330. }
  18331. switch (PolyLength)
  18332. 8007fbc: 687b ldr r3, [r7, #4]
  18333. 8007fbe: 2b18 cmp r3, #24
  18334. 8007fc0: d846 bhi.n 8008050 <HAL_CRCEx_Polynomial_Set+0xd8>
  18335. 8007fc2: a201 add r2, pc, #4 @ (adr r2, 8007fc8 <HAL_CRCEx_Polynomial_Set+0x50>)
  18336. 8007fc4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  18337. 8007fc8: 08008057 .word 0x08008057
  18338. 8007fcc: 08008051 .word 0x08008051
  18339. 8007fd0: 08008051 .word 0x08008051
  18340. 8007fd4: 08008051 .word 0x08008051
  18341. 8007fd8: 08008051 .word 0x08008051
  18342. 8007fdc: 08008051 .word 0x08008051
  18343. 8007fe0: 08008051 .word 0x08008051
  18344. 8007fe4: 08008051 .word 0x08008051
  18345. 8007fe8: 08008045 .word 0x08008045
  18346. 8007fec: 08008051 .word 0x08008051
  18347. 8007ff0: 08008051 .word 0x08008051
  18348. 8007ff4: 08008051 .word 0x08008051
  18349. 8007ff8: 08008051 .word 0x08008051
  18350. 8007ffc: 08008051 .word 0x08008051
  18351. 8008000: 08008051 .word 0x08008051
  18352. 8008004: 08008051 .word 0x08008051
  18353. 8008008: 08008039 .word 0x08008039
  18354. 800800c: 08008051 .word 0x08008051
  18355. 8008010: 08008051 .word 0x08008051
  18356. 8008014: 08008051 .word 0x08008051
  18357. 8008018: 08008051 .word 0x08008051
  18358. 800801c: 08008051 .word 0x08008051
  18359. 8008020: 08008051 .word 0x08008051
  18360. 8008024: 08008051 .word 0x08008051
  18361. 8008028: 0800802d .word 0x0800802d
  18362. {
  18363. case CRC_POLYLENGTH_7B:
  18364. if (msb >= HAL_CRC_LENGTH_7B)
  18365. 800802c: 693b ldr r3, [r7, #16]
  18366. 800802e: 2b06 cmp r3, #6
  18367. 8008030: d913 bls.n 800805a <HAL_CRCEx_Polynomial_Set+0xe2>
  18368. {
  18369. status = HAL_ERROR;
  18370. 8008032: 2301 movs r3, #1
  18371. 8008034: 75fb strb r3, [r7, #23]
  18372. }
  18373. break;
  18374. 8008036: e010 b.n 800805a <HAL_CRCEx_Polynomial_Set+0xe2>
  18375. case CRC_POLYLENGTH_8B:
  18376. if (msb >= HAL_CRC_LENGTH_8B)
  18377. 8008038: 693b ldr r3, [r7, #16]
  18378. 800803a: 2b07 cmp r3, #7
  18379. 800803c: d90f bls.n 800805e <HAL_CRCEx_Polynomial_Set+0xe6>
  18380. {
  18381. status = HAL_ERROR;
  18382. 800803e: 2301 movs r3, #1
  18383. 8008040: 75fb strb r3, [r7, #23]
  18384. }
  18385. break;
  18386. 8008042: e00c b.n 800805e <HAL_CRCEx_Polynomial_Set+0xe6>
  18387. case CRC_POLYLENGTH_16B:
  18388. if (msb >= HAL_CRC_LENGTH_16B)
  18389. 8008044: 693b ldr r3, [r7, #16]
  18390. 8008046: 2b0f cmp r3, #15
  18391. 8008048: d90b bls.n 8008062 <HAL_CRCEx_Polynomial_Set+0xea>
  18392. {
  18393. status = HAL_ERROR;
  18394. 800804a: 2301 movs r3, #1
  18395. 800804c: 75fb strb r3, [r7, #23]
  18396. }
  18397. break;
  18398. 800804e: e008 b.n 8008062 <HAL_CRCEx_Polynomial_Set+0xea>
  18399. case CRC_POLYLENGTH_32B:
  18400. /* no polynomial definition vs. polynomial length issue possible */
  18401. break;
  18402. default:
  18403. status = HAL_ERROR;
  18404. 8008050: 2301 movs r3, #1
  18405. 8008052: 75fb strb r3, [r7, #23]
  18406. break;
  18407. 8008054: e006 b.n 8008064 <HAL_CRCEx_Polynomial_Set+0xec>
  18408. break;
  18409. 8008056: bf00 nop
  18410. 8008058: e004 b.n 8008064 <HAL_CRCEx_Polynomial_Set+0xec>
  18411. break;
  18412. 800805a: bf00 nop
  18413. 800805c: e002 b.n 8008064 <HAL_CRCEx_Polynomial_Set+0xec>
  18414. break;
  18415. 800805e: bf00 nop
  18416. 8008060: e000 b.n 8008064 <HAL_CRCEx_Polynomial_Set+0xec>
  18417. break;
  18418. 8008062: bf00 nop
  18419. }
  18420. }
  18421. if (status == HAL_OK)
  18422. 8008064: 7dfb ldrb r3, [r7, #23]
  18423. 8008066: 2b00 cmp r3, #0
  18424. 8008068: d10d bne.n 8008086 <HAL_CRCEx_Polynomial_Set+0x10e>
  18425. {
  18426. /* set generating polynomial */
  18427. WRITE_REG(hcrc->Instance->POL, Pol);
  18428. 800806a: 68fb ldr r3, [r7, #12]
  18429. 800806c: 681b ldr r3, [r3, #0]
  18430. 800806e: 68ba ldr r2, [r7, #8]
  18431. 8008070: 615a str r2, [r3, #20]
  18432. /* set generating polynomial size */
  18433. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  18434. 8008072: 68fb ldr r3, [r7, #12]
  18435. 8008074: 681b ldr r3, [r3, #0]
  18436. 8008076: 689b ldr r3, [r3, #8]
  18437. 8008078: f023 0118 bic.w r1, r3, #24
  18438. 800807c: 68fb ldr r3, [r7, #12]
  18439. 800807e: 681b ldr r3, [r3, #0]
  18440. 8008080: 687a ldr r2, [r7, #4]
  18441. 8008082: 430a orrs r2, r1
  18442. 8008084: 609a str r2, [r3, #8]
  18443. }
  18444. /* Return function status */
  18445. return status;
  18446. 8008086: 7dfb ldrb r3, [r7, #23]
  18447. }
  18448. 8008088: 4618 mov r0, r3
  18449. 800808a: 371c adds r7, #28
  18450. 800808c: 46bd mov sp, r7
  18451. 800808e: f85d 7b04 ldr.w r7, [sp], #4
  18452. 8008092: 4770 bx lr
  18453. 08008094 <HAL_DAC_Init>:
  18454. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18455. * the configuration information for the specified DAC.
  18456. * @retval HAL status
  18457. */
  18458. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  18459. {
  18460. 8008094: b580 push {r7, lr}
  18461. 8008096: b082 sub sp, #8
  18462. 8008098: af00 add r7, sp, #0
  18463. 800809a: 6078 str r0, [r7, #4]
  18464. /* Check the DAC peripheral handle */
  18465. if (hdac == NULL)
  18466. 800809c: 687b ldr r3, [r7, #4]
  18467. 800809e: 2b00 cmp r3, #0
  18468. 80080a0: d101 bne.n 80080a6 <HAL_DAC_Init+0x12>
  18469. {
  18470. return HAL_ERROR;
  18471. 80080a2: 2301 movs r3, #1
  18472. 80080a4: e014 b.n 80080d0 <HAL_DAC_Init+0x3c>
  18473. }
  18474. /* Check the parameters */
  18475. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  18476. if (hdac->State == HAL_DAC_STATE_RESET)
  18477. 80080a6: 687b ldr r3, [r7, #4]
  18478. 80080a8: 791b ldrb r3, [r3, #4]
  18479. 80080aa: b2db uxtb r3, r3
  18480. 80080ac: 2b00 cmp r3, #0
  18481. 80080ae: d105 bne.n 80080bc <HAL_DAC_Init+0x28>
  18482. hdac->MspInitCallback = HAL_DAC_MspInit;
  18483. }
  18484. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18485. /* Allocate lock resource and initialize it */
  18486. hdac->Lock = HAL_UNLOCKED;
  18487. 80080b0: 687b ldr r3, [r7, #4]
  18488. 80080b2: 2200 movs r2, #0
  18489. 80080b4: 715a strb r2, [r3, #5]
  18490. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18491. /* Init the low level hardware */
  18492. hdac->MspInitCallback(hdac);
  18493. #else
  18494. /* Init the low level hardware */
  18495. HAL_DAC_MspInit(hdac);
  18496. 80080b6: 6878 ldr r0, [r7, #4]
  18497. 80080b8: f7fc f836 bl 8004128 <HAL_DAC_MspInit>
  18498. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18499. }
  18500. /* Initialize the DAC state*/
  18501. hdac->State = HAL_DAC_STATE_BUSY;
  18502. 80080bc: 687b ldr r3, [r7, #4]
  18503. 80080be: 2202 movs r2, #2
  18504. 80080c0: 711a strb r2, [r3, #4]
  18505. /* Set DAC error code to none */
  18506. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  18507. 80080c2: 687b ldr r3, [r7, #4]
  18508. 80080c4: 2200 movs r2, #0
  18509. 80080c6: 611a str r2, [r3, #16]
  18510. /* Initialize the DAC state*/
  18511. hdac->State = HAL_DAC_STATE_READY;
  18512. 80080c8: 687b ldr r3, [r7, #4]
  18513. 80080ca: 2201 movs r2, #1
  18514. 80080cc: 711a strb r2, [r3, #4]
  18515. /* Return function status */
  18516. return HAL_OK;
  18517. 80080ce: 2300 movs r3, #0
  18518. }
  18519. 80080d0: 4618 mov r0, r3
  18520. 80080d2: 3708 adds r7, #8
  18521. 80080d4: 46bd mov sp, r7
  18522. 80080d6: bd80 pop {r7, pc}
  18523. 080080d8 <HAL_DAC_Start>:
  18524. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  18525. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18526. * @retval HAL status
  18527. */
  18528. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  18529. {
  18530. 80080d8: b480 push {r7}
  18531. 80080da: b083 sub sp, #12
  18532. 80080dc: af00 add r7, sp, #0
  18533. 80080de: 6078 str r0, [r7, #4]
  18534. 80080e0: 6039 str r1, [r7, #0]
  18535. /* Check the DAC peripheral handle */
  18536. if (hdac == NULL)
  18537. 80080e2: 687b ldr r3, [r7, #4]
  18538. 80080e4: 2b00 cmp r3, #0
  18539. 80080e6: d101 bne.n 80080ec <HAL_DAC_Start+0x14>
  18540. {
  18541. return HAL_ERROR;
  18542. 80080e8: 2301 movs r3, #1
  18543. 80080ea: e046 b.n 800817a <HAL_DAC_Start+0xa2>
  18544. /* Check the parameters */
  18545. assert_param(IS_DAC_CHANNEL(Channel));
  18546. /* Process locked */
  18547. __HAL_LOCK(hdac);
  18548. 80080ec: 687b ldr r3, [r7, #4]
  18549. 80080ee: 795b ldrb r3, [r3, #5]
  18550. 80080f0: 2b01 cmp r3, #1
  18551. 80080f2: d101 bne.n 80080f8 <HAL_DAC_Start+0x20>
  18552. 80080f4: 2302 movs r3, #2
  18553. 80080f6: e040 b.n 800817a <HAL_DAC_Start+0xa2>
  18554. 80080f8: 687b ldr r3, [r7, #4]
  18555. 80080fa: 2201 movs r2, #1
  18556. 80080fc: 715a strb r2, [r3, #5]
  18557. /* Change DAC state */
  18558. hdac->State = HAL_DAC_STATE_BUSY;
  18559. 80080fe: 687b ldr r3, [r7, #4]
  18560. 8008100: 2202 movs r2, #2
  18561. 8008102: 711a strb r2, [r3, #4]
  18562. /* Enable the Peripheral */
  18563. __HAL_DAC_ENABLE(hdac, Channel);
  18564. 8008104: 687b ldr r3, [r7, #4]
  18565. 8008106: 681b ldr r3, [r3, #0]
  18566. 8008108: 6819 ldr r1, [r3, #0]
  18567. 800810a: 683b ldr r3, [r7, #0]
  18568. 800810c: f003 0310 and.w r3, r3, #16
  18569. 8008110: 2201 movs r2, #1
  18570. 8008112: 409a lsls r2, r3
  18571. 8008114: 687b ldr r3, [r7, #4]
  18572. 8008116: 681b ldr r3, [r3, #0]
  18573. 8008118: 430a orrs r2, r1
  18574. 800811a: 601a str r2, [r3, #0]
  18575. if (Channel == DAC_CHANNEL_1)
  18576. 800811c: 683b ldr r3, [r7, #0]
  18577. 800811e: 2b00 cmp r3, #0
  18578. 8008120: d10f bne.n 8008142 <HAL_DAC_Start+0x6a>
  18579. {
  18580. /* Check if software trigger enabled */
  18581. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  18582. 8008122: 687b ldr r3, [r7, #4]
  18583. 8008124: 681b ldr r3, [r3, #0]
  18584. 8008126: 681b ldr r3, [r3, #0]
  18585. 8008128: f003 033e and.w r3, r3, #62 @ 0x3e
  18586. 800812c: 2b02 cmp r3, #2
  18587. 800812e: d11d bne.n 800816c <HAL_DAC_Start+0x94>
  18588. {
  18589. /* Enable the selected DAC software conversion */
  18590. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  18591. 8008130: 687b ldr r3, [r7, #4]
  18592. 8008132: 681b ldr r3, [r3, #0]
  18593. 8008134: 685a ldr r2, [r3, #4]
  18594. 8008136: 687b ldr r3, [r7, #4]
  18595. 8008138: 681b ldr r3, [r3, #0]
  18596. 800813a: f042 0201 orr.w r2, r2, #1
  18597. 800813e: 605a str r2, [r3, #4]
  18598. 8008140: e014 b.n 800816c <HAL_DAC_Start+0x94>
  18599. }
  18600. else
  18601. {
  18602. /* Check if software trigger enabled */
  18603. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  18604. 8008142: 687b ldr r3, [r7, #4]
  18605. 8008144: 681b ldr r3, [r3, #0]
  18606. 8008146: 681b ldr r3, [r3, #0]
  18607. 8008148: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  18608. 800814c: 683b ldr r3, [r7, #0]
  18609. 800814e: f003 0310 and.w r3, r3, #16
  18610. 8008152: 2102 movs r1, #2
  18611. 8008154: fa01 f303 lsl.w r3, r1, r3
  18612. 8008158: 429a cmp r2, r3
  18613. 800815a: d107 bne.n 800816c <HAL_DAC_Start+0x94>
  18614. {
  18615. /* Enable the selected DAC software conversion*/
  18616. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  18617. 800815c: 687b ldr r3, [r7, #4]
  18618. 800815e: 681b ldr r3, [r3, #0]
  18619. 8008160: 685a ldr r2, [r3, #4]
  18620. 8008162: 687b ldr r3, [r7, #4]
  18621. 8008164: 681b ldr r3, [r3, #0]
  18622. 8008166: f042 0202 orr.w r2, r2, #2
  18623. 800816a: 605a str r2, [r3, #4]
  18624. }
  18625. }
  18626. /* Change DAC state */
  18627. hdac->State = HAL_DAC_STATE_READY;
  18628. 800816c: 687b ldr r3, [r7, #4]
  18629. 800816e: 2201 movs r2, #1
  18630. 8008170: 711a strb r2, [r3, #4]
  18631. /* Process unlocked */
  18632. __HAL_UNLOCK(hdac);
  18633. 8008172: 687b ldr r3, [r7, #4]
  18634. 8008174: 2200 movs r2, #0
  18635. 8008176: 715a strb r2, [r3, #5]
  18636. /* Return function status */
  18637. return HAL_OK;
  18638. 8008178: 2300 movs r3, #0
  18639. }
  18640. 800817a: 4618 mov r0, r3
  18641. 800817c: 370c adds r7, #12
  18642. 800817e: 46bd mov sp, r7
  18643. 8008180: f85d 7b04 ldr.w r7, [sp], #4
  18644. 8008184: 4770 bx lr
  18645. 08008186 <HAL_DAC_IRQHandler>:
  18646. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18647. * the configuration information for the specified DAC.
  18648. * @retval None
  18649. */
  18650. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  18651. {
  18652. 8008186: b580 push {r7, lr}
  18653. 8008188: b084 sub sp, #16
  18654. 800818a: af00 add r7, sp, #0
  18655. 800818c: 6078 str r0, [r7, #4]
  18656. uint32_t itsource = hdac->Instance->CR;
  18657. 800818e: 687b ldr r3, [r7, #4]
  18658. 8008190: 681b ldr r3, [r3, #0]
  18659. 8008192: 681b ldr r3, [r3, #0]
  18660. 8008194: 60fb str r3, [r7, #12]
  18661. uint32_t itflag = hdac->Instance->SR;
  18662. 8008196: 687b ldr r3, [r7, #4]
  18663. 8008198: 681b ldr r3, [r3, #0]
  18664. 800819a: 6b5b ldr r3, [r3, #52] @ 0x34
  18665. 800819c: 60bb str r3, [r7, #8]
  18666. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  18667. 800819e: 68fb ldr r3, [r7, #12]
  18668. 80081a0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18669. 80081a4: 2b00 cmp r3, #0
  18670. 80081a6: d01d beq.n 80081e4 <HAL_DAC_IRQHandler+0x5e>
  18671. {
  18672. /* Check underrun flag of DAC channel 1 */
  18673. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  18674. 80081a8: 68bb ldr r3, [r7, #8]
  18675. 80081aa: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18676. 80081ae: 2b00 cmp r3, #0
  18677. 80081b0: d018 beq.n 80081e4 <HAL_DAC_IRQHandler+0x5e>
  18678. {
  18679. /* Change DAC state to error state */
  18680. hdac->State = HAL_DAC_STATE_ERROR;
  18681. 80081b2: 687b ldr r3, [r7, #4]
  18682. 80081b4: 2204 movs r2, #4
  18683. 80081b6: 711a strb r2, [r3, #4]
  18684. /* Set DAC error code to channel1 DMA underrun error */
  18685. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  18686. 80081b8: 687b ldr r3, [r7, #4]
  18687. 80081ba: 691b ldr r3, [r3, #16]
  18688. 80081bc: f043 0201 orr.w r2, r3, #1
  18689. 80081c0: 687b ldr r3, [r7, #4]
  18690. 80081c2: 611a str r2, [r3, #16]
  18691. /* Clear the underrun flag */
  18692. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  18693. 80081c4: 687b ldr r3, [r7, #4]
  18694. 80081c6: 681b ldr r3, [r3, #0]
  18695. 80081c8: f44f 5200 mov.w r2, #8192 @ 0x2000
  18696. 80081cc: 635a str r2, [r3, #52] @ 0x34
  18697. /* Disable the selected DAC channel1 DMA request */
  18698. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  18699. 80081ce: 687b ldr r3, [r7, #4]
  18700. 80081d0: 681b ldr r3, [r3, #0]
  18701. 80081d2: 681a ldr r2, [r3, #0]
  18702. 80081d4: 687b ldr r3, [r7, #4]
  18703. 80081d6: 681b ldr r3, [r3, #0]
  18704. 80081d8: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  18705. 80081dc: 601a str r2, [r3, #0]
  18706. /* Error callback */
  18707. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18708. hdac->DMAUnderrunCallbackCh1(hdac);
  18709. #else
  18710. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  18711. 80081de: 6878 ldr r0, [r7, #4]
  18712. 80081e0: f000 f851 bl 8008286 <HAL_DAC_DMAUnderrunCallbackCh1>
  18713. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18714. }
  18715. }
  18716. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  18717. 80081e4: 68fb ldr r3, [r7, #12]
  18718. 80081e6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18719. 80081ea: 2b00 cmp r3, #0
  18720. 80081ec: d01d beq.n 800822a <HAL_DAC_IRQHandler+0xa4>
  18721. {
  18722. /* Check underrun flag of DAC channel 2 */
  18723. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  18724. 80081ee: 68bb ldr r3, [r7, #8]
  18725. 80081f0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18726. 80081f4: 2b00 cmp r3, #0
  18727. 80081f6: d018 beq.n 800822a <HAL_DAC_IRQHandler+0xa4>
  18728. {
  18729. /* Change DAC state to error state */
  18730. hdac->State = HAL_DAC_STATE_ERROR;
  18731. 80081f8: 687b ldr r3, [r7, #4]
  18732. 80081fa: 2204 movs r2, #4
  18733. 80081fc: 711a strb r2, [r3, #4]
  18734. /* Set DAC error code to channel2 DMA underrun error */
  18735. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  18736. 80081fe: 687b ldr r3, [r7, #4]
  18737. 8008200: 691b ldr r3, [r3, #16]
  18738. 8008202: f043 0202 orr.w r2, r3, #2
  18739. 8008206: 687b ldr r3, [r7, #4]
  18740. 8008208: 611a str r2, [r3, #16]
  18741. /* Clear the underrun flag */
  18742. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  18743. 800820a: 687b ldr r3, [r7, #4]
  18744. 800820c: 681b ldr r3, [r3, #0]
  18745. 800820e: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  18746. 8008212: 635a str r2, [r3, #52] @ 0x34
  18747. /* Disable the selected DAC channel2 DMA request */
  18748. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  18749. 8008214: 687b ldr r3, [r7, #4]
  18750. 8008216: 681b ldr r3, [r3, #0]
  18751. 8008218: 681a ldr r2, [r3, #0]
  18752. 800821a: 687b ldr r3, [r7, #4]
  18753. 800821c: 681b ldr r3, [r3, #0]
  18754. 800821e: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  18755. 8008222: 601a str r2, [r3, #0]
  18756. /* Error callback */
  18757. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18758. hdac->DMAUnderrunCallbackCh2(hdac);
  18759. #else
  18760. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  18761. 8008224: 6878 ldr r0, [r7, #4]
  18762. 8008226: f000 f97b bl 8008520 <HAL_DACEx_DMAUnderrunCallbackCh2>
  18763. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18764. }
  18765. }
  18766. }
  18767. 800822a: bf00 nop
  18768. 800822c: 3710 adds r7, #16
  18769. 800822e: 46bd mov sp, r7
  18770. 8008230: bd80 pop {r7, pc}
  18771. 08008232 <HAL_DAC_SetValue>:
  18772. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  18773. * @param Data Data to be loaded in the selected data holding register.
  18774. * @retval HAL status
  18775. */
  18776. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  18777. {
  18778. 8008232: b480 push {r7}
  18779. 8008234: b087 sub sp, #28
  18780. 8008236: af00 add r7, sp, #0
  18781. 8008238: 60f8 str r0, [r7, #12]
  18782. 800823a: 60b9 str r1, [r7, #8]
  18783. 800823c: 607a str r2, [r7, #4]
  18784. 800823e: 603b str r3, [r7, #0]
  18785. __IO uint32_t tmp = 0UL;
  18786. 8008240: 2300 movs r3, #0
  18787. 8008242: 617b str r3, [r7, #20]
  18788. /* Check the DAC peripheral handle */
  18789. if (hdac == NULL)
  18790. 8008244: 68fb ldr r3, [r7, #12]
  18791. 8008246: 2b00 cmp r3, #0
  18792. 8008248: d101 bne.n 800824e <HAL_DAC_SetValue+0x1c>
  18793. {
  18794. return HAL_ERROR;
  18795. 800824a: 2301 movs r3, #1
  18796. 800824c: e015 b.n 800827a <HAL_DAC_SetValue+0x48>
  18797. /* Check the parameters */
  18798. assert_param(IS_DAC_CHANNEL(Channel));
  18799. assert_param(IS_DAC_ALIGN(Alignment));
  18800. assert_param(IS_DAC_DATA(Data));
  18801. tmp = (uint32_t)hdac->Instance;
  18802. 800824e: 68fb ldr r3, [r7, #12]
  18803. 8008250: 681b ldr r3, [r3, #0]
  18804. 8008252: 617b str r3, [r7, #20]
  18805. if (Channel == DAC_CHANNEL_1)
  18806. 8008254: 68bb ldr r3, [r7, #8]
  18807. 8008256: 2b00 cmp r3, #0
  18808. 8008258: d105 bne.n 8008266 <HAL_DAC_SetValue+0x34>
  18809. {
  18810. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  18811. 800825a: 697a ldr r2, [r7, #20]
  18812. 800825c: 687b ldr r3, [r7, #4]
  18813. 800825e: 4413 add r3, r2
  18814. 8008260: 3308 adds r3, #8
  18815. 8008262: 617b str r3, [r7, #20]
  18816. 8008264: e004 b.n 8008270 <HAL_DAC_SetValue+0x3e>
  18817. }
  18818. else
  18819. {
  18820. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  18821. 8008266: 697a ldr r2, [r7, #20]
  18822. 8008268: 687b ldr r3, [r7, #4]
  18823. 800826a: 4413 add r3, r2
  18824. 800826c: 3314 adds r3, #20
  18825. 800826e: 617b str r3, [r7, #20]
  18826. }
  18827. /* Set the DAC channel selected data holding register */
  18828. *(__IO uint32_t *) tmp = Data;
  18829. 8008270: 697b ldr r3, [r7, #20]
  18830. 8008272: 461a mov r2, r3
  18831. 8008274: 683b ldr r3, [r7, #0]
  18832. 8008276: 6013 str r3, [r2, #0]
  18833. /* Return function status */
  18834. return HAL_OK;
  18835. 8008278: 2300 movs r3, #0
  18836. }
  18837. 800827a: 4618 mov r0, r3
  18838. 800827c: 371c adds r7, #28
  18839. 800827e: 46bd mov sp, r7
  18840. 8008280: f85d 7b04 ldr.w r7, [sp], #4
  18841. 8008284: 4770 bx lr
  18842. 08008286 <HAL_DAC_DMAUnderrunCallbackCh1>:
  18843. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18844. * the configuration information for the specified DAC.
  18845. * @retval None
  18846. */
  18847. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  18848. {
  18849. 8008286: b480 push {r7}
  18850. 8008288: b083 sub sp, #12
  18851. 800828a: af00 add r7, sp, #0
  18852. 800828c: 6078 str r0, [r7, #4]
  18853. UNUSED(hdac);
  18854. /* NOTE : This function should not be modified, when the callback is needed,
  18855. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  18856. */
  18857. }
  18858. 800828e: bf00 nop
  18859. 8008290: 370c adds r7, #12
  18860. 8008292: 46bd mov sp, r7
  18861. 8008294: f85d 7b04 ldr.w r7, [sp], #4
  18862. 8008298: 4770 bx lr
  18863. ...
  18864. 0800829c <HAL_DAC_ConfigChannel>:
  18865. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18866. * @retval HAL status
  18867. */
  18868. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  18869. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  18870. {
  18871. 800829c: b580 push {r7, lr}
  18872. 800829e: b08a sub sp, #40 @ 0x28
  18873. 80082a0: af00 add r7, sp, #0
  18874. 80082a2: 60f8 str r0, [r7, #12]
  18875. 80082a4: 60b9 str r1, [r7, #8]
  18876. 80082a6: 607a str r2, [r7, #4]
  18877. HAL_StatusTypeDef status = HAL_OK;
  18878. 80082a8: 2300 movs r3, #0
  18879. 80082aa: f887 3023 strb.w r3, [r7, #35] @ 0x23
  18880. uint32_t tmpreg2;
  18881. uint32_t tickstart;
  18882. uint32_t connectOnChip;
  18883. /* Check the DAC peripheral handle and channel configuration struct */
  18884. if ((hdac == NULL) || (sConfig == NULL))
  18885. 80082ae: 68fb ldr r3, [r7, #12]
  18886. 80082b0: 2b00 cmp r3, #0
  18887. 80082b2: d002 beq.n 80082ba <HAL_DAC_ConfigChannel+0x1e>
  18888. 80082b4: 68bb ldr r3, [r7, #8]
  18889. 80082b6: 2b00 cmp r3, #0
  18890. 80082b8: d101 bne.n 80082be <HAL_DAC_ConfigChannel+0x22>
  18891. {
  18892. return HAL_ERROR;
  18893. 80082ba: 2301 movs r3, #1
  18894. 80082bc: e12a b.n 8008514 <HAL_DAC_ConfigChannel+0x278>
  18895. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  18896. }
  18897. assert_param(IS_DAC_CHANNEL(Channel));
  18898. /* Process locked */
  18899. __HAL_LOCK(hdac);
  18900. 80082be: 68fb ldr r3, [r7, #12]
  18901. 80082c0: 795b ldrb r3, [r3, #5]
  18902. 80082c2: 2b01 cmp r3, #1
  18903. 80082c4: d101 bne.n 80082ca <HAL_DAC_ConfigChannel+0x2e>
  18904. 80082c6: 2302 movs r3, #2
  18905. 80082c8: e124 b.n 8008514 <HAL_DAC_ConfigChannel+0x278>
  18906. 80082ca: 68fb ldr r3, [r7, #12]
  18907. 80082cc: 2201 movs r2, #1
  18908. 80082ce: 715a strb r2, [r3, #5]
  18909. /* Change DAC state */
  18910. hdac->State = HAL_DAC_STATE_BUSY;
  18911. 80082d0: 68fb ldr r3, [r7, #12]
  18912. 80082d2: 2202 movs r2, #2
  18913. 80082d4: 711a strb r2, [r3, #4]
  18914. /* Sample and hold configuration */
  18915. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  18916. 80082d6: 68bb ldr r3, [r7, #8]
  18917. 80082d8: 681b ldr r3, [r3, #0]
  18918. 80082da: 2b04 cmp r3, #4
  18919. 80082dc: d17a bne.n 80083d4 <HAL_DAC_ConfigChannel+0x138>
  18920. {
  18921. /* Get timeout */
  18922. tickstart = HAL_GetTick();
  18923. 80082de: f7fd fd8d bl 8005dfc <HAL_GetTick>
  18924. 80082e2: 61f8 str r0, [r7, #28]
  18925. if (Channel == DAC_CHANNEL_1)
  18926. 80082e4: 687b ldr r3, [r7, #4]
  18927. 80082e6: 2b00 cmp r3, #0
  18928. 80082e8: d13d bne.n 8008366 <HAL_DAC_ConfigChannel+0xca>
  18929. {
  18930. /* SHSR1 can be written when BWST1 is cleared */
  18931. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18932. 80082ea: e018 b.n 800831e <HAL_DAC_ConfigChannel+0x82>
  18933. {
  18934. /* Check for the Timeout */
  18935. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18936. 80082ec: f7fd fd86 bl 8005dfc <HAL_GetTick>
  18937. 80082f0: 4602 mov r2, r0
  18938. 80082f2: 69fb ldr r3, [r7, #28]
  18939. 80082f4: 1ad3 subs r3, r2, r3
  18940. 80082f6: 2b01 cmp r3, #1
  18941. 80082f8: d911 bls.n 800831e <HAL_DAC_ConfigChannel+0x82>
  18942. {
  18943. /* New check to avoid false timeout detection in case of preemption */
  18944. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18945. 80082fa: 68fb ldr r3, [r7, #12]
  18946. 80082fc: 681b ldr r3, [r3, #0]
  18947. 80082fe: 6b5a ldr r2, [r3, #52] @ 0x34
  18948. 8008300: 4b86 ldr r3, [pc, #536] @ (800851c <HAL_DAC_ConfigChannel+0x280>)
  18949. 8008302: 4013 ands r3, r2
  18950. 8008304: 2b00 cmp r3, #0
  18951. 8008306: d00a beq.n 800831e <HAL_DAC_ConfigChannel+0x82>
  18952. {
  18953. /* Update error code */
  18954. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  18955. 8008308: 68fb ldr r3, [r7, #12]
  18956. 800830a: 691b ldr r3, [r3, #16]
  18957. 800830c: f043 0208 orr.w r2, r3, #8
  18958. 8008310: 68fb ldr r3, [r7, #12]
  18959. 8008312: 611a str r2, [r3, #16]
  18960. /* Change the DMA state */
  18961. hdac->State = HAL_DAC_STATE_TIMEOUT;
  18962. 8008314: 68fb ldr r3, [r7, #12]
  18963. 8008316: 2203 movs r2, #3
  18964. 8008318: 711a strb r2, [r3, #4]
  18965. return HAL_TIMEOUT;
  18966. 800831a: 2303 movs r3, #3
  18967. 800831c: e0fa b.n 8008514 <HAL_DAC_ConfigChannel+0x278>
  18968. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18969. 800831e: 68fb ldr r3, [r7, #12]
  18970. 8008320: 681b ldr r3, [r3, #0]
  18971. 8008322: 6b5a ldr r2, [r3, #52] @ 0x34
  18972. 8008324: 4b7d ldr r3, [pc, #500] @ (800851c <HAL_DAC_ConfigChannel+0x280>)
  18973. 8008326: 4013 ands r3, r2
  18974. 8008328: 2b00 cmp r3, #0
  18975. 800832a: d1df bne.n 80082ec <HAL_DAC_ConfigChannel+0x50>
  18976. }
  18977. }
  18978. }
  18979. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  18980. 800832c: 68fb ldr r3, [r7, #12]
  18981. 800832e: 681b ldr r3, [r3, #0]
  18982. 8008330: 68ba ldr r2, [r7, #8]
  18983. 8008332: 6992 ldr r2, [r2, #24]
  18984. 8008334: 641a str r2, [r3, #64] @ 0x40
  18985. 8008336: e020 b.n 800837a <HAL_DAC_ConfigChannel+0xde>
  18986. {
  18987. /* SHSR2 can be written when BWST2 is cleared */
  18988. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  18989. {
  18990. /* Check for the Timeout */
  18991. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18992. 8008338: f7fd fd60 bl 8005dfc <HAL_GetTick>
  18993. 800833c: 4602 mov r2, r0
  18994. 800833e: 69fb ldr r3, [r7, #28]
  18995. 8008340: 1ad3 subs r3, r2, r3
  18996. 8008342: 2b01 cmp r3, #1
  18997. 8008344: d90f bls.n 8008366 <HAL_DAC_ConfigChannel+0xca>
  18998. {
  18999. /* New check to avoid false timeout detection in case of preemption */
  19000. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19001. 8008346: 68fb ldr r3, [r7, #12]
  19002. 8008348: 681b ldr r3, [r3, #0]
  19003. 800834a: 6b5b ldr r3, [r3, #52] @ 0x34
  19004. 800834c: 2b00 cmp r3, #0
  19005. 800834e: da0a bge.n 8008366 <HAL_DAC_ConfigChannel+0xca>
  19006. {
  19007. /* Update error code */
  19008. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  19009. 8008350: 68fb ldr r3, [r7, #12]
  19010. 8008352: 691b ldr r3, [r3, #16]
  19011. 8008354: f043 0208 orr.w r2, r3, #8
  19012. 8008358: 68fb ldr r3, [r7, #12]
  19013. 800835a: 611a str r2, [r3, #16]
  19014. /* Change the DMA state */
  19015. hdac->State = HAL_DAC_STATE_TIMEOUT;
  19016. 800835c: 68fb ldr r3, [r7, #12]
  19017. 800835e: 2203 movs r2, #3
  19018. 8008360: 711a strb r2, [r3, #4]
  19019. return HAL_TIMEOUT;
  19020. 8008362: 2303 movs r3, #3
  19021. 8008364: e0d6 b.n 8008514 <HAL_DAC_ConfigChannel+0x278>
  19022. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19023. 8008366: 68fb ldr r3, [r7, #12]
  19024. 8008368: 681b ldr r3, [r3, #0]
  19025. 800836a: 6b5b ldr r3, [r3, #52] @ 0x34
  19026. 800836c: 2b00 cmp r3, #0
  19027. 800836e: dbe3 blt.n 8008338 <HAL_DAC_ConfigChannel+0x9c>
  19028. }
  19029. }
  19030. }
  19031. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  19032. 8008370: 68fb ldr r3, [r7, #12]
  19033. 8008372: 681b ldr r3, [r3, #0]
  19034. 8008374: 68ba ldr r2, [r7, #8]
  19035. 8008376: 6992 ldr r2, [r2, #24]
  19036. 8008378: 645a str r2, [r3, #68] @ 0x44
  19037. }
  19038. /* HoldTime */
  19039. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  19040. 800837a: 68fb ldr r3, [r7, #12]
  19041. 800837c: 681b ldr r3, [r3, #0]
  19042. 800837e: 6c9a ldr r2, [r3, #72] @ 0x48
  19043. 8008380: 687b ldr r3, [r7, #4]
  19044. 8008382: f003 0310 and.w r3, r3, #16
  19045. 8008386: f240 31ff movw r1, #1023 @ 0x3ff
  19046. 800838a: fa01 f303 lsl.w r3, r1, r3
  19047. 800838e: 43db mvns r3, r3
  19048. 8008390: ea02 0103 and.w r1, r2, r3
  19049. 8008394: 68bb ldr r3, [r7, #8]
  19050. 8008396: 69da ldr r2, [r3, #28]
  19051. 8008398: 687b ldr r3, [r7, #4]
  19052. 800839a: f003 0310 and.w r3, r3, #16
  19053. 800839e: 409a lsls r2, r3
  19054. 80083a0: 68fb ldr r3, [r7, #12]
  19055. 80083a2: 681b ldr r3, [r3, #0]
  19056. 80083a4: 430a orrs r2, r1
  19057. 80083a6: 649a str r2, [r3, #72] @ 0x48
  19058. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  19059. /* RefreshTime */
  19060. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  19061. 80083a8: 68fb ldr r3, [r7, #12]
  19062. 80083aa: 681b ldr r3, [r3, #0]
  19063. 80083ac: 6cda ldr r2, [r3, #76] @ 0x4c
  19064. 80083ae: 687b ldr r3, [r7, #4]
  19065. 80083b0: f003 0310 and.w r3, r3, #16
  19066. 80083b4: 21ff movs r1, #255 @ 0xff
  19067. 80083b6: fa01 f303 lsl.w r3, r1, r3
  19068. 80083ba: 43db mvns r3, r3
  19069. 80083bc: ea02 0103 and.w r1, r2, r3
  19070. 80083c0: 68bb ldr r3, [r7, #8]
  19071. 80083c2: 6a1a ldr r2, [r3, #32]
  19072. 80083c4: 687b ldr r3, [r7, #4]
  19073. 80083c6: f003 0310 and.w r3, r3, #16
  19074. 80083ca: 409a lsls r2, r3
  19075. 80083cc: 68fb ldr r3, [r7, #12]
  19076. 80083ce: 681b ldr r3, [r3, #0]
  19077. 80083d0: 430a orrs r2, r1
  19078. 80083d2: 64da str r2, [r3, #76] @ 0x4c
  19079. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  19080. }
  19081. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  19082. 80083d4: 68bb ldr r3, [r7, #8]
  19083. 80083d6: 691b ldr r3, [r3, #16]
  19084. 80083d8: 2b01 cmp r3, #1
  19085. 80083da: d11d bne.n 8008418 <HAL_DAC_ConfigChannel+0x17c>
  19086. /* USER TRIMMING */
  19087. {
  19088. /* Get the DAC CCR value */
  19089. tmpreg1 = hdac->Instance->CCR;
  19090. 80083dc: 68fb ldr r3, [r7, #12]
  19091. 80083de: 681b ldr r3, [r3, #0]
  19092. 80083e0: 6b9b ldr r3, [r3, #56] @ 0x38
  19093. 80083e2: 61bb str r3, [r7, #24]
  19094. /* Clear trimming value */
  19095. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  19096. 80083e4: 687b ldr r3, [r7, #4]
  19097. 80083e6: f003 0310 and.w r3, r3, #16
  19098. 80083ea: 221f movs r2, #31
  19099. 80083ec: fa02 f303 lsl.w r3, r2, r3
  19100. 80083f0: 43db mvns r3, r3
  19101. 80083f2: 69ba ldr r2, [r7, #24]
  19102. 80083f4: 4013 ands r3, r2
  19103. 80083f6: 61bb str r3, [r7, #24]
  19104. /* Configure for the selected trimming offset */
  19105. tmpreg2 = sConfig->DAC_TrimmingValue;
  19106. 80083f8: 68bb ldr r3, [r7, #8]
  19107. 80083fa: 695b ldr r3, [r3, #20]
  19108. 80083fc: 617b str r3, [r7, #20]
  19109. /* Calculate CCR register value depending on DAC_Channel */
  19110. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19111. 80083fe: 687b ldr r3, [r7, #4]
  19112. 8008400: f003 0310 and.w r3, r3, #16
  19113. 8008404: 697a ldr r2, [r7, #20]
  19114. 8008406: fa02 f303 lsl.w r3, r2, r3
  19115. 800840a: 69ba ldr r2, [r7, #24]
  19116. 800840c: 4313 orrs r3, r2
  19117. 800840e: 61bb str r3, [r7, #24]
  19118. /* Write to DAC CCR */
  19119. hdac->Instance->CCR = tmpreg1;
  19120. 8008410: 68fb ldr r3, [r7, #12]
  19121. 8008412: 681b ldr r3, [r3, #0]
  19122. 8008414: 69ba ldr r2, [r7, #24]
  19123. 8008416: 639a str r2, [r3, #56] @ 0x38
  19124. }
  19125. /* else factory trimming is used (factory setting are available at reset)*/
  19126. /* SW Nothing has nothing to do */
  19127. /* Get the DAC MCR value */
  19128. tmpreg1 = hdac->Instance->MCR;
  19129. 8008418: 68fb ldr r3, [r7, #12]
  19130. 800841a: 681b ldr r3, [r3, #0]
  19131. 800841c: 6bdb ldr r3, [r3, #60] @ 0x3c
  19132. 800841e: 61bb str r3, [r7, #24]
  19133. /* Clear DAC_MCR_MODEx bits */
  19134. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  19135. 8008420: 687b ldr r3, [r7, #4]
  19136. 8008422: f003 0310 and.w r3, r3, #16
  19137. 8008426: 2207 movs r2, #7
  19138. 8008428: fa02 f303 lsl.w r3, r2, r3
  19139. 800842c: 43db mvns r3, r3
  19140. 800842e: 69ba ldr r2, [r7, #24]
  19141. 8008430: 4013 ands r3, r2
  19142. 8008432: 61bb str r3, [r7, #24]
  19143. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  19144. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  19145. 8008434: 68bb ldr r3, [r7, #8]
  19146. 8008436: 68db ldr r3, [r3, #12]
  19147. 8008438: 2b01 cmp r3, #1
  19148. 800843a: d102 bne.n 8008442 <HAL_DAC_ConfigChannel+0x1a6>
  19149. {
  19150. connectOnChip = 0x00000000UL;
  19151. 800843c: 2300 movs r3, #0
  19152. 800843e: 627b str r3, [r7, #36] @ 0x24
  19153. 8008440: e00f b.n 8008462 <HAL_DAC_ConfigChannel+0x1c6>
  19154. }
  19155. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  19156. 8008442: 68bb ldr r3, [r7, #8]
  19157. 8008444: 68db ldr r3, [r3, #12]
  19158. 8008446: 2b02 cmp r3, #2
  19159. 8008448: d102 bne.n 8008450 <HAL_DAC_ConfigChannel+0x1b4>
  19160. {
  19161. connectOnChip = DAC_MCR_MODE1_0;
  19162. 800844a: 2301 movs r3, #1
  19163. 800844c: 627b str r3, [r7, #36] @ 0x24
  19164. 800844e: e008 b.n 8008462 <HAL_DAC_ConfigChannel+0x1c6>
  19165. }
  19166. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  19167. {
  19168. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  19169. 8008450: 68bb ldr r3, [r7, #8]
  19170. 8008452: 689b ldr r3, [r3, #8]
  19171. 8008454: 2b00 cmp r3, #0
  19172. 8008456: d102 bne.n 800845e <HAL_DAC_ConfigChannel+0x1c2>
  19173. {
  19174. connectOnChip = DAC_MCR_MODE1_0;
  19175. 8008458: 2301 movs r3, #1
  19176. 800845a: 627b str r3, [r7, #36] @ 0x24
  19177. 800845c: e001 b.n 8008462 <HAL_DAC_ConfigChannel+0x1c6>
  19178. }
  19179. else
  19180. {
  19181. connectOnChip = 0x00000000UL;
  19182. 800845e: 2300 movs r3, #0
  19183. 8008460: 627b str r3, [r7, #36] @ 0x24
  19184. }
  19185. }
  19186. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  19187. 8008462: 68bb ldr r3, [r7, #8]
  19188. 8008464: 681a ldr r2, [r3, #0]
  19189. 8008466: 68bb ldr r3, [r7, #8]
  19190. 8008468: 689b ldr r3, [r3, #8]
  19191. 800846a: 4313 orrs r3, r2
  19192. 800846c: 6a7a ldr r2, [r7, #36] @ 0x24
  19193. 800846e: 4313 orrs r3, r2
  19194. 8008470: 617b str r3, [r7, #20]
  19195. /* Calculate MCR register value depending on DAC_Channel */
  19196. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19197. 8008472: 687b ldr r3, [r7, #4]
  19198. 8008474: f003 0310 and.w r3, r3, #16
  19199. 8008478: 697a ldr r2, [r7, #20]
  19200. 800847a: fa02 f303 lsl.w r3, r2, r3
  19201. 800847e: 69ba ldr r2, [r7, #24]
  19202. 8008480: 4313 orrs r3, r2
  19203. 8008482: 61bb str r3, [r7, #24]
  19204. /* Write to DAC MCR */
  19205. hdac->Instance->MCR = tmpreg1;
  19206. 8008484: 68fb ldr r3, [r7, #12]
  19207. 8008486: 681b ldr r3, [r3, #0]
  19208. 8008488: 69ba ldr r2, [r7, #24]
  19209. 800848a: 63da str r2, [r3, #60] @ 0x3c
  19210. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  19211. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  19212. 800848c: 68fb ldr r3, [r7, #12]
  19213. 800848e: 681b ldr r3, [r3, #0]
  19214. 8008490: 6819 ldr r1, [r3, #0]
  19215. 8008492: 687b ldr r3, [r7, #4]
  19216. 8008494: f003 0310 and.w r3, r3, #16
  19217. 8008498: f44f 4280 mov.w r2, #16384 @ 0x4000
  19218. 800849c: fa02 f303 lsl.w r3, r2, r3
  19219. 80084a0: 43da mvns r2, r3
  19220. 80084a2: 68fb ldr r3, [r7, #12]
  19221. 80084a4: 681b ldr r3, [r3, #0]
  19222. 80084a6: 400a ands r2, r1
  19223. 80084a8: 601a str r2, [r3, #0]
  19224. /* Get the DAC CR value */
  19225. tmpreg1 = hdac->Instance->CR;
  19226. 80084aa: 68fb ldr r3, [r7, #12]
  19227. 80084ac: 681b ldr r3, [r3, #0]
  19228. 80084ae: 681b ldr r3, [r3, #0]
  19229. 80084b0: 61bb str r3, [r7, #24]
  19230. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  19231. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  19232. 80084b2: 687b ldr r3, [r7, #4]
  19233. 80084b4: f003 0310 and.w r3, r3, #16
  19234. 80084b8: f640 72fe movw r2, #4094 @ 0xffe
  19235. 80084bc: fa02 f303 lsl.w r3, r2, r3
  19236. 80084c0: 43db mvns r3, r3
  19237. 80084c2: 69ba ldr r2, [r7, #24]
  19238. 80084c4: 4013 ands r3, r2
  19239. 80084c6: 61bb str r3, [r7, #24]
  19240. /* Configure for the selected DAC channel: trigger */
  19241. /* Set TSELx and TENx bits according to DAC_Trigger value */
  19242. tmpreg2 = sConfig->DAC_Trigger;
  19243. 80084c8: 68bb ldr r3, [r7, #8]
  19244. 80084ca: 685b ldr r3, [r3, #4]
  19245. 80084cc: 617b str r3, [r7, #20]
  19246. /* Calculate CR register value depending on DAC_Channel */
  19247. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19248. 80084ce: 687b ldr r3, [r7, #4]
  19249. 80084d0: f003 0310 and.w r3, r3, #16
  19250. 80084d4: 697a ldr r2, [r7, #20]
  19251. 80084d6: fa02 f303 lsl.w r3, r2, r3
  19252. 80084da: 69ba ldr r2, [r7, #24]
  19253. 80084dc: 4313 orrs r3, r2
  19254. 80084de: 61bb str r3, [r7, #24]
  19255. /* Write to DAC CR */
  19256. hdac->Instance->CR = tmpreg1;
  19257. 80084e0: 68fb ldr r3, [r7, #12]
  19258. 80084e2: 681b ldr r3, [r3, #0]
  19259. 80084e4: 69ba ldr r2, [r7, #24]
  19260. 80084e6: 601a str r2, [r3, #0]
  19261. /* Disable wave generation */
  19262. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  19263. 80084e8: 68fb ldr r3, [r7, #12]
  19264. 80084ea: 681b ldr r3, [r3, #0]
  19265. 80084ec: 6819 ldr r1, [r3, #0]
  19266. 80084ee: 687b ldr r3, [r7, #4]
  19267. 80084f0: f003 0310 and.w r3, r3, #16
  19268. 80084f4: 22c0 movs r2, #192 @ 0xc0
  19269. 80084f6: fa02 f303 lsl.w r3, r2, r3
  19270. 80084fa: 43da mvns r2, r3
  19271. 80084fc: 68fb ldr r3, [r7, #12]
  19272. 80084fe: 681b ldr r3, [r3, #0]
  19273. 8008500: 400a ands r2, r1
  19274. 8008502: 601a str r2, [r3, #0]
  19275. /* Change DAC state */
  19276. hdac->State = HAL_DAC_STATE_READY;
  19277. 8008504: 68fb ldr r3, [r7, #12]
  19278. 8008506: 2201 movs r2, #1
  19279. 8008508: 711a strb r2, [r3, #4]
  19280. /* Process unlocked */
  19281. __HAL_UNLOCK(hdac);
  19282. 800850a: 68fb ldr r3, [r7, #12]
  19283. 800850c: 2200 movs r2, #0
  19284. 800850e: 715a strb r2, [r3, #5]
  19285. /* Return function status */
  19286. return status;
  19287. 8008510: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  19288. }
  19289. 8008514: 4618 mov r0, r3
  19290. 8008516: 3728 adds r7, #40 @ 0x28
  19291. 8008518: 46bd mov sp, r7
  19292. 800851a: bd80 pop {r7, pc}
  19293. 800851c: 20008000 .word 0x20008000
  19294. 08008520 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  19295. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  19296. * the configuration information for the specified DAC.
  19297. * @retval None
  19298. */
  19299. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  19300. {
  19301. 8008520: b480 push {r7}
  19302. 8008522: b083 sub sp, #12
  19303. 8008524: af00 add r7, sp, #0
  19304. 8008526: 6078 str r0, [r7, #4]
  19305. UNUSED(hdac);
  19306. /* NOTE : This function should not be modified, when the callback is needed,
  19307. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  19308. */
  19309. }
  19310. 8008528: bf00 nop
  19311. 800852a: 370c adds r7, #12
  19312. 800852c: 46bd mov sp, r7
  19313. 800852e: f85d 7b04 ldr.w r7, [sp], #4
  19314. 8008532: 4770 bx lr
  19315. 08008534 <HAL_DMA_Init>:
  19316. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  19317. * the configuration information for the specified DMA Stream.
  19318. * @retval HAL status
  19319. */
  19320. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  19321. {
  19322. 8008534: b580 push {r7, lr}
  19323. 8008536: b086 sub sp, #24
  19324. 8008538: af00 add r7, sp, #0
  19325. 800853a: 6078 str r0, [r7, #4]
  19326. uint32_t registerValue;
  19327. uint32_t tickstart = HAL_GetTick();
  19328. 800853c: f7fd fc5e bl 8005dfc <HAL_GetTick>
  19329. 8008540: 6138 str r0, [r7, #16]
  19330. DMA_Base_Registers *regs_dma;
  19331. BDMA_Base_Registers *regs_bdma;
  19332. /* Check the DMA peripheral handle */
  19333. if(hdma == NULL)
  19334. 8008542: 687b ldr r3, [r7, #4]
  19335. 8008544: 2b00 cmp r3, #0
  19336. 8008546: d101 bne.n 800854c <HAL_DMA_Init+0x18>
  19337. {
  19338. return HAL_ERROR;
  19339. 8008548: 2301 movs r3, #1
  19340. 800854a: e316 b.n 8008b7a <HAL_DMA_Init+0x646>
  19341. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  19342. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  19343. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  19344. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  19345. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19346. 800854c: 687b ldr r3, [r7, #4]
  19347. 800854e: 681b ldr r3, [r3, #0]
  19348. 8008550: 4a66 ldr r2, [pc, #408] @ (80086ec <HAL_DMA_Init+0x1b8>)
  19349. 8008552: 4293 cmp r3, r2
  19350. 8008554: d04a beq.n 80085ec <HAL_DMA_Init+0xb8>
  19351. 8008556: 687b ldr r3, [r7, #4]
  19352. 8008558: 681b ldr r3, [r3, #0]
  19353. 800855a: 4a65 ldr r2, [pc, #404] @ (80086f0 <HAL_DMA_Init+0x1bc>)
  19354. 800855c: 4293 cmp r3, r2
  19355. 800855e: d045 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19356. 8008560: 687b ldr r3, [r7, #4]
  19357. 8008562: 681b ldr r3, [r3, #0]
  19358. 8008564: 4a63 ldr r2, [pc, #396] @ (80086f4 <HAL_DMA_Init+0x1c0>)
  19359. 8008566: 4293 cmp r3, r2
  19360. 8008568: d040 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19361. 800856a: 687b ldr r3, [r7, #4]
  19362. 800856c: 681b ldr r3, [r3, #0]
  19363. 800856e: 4a62 ldr r2, [pc, #392] @ (80086f8 <HAL_DMA_Init+0x1c4>)
  19364. 8008570: 4293 cmp r3, r2
  19365. 8008572: d03b beq.n 80085ec <HAL_DMA_Init+0xb8>
  19366. 8008574: 687b ldr r3, [r7, #4]
  19367. 8008576: 681b ldr r3, [r3, #0]
  19368. 8008578: 4a60 ldr r2, [pc, #384] @ (80086fc <HAL_DMA_Init+0x1c8>)
  19369. 800857a: 4293 cmp r3, r2
  19370. 800857c: d036 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19371. 800857e: 687b ldr r3, [r7, #4]
  19372. 8008580: 681b ldr r3, [r3, #0]
  19373. 8008582: 4a5f ldr r2, [pc, #380] @ (8008700 <HAL_DMA_Init+0x1cc>)
  19374. 8008584: 4293 cmp r3, r2
  19375. 8008586: d031 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19376. 8008588: 687b ldr r3, [r7, #4]
  19377. 800858a: 681b ldr r3, [r3, #0]
  19378. 800858c: 4a5d ldr r2, [pc, #372] @ (8008704 <HAL_DMA_Init+0x1d0>)
  19379. 800858e: 4293 cmp r3, r2
  19380. 8008590: d02c beq.n 80085ec <HAL_DMA_Init+0xb8>
  19381. 8008592: 687b ldr r3, [r7, #4]
  19382. 8008594: 681b ldr r3, [r3, #0]
  19383. 8008596: 4a5c ldr r2, [pc, #368] @ (8008708 <HAL_DMA_Init+0x1d4>)
  19384. 8008598: 4293 cmp r3, r2
  19385. 800859a: d027 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19386. 800859c: 687b ldr r3, [r7, #4]
  19387. 800859e: 681b ldr r3, [r3, #0]
  19388. 80085a0: 4a5a ldr r2, [pc, #360] @ (800870c <HAL_DMA_Init+0x1d8>)
  19389. 80085a2: 4293 cmp r3, r2
  19390. 80085a4: d022 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19391. 80085a6: 687b ldr r3, [r7, #4]
  19392. 80085a8: 681b ldr r3, [r3, #0]
  19393. 80085aa: 4a59 ldr r2, [pc, #356] @ (8008710 <HAL_DMA_Init+0x1dc>)
  19394. 80085ac: 4293 cmp r3, r2
  19395. 80085ae: d01d beq.n 80085ec <HAL_DMA_Init+0xb8>
  19396. 80085b0: 687b ldr r3, [r7, #4]
  19397. 80085b2: 681b ldr r3, [r3, #0]
  19398. 80085b4: 4a57 ldr r2, [pc, #348] @ (8008714 <HAL_DMA_Init+0x1e0>)
  19399. 80085b6: 4293 cmp r3, r2
  19400. 80085b8: d018 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19401. 80085ba: 687b ldr r3, [r7, #4]
  19402. 80085bc: 681b ldr r3, [r3, #0]
  19403. 80085be: 4a56 ldr r2, [pc, #344] @ (8008718 <HAL_DMA_Init+0x1e4>)
  19404. 80085c0: 4293 cmp r3, r2
  19405. 80085c2: d013 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19406. 80085c4: 687b ldr r3, [r7, #4]
  19407. 80085c6: 681b ldr r3, [r3, #0]
  19408. 80085c8: 4a54 ldr r2, [pc, #336] @ (800871c <HAL_DMA_Init+0x1e8>)
  19409. 80085ca: 4293 cmp r3, r2
  19410. 80085cc: d00e beq.n 80085ec <HAL_DMA_Init+0xb8>
  19411. 80085ce: 687b ldr r3, [r7, #4]
  19412. 80085d0: 681b ldr r3, [r3, #0]
  19413. 80085d2: 4a53 ldr r2, [pc, #332] @ (8008720 <HAL_DMA_Init+0x1ec>)
  19414. 80085d4: 4293 cmp r3, r2
  19415. 80085d6: d009 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19416. 80085d8: 687b ldr r3, [r7, #4]
  19417. 80085da: 681b ldr r3, [r3, #0]
  19418. 80085dc: 4a51 ldr r2, [pc, #324] @ (8008724 <HAL_DMA_Init+0x1f0>)
  19419. 80085de: 4293 cmp r3, r2
  19420. 80085e0: d004 beq.n 80085ec <HAL_DMA_Init+0xb8>
  19421. 80085e2: 687b ldr r3, [r7, #4]
  19422. 80085e4: 681b ldr r3, [r3, #0]
  19423. 80085e6: 4a50 ldr r2, [pc, #320] @ (8008728 <HAL_DMA_Init+0x1f4>)
  19424. 80085e8: 4293 cmp r3, r2
  19425. 80085ea: d101 bne.n 80085f0 <HAL_DMA_Init+0xbc>
  19426. 80085ec: 2301 movs r3, #1
  19427. 80085ee: e000 b.n 80085f2 <HAL_DMA_Init+0xbe>
  19428. 80085f0: 2300 movs r3, #0
  19429. 80085f2: 2b00 cmp r3, #0
  19430. 80085f4: f000 813b beq.w 800886e <HAL_DMA_Init+0x33a>
  19431. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  19432. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  19433. }
  19434. /* Change DMA peripheral state */
  19435. hdma->State = HAL_DMA_STATE_BUSY;
  19436. 80085f8: 687b ldr r3, [r7, #4]
  19437. 80085fa: 2202 movs r2, #2
  19438. 80085fc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19439. /* Allocate lock resource */
  19440. __HAL_UNLOCK(hdma);
  19441. 8008600: 687b ldr r3, [r7, #4]
  19442. 8008602: 2200 movs r2, #0
  19443. 8008604: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19444. /* Disable the peripheral */
  19445. __HAL_DMA_DISABLE(hdma);
  19446. 8008608: 687b ldr r3, [r7, #4]
  19447. 800860a: 681b ldr r3, [r3, #0]
  19448. 800860c: 4a37 ldr r2, [pc, #220] @ (80086ec <HAL_DMA_Init+0x1b8>)
  19449. 800860e: 4293 cmp r3, r2
  19450. 8008610: d04a beq.n 80086a8 <HAL_DMA_Init+0x174>
  19451. 8008612: 687b ldr r3, [r7, #4]
  19452. 8008614: 681b ldr r3, [r3, #0]
  19453. 8008616: 4a36 ldr r2, [pc, #216] @ (80086f0 <HAL_DMA_Init+0x1bc>)
  19454. 8008618: 4293 cmp r3, r2
  19455. 800861a: d045 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19456. 800861c: 687b ldr r3, [r7, #4]
  19457. 800861e: 681b ldr r3, [r3, #0]
  19458. 8008620: 4a34 ldr r2, [pc, #208] @ (80086f4 <HAL_DMA_Init+0x1c0>)
  19459. 8008622: 4293 cmp r3, r2
  19460. 8008624: d040 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19461. 8008626: 687b ldr r3, [r7, #4]
  19462. 8008628: 681b ldr r3, [r3, #0]
  19463. 800862a: 4a33 ldr r2, [pc, #204] @ (80086f8 <HAL_DMA_Init+0x1c4>)
  19464. 800862c: 4293 cmp r3, r2
  19465. 800862e: d03b beq.n 80086a8 <HAL_DMA_Init+0x174>
  19466. 8008630: 687b ldr r3, [r7, #4]
  19467. 8008632: 681b ldr r3, [r3, #0]
  19468. 8008634: 4a31 ldr r2, [pc, #196] @ (80086fc <HAL_DMA_Init+0x1c8>)
  19469. 8008636: 4293 cmp r3, r2
  19470. 8008638: d036 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19471. 800863a: 687b ldr r3, [r7, #4]
  19472. 800863c: 681b ldr r3, [r3, #0]
  19473. 800863e: 4a30 ldr r2, [pc, #192] @ (8008700 <HAL_DMA_Init+0x1cc>)
  19474. 8008640: 4293 cmp r3, r2
  19475. 8008642: d031 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19476. 8008644: 687b ldr r3, [r7, #4]
  19477. 8008646: 681b ldr r3, [r3, #0]
  19478. 8008648: 4a2e ldr r2, [pc, #184] @ (8008704 <HAL_DMA_Init+0x1d0>)
  19479. 800864a: 4293 cmp r3, r2
  19480. 800864c: d02c beq.n 80086a8 <HAL_DMA_Init+0x174>
  19481. 800864e: 687b ldr r3, [r7, #4]
  19482. 8008650: 681b ldr r3, [r3, #0]
  19483. 8008652: 4a2d ldr r2, [pc, #180] @ (8008708 <HAL_DMA_Init+0x1d4>)
  19484. 8008654: 4293 cmp r3, r2
  19485. 8008656: d027 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19486. 8008658: 687b ldr r3, [r7, #4]
  19487. 800865a: 681b ldr r3, [r3, #0]
  19488. 800865c: 4a2b ldr r2, [pc, #172] @ (800870c <HAL_DMA_Init+0x1d8>)
  19489. 800865e: 4293 cmp r3, r2
  19490. 8008660: d022 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19491. 8008662: 687b ldr r3, [r7, #4]
  19492. 8008664: 681b ldr r3, [r3, #0]
  19493. 8008666: 4a2a ldr r2, [pc, #168] @ (8008710 <HAL_DMA_Init+0x1dc>)
  19494. 8008668: 4293 cmp r3, r2
  19495. 800866a: d01d beq.n 80086a8 <HAL_DMA_Init+0x174>
  19496. 800866c: 687b ldr r3, [r7, #4]
  19497. 800866e: 681b ldr r3, [r3, #0]
  19498. 8008670: 4a28 ldr r2, [pc, #160] @ (8008714 <HAL_DMA_Init+0x1e0>)
  19499. 8008672: 4293 cmp r3, r2
  19500. 8008674: d018 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19501. 8008676: 687b ldr r3, [r7, #4]
  19502. 8008678: 681b ldr r3, [r3, #0]
  19503. 800867a: 4a27 ldr r2, [pc, #156] @ (8008718 <HAL_DMA_Init+0x1e4>)
  19504. 800867c: 4293 cmp r3, r2
  19505. 800867e: d013 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19506. 8008680: 687b ldr r3, [r7, #4]
  19507. 8008682: 681b ldr r3, [r3, #0]
  19508. 8008684: 4a25 ldr r2, [pc, #148] @ (800871c <HAL_DMA_Init+0x1e8>)
  19509. 8008686: 4293 cmp r3, r2
  19510. 8008688: d00e beq.n 80086a8 <HAL_DMA_Init+0x174>
  19511. 800868a: 687b ldr r3, [r7, #4]
  19512. 800868c: 681b ldr r3, [r3, #0]
  19513. 800868e: 4a24 ldr r2, [pc, #144] @ (8008720 <HAL_DMA_Init+0x1ec>)
  19514. 8008690: 4293 cmp r3, r2
  19515. 8008692: d009 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19516. 8008694: 687b ldr r3, [r7, #4]
  19517. 8008696: 681b ldr r3, [r3, #0]
  19518. 8008698: 4a22 ldr r2, [pc, #136] @ (8008724 <HAL_DMA_Init+0x1f0>)
  19519. 800869a: 4293 cmp r3, r2
  19520. 800869c: d004 beq.n 80086a8 <HAL_DMA_Init+0x174>
  19521. 800869e: 687b ldr r3, [r7, #4]
  19522. 80086a0: 681b ldr r3, [r3, #0]
  19523. 80086a2: 4a21 ldr r2, [pc, #132] @ (8008728 <HAL_DMA_Init+0x1f4>)
  19524. 80086a4: 4293 cmp r3, r2
  19525. 80086a6: d108 bne.n 80086ba <HAL_DMA_Init+0x186>
  19526. 80086a8: 687b ldr r3, [r7, #4]
  19527. 80086aa: 681b ldr r3, [r3, #0]
  19528. 80086ac: 681a ldr r2, [r3, #0]
  19529. 80086ae: 687b ldr r3, [r7, #4]
  19530. 80086b0: 681b ldr r3, [r3, #0]
  19531. 80086b2: f022 0201 bic.w r2, r2, #1
  19532. 80086b6: 601a str r2, [r3, #0]
  19533. 80086b8: e007 b.n 80086ca <HAL_DMA_Init+0x196>
  19534. 80086ba: 687b ldr r3, [r7, #4]
  19535. 80086bc: 681b ldr r3, [r3, #0]
  19536. 80086be: 681a ldr r2, [r3, #0]
  19537. 80086c0: 687b ldr r3, [r7, #4]
  19538. 80086c2: 681b ldr r3, [r3, #0]
  19539. 80086c4: f022 0201 bic.w r2, r2, #1
  19540. 80086c8: 601a str r2, [r3, #0]
  19541. /* Check if the DMA Stream is effectively disabled */
  19542. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19543. 80086ca: e02f b.n 800872c <HAL_DMA_Init+0x1f8>
  19544. {
  19545. /* Check for the Timeout */
  19546. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  19547. 80086cc: f7fd fb96 bl 8005dfc <HAL_GetTick>
  19548. 80086d0: 4602 mov r2, r0
  19549. 80086d2: 693b ldr r3, [r7, #16]
  19550. 80086d4: 1ad3 subs r3, r2, r3
  19551. 80086d6: 2b05 cmp r3, #5
  19552. 80086d8: d928 bls.n 800872c <HAL_DMA_Init+0x1f8>
  19553. {
  19554. /* Update error code */
  19555. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  19556. 80086da: 687b ldr r3, [r7, #4]
  19557. 80086dc: 2220 movs r2, #32
  19558. 80086de: 655a str r2, [r3, #84] @ 0x54
  19559. /* Change the DMA state */
  19560. hdma->State = HAL_DMA_STATE_ERROR;
  19561. 80086e0: 687b ldr r3, [r7, #4]
  19562. 80086e2: 2203 movs r2, #3
  19563. 80086e4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19564. return HAL_ERROR;
  19565. 80086e8: 2301 movs r3, #1
  19566. 80086ea: e246 b.n 8008b7a <HAL_DMA_Init+0x646>
  19567. 80086ec: 40020010 .word 0x40020010
  19568. 80086f0: 40020028 .word 0x40020028
  19569. 80086f4: 40020040 .word 0x40020040
  19570. 80086f8: 40020058 .word 0x40020058
  19571. 80086fc: 40020070 .word 0x40020070
  19572. 8008700: 40020088 .word 0x40020088
  19573. 8008704: 400200a0 .word 0x400200a0
  19574. 8008708: 400200b8 .word 0x400200b8
  19575. 800870c: 40020410 .word 0x40020410
  19576. 8008710: 40020428 .word 0x40020428
  19577. 8008714: 40020440 .word 0x40020440
  19578. 8008718: 40020458 .word 0x40020458
  19579. 800871c: 40020470 .word 0x40020470
  19580. 8008720: 40020488 .word 0x40020488
  19581. 8008724: 400204a0 .word 0x400204a0
  19582. 8008728: 400204b8 .word 0x400204b8
  19583. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19584. 800872c: 687b ldr r3, [r7, #4]
  19585. 800872e: 681b ldr r3, [r3, #0]
  19586. 8008730: 681b ldr r3, [r3, #0]
  19587. 8008732: f003 0301 and.w r3, r3, #1
  19588. 8008736: 2b00 cmp r3, #0
  19589. 8008738: d1c8 bne.n 80086cc <HAL_DMA_Init+0x198>
  19590. }
  19591. }
  19592. /* Get the CR register value */
  19593. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  19594. 800873a: 687b ldr r3, [r7, #4]
  19595. 800873c: 681b ldr r3, [r3, #0]
  19596. 800873e: 681b ldr r3, [r3, #0]
  19597. 8008740: 617b str r3, [r7, #20]
  19598. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  19599. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  19600. 8008742: 697a ldr r2, [r7, #20]
  19601. 8008744: 4b83 ldr r3, [pc, #524] @ (8008954 <HAL_DMA_Init+0x420>)
  19602. 8008746: 4013 ands r3, r2
  19603. 8008748: 617b str r3, [r7, #20]
  19604. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  19605. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  19606. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  19607. /* Prepare the DMA Stream configuration */
  19608. registerValue |= hdma->Init.Direction |
  19609. 800874a: 687b ldr r3, [r7, #4]
  19610. 800874c: 689a ldr r2, [r3, #8]
  19611. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19612. 800874e: 687b ldr r3, [r7, #4]
  19613. 8008750: 68db ldr r3, [r3, #12]
  19614. registerValue |= hdma->Init.Direction |
  19615. 8008752: 431a orrs r2, r3
  19616. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19617. 8008754: 687b ldr r3, [r7, #4]
  19618. 8008756: 691b ldr r3, [r3, #16]
  19619. 8008758: 431a orrs r2, r3
  19620. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19621. 800875a: 687b ldr r3, [r7, #4]
  19622. 800875c: 695b ldr r3, [r3, #20]
  19623. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19624. 800875e: 431a orrs r2, r3
  19625. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19626. 8008760: 687b ldr r3, [r7, #4]
  19627. 8008762: 699b ldr r3, [r3, #24]
  19628. 8008764: 431a orrs r2, r3
  19629. hdma->Init.Mode | hdma->Init.Priority;
  19630. 8008766: 687b ldr r3, [r7, #4]
  19631. 8008768: 69db ldr r3, [r3, #28]
  19632. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19633. 800876a: 431a orrs r2, r3
  19634. hdma->Init.Mode | hdma->Init.Priority;
  19635. 800876c: 687b ldr r3, [r7, #4]
  19636. 800876e: 6a1b ldr r3, [r3, #32]
  19637. 8008770: 4313 orrs r3, r2
  19638. registerValue |= hdma->Init.Direction |
  19639. 8008772: 697a ldr r2, [r7, #20]
  19640. 8008774: 4313 orrs r3, r2
  19641. 8008776: 617b str r3, [r7, #20]
  19642. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  19643. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19644. 8008778: 687b ldr r3, [r7, #4]
  19645. 800877a: 6a5b ldr r3, [r3, #36] @ 0x24
  19646. 800877c: 2b04 cmp r3, #4
  19647. 800877e: d107 bne.n 8008790 <HAL_DMA_Init+0x25c>
  19648. {
  19649. /* Get memory burst and peripheral burst */
  19650. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  19651. 8008780: 687b ldr r3, [r7, #4]
  19652. 8008782: 6ada ldr r2, [r3, #44] @ 0x2c
  19653. 8008784: 687b ldr r3, [r7, #4]
  19654. 8008786: 6b1b ldr r3, [r3, #48] @ 0x30
  19655. 8008788: 4313 orrs r3, r2
  19656. 800878a: 697a ldr r2, [r7, #20]
  19657. 800878c: 4313 orrs r3, r2
  19658. 800878e: 617b str r3, [r7, #20]
  19659. }
  19660. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  19661. lock when transferring data to/from USART/UART */
  19662. #if (STM32H7_DEV_ID == 0x450UL)
  19663. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  19664. 8008790: 4b71 ldr r3, [pc, #452] @ (8008958 <HAL_DMA_Init+0x424>)
  19665. 8008792: 681a ldr r2, [r3, #0]
  19666. 8008794: 4b71 ldr r3, [pc, #452] @ (800895c <HAL_DMA_Init+0x428>)
  19667. 8008796: 4013 ands r3, r2
  19668. 8008798: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  19669. 800879c: d328 bcc.n 80087f0 <HAL_DMA_Init+0x2bc>
  19670. {
  19671. #endif /* STM32H7_DEV_ID == 0x450UL */
  19672. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  19673. 800879e: 687b ldr r3, [r7, #4]
  19674. 80087a0: 685b ldr r3, [r3, #4]
  19675. 80087a2: 2b28 cmp r3, #40 @ 0x28
  19676. 80087a4: d903 bls.n 80087ae <HAL_DMA_Init+0x27a>
  19677. 80087a6: 687b ldr r3, [r7, #4]
  19678. 80087a8: 685b ldr r3, [r3, #4]
  19679. 80087aa: 2b2e cmp r3, #46 @ 0x2e
  19680. 80087ac: d917 bls.n 80087de <HAL_DMA_Init+0x2aa>
  19681. 80087ae: 687b ldr r3, [r7, #4]
  19682. 80087b0: 685b ldr r3, [r3, #4]
  19683. 80087b2: 2b3e cmp r3, #62 @ 0x3e
  19684. 80087b4: d903 bls.n 80087be <HAL_DMA_Init+0x28a>
  19685. 80087b6: 687b ldr r3, [r7, #4]
  19686. 80087b8: 685b ldr r3, [r3, #4]
  19687. 80087ba: 2b42 cmp r3, #66 @ 0x42
  19688. 80087bc: d90f bls.n 80087de <HAL_DMA_Init+0x2aa>
  19689. 80087be: 687b ldr r3, [r7, #4]
  19690. 80087c0: 685b ldr r3, [r3, #4]
  19691. 80087c2: 2b46 cmp r3, #70 @ 0x46
  19692. 80087c4: d903 bls.n 80087ce <HAL_DMA_Init+0x29a>
  19693. 80087c6: 687b ldr r3, [r7, #4]
  19694. 80087c8: 685b ldr r3, [r3, #4]
  19695. 80087ca: 2b48 cmp r3, #72 @ 0x48
  19696. 80087cc: d907 bls.n 80087de <HAL_DMA_Init+0x2aa>
  19697. 80087ce: 687b ldr r3, [r7, #4]
  19698. 80087d0: 685b ldr r3, [r3, #4]
  19699. 80087d2: 2b4e cmp r3, #78 @ 0x4e
  19700. 80087d4: d905 bls.n 80087e2 <HAL_DMA_Init+0x2ae>
  19701. 80087d6: 687b ldr r3, [r7, #4]
  19702. 80087d8: 685b ldr r3, [r3, #4]
  19703. 80087da: 2b52 cmp r3, #82 @ 0x52
  19704. 80087dc: d801 bhi.n 80087e2 <HAL_DMA_Init+0x2ae>
  19705. 80087de: 2301 movs r3, #1
  19706. 80087e0: e000 b.n 80087e4 <HAL_DMA_Init+0x2b0>
  19707. 80087e2: 2300 movs r3, #0
  19708. 80087e4: 2b00 cmp r3, #0
  19709. 80087e6: d003 beq.n 80087f0 <HAL_DMA_Init+0x2bc>
  19710. {
  19711. registerValue |= DMA_SxCR_TRBUFF;
  19712. 80087e8: 697b ldr r3, [r7, #20]
  19713. 80087ea: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  19714. 80087ee: 617b str r3, [r7, #20]
  19715. #if (STM32H7_DEV_ID == 0x450UL)
  19716. }
  19717. #endif /* STM32H7_DEV_ID == 0x450UL */
  19718. /* Write to DMA Stream CR register */
  19719. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  19720. 80087f0: 687b ldr r3, [r7, #4]
  19721. 80087f2: 681b ldr r3, [r3, #0]
  19722. 80087f4: 697a ldr r2, [r7, #20]
  19723. 80087f6: 601a str r2, [r3, #0]
  19724. /* Get the FCR register value */
  19725. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  19726. 80087f8: 687b ldr r3, [r7, #4]
  19727. 80087fa: 681b ldr r3, [r3, #0]
  19728. 80087fc: 695b ldr r3, [r3, #20]
  19729. 80087fe: 617b str r3, [r7, #20]
  19730. /* Clear Direct mode and FIFO threshold bits */
  19731. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  19732. 8008800: 697b ldr r3, [r7, #20]
  19733. 8008802: f023 0307 bic.w r3, r3, #7
  19734. 8008806: 617b str r3, [r7, #20]
  19735. /* Prepare the DMA Stream FIFO configuration */
  19736. registerValue |= hdma->Init.FIFOMode;
  19737. 8008808: 687b ldr r3, [r7, #4]
  19738. 800880a: 6a5b ldr r3, [r3, #36] @ 0x24
  19739. 800880c: 697a ldr r2, [r7, #20]
  19740. 800880e: 4313 orrs r3, r2
  19741. 8008810: 617b str r3, [r7, #20]
  19742. /* the FIFO threshold is not used when the FIFO mode is disabled */
  19743. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19744. 8008812: 687b ldr r3, [r7, #4]
  19745. 8008814: 6a5b ldr r3, [r3, #36] @ 0x24
  19746. 8008816: 2b04 cmp r3, #4
  19747. 8008818: d117 bne.n 800884a <HAL_DMA_Init+0x316>
  19748. {
  19749. /* Get the FIFO threshold */
  19750. registerValue |= hdma->Init.FIFOThreshold;
  19751. 800881a: 687b ldr r3, [r7, #4]
  19752. 800881c: 6a9b ldr r3, [r3, #40] @ 0x28
  19753. 800881e: 697a ldr r2, [r7, #20]
  19754. 8008820: 4313 orrs r3, r2
  19755. 8008822: 617b str r3, [r7, #20]
  19756. /* Check compatibility between FIFO threshold level and size of the memory burst */
  19757. /* for INCR4, INCR8, INCR16 */
  19758. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  19759. 8008824: 687b ldr r3, [r7, #4]
  19760. 8008826: 6adb ldr r3, [r3, #44] @ 0x2c
  19761. 8008828: 2b00 cmp r3, #0
  19762. 800882a: d00e beq.n 800884a <HAL_DMA_Init+0x316>
  19763. {
  19764. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  19765. 800882c: 6878 ldr r0, [r7, #4]
  19766. 800882e: f002 fb33 bl 800ae98 <DMA_CheckFifoParam>
  19767. 8008832: 4603 mov r3, r0
  19768. 8008834: 2b00 cmp r3, #0
  19769. 8008836: d008 beq.n 800884a <HAL_DMA_Init+0x316>
  19770. {
  19771. /* Update error code */
  19772. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19773. 8008838: 687b ldr r3, [r7, #4]
  19774. 800883a: 2240 movs r2, #64 @ 0x40
  19775. 800883c: 655a str r2, [r3, #84] @ 0x54
  19776. /* Change the DMA state */
  19777. hdma->State = HAL_DMA_STATE_READY;
  19778. 800883e: 687b ldr r3, [r7, #4]
  19779. 8008840: 2201 movs r2, #1
  19780. 8008842: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19781. return HAL_ERROR;
  19782. 8008846: 2301 movs r3, #1
  19783. 8008848: e197 b.n 8008b7a <HAL_DMA_Init+0x646>
  19784. }
  19785. }
  19786. }
  19787. /* Write to DMA Stream FCR */
  19788. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  19789. 800884a: 687b ldr r3, [r7, #4]
  19790. 800884c: 681b ldr r3, [r3, #0]
  19791. 800884e: 697a ldr r2, [r7, #20]
  19792. 8008850: 615a str r2, [r3, #20]
  19793. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19794. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19795. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19796. 8008852: 6878 ldr r0, [r7, #4]
  19797. 8008854: f002 fa6e bl 800ad34 <DMA_CalcBaseAndBitshift>
  19798. 8008858: 4603 mov r3, r0
  19799. 800885a: 60bb str r3, [r7, #8]
  19800. /* Clear all interrupt flags */
  19801. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  19802. 800885c: 687b ldr r3, [r7, #4]
  19803. 800885e: 6ddb ldr r3, [r3, #92] @ 0x5c
  19804. 8008860: f003 031f and.w r3, r3, #31
  19805. 8008864: 223f movs r2, #63 @ 0x3f
  19806. 8008866: 409a lsls r2, r3
  19807. 8008868: 68bb ldr r3, [r7, #8]
  19808. 800886a: 609a str r2, [r3, #8]
  19809. 800886c: e0cd b.n 8008a0a <HAL_DMA_Init+0x4d6>
  19810. }
  19811. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  19812. 800886e: 687b ldr r3, [r7, #4]
  19813. 8008870: 681b ldr r3, [r3, #0]
  19814. 8008872: 4a3b ldr r2, [pc, #236] @ (8008960 <HAL_DMA_Init+0x42c>)
  19815. 8008874: 4293 cmp r3, r2
  19816. 8008876: d022 beq.n 80088be <HAL_DMA_Init+0x38a>
  19817. 8008878: 687b ldr r3, [r7, #4]
  19818. 800887a: 681b ldr r3, [r3, #0]
  19819. 800887c: 4a39 ldr r2, [pc, #228] @ (8008964 <HAL_DMA_Init+0x430>)
  19820. 800887e: 4293 cmp r3, r2
  19821. 8008880: d01d beq.n 80088be <HAL_DMA_Init+0x38a>
  19822. 8008882: 687b ldr r3, [r7, #4]
  19823. 8008884: 681b ldr r3, [r3, #0]
  19824. 8008886: 4a38 ldr r2, [pc, #224] @ (8008968 <HAL_DMA_Init+0x434>)
  19825. 8008888: 4293 cmp r3, r2
  19826. 800888a: d018 beq.n 80088be <HAL_DMA_Init+0x38a>
  19827. 800888c: 687b ldr r3, [r7, #4]
  19828. 800888e: 681b ldr r3, [r3, #0]
  19829. 8008890: 4a36 ldr r2, [pc, #216] @ (800896c <HAL_DMA_Init+0x438>)
  19830. 8008892: 4293 cmp r3, r2
  19831. 8008894: d013 beq.n 80088be <HAL_DMA_Init+0x38a>
  19832. 8008896: 687b ldr r3, [r7, #4]
  19833. 8008898: 681b ldr r3, [r3, #0]
  19834. 800889a: 4a35 ldr r2, [pc, #212] @ (8008970 <HAL_DMA_Init+0x43c>)
  19835. 800889c: 4293 cmp r3, r2
  19836. 800889e: d00e beq.n 80088be <HAL_DMA_Init+0x38a>
  19837. 80088a0: 687b ldr r3, [r7, #4]
  19838. 80088a2: 681b ldr r3, [r3, #0]
  19839. 80088a4: 4a33 ldr r2, [pc, #204] @ (8008974 <HAL_DMA_Init+0x440>)
  19840. 80088a6: 4293 cmp r3, r2
  19841. 80088a8: d009 beq.n 80088be <HAL_DMA_Init+0x38a>
  19842. 80088aa: 687b ldr r3, [r7, #4]
  19843. 80088ac: 681b ldr r3, [r3, #0]
  19844. 80088ae: 4a32 ldr r2, [pc, #200] @ (8008978 <HAL_DMA_Init+0x444>)
  19845. 80088b0: 4293 cmp r3, r2
  19846. 80088b2: d004 beq.n 80088be <HAL_DMA_Init+0x38a>
  19847. 80088b4: 687b ldr r3, [r7, #4]
  19848. 80088b6: 681b ldr r3, [r3, #0]
  19849. 80088b8: 4a30 ldr r2, [pc, #192] @ (800897c <HAL_DMA_Init+0x448>)
  19850. 80088ba: 4293 cmp r3, r2
  19851. 80088bc: d101 bne.n 80088c2 <HAL_DMA_Init+0x38e>
  19852. 80088be: 2301 movs r3, #1
  19853. 80088c0: e000 b.n 80088c4 <HAL_DMA_Init+0x390>
  19854. 80088c2: 2300 movs r3, #0
  19855. 80088c4: 2b00 cmp r3, #0
  19856. 80088c6: f000 8097 beq.w 80089f8 <HAL_DMA_Init+0x4c4>
  19857. {
  19858. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  19859. 80088ca: 687b ldr r3, [r7, #4]
  19860. 80088cc: 681b ldr r3, [r3, #0]
  19861. 80088ce: 4a24 ldr r2, [pc, #144] @ (8008960 <HAL_DMA_Init+0x42c>)
  19862. 80088d0: 4293 cmp r3, r2
  19863. 80088d2: d021 beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19864. 80088d4: 687b ldr r3, [r7, #4]
  19865. 80088d6: 681b ldr r3, [r3, #0]
  19866. 80088d8: 4a22 ldr r2, [pc, #136] @ (8008964 <HAL_DMA_Init+0x430>)
  19867. 80088da: 4293 cmp r3, r2
  19868. 80088dc: d01c beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19869. 80088de: 687b ldr r3, [r7, #4]
  19870. 80088e0: 681b ldr r3, [r3, #0]
  19871. 80088e2: 4a21 ldr r2, [pc, #132] @ (8008968 <HAL_DMA_Init+0x434>)
  19872. 80088e4: 4293 cmp r3, r2
  19873. 80088e6: d017 beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19874. 80088e8: 687b ldr r3, [r7, #4]
  19875. 80088ea: 681b ldr r3, [r3, #0]
  19876. 80088ec: 4a1f ldr r2, [pc, #124] @ (800896c <HAL_DMA_Init+0x438>)
  19877. 80088ee: 4293 cmp r3, r2
  19878. 80088f0: d012 beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19879. 80088f2: 687b ldr r3, [r7, #4]
  19880. 80088f4: 681b ldr r3, [r3, #0]
  19881. 80088f6: 4a1e ldr r2, [pc, #120] @ (8008970 <HAL_DMA_Init+0x43c>)
  19882. 80088f8: 4293 cmp r3, r2
  19883. 80088fa: d00d beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19884. 80088fc: 687b ldr r3, [r7, #4]
  19885. 80088fe: 681b ldr r3, [r3, #0]
  19886. 8008900: 4a1c ldr r2, [pc, #112] @ (8008974 <HAL_DMA_Init+0x440>)
  19887. 8008902: 4293 cmp r3, r2
  19888. 8008904: d008 beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19889. 8008906: 687b ldr r3, [r7, #4]
  19890. 8008908: 681b ldr r3, [r3, #0]
  19891. 800890a: 4a1b ldr r2, [pc, #108] @ (8008978 <HAL_DMA_Init+0x444>)
  19892. 800890c: 4293 cmp r3, r2
  19893. 800890e: d003 beq.n 8008918 <HAL_DMA_Init+0x3e4>
  19894. 8008910: 687b ldr r3, [r7, #4]
  19895. 8008912: 681b ldr r3, [r3, #0]
  19896. 8008914: 4a19 ldr r2, [pc, #100] @ (800897c <HAL_DMA_Init+0x448>)
  19897. 8008916: 4293 cmp r3, r2
  19898. /* Check the request parameter */
  19899. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  19900. }
  19901. /* Change DMA peripheral state */
  19902. hdma->State = HAL_DMA_STATE_BUSY;
  19903. 8008918: 687b ldr r3, [r7, #4]
  19904. 800891a: 2202 movs r2, #2
  19905. 800891c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19906. /* Allocate lock resource */
  19907. __HAL_UNLOCK(hdma);
  19908. 8008920: 687b ldr r3, [r7, #4]
  19909. 8008922: 2200 movs r2, #0
  19910. 8008924: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19911. /* Get the CR register value */
  19912. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  19913. 8008928: 687b ldr r3, [r7, #4]
  19914. 800892a: 681b ldr r3, [r3, #0]
  19915. 800892c: 681b ldr r3, [r3, #0]
  19916. 800892e: 617b str r3, [r7, #20]
  19917. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  19918. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  19919. 8008930: 697a ldr r2, [r7, #20]
  19920. 8008932: 4b13 ldr r3, [pc, #76] @ (8008980 <HAL_DMA_Init+0x44c>)
  19921. 8008934: 4013 ands r3, r2
  19922. 8008936: 617b str r3, [r7, #20]
  19923. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  19924. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  19925. BDMA_CCR_CT));
  19926. /* Prepare the DMA Channel configuration */
  19927. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19928. 8008938: 687b ldr r3, [r7, #4]
  19929. 800893a: 689b ldr r3, [r3, #8]
  19930. 800893c: 2b40 cmp r3, #64 @ 0x40
  19931. 800893e: d021 beq.n 8008984 <HAL_DMA_Init+0x450>
  19932. 8008940: 687b ldr r3, [r7, #4]
  19933. 8008942: 689b ldr r3, [r3, #8]
  19934. 8008944: 2b80 cmp r3, #128 @ 0x80
  19935. 8008946: d102 bne.n 800894e <HAL_DMA_Init+0x41a>
  19936. 8008948: f44f 4380 mov.w r3, #16384 @ 0x4000
  19937. 800894c: e01b b.n 8008986 <HAL_DMA_Init+0x452>
  19938. 800894e: 2300 movs r3, #0
  19939. 8008950: e019 b.n 8008986 <HAL_DMA_Init+0x452>
  19940. 8008952: bf00 nop
  19941. 8008954: fe10803f .word 0xfe10803f
  19942. 8008958: 5c001000 .word 0x5c001000
  19943. 800895c: ffff0000 .word 0xffff0000
  19944. 8008960: 58025408 .word 0x58025408
  19945. 8008964: 5802541c .word 0x5802541c
  19946. 8008968: 58025430 .word 0x58025430
  19947. 800896c: 58025444 .word 0x58025444
  19948. 8008970: 58025458 .word 0x58025458
  19949. 8008974: 5802546c .word 0x5802546c
  19950. 8008978: 58025480 .word 0x58025480
  19951. 800897c: 58025494 .word 0x58025494
  19952. 8008980: fffe000f .word 0xfffe000f
  19953. 8008984: 2310 movs r3, #16
  19954. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19955. 8008986: 687a ldr r2, [r7, #4]
  19956. 8008988: 68d2 ldr r2, [r2, #12]
  19957. 800898a: 08d2 lsrs r2, r2, #3
  19958. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19959. 800898c: 431a orrs r2, r3
  19960. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19961. 800898e: 687b ldr r3, [r7, #4]
  19962. 8008990: 691b ldr r3, [r3, #16]
  19963. 8008992: 08db lsrs r3, r3, #3
  19964. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19965. 8008994: 431a orrs r2, r3
  19966. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19967. 8008996: 687b ldr r3, [r7, #4]
  19968. 8008998: 695b ldr r3, [r3, #20]
  19969. 800899a: 08db lsrs r3, r3, #3
  19970. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19971. 800899c: 431a orrs r2, r3
  19972. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19973. 800899e: 687b ldr r3, [r7, #4]
  19974. 80089a0: 699b ldr r3, [r3, #24]
  19975. 80089a2: 08db lsrs r3, r3, #3
  19976. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19977. 80089a4: 431a orrs r2, r3
  19978. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19979. 80089a6: 687b ldr r3, [r7, #4]
  19980. 80089a8: 69db ldr r3, [r3, #28]
  19981. 80089aa: 08db lsrs r3, r3, #3
  19982. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19983. 80089ac: 431a orrs r2, r3
  19984. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  19985. 80089ae: 687b ldr r3, [r7, #4]
  19986. 80089b0: 6a1b ldr r3, [r3, #32]
  19987. 80089b2: 091b lsrs r3, r3, #4
  19988. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19989. 80089b4: 4313 orrs r3, r2
  19990. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19991. 80089b6: 697a ldr r2, [r7, #20]
  19992. 80089b8: 4313 orrs r3, r2
  19993. 80089ba: 617b str r3, [r7, #20]
  19994. /* Write to DMA Channel CR register */
  19995. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  19996. 80089bc: 687b ldr r3, [r7, #4]
  19997. 80089be: 681b ldr r3, [r3, #0]
  19998. 80089c0: 697a ldr r2, [r7, #20]
  19999. 80089c2: 601a str r2, [r3, #0]
  20000. /* calculation of the channel index */
  20001. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  20002. 80089c4: 687b ldr r3, [r7, #4]
  20003. 80089c6: 681b ldr r3, [r3, #0]
  20004. 80089c8: 461a mov r2, r3
  20005. 80089ca: 4b6e ldr r3, [pc, #440] @ (8008b84 <HAL_DMA_Init+0x650>)
  20006. 80089cc: 4413 add r3, r2
  20007. 80089ce: 4a6e ldr r2, [pc, #440] @ (8008b88 <HAL_DMA_Init+0x654>)
  20008. 80089d0: fba2 2303 umull r2, r3, r2, r3
  20009. 80089d4: 091b lsrs r3, r3, #4
  20010. 80089d6: 009a lsls r2, r3, #2
  20011. 80089d8: 687b ldr r3, [r7, #4]
  20012. 80089da: 65da str r2, [r3, #92] @ 0x5c
  20013. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  20014. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  20015. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  20016. 80089dc: 6878 ldr r0, [r7, #4]
  20017. 80089de: f002 f9a9 bl 800ad34 <DMA_CalcBaseAndBitshift>
  20018. 80089e2: 4603 mov r3, r0
  20019. 80089e4: 60fb str r3, [r7, #12]
  20020. /* Clear all interrupt flags */
  20021. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20022. 80089e6: 687b ldr r3, [r7, #4]
  20023. 80089e8: 6ddb ldr r3, [r3, #92] @ 0x5c
  20024. 80089ea: f003 031f and.w r3, r3, #31
  20025. 80089ee: 2201 movs r2, #1
  20026. 80089f0: 409a lsls r2, r3
  20027. 80089f2: 68fb ldr r3, [r7, #12]
  20028. 80089f4: 605a str r2, [r3, #4]
  20029. 80089f6: e008 b.n 8008a0a <HAL_DMA_Init+0x4d6>
  20030. }
  20031. else
  20032. {
  20033. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  20034. 80089f8: 687b ldr r3, [r7, #4]
  20035. 80089fa: 2240 movs r2, #64 @ 0x40
  20036. 80089fc: 655a str r2, [r3, #84] @ 0x54
  20037. hdma->State = HAL_DMA_STATE_ERROR;
  20038. 80089fe: 687b ldr r3, [r7, #4]
  20039. 8008a00: 2203 movs r2, #3
  20040. 8008a02: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20041. return HAL_ERROR;
  20042. 8008a06: 2301 movs r3, #1
  20043. 8008a08: e0b7 b.n 8008b7a <HAL_DMA_Init+0x646>
  20044. }
  20045. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20046. 8008a0a: 687b ldr r3, [r7, #4]
  20047. 8008a0c: 681b ldr r3, [r3, #0]
  20048. 8008a0e: 4a5f ldr r2, [pc, #380] @ (8008b8c <HAL_DMA_Init+0x658>)
  20049. 8008a10: 4293 cmp r3, r2
  20050. 8008a12: d072 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20051. 8008a14: 687b ldr r3, [r7, #4]
  20052. 8008a16: 681b ldr r3, [r3, #0]
  20053. 8008a18: 4a5d ldr r2, [pc, #372] @ (8008b90 <HAL_DMA_Init+0x65c>)
  20054. 8008a1a: 4293 cmp r3, r2
  20055. 8008a1c: d06d beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20056. 8008a1e: 687b ldr r3, [r7, #4]
  20057. 8008a20: 681b ldr r3, [r3, #0]
  20058. 8008a22: 4a5c ldr r2, [pc, #368] @ (8008b94 <HAL_DMA_Init+0x660>)
  20059. 8008a24: 4293 cmp r3, r2
  20060. 8008a26: d068 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20061. 8008a28: 687b ldr r3, [r7, #4]
  20062. 8008a2a: 681b ldr r3, [r3, #0]
  20063. 8008a2c: 4a5a ldr r2, [pc, #360] @ (8008b98 <HAL_DMA_Init+0x664>)
  20064. 8008a2e: 4293 cmp r3, r2
  20065. 8008a30: d063 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20066. 8008a32: 687b ldr r3, [r7, #4]
  20067. 8008a34: 681b ldr r3, [r3, #0]
  20068. 8008a36: 4a59 ldr r2, [pc, #356] @ (8008b9c <HAL_DMA_Init+0x668>)
  20069. 8008a38: 4293 cmp r3, r2
  20070. 8008a3a: d05e beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20071. 8008a3c: 687b ldr r3, [r7, #4]
  20072. 8008a3e: 681b ldr r3, [r3, #0]
  20073. 8008a40: 4a57 ldr r2, [pc, #348] @ (8008ba0 <HAL_DMA_Init+0x66c>)
  20074. 8008a42: 4293 cmp r3, r2
  20075. 8008a44: d059 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20076. 8008a46: 687b ldr r3, [r7, #4]
  20077. 8008a48: 681b ldr r3, [r3, #0]
  20078. 8008a4a: 4a56 ldr r2, [pc, #344] @ (8008ba4 <HAL_DMA_Init+0x670>)
  20079. 8008a4c: 4293 cmp r3, r2
  20080. 8008a4e: d054 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20081. 8008a50: 687b ldr r3, [r7, #4]
  20082. 8008a52: 681b ldr r3, [r3, #0]
  20083. 8008a54: 4a54 ldr r2, [pc, #336] @ (8008ba8 <HAL_DMA_Init+0x674>)
  20084. 8008a56: 4293 cmp r3, r2
  20085. 8008a58: d04f beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20086. 8008a5a: 687b ldr r3, [r7, #4]
  20087. 8008a5c: 681b ldr r3, [r3, #0]
  20088. 8008a5e: 4a53 ldr r2, [pc, #332] @ (8008bac <HAL_DMA_Init+0x678>)
  20089. 8008a60: 4293 cmp r3, r2
  20090. 8008a62: d04a beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20091. 8008a64: 687b ldr r3, [r7, #4]
  20092. 8008a66: 681b ldr r3, [r3, #0]
  20093. 8008a68: 4a51 ldr r2, [pc, #324] @ (8008bb0 <HAL_DMA_Init+0x67c>)
  20094. 8008a6a: 4293 cmp r3, r2
  20095. 8008a6c: d045 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20096. 8008a6e: 687b ldr r3, [r7, #4]
  20097. 8008a70: 681b ldr r3, [r3, #0]
  20098. 8008a72: 4a50 ldr r2, [pc, #320] @ (8008bb4 <HAL_DMA_Init+0x680>)
  20099. 8008a74: 4293 cmp r3, r2
  20100. 8008a76: d040 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20101. 8008a78: 687b ldr r3, [r7, #4]
  20102. 8008a7a: 681b ldr r3, [r3, #0]
  20103. 8008a7c: 4a4e ldr r2, [pc, #312] @ (8008bb8 <HAL_DMA_Init+0x684>)
  20104. 8008a7e: 4293 cmp r3, r2
  20105. 8008a80: d03b beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20106. 8008a82: 687b ldr r3, [r7, #4]
  20107. 8008a84: 681b ldr r3, [r3, #0]
  20108. 8008a86: 4a4d ldr r2, [pc, #308] @ (8008bbc <HAL_DMA_Init+0x688>)
  20109. 8008a88: 4293 cmp r3, r2
  20110. 8008a8a: d036 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20111. 8008a8c: 687b ldr r3, [r7, #4]
  20112. 8008a8e: 681b ldr r3, [r3, #0]
  20113. 8008a90: 4a4b ldr r2, [pc, #300] @ (8008bc0 <HAL_DMA_Init+0x68c>)
  20114. 8008a92: 4293 cmp r3, r2
  20115. 8008a94: d031 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20116. 8008a96: 687b ldr r3, [r7, #4]
  20117. 8008a98: 681b ldr r3, [r3, #0]
  20118. 8008a9a: 4a4a ldr r2, [pc, #296] @ (8008bc4 <HAL_DMA_Init+0x690>)
  20119. 8008a9c: 4293 cmp r3, r2
  20120. 8008a9e: d02c beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20121. 8008aa0: 687b ldr r3, [r7, #4]
  20122. 8008aa2: 681b ldr r3, [r3, #0]
  20123. 8008aa4: 4a48 ldr r2, [pc, #288] @ (8008bc8 <HAL_DMA_Init+0x694>)
  20124. 8008aa6: 4293 cmp r3, r2
  20125. 8008aa8: d027 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20126. 8008aaa: 687b ldr r3, [r7, #4]
  20127. 8008aac: 681b ldr r3, [r3, #0]
  20128. 8008aae: 4a47 ldr r2, [pc, #284] @ (8008bcc <HAL_DMA_Init+0x698>)
  20129. 8008ab0: 4293 cmp r3, r2
  20130. 8008ab2: d022 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20131. 8008ab4: 687b ldr r3, [r7, #4]
  20132. 8008ab6: 681b ldr r3, [r3, #0]
  20133. 8008ab8: 4a45 ldr r2, [pc, #276] @ (8008bd0 <HAL_DMA_Init+0x69c>)
  20134. 8008aba: 4293 cmp r3, r2
  20135. 8008abc: d01d beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20136. 8008abe: 687b ldr r3, [r7, #4]
  20137. 8008ac0: 681b ldr r3, [r3, #0]
  20138. 8008ac2: 4a44 ldr r2, [pc, #272] @ (8008bd4 <HAL_DMA_Init+0x6a0>)
  20139. 8008ac4: 4293 cmp r3, r2
  20140. 8008ac6: d018 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20141. 8008ac8: 687b ldr r3, [r7, #4]
  20142. 8008aca: 681b ldr r3, [r3, #0]
  20143. 8008acc: 4a42 ldr r2, [pc, #264] @ (8008bd8 <HAL_DMA_Init+0x6a4>)
  20144. 8008ace: 4293 cmp r3, r2
  20145. 8008ad0: d013 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20146. 8008ad2: 687b ldr r3, [r7, #4]
  20147. 8008ad4: 681b ldr r3, [r3, #0]
  20148. 8008ad6: 4a41 ldr r2, [pc, #260] @ (8008bdc <HAL_DMA_Init+0x6a8>)
  20149. 8008ad8: 4293 cmp r3, r2
  20150. 8008ada: d00e beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20151. 8008adc: 687b ldr r3, [r7, #4]
  20152. 8008ade: 681b ldr r3, [r3, #0]
  20153. 8008ae0: 4a3f ldr r2, [pc, #252] @ (8008be0 <HAL_DMA_Init+0x6ac>)
  20154. 8008ae2: 4293 cmp r3, r2
  20155. 8008ae4: d009 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20156. 8008ae6: 687b ldr r3, [r7, #4]
  20157. 8008ae8: 681b ldr r3, [r3, #0]
  20158. 8008aea: 4a3e ldr r2, [pc, #248] @ (8008be4 <HAL_DMA_Init+0x6b0>)
  20159. 8008aec: 4293 cmp r3, r2
  20160. 8008aee: d004 beq.n 8008afa <HAL_DMA_Init+0x5c6>
  20161. 8008af0: 687b ldr r3, [r7, #4]
  20162. 8008af2: 681b ldr r3, [r3, #0]
  20163. 8008af4: 4a3c ldr r2, [pc, #240] @ (8008be8 <HAL_DMA_Init+0x6b4>)
  20164. 8008af6: 4293 cmp r3, r2
  20165. 8008af8: d101 bne.n 8008afe <HAL_DMA_Init+0x5ca>
  20166. 8008afa: 2301 movs r3, #1
  20167. 8008afc: e000 b.n 8008b00 <HAL_DMA_Init+0x5cc>
  20168. 8008afe: 2300 movs r3, #0
  20169. 8008b00: 2b00 cmp r3, #0
  20170. 8008b02: d032 beq.n 8008b6a <HAL_DMA_Init+0x636>
  20171. {
  20172. /* Initialize parameters for DMAMUX channel :
  20173. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  20174. */
  20175. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  20176. 8008b04: 6878 ldr r0, [r7, #4]
  20177. 8008b06: f002 fa43 bl 800af90 <DMA_CalcDMAMUXChannelBaseAndMask>
  20178. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  20179. 8008b0a: 687b ldr r3, [r7, #4]
  20180. 8008b0c: 689b ldr r3, [r3, #8]
  20181. 8008b0e: 2b80 cmp r3, #128 @ 0x80
  20182. 8008b10: d102 bne.n 8008b18 <HAL_DMA_Init+0x5e4>
  20183. {
  20184. /* if memory to memory force the request to 0*/
  20185. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  20186. 8008b12: 687b ldr r3, [r7, #4]
  20187. 8008b14: 2200 movs r2, #0
  20188. 8008b16: 605a str r2, [r3, #4]
  20189. }
  20190. /* Set peripheral request to DMAMUX channel */
  20191. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  20192. 8008b18: 687b ldr r3, [r7, #4]
  20193. 8008b1a: 685a ldr r2, [r3, #4]
  20194. 8008b1c: 687b ldr r3, [r7, #4]
  20195. 8008b1e: 6e1b ldr r3, [r3, #96] @ 0x60
  20196. 8008b20: b2d2 uxtb r2, r2
  20197. 8008b22: 601a str r2, [r3, #0]
  20198. /* Clear the DMAMUX synchro overrun flag */
  20199. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20200. 8008b24: 687b ldr r3, [r7, #4]
  20201. 8008b26: 6e5b ldr r3, [r3, #100] @ 0x64
  20202. 8008b28: 687a ldr r2, [r7, #4]
  20203. 8008b2a: 6e92 ldr r2, [r2, #104] @ 0x68
  20204. 8008b2c: 605a str r2, [r3, #4]
  20205. /* Initialize parameters for DMAMUX request generator :
  20206. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  20207. */
  20208. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  20209. 8008b2e: 687b ldr r3, [r7, #4]
  20210. 8008b30: 685b ldr r3, [r3, #4]
  20211. 8008b32: 2b00 cmp r3, #0
  20212. 8008b34: d010 beq.n 8008b58 <HAL_DMA_Init+0x624>
  20213. 8008b36: 687b ldr r3, [r7, #4]
  20214. 8008b38: 685b ldr r3, [r3, #4]
  20215. 8008b3a: 2b08 cmp r3, #8
  20216. 8008b3c: d80c bhi.n 8008b58 <HAL_DMA_Init+0x624>
  20217. {
  20218. /* Initialize parameters for DMAMUX request generator :
  20219. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  20220. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  20221. 8008b3e: 6878 ldr r0, [r7, #4]
  20222. 8008b40: f002 fac0 bl 800b0c4 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  20223. /* Reset the DMAMUX request generator register */
  20224. hdma->DMAmuxRequestGen->RGCR = 0U;
  20225. 8008b44: 687b ldr r3, [r7, #4]
  20226. 8008b46: 6edb ldr r3, [r3, #108] @ 0x6c
  20227. 8008b48: 2200 movs r2, #0
  20228. 8008b4a: 601a str r2, [r3, #0]
  20229. /* Clear the DMAMUX request generator overrun flag */
  20230. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20231. 8008b4c: 687b ldr r3, [r7, #4]
  20232. 8008b4e: 6f1b ldr r3, [r3, #112] @ 0x70
  20233. 8008b50: 687a ldr r2, [r7, #4]
  20234. 8008b52: 6f52 ldr r2, [r2, #116] @ 0x74
  20235. 8008b54: 605a str r2, [r3, #4]
  20236. 8008b56: e008 b.n 8008b6a <HAL_DMA_Init+0x636>
  20237. }
  20238. else
  20239. {
  20240. hdma->DMAmuxRequestGen = 0U;
  20241. 8008b58: 687b ldr r3, [r7, #4]
  20242. 8008b5a: 2200 movs r2, #0
  20243. 8008b5c: 66da str r2, [r3, #108] @ 0x6c
  20244. hdma->DMAmuxRequestGenStatus = 0U;
  20245. 8008b5e: 687b ldr r3, [r7, #4]
  20246. 8008b60: 2200 movs r2, #0
  20247. 8008b62: 671a str r2, [r3, #112] @ 0x70
  20248. hdma->DMAmuxRequestGenStatusMask = 0U;
  20249. 8008b64: 687b ldr r3, [r7, #4]
  20250. 8008b66: 2200 movs r2, #0
  20251. 8008b68: 675a str r2, [r3, #116] @ 0x74
  20252. }
  20253. }
  20254. /* Initialize the error code */
  20255. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20256. 8008b6a: 687b ldr r3, [r7, #4]
  20257. 8008b6c: 2200 movs r2, #0
  20258. 8008b6e: 655a str r2, [r3, #84] @ 0x54
  20259. /* Initialize the DMA state */
  20260. hdma->State = HAL_DMA_STATE_READY;
  20261. 8008b70: 687b ldr r3, [r7, #4]
  20262. 8008b72: 2201 movs r2, #1
  20263. 8008b74: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20264. return HAL_OK;
  20265. 8008b78: 2300 movs r3, #0
  20266. }
  20267. 8008b7a: 4618 mov r0, r3
  20268. 8008b7c: 3718 adds r7, #24
  20269. 8008b7e: 46bd mov sp, r7
  20270. 8008b80: bd80 pop {r7, pc}
  20271. 8008b82: bf00 nop
  20272. 8008b84: a7fdabf8 .word 0xa7fdabf8
  20273. 8008b88: cccccccd .word 0xcccccccd
  20274. 8008b8c: 40020010 .word 0x40020010
  20275. 8008b90: 40020028 .word 0x40020028
  20276. 8008b94: 40020040 .word 0x40020040
  20277. 8008b98: 40020058 .word 0x40020058
  20278. 8008b9c: 40020070 .word 0x40020070
  20279. 8008ba0: 40020088 .word 0x40020088
  20280. 8008ba4: 400200a0 .word 0x400200a0
  20281. 8008ba8: 400200b8 .word 0x400200b8
  20282. 8008bac: 40020410 .word 0x40020410
  20283. 8008bb0: 40020428 .word 0x40020428
  20284. 8008bb4: 40020440 .word 0x40020440
  20285. 8008bb8: 40020458 .word 0x40020458
  20286. 8008bbc: 40020470 .word 0x40020470
  20287. 8008bc0: 40020488 .word 0x40020488
  20288. 8008bc4: 400204a0 .word 0x400204a0
  20289. 8008bc8: 400204b8 .word 0x400204b8
  20290. 8008bcc: 58025408 .word 0x58025408
  20291. 8008bd0: 5802541c .word 0x5802541c
  20292. 8008bd4: 58025430 .word 0x58025430
  20293. 8008bd8: 58025444 .word 0x58025444
  20294. 8008bdc: 58025458 .word 0x58025458
  20295. 8008be0: 5802546c .word 0x5802546c
  20296. 8008be4: 58025480 .word 0x58025480
  20297. 8008be8: 58025494 .word 0x58025494
  20298. 08008bec <HAL_DMA_Start_IT>:
  20299. * @param DstAddress: The destination memory Buffer address
  20300. * @param DataLength: The length of data to be transferred from source to destination
  20301. * @retval HAL status
  20302. */
  20303. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  20304. {
  20305. 8008bec: b580 push {r7, lr}
  20306. 8008bee: b086 sub sp, #24
  20307. 8008bf0: af00 add r7, sp, #0
  20308. 8008bf2: 60f8 str r0, [r7, #12]
  20309. 8008bf4: 60b9 str r1, [r7, #8]
  20310. 8008bf6: 607a str r2, [r7, #4]
  20311. 8008bf8: 603b str r3, [r7, #0]
  20312. HAL_StatusTypeDef status = HAL_OK;
  20313. 8008bfa: 2300 movs r3, #0
  20314. 8008bfc: 75fb strb r3, [r7, #23]
  20315. /* Check the parameters */
  20316. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  20317. /* Check the DMA peripheral handle */
  20318. if(hdma == NULL)
  20319. 8008bfe: 68fb ldr r3, [r7, #12]
  20320. 8008c00: 2b00 cmp r3, #0
  20321. 8008c02: d101 bne.n 8008c08 <HAL_DMA_Start_IT+0x1c>
  20322. {
  20323. return HAL_ERROR;
  20324. 8008c04: 2301 movs r3, #1
  20325. 8008c06: e226 b.n 8009056 <HAL_DMA_Start_IT+0x46a>
  20326. }
  20327. /* Process locked */
  20328. __HAL_LOCK(hdma);
  20329. 8008c08: 68fb ldr r3, [r7, #12]
  20330. 8008c0a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  20331. 8008c0e: 2b01 cmp r3, #1
  20332. 8008c10: d101 bne.n 8008c16 <HAL_DMA_Start_IT+0x2a>
  20333. 8008c12: 2302 movs r3, #2
  20334. 8008c14: e21f b.n 8009056 <HAL_DMA_Start_IT+0x46a>
  20335. 8008c16: 68fb ldr r3, [r7, #12]
  20336. 8008c18: 2201 movs r2, #1
  20337. 8008c1a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20338. if(HAL_DMA_STATE_READY == hdma->State)
  20339. 8008c1e: 68fb ldr r3, [r7, #12]
  20340. 8008c20: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20341. 8008c24: b2db uxtb r3, r3
  20342. 8008c26: 2b01 cmp r3, #1
  20343. 8008c28: f040 820a bne.w 8009040 <HAL_DMA_Start_IT+0x454>
  20344. {
  20345. /* Change DMA peripheral state */
  20346. hdma->State = HAL_DMA_STATE_BUSY;
  20347. 8008c2c: 68fb ldr r3, [r7, #12]
  20348. 8008c2e: 2202 movs r2, #2
  20349. 8008c30: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20350. /* Initialize the error code */
  20351. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20352. 8008c34: 68fb ldr r3, [r7, #12]
  20353. 8008c36: 2200 movs r2, #0
  20354. 8008c38: 655a str r2, [r3, #84] @ 0x54
  20355. /* Disable the peripheral */
  20356. __HAL_DMA_DISABLE(hdma);
  20357. 8008c3a: 68fb ldr r3, [r7, #12]
  20358. 8008c3c: 681b ldr r3, [r3, #0]
  20359. 8008c3e: 4a68 ldr r2, [pc, #416] @ (8008de0 <HAL_DMA_Start_IT+0x1f4>)
  20360. 8008c40: 4293 cmp r3, r2
  20361. 8008c42: d04a beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20362. 8008c44: 68fb ldr r3, [r7, #12]
  20363. 8008c46: 681b ldr r3, [r3, #0]
  20364. 8008c48: 4a66 ldr r2, [pc, #408] @ (8008de4 <HAL_DMA_Start_IT+0x1f8>)
  20365. 8008c4a: 4293 cmp r3, r2
  20366. 8008c4c: d045 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20367. 8008c4e: 68fb ldr r3, [r7, #12]
  20368. 8008c50: 681b ldr r3, [r3, #0]
  20369. 8008c52: 4a65 ldr r2, [pc, #404] @ (8008de8 <HAL_DMA_Start_IT+0x1fc>)
  20370. 8008c54: 4293 cmp r3, r2
  20371. 8008c56: d040 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20372. 8008c58: 68fb ldr r3, [r7, #12]
  20373. 8008c5a: 681b ldr r3, [r3, #0]
  20374. 8008c5c: 4a63 ldr r2, [pc, #396] @ (8008dec <HAL_DMA_Start_IT+0x200>)
  20375. 8008c5e: 4293 cmp r3, r2
  20376. 8008c60: d03b beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20377. 8008c62: 68fb ldr r3, [r7, #12]
  20378. 8008c64: 681b ldr r3, [r3, #0]
  20379. 8008c66: 4a62 ldr r2, [pc, #392] @ (8008df0 <HAL_DMA_Start_IT+0x204>)
  20380. 8008c68: 4293 cmp r3, r2
  20381. 8008c6a: d036 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20382. 8008c6c: 68fb ldr r3, [r7, #12]
  20383. 8008c6e: 681b ldr r3, [r3, #0]
  20384. 8008c70: 4a60 ldr r2, [pc, #384] @ (8008df4 <HAL_DMA_Start_IT+0x208>)
  20385. 8008c72: 4293 cmp r3, r2
  20386. 8008c74: d031 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20387. 8008c76: 68fb ldr r3, [r7, #12]
  20388. 8008c78: 681b ldr r3, [r3, #0]
  20389. 8008c7a: 4a5f ldr r2, [pc, #380] @ (8008df8 <HAL_DMA_Start_IT+0x20c>)
  20390. 8008c7c: 4293 cmp r3, r2
  20391. 8008c7e: d02c beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20392. 8008c80: 68fb ldr r3, [r7, #12]
  20393. 8008c82: 681b ldr r3, [r3, #0]
  20394. 8008c84: 4a5d ldr r2, [pc, #372] @ (8008dfc <HAL_DMA_Start_IT+0x210>)
  20395. 8008c86: 4293 cmp r3, r2
  20396. 8008c88: d027 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20397. 8008c8a: 68fb ldr r3, [r7, #12]
  20398. 8008c8c: 681b ldr r3, [r3, #0]
  20399. 8008c8e: 4a5c ldr r2, [pc, #368] @ (8008e00 <HAL_DMA_Start_IT+0x214>)
  20400. 8008c90: 4293 cmp r3, r2
  20401. 8008c92: d022 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20402. 8008c94: 68fb ldr r3, [r7, #12]
  20403. 8008c96: 681b ldr r3, [r3, #0]
  20404. 8008c98: 4a5a ldr r2, [pc, #360] @ (8008e04 <HAL_DMA_Start_IT+0x218>)
  20405. 8008c9a: 4293 cmp r3, r2
  20406. 8008c9c: d01d beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20407. 8008c9e: 68fb ldr r3, [r7, #12]
  20408. 8008ca0: 681b ldr r3, [r3, #0]
  20409. 8008ca2: 4a59 ldr r2, [pc, #356] @ (8008e08 <HAL_DMA_Start_IT+0x21c>)
  20410. 8008ca4: 4293 cmp r3, r2
  20411. 8008ca6: d018 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20412. 8008ca8: 68fb ldr r3, [r7, #12]
  20413. 8008caa: 681b ldr r3, [r3, #0]
  20414. 8008cac: 4a57 ldr r2, [pc, #348] @ (8008e0c <HAL_DMA_Start_IT+0x220>)
  20415. 8008cae: 4293 cmp r3, r2
  20416. 8008cb0: d013 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20417. 8008cb2: 68fb ldr r3, [r7, #12]
  20418. 8008cb4: 681b ldr r3, [r3, #0]
  20419. 8008cb6: 4a56 ldr r2, [pc, #344] @ (8008e10 <HAL_DMA_Start_IT+0x224>)
  20420. 8008cb8: 4293 cmp r3, r2
  20421. 8008cba: d00e beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20422. 8008cbc: 68fb ldr r3, [r7, #12]
  20423. 8008cbe: 681b ldr r3, [r3, #0]
  20424. 8008cc0: 4a54 ldr r2, [pc, #336] @ (8008e14 <HAL_DMA_Start_IT+0x228>)
  20425. 8008cc2: 4293 cmp r3, r2
  20426. 8008cc4: d009 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20427. 8008cc6: 68fb ldr r3, [r7, #12]
  20428. 8008cc8: 681b ldr r3, [r3, #0]
  20429. 8008cca: 4a53 ldr r2, [pc, #332] @ (8008e18 <HAL_DMA_Start_IT+0x22c>)
  20430. 8008ccc: 4293 cmp r3, r2
  20431. 8008cce: d004 beq.n 8008cda <HAL_DMA_Start_IT+0xee>
  20432. 8008cd0: 68fb ldr r3, [r7, #12]
  20433. 8008cd2: 681b ldr r3, [r3, #0]
  20434. 8008cd4: 4a51 ldr r2, [pc, #324] @ (8008e1c <HAL_DMA_Start_IT+0x230>)
  20435. 8008cd6: 4293 cmp r3, r2
  20436. 8008cd8: d108 bne.n 8008cec <HAL_DMA_Start_IT+0x100>
  20437. 8008cda: 68fb ldr r3, [r7, #12]
  20438. 8008cdc: 681b ldr r3, [r3, #0]
  20439. 8008cde: 681a ldr r2, [r3, #0]
  20440. 8008ce0: 68fb ldr r3, [r7, #12]
  20441. 8008ce2: 681b ldr r3, [r3, #0]
  20442. 8008ce4: f022 0201 bic.w r2, r2, #1
  20443. 8008ce8: 601a str r2, [r3, #0]
  20444. 8008cea: e007 b.n 8008cfc <HAL_DMA_Start_IT+0x110>
  20445. 8008cec: 68fb ldr r3, [r7, #12]
  20446. 8008cee: 681b ldr r3, [r3, #0]
  20447. 8008cf0: 681a ldr r2, [r3, #0]
  20448. 8008cf2: 68fb ldr r3, [r7, #12]
  20449. 8008cf4: 681b ldr r3, [r3, #0]
  20450. 8008cf6: f022 0201 bic.w r2, r2, #1
  20451. 8008cfa: 601a str r2, [r3, #0]
  20452. /* Configure the source, destination address and the data length */
  20453. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  20454. 8008cfc: 683b ldr r3, [r7, #0]
  20455. 8008cfe: 687a ldr r2, [r7, #4]
  20456. 8008d00: 68b9 ldr r1, [r7, #8]
  20457. 8008d02: 68f8 ldr r0, [r7, #12]
  20458. 8008d04: f001 fe6a bl 800a9dc <DMA_SetConfig>
  20459. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20460. 8008d08: 68fb ldr r3, [r7, #12]
  20461. 8008d0a: 681b ldr r3, [r3, #0]
  20462. 8008d0c: 4a34 ldr r2, [pc, #208] @ (8008de0 <HAL_DMA_Start_IT+0x1f4>)
  20463. 8008d0e: 4293 cmp r3, r2
  20464. 8008d10: d04a beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20465. 8008d12: 68fb ldr r3, [r7, #12]
  20466. 8008d14: 681b ldr r3, [r3, #0]
  20467. 8008d16: 4a33 ldr r2, [pc, #204] @ (8008de4 <HAL_DMA_Start_IT+0x1f8>)
  20468. 8008d18: 4293 cmp r3, r2
  20469. 8008d1a: d045 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20470. 8008d1c: 68fb ldr r3, [r7, #12]
  20471. 8008d1e: 681b ldr r3, [r3, #0]
  20472. 8008d20: 4a31 ldr r2, [pc, #196] @ (8008de8 <HAL_DMA_Start_IT+0x1fc>)
  20473. 8008d22: 4293 cmp r3, r2
  20474. 8008d24: d040 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20475. 8008d26: 68fb ldr r3, [r7, #12]
  20476. 8008d28: 681b ldr r3, [r3, #0]
  20477. 8008d2a: 4a30 ldr r2, [pc, #192] @ (8008dec <HAL_DMA_Start_IT+0x200>)
  20478. 8008d2c: 4293 cmp r3, r2
  20479. 8008d2e: d03b beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20480. 8008d30: 68fb ldr r3, [r7, #12]
  20481. 8008d32: 681b ldr r3, [r3, #0]
  20482. 8008d34: 4a2e ldr r2, [pc, #184] @ (8008df0 <HAL_DMA_Start_IT+0x204>)
  20483. 8008d36: 4293 cmp r3, r2
  20484. 8008d38: d036 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20485. 8008d3a: 68fb ldr r3, [r7, #12]
  20486. 8008d3c: 681b ldr r3, [r3, #0]
  20487. 8008d3e: 4a2d ldr r2, [pc, #180] @ (8008df4 <HAL_DMA_Start_IT+0x208>)
  20488. 8008d40: 4293 cmp r3, r2
  20489. 8008d42: d031 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20490. 8008d44: 68fb ldr r3, [r7, #12]
  20491. 8008d46: 681b ldr r3, [r3, #0]
  20492. 8008d48: 4a2b ldr r2, [pc, #172] @ (8008df8 <HAL_DMA_Start_IT+0x20c>)
  20493. 8008d4a: 4293 cmp r3, r2
  20494. 8008d4c: d02c beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20495. 8008d4e: 68fb ldr r3, [r7, #12]
  20496. 8008d50: 681b ldr r3, [r3, #0]
  20497. 8008d52: 4a2a ldr r2, [pc, #168] @ (8008dfc <HAL_DMA_Start_IT+0x210>)
  20498. 8008d54: 4293 cmp r3, r2
  20499. 8008d56: d027 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20500. 8008d58: 68fb ldr r3, [r7, #12]
  20501. 8008d5a: 681b ldr r3, [r3, #0]
  20502. 8008d5c: 4a28 ldr r2, [pc, #160] @ (8008e00 <HAL_DMA_Start_IT+0x214>)
  20503. 8008d5e: 4293 cmp r3, r2
  20504. 8008d60: d022 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20505. 8008d62: 68fb ldr r3, [r7, #12]
  20506. 8008d64: 681b ldr r3, [r3, #0]
  20507. 8008d66: 4a27 ldr r2, [pc, #156] @ (8008e04 <HAL_DMA_Start_IT+0x218>)
  20508. 8008d68: 4293 cmp r3, r2
  20509. 8008d6a: d01d beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20510. 8008d6c: 68fb ldr r3, [r7, #12]
  20511. 8008d6e: 681b ldr r3, [r3, #0]
  20512. 8008d70: 4a25 ldr r2, [pc, #148] @ (8008e08 <HAL_DMA_Start_IT+0x21c>)
  20513. 8008d72: 4293 cmp r3, r2
  20514. 8008d74: d018 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20515. 8008d76: 68fb ldr r3, [r7, #12]
  20516. 8008d78: 681b ldr r3, [r3, #0]
  20517. 8008d7a: 4a24 ldr r2, [pc, #144] @ (8008e0c <HAL_DMA_Start_IT+0x220>)
  20518. 8008d7c: 4293 cmp r3, r2
  20519. 8008d7e: d013 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20520. 8008d80: 68fb ldr r3, [r7, #12]
  20521. 8008d82: 681b ldr r3, [r3, #0]
  20522. 8008d84: 4a22 ldr r2, [pc, #136] @ (8008e10 <HAL_DMA_Start_IT+0x224>)
  20523. 8008d86: 4293 cmp r3, r2
  20524. 8008d88: d00e beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20525. 8008d8a: 68fb ldr r3, [r7, #12]
  20526. 8008d8c: 681b ldr r3, [r3, #0]
  20527. 8008d8e: 4a21 ldr r2, [pc, #132] @ (8008e14 <HAL_DMA_Start_IT+0x228>)
  20528. 8008d90: 4293 cmp r3, r2
  20529. 8008d92: d009 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20530. 8008d94: 68fb ldr r3, [r7, #12]
  20531. 8008d96: 681b ldr r3, [r3, #0]
  20532. 8008d98: 4a1f ldr r2, [pc, #124] @ (8008e18 <HAL_DMA_Start_IT+0x22c>)
  20533. 8008d9a: 4293 cmp r3, r2
  20534. 8008d9c: d004 beq.n 8008da8 <HAL_DMA_Start_IT+0x1bc>
  20535. 8008d9e: 68fb ldr r3, [r7, #12]
  20536. 8008da0: 681b ldr r3, [r3, #0]
  20537. 8008da2: 4a1e ldr r2, [pc, #120] @ (8008e1c <HAL_DMA_Start_IT+0x230>)
  20538. 8008da4: 4293 cmp r3, r2
  20539. 8008da6: d101 bne.n 8008dac <HAL_DMA_Start_IT+0x1c0>
  20540. 8008da8: 2301 movs r3, #1
  20541. 8008daa: e000 b.n 8008dae <HAL_DMA_Start_IT+0x1c2>
  20542. 8008dac: 2300 movs r3, #0
  20543. 8008dae: 2b00 cmp r3, #0
  20544. 8008db0: d036 beq.n 8008e20 <HAL_DMA_Start_IT+0x234>
  20545. {
  20546. /* Enable Common interrupts*/
  20547. 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));
  20548. 8008db2: 68fb ldr r3, [r7, #12]
  20549. 8008db4: 681b ldr r3, [r3, #0]
  20550. 8008db6: 681b ldr r3, [r3, #0]
  20551. 8008db8: f023 021e bic.w r2, r3, #30
  20552. 8008dbc: 68fb ldr r3, [r7, #12]
  20553. 8008dbe: 681b ldr r3, [r3, #0]
  20554. 8008dc0: f042 0216 orr.w r2, r2, #22
  20555. 8008dc4: 601a str r2, [r3, #0]
  20556. if(hdma->XferHalfCpltCallback != NULL)
  20557. 8008dc6: 68fb ldr r3, [r7, #12]
  20558. 8008dc8: 6c1b ldr r3, [r3, #64] @ 0x40
  20559. 8008dca: 2b00 cmp r3, #0
  20560. 8008dcc: d03e beq.n 8008e4c <HAL_DMA_Start_IT+0x260>
  20561. {
  20562. /* Enable Half Transfer IT if corresponding Callback is set */
  20563. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  20564. 8008dce: 68fb ldr r3, [r7, #12]
  20565. 8008dd0: 681b ldr r3, [r3, #0]
  20566. 8008dd2: 681a ldr r2, [r3, #0]
  20567. 8008dd4: 68fb ldr r3, [r7, #12]
  20568. 8008dd6: 681b ldr r3, [r3, #0]
  20569. 8008dd8: f042 0208 orr.w r2, r2, #8
  20570. 8008ddc: 601a str r2, [r3, #0]
  20571. 8008dde: e035 b.n 8008e4c <HAL_DMA_Start_IT+0x260>
  20572. 8008de0: 40020010 .word 0x40020010
  20573. 8008de4: 40020028 .word 0x40020028
  20574. 8008de8: 40020040 .word 0x40020040
  20575. 8008dec: 40020058 .word 0x40020058
  20576. 8008df0: 40020070 .word 0x40020070
  20577. 8008df4: 40020088 .word 0x40020088
  20578. 8008df8: 400200a0 .word 0x400200a0
  20579. 8008dfc: 400200b8 .word 0x400200b8
  20580. 8008e00: 40020410 .word 0x40020410
  20581. 8008e04: 40020428 .word 0x40020428
  20582. 8008e08: 40020440 .word 0x40020440
  20583. 8008e0c: 40020458 .word 0x40020458
  20584. 8008e10: 40020470 .word 0x40020470
  20585. 8008e14: 40020488 .word 0x40020488
  20586. 8008e18: 400204a0 .word 0x400204a0
  20587. 8008e1c: 400204b8 .word 0x400204b8
  20588. }
  20589. }
  20590. else /* BDMA channel */
  20591. {
  20592. /* Enable Common interrupts */
  20593. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  20594. 8008e20: 68fb ldr r3, [r7, #12]
  20595. 8008e22: 681b ldr r3, [r3, #0]
  20596. 8008e24: 681b ldr r3, [r3, #0]
  20597. 8008e26: f023 020e bic.w r2, r3, #14
  20598. 8008e2a: 68fb ldr r3, [r7, #12]
  20599. 8008e2c: 681b ldr r3, [r3, #0]
  20600. 8008e2e: f042 020a orr.w r2, r2, #10
  20601. 8008e32: 601a str r2, [r3, #0]
  20602. if(hdma->XferHalfCpltCallback != NULL)
  20603. 8008e34: 68fb ldr r3, [r7, #12]
  20604. 8008e36: 6c1b ldr r3, [r3, #64] @ 0x40
  20605. 8008e38: 2b00 cmp r3, #0
  20606. 8008e3a: d007 beq.n 8008e4c <HAL_DMA_Start_IT+0x260>
  20607. {
  20608. /*Enable Half Transfer IT if corresponding Callback is set */
  20609. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  20610. 8008e3c: 68fb ldr r3, [r7, #12]
  20611. 8008e3e: 681b ldr r3, [r3, #0]
  20612. 8008e40: 681a ldr r2, [r3, #0]
  20613. 8008e42: 68fb ldr r3, [r7, #12]
  20614. 8008e44: 681b ldr r3, [r3, #0]
  20615. 8008e46: f042 0204 orr.w r2, r2, #4
  20616. 8008e4a: 601a str r2, [r3, #0]
  20617. }
  20618. }
  20619. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20620. 8008e4c: 68fb ldr r3, [r7, #12]
  20621. 8008e4e: 681b ldr r3, [r3, #0]
  20622. 8008e50: 4a83 ldr r2, [pc, #524] @ (8009060 <HAL_DMA_Start_IT+0x474>)
  20623. 8008e52: 4293 cmp r3, r2
  20624. 8008e54: d072 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20625. 8008e56: 68fb ldr r3, [r7, #12]
  20626. 8008e58: 681b ldr r3, [r3, #0]
  20627. 8008e5a: 4a82 ldr r2, [pc, #520] @ (8009064 <HAL_DMA_Start_IT+0x478>)
  20628. 8008e5c: 4293 cmp r3, r2
  20629. 8008e5e: d06d beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20630. 8008e60: 68fb ldr r3, [r7, #12]
  20631. 8008e62: 681b ldr r3, [r3, #0]
  20632. 8008e64: 4a80 ldr r2, [pc, #512] @ (8009068 <HAL_DMA_Start_IT+0x47c>)
  20633. 8008e66: 4293 cmp r3, r2
  20634. 8008e68: d068 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20635. 8008e6a: 68fb ldr r3, [r7, #12]
  20636. 8008e6c: 681b ldr r3, [r3, #0]
  20637. 8008e6e: 4a7f ldr r2, [pc, #508] @ (800906c <HAL_DMA_Start_IT+0x480>)
  20638. 8008e70: 4293 cmp r3, r2
  20639. 8008e72: d063 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20640. 8008e74: 68fb ldr r3, [r7, #12]
  20641. 8008e76: 681b ldr r3, [r3, #0]
  20642. 8008e78: 4a7d ldr r2, [pc, #500] @ (8009070 <HAL_DMA_Start_IT+0x484>)
  20643. 8008e7a: 4293 cmp r3, r2
  20644. 8008e7c: d05e beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20645. 8008e7e: 68fb ldr r3, [r7, #12]
  20646. 8008e80: 681b ldr r3, [r3, #0]
  20647. 8008e82: 4a7c ldr r2, [pc, #496] @ (8009074 <HAL_DMA_Start_IT+0x488>)
  20648. 8008e84: 4293 cmp r3, r2
  20649. 8008e86: d059 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20650. 8008e88: 68fb ldr r3, [r7, #12]
  20651. 8008e8a: 681b ldr r3, [r3, #0]
  20652. 8008e8c: 4a7a ldr r2, [pc, #488] @ (8009078 <HAL_DMA_Start_IT+0x48c>)
  20653. 8008e8e: 4293 cmp r3, r2
  20654. 8008e90: d054 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20655. 8008e92: 68fb ldr r3, [r7, #12]
  20656. 8008e94: 681b ldr r3, [r3, #0]
  20657. 8008e96: 4a79 ldr r2, [pc, #484] @ (800907c <HAL_DMA_Start_IT+0x490>)
  20658. 8008e98: 4293 cmp r3, r2
  20659. 8008e9a: d04f beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20660. 8008e9c: 68fb ldr r3, [r7, #12]
  20661. 8008e9e: 681b ldr r3, [r3, #0]
  20662. 8008ea0: 4a77 ldr r2, [pc, #476] @ (8009080 <HAL_DMA_Start_IT+0x494>)
  20663. 8008ea2: 4293 cmp r3, r2
  20664. 8008ea4: d04a beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20665. 8008ea6: 68fb ldr r3, [r7, #12]
  20666. 8008ea8: 681b ldr r3, [r3, #0]
  20667. 8008eaa: 4a76 ldr r2, [pc, #472] @ (8009084 <HAL_DMA_Start_IT+0x498>)
  20668. 8008eac: 4293 cmp r3, r2
  20669. 8008eae: d045 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20670. 8008eb0: 68fb ldr r3, [r7, #12]
  20671. 8008eb2: 681b ldr r3, [r3, #0]
  20672. 8008eb4: 4a74 ldr r2, [pc, #464] @ (8009088 <HAL_DMA_Start_IT+0x49c>)
  20673. 8008eb6: 4293 cmp r3, r2
  20674. 8008eb8: d040 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20675. 8008eba: 68fb ldr r3, [r7, #12]
  20676. 8008ebc: 681b ldr r3, [r3, #0]
  20677. 8008ebe: 4a73 ldr r2, [pc, #460] @ (800908c <HAL_DMA_Start_IT+0x4a0>)
  20678. 8008ec0: 4293 cmp r3, r2
  20679. 8008ec2: d03b beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20680. 8008ec4: 68fb ldr r3, [r7, #12]
  20681. 8008ec6: 681b ldr r3, [r3, #0]
  20682. 8008ec8: 4a71 ldr r2, [pc, #452] @ (8009090 <HAL_DMA_Start_IT+0x4a4>)
  20683. 8008eca: 4293 cmp r3, r2
  20684. 8008ecc: d036 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20685. 8008ece: 68fb ldr r3, [r7, #12]
  20686. 8008ed0: 681b ldr r3, [r3, #0]
  20687. 8008ed2: 4a70 ldr r2, [pc, #448] @ (8009094 <HAL_DMA_Start_IT+0x4a8>)
  20688. 8008ed4: 4293 cmp r3, r2
  20689. 8008ed6: d031 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20690. 8008ed8: 68fb ldr r3, [r7, #12]
  20691. 8008eda: 681b ldr r3, [r3, #0]
  20692. 8008edc: 4a6e ldr r2, [pc, #440] @ (8009098 <HAL_DMA_Start_IT+0x4ac>)
  20693. 8008ede: 4293 cmp r3, r2
  20694. 8008ee0: d02c beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20695. 8008ee2: 68fb ldr r3, [r7, #12]
  20696. 8008ee4: 681b ldr r3, [r3, #0]
  20697. 8008ee6: 4a6d ldr r2, [pc, #436] @ (800909c <HAL_DMA_Start_IT+0x4b0>)
  20698. 8008ee8: 4293 cmp r3, r2
  20699. 8008eea: d027 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20700. 8008eec: 68fb ldr r3, [r7, #12]
  20701. 8008eee: 681b ldr r3, [r3, #0]
  20702. 8008ef0: 4a6b ldr r2, [pc, #428] @ (80090a0 <HAL_DMA_Start_IT+0x4b4>)
  20703. 8008ef2: 4293 cmp r3, r2
  20704. 8008ef4: d022 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20705. 8008ef6: 68fb ldr r3, [r7, #12]
  20706. 8008ef8: 681b ldr r3, [r3, #0]
  20707. 8008efa: 4a6a ldr r2, [pc, #424] @ (80090a4 <HAL_DMA_Start_IT+0x4b8>)
  20708. 8008efc: 4293 cmp r3, r2
  20709. 8008efe: d01d beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20710. 8008f00: 68fb ldr r3, [r7, #12]
  20711. 8008f02: 681b ldr r3, [r3, #0]
  20712. 8008f04: 4a68 ldr r2, [pc, #416] @ (80090a8 <HAL_DMA_Start_IT+0x4bc>)
  20713. 8008f06: 4293 cmp r3, r2
  20714. 8008f08: d018 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20715. 8008f0a: 68fb ldr r3, [r7, #12]
  20716. 8008f0c: 681b ldr r3, [r3, #0]
  20717. 8008f0e: 4a67 ldr r2, [pc, #412] @ (80090ac <HAL_DMA_Start_IT+0x4c0>)
  20718. 8008f10: 4293 cmp r3, r2
  20719. 8008f12: d013 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20720. 8008f14: 68fb ldr r3, [r7, #12]
  20721. 8008f16: 681b ldr r3, [r3, #0]
  20722. 8008f18: 4a65 ldr r2, [pc, #404] @ (80090b0 <HAL_DMA_Start_IT+0x4c4>)
  20723. 8008f1a: 4293 cmp r3, r2
  20724. 8008f1c: d00e beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20725. 8008f1e: 68fb ldr r3, [r7, #12]
  20726. 8008f20: 681b ldr r3, [r3, #0]
  20727. 8008f22: 4a64 ldr r2, [pc, #400] @ (80090b4 <HAL_DMA_Start_IT+0x4c8>)
  20728. 8008f24: 4293 cmp r3, r2
  20729. 8008f26: d009 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20730. 8008f28: 68fb ldr r3, [r7, #12]
  20731. 8008f2a: 681b ldr r3, [r3, #0]
  20732. 8008f2c: 4a62 ldr r2, [pc, #392] @ (80090b8 <HAL_DMA_Start_IT+0x4cc>)
  20733. 8008f2e: 4293 cmp r3, r2
  20734. 8008f30: d004 beq.n 8008f3c <HAL_DMA_Start_IT+0x350>
  20735. 8008f32: 68fb ldr r3, [r7, #12]
  20736. 8008f34: 681b ldr r3, [r3, #0]
  20737. 8008f36: 4a61 ldr r2, [pc, #388] @ (80090bc <HAL_DMA_Start_IT+0x4d0>)
  20738. 8008f38: 4293 cmp r3, r2
  20739. 8008f3a: d101 bne.n 8008f40 <HAL_DMA_Start_IT+0x354>
  20740. 8008f3c: 2301 movs r3, #1
  20741. 8008f3e: e000 b.n 8008f42 <HAL_DMA_Start_IT+0x356>
  20742. 8008f40: 2300 movs r3, #0
  20743. 8008f42: 2b00 cmp r3, #0
  20744. 8008f44: d01a beq.n 8008f7c <HAL_DMA_Start_IT+0x390>
  20745. {
  20746. /* Check if DMAMUX Synchronization is enabled */
  20747. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  20748. 8008f46: 68fb ldr r3, [r7, #12]
  20749. 8008f48: 6e1b ldr r3, [r3, #96] @ 0x60
  20750. 8008f4a: 681b ldr r3, [r3, #0]
  20751. 8008f4c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20752. 8008f50: 2b00 cmp r3, #0
  20753. 8008f52: d007 beq.n 8008f64 <HAL_DMA_Start_IT+0x378>
  20754. {
  20755. /* Enable DMAMUX sync overrun IT*/
  20756. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  20757. 8008f54: 68fb ldr r3, [r7, #12]
  20758. 8008f56: 6e1b ldr r3, [r3, #96] @ 0x60
  20759. 8008f58: 681a ldr r2, [r3, #0]
  20760. 8008f5a: 68fb ldr r3, [r7, #12]
  20761. 8008f5c: 6e1b ldr r3, [r3, #96] @ 0x60
  20762. 8008f5e: f442 7280 orr.w r2, r2, #256 @ 0x100
  20763. 8008f62: 601a str r2, [r3, #0]
  20764. }
  20765. if(hdma->DMAmuxRequestGen != 0U)
  20766. 8008f64: 68fb ldr r3, [r7, #12]
  20767. 8008f66: 6edb ldr r3, [r3, #108] @ 0x6c
  20768. 8008f68: 2b00 cmp r3, #0
  20769. 8008f6a: d007 beq.n 8008f7c <HAL_DMA_Start_IT+0x390>
  20770. {
  20771. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  20772. /* enable the request gen overrun IT */
  20773. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  20774. 8008f6c: 68fb ldr r3, [r7, #12]
  20775. 8008f6e: 6edb ldr r3, [r3, #108] @ 0x6c
  20776. 8008f70: 681a ldr r2, [r3, #0]
  20777. 8008f72: 68fb ldr r3, [r7, #12]
  20778. 8008f74: 6edb ldr r3, [r3, #108] @ 0x6c
  20779. 8008f76: f442 7280 orr.w r2, r2, #256 @ 0x100
  20780. 8008f7a: 601a str r2, [r3, #0]
  20781. }
  20782. }
  20783. /* Enable the Peripheral */
  20784. __HAL_DMA_ENABLE(hdma);
  20785. 8008f7c: 68fb ldr r3, [r7, #12]
  20786. 8008f7e: 681b ldr r3, [r3, #0]
  20787. 8008f80: 4a37 ldr r2, [pc, #220] @ (8009060 <HAL_DMA_Start_IT+0x474>)
  20788. 8008f82: 4293 cmp r3, r2
  20789. 8008f84: d04a beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20790. 8008f86: 68fb ldr r3, [r7, #12]
  20791. 8008f88: 681b ldr r3, [r3, #0]
  20792. 8008f8a: 4a36 ldr r2, [pc, #216] @ (8009064 <HAL_DMA_Start_IT+0x478>)
  20793. 8008f8c: 4293 cmp r3, r2
  20794. 8008f8e: d045 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20795. 8008f90: 68fb ldr r3, [r7, #12]
  20796. 8008f92: 681b ldr r3, [r3, #0]
  20797. 8008f94: 4a34 ldr r2, [pc, #208] @ (8009068 <HAL_DMA_Start_IT+0x47c>)
  20798. 8008f96: 4293 cmp r3, r2
  20799. 8008f98: d040 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20800. 8008f9a: 68fb ldr r3, [r7, #12]
  20801. 8008f9c: 681b ldr r3, [r3, #0]
  20802. 8008f9e: 4a33 ldr r2, [pc, #204] @ (800906c <HAL_DMA_Start_IT+0x480>)
  20803. 8008fa0: 4293 cmp r3, r2
  20804. 8008fa2: d03b beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20805. 8008fa4: 68fb ldr r3, [r7, #12]
  20806. 8008fa6: 681b ldr r3, [r3, #0]
  20807. 8008fa8: 4a31 ldr r2, [pc, #196] @ (8009070 <HAL_DMA_Start_IT+0x484>)
  20808. 8008faa: 4293 cmp r3, r2
  20809. 8008fac: d036 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20810. 8008fae: 68fb ldr r3, [r7, #12]
  20811. 8008fb0: 681b ldr r3, [r3, #0]
  20812. 8008fb2: 4a30 ldr r2, [pc, #192] @ (8009074 <HAL_DMA_Start_IT+0x488>)
  20813. 8008fb4: 4293 cmp r3, r2
  20814. 8008fb6: d031 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20815. 8008fb8: 68fb ldr r3, [r7, #12]
  20816. 8008fba: 681b ldr r3, [r3, #0]
  20817. 8008fbc: 4a2e ldr r2, [pc, #184] @ (8009078 <HAL_DMA_Start_IT+0x48c>)
  20818. 8008fbe: 4293 cmp r3, r2
  20819. 8008fc0: d02c beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20820. 8008fc2: 68fb ldr r3, [r7, #12]
  20821. 8008fc4: 681b ldr r3, [r3, #0]
  20822. 8008fc6: 4a2d ldr r2, [pc, #180] @ (800907c <HAL_DMA_Start_IT+0x490>)
  20823. 8008fc8: 4293 cmp r3, r2
  20824. 8008fca: d027 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20825. 8008fcc: 68fb ldr r3, [r7, #12]
  20826. 8008fce: 681b ldr r3, [r3, #0]
  20827. 8008fd0: 4a2b ldr r2, [pc, #172] @ (8009080 <HAL_DMA_Start_IT+0x494>)
  20828. 8008fd2: 4293 cmp r3, r2
  20829. 8008fd4: d022 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20830. 8008fd6: 68fb ldr r3, [r7, #12]
  20831. 8008fd8: 681b ldr r3, [r3, #0]
  20832. 8008fda: 4a2a ldr r2, [pc, #168] @ (8009084 <HAL_DMA_Start_IT+0x498>)
  20833. 8008fdc: 4293 cmp r3, r2
  20834. 8008fde: d01d beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20835. 8008fe0: 68fb ldr r3, [r7, #12]
  20836. 8008fe2: 681b ldr r3, [r3, #0]
  20837. 8008fe4: 4a28 ldr r2, [pc, #160] @ (8009088 <HAL_DMA_Start_IT+0x49c>)
  20838. 8008fe6: 4293 cmp r3, r2
  20839. 8008fe8: d018 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20840. 8008fea: 68fb ldr r3, [r7, #12]
  20841. 8008fec: 681b ldr r3, [r3, #0]
  20842. 8008fee: 4a27 ldr r2, [pc, #156] @ (800908c <HAL_DMA_Start_IT+0x4a0>)
  20843. 8008ff0: 4293 cmp r3, r2
  20844. 8008ff2: d013 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20845. 8008ff4: 68fb ldr r3, [r7, #12]
  20846. 8008ff6: 681b ldr r3, [r3, #0]
  20847. 8008ff8: 4a25 ldr r2, [pc, #148] @ (8009090 <HAL_DMA_Start_IT+0x4a4>)
  20848. 8008ffa: 4293 cmp r3, r2
  20849. 8008ffc: d00e beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20850. 8008ffe: 68fb ldr r3, [r7, #12]
  20851. 8009000: 681b ldr r3, [r3, #0]
  20852. 8009002: 4a24 ldr r2, [pc, #144] @ (8009094 <HAL_DMA_Start_IT+0x4a8>)
  20853. 8009004: 4293 cmp r3, r2
  20854. 8009006: d009 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20855. 8009008: 68fb ldr r3, [r7, #12]
  20856. 800900a: 681b ldr r3, [r3, #0]
  20857. 800900c: 4a22 ldr r2, [pc, #136] @ (8009098 <HAL_DMA_Start_IT+0x4ac>)
  20858. 800900e: 4293 cmp r3, r2
  20859. 8009010: d004 beq.n 800901c <HAL_DMA_Start_IT+0x430>
  20860. 8009012: 68fb ldr r3, [r7, #12]
  20861. 8009014: 681b ldr r3, [r3, #0]
  20862. 8009016: 4a21 ldr r2, [pc, #132] @ (800909c <HAL_DMA_Start_IT+0x4b0>)
  20863. 8009018: 4293 cmp r3, r2
  20864. 800901a: d108 bne.n 800902e <HAL_DMA_Start_IT+0x442>
  20865. 800901c: 68fb ldr r3, [r7, #12]
  20866. 800901e: 681b ldr r3, [r3, #0]
  20867. 8009020: 681a ldr r2, [r3, #0]
  20868. 8009022: 68fb ldr r3, [r7, #12]
  20869. 8009024: 681b ldr r3, [r3, #0]
  20870. 8009026: f042 0201 orr.w r2, r2, #1
  20871. 800902a: 601a str r2, [r3, #0]
  20872. 800902c: e012 b.n 8009054 <HAL_DMA_Start_IT+0x468>
  20873. 800902e: 68fb ldr r3, [r7, #12]
  20874. 8009030: 681b ldr r3, [r3, #0]
  20875. 8009032: 681a ldr r2, [r3, #0]
  20876. 8009034: 68fb ldr r3, [r7, #12]
  20877. 8009036: 681b ldr r3, [r3, #0]
  20878. 8009038: f042 0201 orr.w r2, r2, #1
  20879. 800903c: 601a str r2, [r3, #0]
  20880. 800903e: e009 b.n 8009054 <HAL_DMA_Start_IT+0x468>
  20881. }
  20882. else
  20883. {
  20884. /* Set the error code to busy */
  20885. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  20886. 8009040: 68fb ldr r3, [r7, #12]
  20887. 8009042: f44f 6200 mov.w r2, #2048 @ 0x800
  20888. 8009046: 655a str r2, [r3, #84] @ 0x54
  20889. /* Process unlocked */
  20890. __HAL_UNLOCK(hdma);
  20891. 8009048: 68fb ldr r3, [r7, #12]
  20892. 800904a: 2200 movs r2, #0
  20893. 800904c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20894. /* Return error status */
  20895. status = HAL_ERROR;
  20896. 8009050: 2301 movs r3, #1
  20897. 8009052: 75fb strb r3, [r7, #23]
  20898. }
  20899. return status;
  20900. 8009054: 7dfb ldrb r3, [r7, #23]
  20901. }
  20902. 8009056: 4618 mov r0, r3
  20903. 8009058: 3718 adds r7, #24
  20904. 800905a: 46bd mov sp, r7
  20905. 800905c: bd80 pop {r7, pc}
  20906. 800905e: bf00 nop
  20907. 8009060: 40020010 .word 0x40020010
  20908. 8009064: 40020028 .word 0x40020028
  20909. 8009068: 40020040 .word 0x40020040
  20910. 800906c: 40020058 .word 0x40020058
  20911. 8009070: 40020070 .word 0x40020070
  20912. 8009074: 40020088 .word 0x40020088
  20913. 8009078: 400200a0 .word 0x400200a0
  20914. 800907c: 400200b8 .word 0x400200b8
  20915. 8009080: 40020410 .word 0x40020410
  20916. 8009084: 40020428 .word 0x40020428
  20917. 8009088: 40020440 .word 0x40020440
  20918. 800908c: 40020458 .word 0x40020458
  20919. 8009090: 40020470 .word 0x40020470
  20920. 8009094: 40020488 .word 0x40020488
  20921. 8009098: 400204a0 .word 0x400204a0
  20922. 800909c: 400204b8 .word 0x400204b8
  20923. 80090a0: 58025408 .word 0x58025408
  20924. 80090a4: 5802541c .word 0x5802541c
  20925. 80090a8: 58025430 .word 0x58025430
  20926. 80090ac: 58025444 .word 0x58025444
  20927. 80090b0: 58025458 .word 0x58025458
  20928. 80090b4: 5802546c .word 0x5802546c
  20929. 80090b8: 58025480 .word 0x58025480
  20930. 80090bc: 58025494 .word 0x58025494
  20931. 080090c0 <HAL_DMA_Abort>:
  20932. * and the Stream will be effectively disabled only after the transfer of
  20933. * this single data is finished.
  20934. * @retval HAL status
  20935. */
  20936. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  20937. {
  20938. 80090c0: b580 push {r7, lr}
  20939. 80090c2: b086 sub sp, #24
  20940. 80090c4: af00 add r7, sp, #0
  20941. 80090c6: 6078 str r0, [r7, #4]
  20942. /* calculate DMA base and stream number */
  20943. DMA_Base_Registers *regs_dma;
  20944. BDMA_Base_Registers *regs_bdma;
  20945. const __IO uint32_t *enableRegister;
  20946. uint32_t tickstart = HAL_GetTick();
  20947. 80090c8: f7fc fe98 bl 8005dfc <HAL_GetTick>
  20948. 80090cc: 6138 str r0, [r7, #16]
  20949. /* Check the DMA peripheral handle */
  20950. if(hdma == NULL)
  20951. 80090ce: 687b ldr r3, [r7, #4]
  20952. 80090d0: 2b00 cmp r3, #0
  20953. 80090d2: d101 bne.n 80090d8 <HAL_DMA_Abort+0x18>
  20954. {
  20955. return HAL_ERROR;
  20956. 80090d4: 2301 movs r3, #1
  20957. 80090d6: e2dc b.n 8009692 <HAL_DMA_Abort+0x5d2>
  20958. }
  20959. /* Check the DMA peripheral state */
  20960. if(hdma->State != HAL_DMA_STATE_BUSY)
  20961. 80090d8: 687b ldr r3, [r7, #4]
  20962. 80090da: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20963. 80090de: b2db uxtb r3, r3
  20964. 80090e0: 2b02 cmp r3, #2
  20965. 80090e2: d008 beq.n 80090f6 <HAL_DMA_Abort+0x36>
  20966. {
  20967. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20968. 80090e4: 687b ldr r3, [r7, #4]
  20969. 80090e6: 2280 movs r2, #128 @ 0x80
  20970. 80090e8: 655a str r2, [r3, #84] @ 0x54
  20971. /* Process Unlocked */
  20972. __HAL_UNLOCK(hdma);
  20973. 80090ea: 687b ldr r3, [r7, #4]
  20974. 80090ec: 2200 movs r2, #0
  20975. 80090ee: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20976. return HAL_ERROR;
  20977. 80090f2: 2301 movs r3, #1
  20978. 80090f4: e2cd b.n 8009692 <HAL_DMA_Abort+0x5d2>
  20979. }
  20980. else
  20981. {
  20982. /* Disable all the transfer interrupts */
  20983. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20984. 80090f6: 687b ldr r3, [r7, #4]
  20985. 80090f8: 681b ldr r3, [r3, #0]
  20986. 80090fa: 4a76 ldr r2, [pc, #472] @ (80092d4 <HAL_DMA_Abort+0x214>)
  20987. 80090fc: 4293 cmp r3, r2
  20988. 80090fe: d04a beq.n 8009196 <HAL_DMA_Abort+0xd6>
  20989. 8009100: 687b ldr r3, [r7, #4]
  20990. 8009102: 681b ldr r3, [r3, #0]
  20991. 8009104: 4a74 ldr r2, [pc, #464] @ (80092d8 <HAL_DMA_Abort+0x218>)
  20992. 8009106: 4293 cmp r3, r2
  20993. 8009108: d045 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  20994. 800910a: 687b ldr r3, [r7, #4]
  20995. 800910c: 681b ldr r3, [r3, #0]
  20996. 800910e: 4a73 ldr r2, [pc, #460] @ (80092dc <HAL_DMA_Abort+0x21c>)
  20997. 8009110: 4293 cmp r3, r2
  20998. 8009112: d040 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  20999. 8009114: 687b ldr r3, [r7, #4]
  21000. 8009116: 681b ldr r3, [r3, #0]
  21001. 8009118: 4a71 ldr r2, [pc, #452] @ (80092e0 <HAL_DMA_Abort+0x220>)
  21002. 800911a: 4293 cmp r3, r2
  21003. 800911c: d03b beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21004. 800911e: 687b ldr r3, [r7, #4]
  21005. 8009120: 681b ldr r3, [r3, #0]
  21006. 8009122: 4a70 ldr r2, [pc, #448] @ (80092e4 <HAL_DMA_Abort+0x224>)
  21007. 8009124: 4293 cmp r3, r2
  21008. 8009126: d036 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21009. 8009128: 687b ldr r3, [r7, #4]
  21010. 800912a: 681b ldr r3, [r3, #0]
  21011. 800912c: 4a6e ldr r2, [pc, #440] @ (80092e8 <HAL_DMA_Abort+0x228>)
  21012. 800912e: 4293 cmp r3, r2
  21013. 8009130: d031 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21014. 8009132: 687b ldr r3, [r7, #4]
  21015. 8009134: 681b ldr r3, [r3, #0]
  21016. 8009136: 4a6d ldr r2, [pc, #436] @ (80092ec <HAL_DMA_Abort+0x22c>)
  21017. 8009138: 4293 cmp r3, r2
  21018. 800913a: d02c beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21019. 800913c: 687b ldr r3, [r7, #4]
  21020. 800913e: 681b ldr r3, [r3, #0]
  21021. 8009140: 4a6b ldr r2, [pc, #428] @ (80092f0 <HAL_DMA_Abort+0x230>)
  21022. 8009142: 4293 cmp r3, r2
  21023. 8009144: d027 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21024. 8009146: 687b ldr r3, [r7, #4]
  21025. 8009148: 681b ldr r3, [r3, #0]
  21026. 800914a: 4a6a ldr r2, [pc, #424] @ (80092f4 <HAL_DMA_Abort+0x234>)
  21027. 800914c: 4293 cmp r3, r2
  21028. 800914e: d022 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21029. 8009150: 687b ldr r3, [r7, #4]
  21030. 8009152: 681b ldr r3, [r3, #0]
  21031. 8009154: 4a68 ldr r2, [pc, #416] @ (80092f8 <HAL_DMA_Abort+0x238>)
  21032. 8009156: 4293 cmp r3, r2
  21033. 8009158: d01d beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21034. 800915a: 687b ldr r3, [r7, #4]
  21035. 800915c: 681b ldr r3, [r3, #0]
  21036. 800915e: 4a67 ldr r2, [pc, #412] @ (80092fc <HAL_DMA_Abort+0x23c>)
  21037. 8009160: 4293 cmp r3, r2
  21038. 8009162: d018 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21039. 8009164: 687b ldr r3, [r7, #4]
  21040. 8009166: 681b ldr r3, [r3, #0]
  21041. 8009168: 4a65 ldr r2, [pc, #404] @ (8009300 <HAL_DMA_Abort+0x240>)
  21042. 800916a: 4293 cmp r3, r2
  21043. 800916c: d013 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21044. 800916e: 687b ldr r3, [r7, #4]
  21045. 8009170: 681b ldr r3, [r3, #0]
  21046. 8009172: 4a64 ldr r2, [pc, #400] @ (8009304 <HAL_DMA_Abort+0x244>)
  21047. 8009174: 4293 cmp r3, r2
  21048. 8009176: d00e beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21049. 8009178: 687b ldr r3, [r7, #4]
  21050. 800917a: 681b ldr r3, [r3, #0]
  21051. 800917c: 4a62 ldr r2, [pc, #392] @ (8009308 <HAL_DMA_Abort+0x248>)
  21052. 800917e: 4293 cmp r3, r2
  21053. 8009180: d009 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21054. 8009182: 687b ldr r3, [r7, #4]
  21055. 8009184: 681b ldr r3, [r3, #0]
  21056. 8009186: 4a61 ldr r2, [pc, #388] @ (800930c <HAL_DMA_Abort+0x24c>)
  21057. 8009188: 4293 cmp r3, r2
  21058. 800918a: d004 beq.n 8009196 <HAL_DMA_Abort+0xd6>
  21059. 800918c: 687b ldr r3, [r7, #4]
  21060. 800918e: 681b ldr r3, [r3, #0]
  21061. 8009190: 4a5f ldr r2, [pc, #380] @ (8009310 <HAL_DMA_Abort+0x250>)
  21062. 8009192: 4293 cmp r3, r2
  21063. 8009194: d101 bne.n 800919a <HAL_DMA_Abort+0xda>
  21064. 8009196: 2301 movs r3, #1
  21065. 8009198: e000 b.n 800919c <HAL_DMA_Abort+0xdc>
  21066. 800919a: 2300 movs r3, #0
  21067. 800919c: 2b00 cmp r3, #0
  21068. 800919e: d013 beq.n 80091c8 <HAL_DMA_Abort+0x108>
  21069. {
  21070. /* Disable DMA All Interrupts */
  21071. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  21072. 80091a0: 687b ldr r3, [r7, #4]
  21073. 80091a2: 681b ldr r3, [r3, #0]
  21074. 80091a4: 681a ldr r2, [r3, #0]
  21075. 80091a6: 687b ldr r3, [r7, #4]
  21076. 80091a8: 681b ldr r3, [r3, #0]
  21077. 80091aa: f022 021e bic.w r2, r2, #30
  21078. 80091ae: 601a str r2, [r3, #0]
  21079. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  21080. 80091b0: 687b ldr r3, [r7, #4]
  21081. 80091b2: 681b ldr r3, [r3, #0]
  21082. 80091b4: 695a ldr r2, [r3, #20]
  21083. 80091b6: 687b ldr r3, [r7, #4]
  21084. 80091b8: 681b ldr r3, [r3, #0]
  21085. 80091ba: f022 0280 bic.w r2, r2, #128 @ 0x80
  21086. 80091be: 615a str r2, [r3, #20]
  21087. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  21088. 80091c0: 687b ldr r3, [r7, #4]
  21089. 80091c2: 681b ldr r3, [r3, #0]
  21090. 80091c4: 617b str r3, [r7, #20]
  21091. 80091c6: e00a b.n 80091de <HAL_DMA_Abort+0x11e>
  21092. }
  21093. else /* BDMA channel */
  21094. {
  21095. /* Disable DMA All Interrupts */
  21096. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21097. 80091c8: 687b ldr r3, [r7, #4]
  21098. 80091ca: 681b ldr r3, [r3, #0]
  21099. 80091cc: 681a ldr r2, [r3, #0]
  21100. 80091ce: 687b ldr r3, [r7, #4]
  21101. 80091d0: 681b ldr r3, [r3, #0]
  21102. 80091d2: f022 020e bic.w r2, r2, #14
  21103. 80091d6: 601a str r2, [r3, #0]
  21104. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  21105. 80091d8: 687b ldr r3, [r7, #4]
  21106. 80091da: 681b ldr r3, [r3, #0]
  21107. 80091dc: 617b str r3, [r7, #20]
  21108. }
  21109. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21110. 80091de: 687b ldr r3, [r7, #4]
  21111. 80091e0: 681b ldr r3, [r3, #0]
  21112. 80091e2: 4a3c ldr r2, [pc, #240] @ (80092d4 <HAL_DMA_Abort+0x214>)
  21113. 80091e4: 4293 cmp r3, r2
  21114. 80091e6: d072 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21115. 80091e8: 687b ldr r3, [r7, #4]
  21116. 80091ea: 681b ldr r3, [r3, #0]
  21117. 80091ec: 4a3a ldr r2, [pc, #232] @ (80092d8 <HAL_DMA_Abort+0x218>)
  21118. 80091ee: 4293 cmp r3, r2
  21119. 80091f0: d06d beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21120. 80091f2: 687b ldr r3, [r7, #4]
  21121. 80091f4: 681b ldr r3, [r3, #0]
  21122. 80091f6: 4a39 ldr r2, [pc, #228] @ (80092dc <HAL_DMA_Abort+0x21c>)
  21123. 80091f8: 4293 cmp r3, r2
  21124. 80091fa: d068 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21125. 80091fc: 687b ldr r3, [r7, #4]
  21126. 80091fe: 681b ldr r3, [r3, #0]
  21127. 8009200: 4a37 ldr r2, [pc, #220] @ (80092e0 <HAL_DMA_Abort+0x220>)
  21128. 8009202: 4293 cmp r3, r2
  21129. 8009204: d063 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21130. 8009206: 687b ldr r3, [r7, #4]
  21131. 8009208: 681b ldr r3, [r3, #0]
  21132. 800920a: 4a36 ldr r2, [pc, #216] @ (80092e4 <HAL_DMA_Abort+0x224>)
  21133. 800920c: 4293 cmp r3, r2
  21134. 800920e: d05e beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21135. 8009210: 687b ldr r3, [r7, #4]
  21136. 8009212: 681b ldr r3, [r3, #0]
  21137. 8009214: 4a34 ldr r2, [pc, #208] @ (80092e8 <HAL_DMA_Abort+0x228>)
  21138. 8009216: 4293 cmp r3, r2
  21139. 8009218: d059 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21140. 800921a: 687b ldr r3, [r7, #4]
  21141. 800921c: 681b ldr r3, [r3, #0]
  21142. 800921e: 4a33 ldr r2, [pc, #204] @ (80092ec <HAL_DMA_Abort+0x22c>)
  21143. 8009220: 4293 cmp r3, r2
  21144. 8009222: d054 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21145. 8009224: 687b ldr r3, [r7, #4]
  21146. 8009226: 681b ldr r3, [r3, #0]
  21147. 8009228: 4a31 ldr r2, [pc, #196] @ (80092f0 <HAL_DMA_Abort+0x230>)
  21148. 800922a: 4293 cmp r3, r2
  21149. 800922c: d04f beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21150. 800922e: 687b ldr r3, [r7, #4]
  21151. 8009230: 681b ldr r3, [r3, #0]
  21152. 8009232: 4a30 ldr r2, [pc, #192] @ (80092f4 <HAL_DMA_Abort+0x234>)
  21153. 8009234: 4293 cmp r3, r2
  21154. 8009236: d04a beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21155. 8009238: 687b ldr r3, [r7, #4]
  21156. 800923a: 681b ldr r3, [r3, #0]
  21157. 800923c: 4a2e ldr r2, [pc, #184] @ (80092f8 <HAL_DMA_Abort+0x238>)
  21158. 800923e: 4293 cmp r3, r2
  21159. 8009240: d045 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21160. 8009242: 687b ldr r3, [r7, #4]
  21161. 8009244: 681b ldr r3, [r3, #0]
  21162. 8009246: 4a2d ldr r2, [pc, #180] @ (80092fc <HAL_DMA_Abort+0x23c>)
  21163. 8009248: 4293 cmp r3, r2
  21164. 800924a: d040 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21165. 800924c: 687b ldr r3, [r7, #4]
  21166. 800924e: 681b ldr r3, [r3, #0]
  21167. 8009250: 4a2b ldr r2, [pc, #172] @ (8009300 <HAL_DMA_Abort+0x240>)
  21168. 8009252: 4293 cmp r3, r2
  21169. 8009254: d03b beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21170. 8009256: 687b ldr r3, [r7, #4]
  21171. 8009258: 681b ldr r3, [r3, #0]
  21172. 800925a: 4a2a ldr r2, [pc, #168] @ (8009304 <HAL_DMA_Abort+0x244>)
  21173. 800925c: 4293 cmp r3, r2
  21174. 800925e: d036 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21175. 8009260: 687b ldr r3, [r7, #4]
  21176. 8009262: 681b ldr r3, [r3, #0]
  21177. 8009264: 4a28 ldr r2, [pc, #160] @ (8009308 <HAL_DMA_Abort+0x248>)
  21178. 8009266: 4293 cmp r3, r2
  21179. 8009268: d031 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21180. 800926a: 687b ldr r3, [r7, #4]
  21181. 800926c: 681b ldr r3, [r3, #0]
  21182. 800926e: 4a27 ldr r2, [pc, #156] @ (800930c <HAL_DMA_Abort+0x24c>)
  21183. 8009270: 4293 cmp r3, r2
  21184. 8009272: d02c beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21185. 8009274: 687b ldr r3, [r7, #4]
  21186. 8009276: 681b ldr r3, [r3, #0]
  21187. 8009278: 4a25 ldr r2, [pc, #148] @ (8009310 <HAL_DMA_Abort+0x250>)
  21188. 800927a: 4293 cmp r3, r2
  21189. 800927c: d027 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21190. 800927e: 687b ldr r3, [r7, #4]
  21191. 8009280: 681b ldr r3, [r3, #0]
  21192. 8009282: 4a24 ldr r2, [pc, #144] @ (8009314 <HAL_DMA_Abort+0x254>)
  21193. 8009284: 4293 cmp r3, r2
  21194. 8009286: d022 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21195. 8009288: 687b ldr r3, [r7, #4]
  21196. 800928a: 681b ldr r3, [r3, #0]
  21197. 800928c: 4a22 ldr r2, [pc, #136] @ (8009318 <HAL_DMA_Abort+0x258>)
  21198. 800928e: 4293 cmp r3, r2
  21199. 8009290: d01d beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21200. 8009292: 687b ldr r3, [r7, #4]
  21201. 8009294: 681b ldr r3, [r3, #0]
  21202. 8009296: 4a21 ldr r2, [pc, #132] @ (800931c <HAL_DMA_Abort+0x25c>)
  21203. 8009298: 4293 cmp r3, r2
  21204. 800929a: d018 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21205. 800929c: 687b ldr r3, [r7, #4]
  21206. 800929e: 681b ldr r3, [r3, #0]
  21207. 80092a0: 4a1f ldr r2, [pc, #124] @ (8009320 <HAL_DMA_Abort+0x260>)
  21208. 80092a2: 4293 cmp r3, r2
  21209. 80092a4: d013 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21210. 80092a6: 687b ldr r3, [r7, #4]
  21211. 80092a8: 681b ldr r3, [r3, #0]
  21212. 80092aa: 4a1e ldr r2, [pc, #120] @ (8009324 <HAL_DMA_Abort+0x264>)
  21213. 80092ac: 4293 cmp r3, r2
  21214. 80092ae: d00e beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21215. 80092b0: 687b ldr r3, [r7, #4]
  21216. 80092b2: 681b ldr r3, [r3, #0]
  21217. 80092b4: 4a1c ldr r2, [pc, #112] @ (8009328 <HAL_DMA_Abort+0x268>)
  21218. 80092b6: 4293 cmp r3, r2
  21219. 80092b8: d009 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21220. 80092ba: 687b ldr r3, [r7, #4]
  21221. 80092bc: 681b ldr r3, [r3, #0]
  21222. 80092be: 4a1b ldr r2, [pc, #108] @ (800932c <HAL_DMA_Abort+0x26c>)
  21223. 80092c0: 4293 cmp r3, r2
  21224. 80092c2: d004 beq.n 80092ce <HAL_DMA_Abort+0x20e>
  21225. 80092c4: 687b ldr r3, [r7, #4]
  21226. 80092c6: 681b ldr r3, [r3, #0]
  21227. 80092c8: 4a19 ldr r2, [pc, #100] @ (8009330 <HAL_DMA_Abort+0x270>)
  21228. 80092ca: 4293 cmp r3, r2
  21229. 80092cc: d132 bne.n 8009334 <HAL_DMA_Abort+0x274>
  21230. 80092ce: 2301 movs r3, #1
  21231. 80092d0: e031 b.n 8009336 <HAL_DMA_Abort+0x276>
  21232. 80092d2: bf00 nop
  21233. 80092d4: 40020010 .word 0x40020010
  21234. 80092d8: 40020028 .word 0x40020028
  21235. 80092dc: 40020040 .word 0x40020040
  21236. 80092e0: 40020058 .word 0x40020058
  21237. 80092e4: 40020070 .word 0x40020070
  21238. 80092e8: 40020088 .word 0x40020088
  21239. 80092ec: 400200a0 .word 0x400200a0
  21240. 80092f0: 400200b8 .word 0x400200b8
  21241. 80092f4: 40020410 .word 0x40020410
  21242. 80092f8: 40020428 .word 0x40020428
  21243. 80092fc: 40020440 .word 0x40020440
  21244. 8009300: 40020458 .word 0x40020458
  21245. 8009304: 40020470 .word 0x40020470
  21246. 8009308: 40020488 .word 0x40020488
  21247. 800930c: 400204a0 .word 0x400204a0
  21248. 8009310: 400204b8 .word 0x400204b8
  21249. 8009314: 58025408 .word 0x58025408
  21250. 8009318: 5802541c .word 0x5802541c
  21251. 800931c: 58025430 .word 0x58025430
  21252. 8009320: 58025444 .word 0x58025444
  21253. 8009324: 58025458 .word 0x58025458
  21254. 8009328: 5802546c .word 0x5802546c
  21255. 800932c: 58025480 .word 0x58025480
  21256. 8009330: 58025494 .word 0x58025494
  21257. 8009334: 2300 movs r3, #0
  21258. 8009336: 2b00 cmp r3, #0
  21259. 8009338: d007 beq.n 800934a <HAL_DMA_Abort+0x28a>
  21260. {
  21261. /* disable the DMAMUX sync overrun IT */
  21262. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21263. 800933a: 687b ldr r3, [r7, #4]
  21264. 800933c: 6e1b ldr r3, [r3, #96] @ 0x60
  21265. 800933e: 681a ldr r2, [r3, #0]
  21266. 8009340: 687b ldr r3, [r7, #4]
  21267. 8009342: 6e1b ldr r3, [r3, #96] @ 0x60
  21268. 8009344: f422 7280 bic.w r2, r2, #256 @ 0x100
  21269. 8009348: 601a str r2, [r3, #0]
  21270. }
  21271. /* Disable the stream */
  21272. __HAL_DMA_DISABLE(hdma);
  21273. 800934a: 687b ldr r3, [r7, #4]
  21274. 800934c: 681b ldr r3, [r3, #0]
  21275. 800934e: 4a6d ldr r2, [pc, #436] @ (8009504 <HAL_DMA_Abort+0x444>)
  21276. 8009350: 4293 cmp r3, r2
  21277. 8009352: d04a beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21278. 8009354: 687b ldr r3, [r7, #4]
  21279. 8009356: 681b ldr r3, [r3, #0]
  21280. 8009358: 4a6b ldr r2, [pc, #428] @ (8009508 <HAL_DMA_Abort+0x448>)
  21281. 800935a: 4293 cmp r3, r2
  21282. 800935c: d045 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21283. 800935e: 687b ldr r3, [r7, #4]
  21284. 8009360: 681b ldr r3, [r3, #0]
  21285. 8009362: 4a6a ldr r2, [pc, #424] @ (800950c <HAL_DMA_Abort+0x44c>)
  21286. 8009364: 4293 cmp r3, r2
  21287. 8009366: d040 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21288. 8009368: 687b ldr r3, [r7, #4]
  21289. 800936a: 681b ldr r3, [r3, #0]
  21290. 800936c: 4a68 ldr r2, [pc, #416] @ (8009510 <HAL_DMA_Abort+0x450>)
  21291. 800936e: 4293 cmp r3, r2
  21292. 8009370: d03b beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21293. 8009372: 687b ldr r3, [r7, #4]
  21294. 8009374: 681b ldr r3, [r3, #0]
  21295. 8009376: 4a67 ldr r2, [pc, #412] @ (8009514 <HAL_DMA_Abort+0x454>)
  21296. 8009378: 4293 cmp r3, r2
  21297. 800937a: d036 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21298. 800937c: 687b ldr r3, [r7, #4]
  21299. 800937e: 681b ldr r3, [r3, #0]
  21300. 8009380: 4a65 ldr r2, [pc, #404] @ (8009518 <HAL_DMA_Abort+0x458>)
  21301. 8009382: 4293 cmp r3, r2
  21302. 8009384: d031 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21303. 8009386: 687b ldr r3, [r7, #4]
  21304. 8009388: 681b ldr r3, [r3, #0]
  21305. 800938a: 4a64 ldr r2, [pc, #400] @ (800951c <HAL_DMA_Abort+0x45c>)
  21306. 800938c: 4293 cmp r3, r2
  21307. 800938e: d02c beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21308. 8009390: 687b ldr r3, [r7, #4]
  21309. 8009392: 681b ldr r3, [r3, #0]
  21310. 8009394: 4a62 ldr r2, [pc, #392] @ (8009520 <HAL_DMA_Abort+0x460>)
  21311. 8009396: 4293 cmp r3, r2
  21312. 8009398: d027 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21313. 800939a: 687b ldr r3, [r7, #4]
  21314. 800939c: 681b ldr r3, [r3, #0]
  21315. 800939e: 4a61 ldr r2, [pc, #388] @ (8009524 <HAL_DMA_Abort+0x464>)
  21316. 80093a0: 4293 cmp r3, r2
  21317. 80093a2: d022 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21318. 80093a4: 687b ldr r3, [r7, #4]
  21319. 80093a6: 681b ldr r3, [r3, #0]
  21320. 80093a8: 4a5f ldr r2, [pc, #380] @ (8009528 <HAL_DMA_Abort+0x468>)
  21321. 80093aa: 4293 cmp r3, r2
  21322. 80093ac: d01d beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21323. 80093ae: 687b ldr r3, [r7, #4]
  21324. 80093b0: 681b ldr r3, [r3, #0]
  21325. 80093b2: 4a5e ldr r2, [pc, #376] @ (800952c <HAL_DMA_Abort+0x46c>)
  21326. 80093b4: 4293 cmp r3, r2
  21327. 80093b6: d018 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21328. 80093b8: 687b ldr r3, [r7, #4]
  21329. 80093ba: 681b ldr r3, [r3, #0]
  21330. 80093bc: 4a5c ldr r2, [pc, #368] @ (8009530 <HAL_DMA_Abort+0x470>)
  21331. 80093be: 4293 cmp r3, r2
  21332. 80093c0: d013 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21333. 80093c2: 687b ldr r3, [r7, #4]
  21334. 80093c4: 681b ldr r3, [r3, #0]
  21335. 80093c6: 4a5b ldr r2, [pc, #364] @ (8009534 <HAL_DMA_Abort+0x474>)
  21336. 80093c8: 4293 cmp r3, r2
  21337. 80093ca: d00e beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21338. 80093cc: 687b ldr r3, [r7, #4]
  21339. 80093ce: 681b ldr r3, [r3, #0]
  21340. 80093d0: 4a59 ldr r2, [pc, #356] @ (8009538 <HAL_DMA_Abort+0x478>)
  21341. 80093d2: 4293 cmp r3, r2
  21342. 80093d4: d009 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21343. 80093d6: 687b ldr r3, [r7, #4]
  21344. 80093d8: 681b ldr r3, [r3, #0]
  21345. 80093da: 4a58 ldr r2, [pc, #352] @ (800953c <HAL_DMA_Abort+0x47c>)
  21346. 80093dc: 4293 cmp r3, r2
  21347. 80093de: d004 beq.n 80093ea <HAL_DMA_Abort+0x32a>
  21348. 80093e0: 687b ldr r3, [r7, #4]
  21349. 80093e2: 681b ldr r3, [r3, #0]
  21350. 80093e4: 4a56 ldr r2, [pc, #344] @ (8009540 <HAL_DMA_Abort+0x480>)
  21351. 80093e6: 4293 cmp r3, r2
  21352. 80093e8: d108 bne.n 80093fc <HAL_DMA_Abort+0x33c>
  21353. 80093ea: 687b ldr r3, [r7, #4]
  21354. 80093ec: 681b ldr r3, [r3, #0]
  21355. 80093ee: 681a ldr r2, [r3, #0]
  21356. 80093f0: 687b ldr r3, [r7, #4]
  21357. 80093f2: 681b ldr r3, [r3, #0]
  21358. 80093f4: f022 0201 bic.w r2, r2, #1
  21359. 80093f8: 601a str r2, [r3, #0]
  21360. 80093fa: e007 b.n 800940c <HAL_DMA_Abort+0x34c>
  21361. 80093fc: 687b ldr r3, [r7, #4]
  21362. 80093fe: 681b ldr r3, [r3, #0]
  21363. 8009400: 681a ldr r2, [r3, #0]
  21364. 8009402: 687b ldr r3, [r7, #4]
  21365. 8009404: 681b ldr r3, [r3, #0]
  21366. 8009406: f022 0201 bic.w r2, r2, #1
  21367. 800940a: 601a str r2, [r3, #0]
  21368. /* Check if the DMA Stream is effectively disabled */
  21369. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21370. 800940c: e013 b.n 8009436 <HAL_DMA_Abort+0x376>
  21371. {
  21372. /* Check for the Timeout */
  21373. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  21374. 800940e: f7fc fcf5 bl 8005dfc <HAL_GetTick>
  21375. 8009412: 4602 mov r2, r0
  21376. 8009414: 693b ldr r3, [r7, #16]
  21377. 8009416: 1ad3 subs r3, r2, r3
  21378. 8009418: 2b05 cmp r3, #5
  21379. 800941a: d90c bls.n 8009436 <HAL_DMA_Abort+0x376>
  21380. {
  21381. /* Update error code */
  21382. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  21383. 800941c: 687b ldr r3, [r7, #4]
  21384. 800941e: 2220 movs r2, #32
  21385. 8009420: 655a str r2, [r3, #84] @ 0x54
  21386. /* Change the DMA state */
  21387. hdma->State = HAL_DMA_STATE_ERROR;
  21388. 8009422: 687b ldr r3, [r7, #4]
  21389. 8009424: 2203 movs r2, #3
  21390. 8009426: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21391. /* Process Unlocked */
  21392. __HAL_UNLOCK(hdma);
  21393. 800942a: 687b ldr r3, [r7, #4]
  21394. 800942c: 2200 movs r2, #0
  21395. 800942e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21396. return HAL_ERROR;
  21397. 8009432: 2301 movs r3, #1
  21398. 8009434: e12d b.n 8009692 <HAL_DMA_Abort+0x5d2>
  21399. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21400. 8009436: 697b ldr r3, [r7, #20]
  21401. 8009438: 681b ldr r3, [r3, #0]
  21402. 800943a: f003 0301 and.w r3, r3, #1
  21403. 800943e: 2b00 cmp r3, #0
  21404. 8009440: d1e5 bne.n 800940e <HAL_DMA_Abort+0x34e>
  21405. }
  21406. }
  21407. /* Clear all interrupt flags at correct offset within the register */
  21408. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21409. 8009442: 687b ldr r3, [r7, #4]
  21410. 8009444: 681b ldr r3, [r3, #0]
  21411. 8009446: 4a2f ldr r2, [pc, #188] @ (8009504 <HAL_DMA_Abort+0x444>)
  21412. 8009448: 4293 cmp r3, r2
  21413. 800944a: d04a beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21414. 800944c: 687b ldr r3, [r7, #4]
  21415. 800944e: 681b ldr r3, [r3, #0]
  21416. 8009450: 4a2d ldr r2, [pc, #180] @ (8009508 <HAL_DMA_Abort+0x448>)
  21417. 8009452: 4293 cmp r3, r2
  21418. 8009454: d045 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21419. 8009456: 687b ldr r3, [r7, #4]
  21420. 8009458: 681b ldr r3, [r3, #0]
  21421. 800945a: 4a2c ldr r2, [pc, #176] @ (800950c <HAL_DMA_Abort+0x44c>)
  21422. 800945c: 4293 cmp r3, r2
  21423. 800945e: d040 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21424. 8009460: 687b ldr r3, [r7, #4]
  21425. 8009462: 681b ldr r3, [r3, #0]
  21426. 8009464: 4a2a ldr r2, [pc, #168] @ (8009510 <HAL_DMA_Abort+0x450>)
  21427. 8009466: 4293 cmp r3, r2
  21428. 8009468: d03b beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21429. 800946a: 687b ldr r3, [r7, #4]
  21430. 800946c: 681b ldr r3, [r3, #0]
  21431. 800946e: 4a29 ldr r2, [pc, #164] @ (8009514 <HAL_DMA_Abort+0x454>)
  21432. 8009470: 4293 cmp r3, r2
  21433. 8009472: d036 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21434. 8009474: 687b ldr r3, [r7, #4]
  21435. 8009476: 681b ldr r3, [r3, #0]
  21436. 8009478: 4a27 ldr r2, [pc, #156] @ (8009518 <HAL_DMA_Abort+0x458>)
  21437. 800947a: 4293 cmp r3, r2
  21438. 800947c: d031 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21439. 800947e: 687b ldr r3, [r7, #4]
  21440. 8009480: 681b ldr r3, [r3, #0]
  21441. 8009482: 4a26 ldr r2, [pc, #152] @ (800951c <HAL_DMA_Abort+0x45c>)
  21442. 8009484: 4293 cmp r3, r2
  21443. 8009486: d02c beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21444. 8009488: 687b ldr r3, [r7, #4]
  21445. 800948a: 681b ldr r3, [r3, #0]
  21446. 800948c: 4a24 ldr r2, [pc, #144] @ (8009520 <HAL_DMA_Abort+0x460>)
  21447. 800948e: 4293 cmp r3, r2
  21448. 8009490: d027 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21449. 8009492: 687b ldr r3, [r7, #4]
  21450. 8009494: 681b ldr r3, [r3, #0]
  21451. 8009496: 4a23 ldr r2, [pc, #140] @ (8009524 <HAL_DMA_Abort+0x464>)
  21452. 8009498: 4293 cmp r3, r2
  21453. 800949a: d022 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21454. 800949c: 687b ldr r3, [r7, #4]
  21455. 800949e: 681b ldr r3, [r3, #0]
  21456. 80094a0: 4a21 ldr r2, [pc, #132] @ (8009528 <HAL_DMA_Abort+0x468>)
  21457. 80094a2: 4293 cmp r3, r2
  21458. 80094a4: d01d beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21459. 80094a6: 687b ldr r3, [r7, #4]
  21460. 80094a8: 681b ldr r3, [r3, #0]
  21461. 80094aa: 4a20 ldr r2, [pc, #128] @ (800952c <HAL_DMA_Abort+0x46c>)
  21462. 80094ac: 4293 cmp r3, r2
  21463. 80094ae: d018 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21464. 80094b0: 687b ldr r3, [r7, #4]
  21465. 80094b2: 681b ldr r3, [r3, #0]
  21466. 80094b4: 4a1e ldr r2, [pc, #120] @ (8009530 <HAL_DMA_Abort+0x470>)
  21467. 80094b6: 4293 cmp r3, r2
  21468. 80094b8: d013 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21469. 80094ba: 687b ldr r3, [r7, #4]
  21470. 80094bc: 681b ldr r3, [r3, #0]
  21471. 80094be: 4a1d ldr r2, [pc, #116] @ (8009534 <HAL_DMA_Abort+0x474>)
  21472. 80094c0: 4293 cmp r3, r2
  21473. 80094c2: d00e beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21474. 80094c4: 687b ldr r3, [r7, #4]
  21475. 80094c6: 681b ldr r3, [r3, #0]
  21476. 80094c8: 4a1b ldr r2, [pc, #108] @ (8009538 <HAL_DMA_Abort+0x478>)
  21477. 80094ca: 4293 cmp r3, r2
  21478. 80094cc: d009 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21479. 80094ce: 687b ldr r3, [r7, #4]
  21480. 80094d0: 681b ldr r3, [r3, #0]
  21481. 80094d2: 4a1a ldr r2, [pc, #104] @ (800953c <HAL_DMA_Abort+0x47c>)
  21482. 80094d4: 4293 cmp r3, r2
  21483. 80094d6: d004 beq.n 80094e2 <HAL_DMA_Abort+0x422>
  21484. 80094d8: 687b ldr r3, [r7, #4]
  21485. 80094da: 681b ldr r3, [r3, #0]
  21486. 80094dc: 4a18 ldr r2, [pc, #96] @ (8009540 <HAL_DMA_Abort+0x480>)
  21487. 80094de: 4293 cmp r3, r2
  21488. 80094e0: d101 bne.n 80094e6 <HAL_DMA_Abort+0x426>
  21489. 80094e2: 2301 movs r3, #1
  21490. 80094e4: e000 b.n 80094e8 <HAL_DMA_Abort+0x428>
  21491. 80094e6: 2300 movs r3, #0
  21492. 80094e8: 2b00 cmp r3, #0
  21493. 80094ea: d02b beq.n 8009544 <HAL_DMA_Abort+0x484>
  21494. {
  21495. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21496. 80094ec: 687b ldr r3, [r7, #4]
  21497. 80094ee: 6d9b ldr r3, [r3, #88] @ 0x58
  21498. 80094f0: 60bb str r3, [r7, #8]
  21499. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  21500. 80094f2: 687b ldr r3, [r7, #4]
  21501. 80094f4: 6ddb ldr r3, [r3, #92] @ 0x5c
  21502. 80094f6: f003 031f and.w r3, r3, #31
  21503. 80094fa: 223f movs r2, #63 @ 0x3f
  21504. 80094fc: 409a lsls r2, r3
  21505. 80094fe: 68bb ldr r3, [r7, #8]
  21506. 8009500: 609a str r2, [r3, #8]
  21507. 8009502: e02a b.n 800955a <HAL_DMA_Abort+0x49a>
  21508. 8009504: 40020010 .word 0x40020010
  21509. 8009508: 40020028 .word 0x40020028
  21510. 800950c: 40020040 .word 0x40020040
  21511. 8009510: 40020058 .word 0x40020058
  21512. 8009514: 40020070 .word 0x40020070
  21513. 8009518: 40020088 .word 0x40020088
  21514. 800951c: 400200a0 .word 0x400200a0
  21515. 8009520: 400200b8 .word 0x400200b8
  21516. 8009524: 40020410 .word 0x40020410
  21517. 8009528: 40020428 .word 0x40020428
  21518. 800952c: 40020440 .word 0x40020440
  21519. 8009530: 40020458 .word 0x40020458
  21520. 8009534: 40020470 .word 0x40020470
  21521. 8009538: 40020488 .word 0x40020488
  21522. 800953c: 400204a0 .word 0x400204a0
  21523. 8009540: 400204b8 .word 0x400204b8
  21524. }
  21525. else /* BDMA channel */
  21526. {
  21527. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21528. 8009544: 687b ldr r3, [r7, #4]
  21529. 8009546: 6d9b ldr r3, [r3, #88] @ 0x58
  21530. 8009548: 60fb str r3, [r7, #12]
  21531. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21532. 800954a: 687b ldr r3, [r7, #4]
  21533. 800954c: 6ddb ldr r3, [r3, #92] @ 0x5c
  21534. 800954e: f003 031f and.w r3, r3, #31
  21535. 8009552: 2201 movs r2, #1
  21536. 8009554: 409a lsls r2, r3
  21537. 8009556: 68fb ldr r3, [r7, #12]
  21538. 8009558: 605a str r2, [r3, #4]
  21539. }
  21540. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21541. 800955a: 687b ldr r3, [r7, #4]
  21542. 800955c: 681b ldr r3, [r3, #0]
  21543. 800955e: 4a4f ldr r2, [pc, #316] @ (800969c <HAL_DMA_Abort+0x5dc>)
  21544. 8009560: 4293 cmp r3, r2
  21545. 8009562: d072 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21546. 8009564: 687b ldr r3, [r7, #4]
  21547. 8009566: 681b ldr r3, [r3, #0]
  21548. 8009568: 4a4d ldr r2, [pc, #308] @ (80096a0 <HAL_DMA_Abort+0x5e0>)
  21549. 800956a: 4293 cmp r3, r2
  21550. 800956c: d06d beq.n 800964a <HAL_DMA_Abort+0x58a>
  21551. 800956e: 687b ldr r3, [r7, #4]
  21552. 8009570: 681b ldr r3, [r3, #0]
  21553. 8009572: 4a4c ldr r2, [pc, #304] @ (80096a4 <HAL_DMA_Abort+0x5e4>)
  21554. 8009574: 4293 cmp r3, r2
  21555. 8009576: d068 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21556. 8009578: 687b ldr r3, [r7, #4]
  21557. 800957a: 681b ldr r3, [r3, #0]
  21558. 800957c: 4a4a ldr r2, [pc, #296] @ (80096a8 <HAL_DMA_Abort+0x5e8>)
  21559. 800957e: 4293 cmp r3, r2
  21560. 8009580: d063 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21561. 8009582: 687b ldr r3, [r7, #4]
  21562. 8009584: 681b ldr r3, [r3, #0]
  21563. 8009586: 4a49 ldr r2, [pc, #292] @ (80096ac <HAL_DMA_Abort+0x5ec>)
  21564. 8009588: 4293 cmp r3, r2
  21565. 800958a: d05e beq.n 800964a <HAL_DMA_Abort+0x58a>
  21566. 800958c: 687b ldr r3, [r7, #4]
  21567. 800958e: 681b ldr r3, [r3, #0]
  21568. 8009590: 4a47 ldr r2, [pc, #284] @ (80096b0 <HAL_DMA_Abort+0x5f0>)
  21569. 8009592: 4293 cmp r3, r2
  21570. 8009594: d059 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21571. 8009596: 687b ldr r3, [r7, #4]
  21572. 8009598: 681b ldr r3, [r3, #0]
  21573. 800959a: 4a46 ldr r2, [pc, #280] @ (80096b4 <HAL_DMA_Abort+0x5f4>)
  21574. 800959c: 4293 cmp r3, r2
  21575. 800959e: d054 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21576. 80095a0: 687b ldr r3, [r7, #4]
  21577. 80095a2: 681b ldr r3, [r3, #0]
  21578. 80095a4: 4a44 ldr r2, [pc, #272] @ (80096b8 <HAL_DMA_Abort+0x5f8>)
  21579. 80095a6: 4293 cmp r3, r2
  21580. 80095a8: d04f beq.n 800964a <HAL_DMA_Abort+0x58a>
  21581. 80095aa: 687b ldr r3, [r7, #4]
  21582. 80095ac: 681b ldr r3, [r3, #0]
  21583. 80095ae: 4a43 ldr r2, [pc, #268] @ (80096bc <HAL_DMA_Abort+0x5fc>)
  21584. 80095b0: 4293 cmp r3, r2
  21585. 80095b2: d04a beq.n 800964a <HAL_DMA_Abort+0x58a>
  21586. 80095b4: 687b ldr r3, [r7, #4]
  21587. 80095b6: 681b ldr r3, [r3, #0]
  21588. 80095b8: 4a41 ldr r2, [pc, #260] @ (80096c0 <HAL_DMA_Abort+0x600>)
  21589. 80095ba: 4293 cmp r3, r2
  21590. 80095bc: d045 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21591. 80095be: 687b ldr r3, [r7, #4]
  21592. 80095c0: 681b ldr r3, [r3, #0]
  21593. 80095c2: 4a40 ldr r2, [pc, #256] @ (80096c4 <HAL_DMA_Abort+0x604>)
  21594. 80095c4: 4293 cmp r3, r2
  21595. 80095c6: d040 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21596. 80095c8: 687b ldr r3, [r7, #4]
  21597. 80095ca: 681b ldr r3, [r3, #0]
  21598. 80095cc: 4a3e ldr r2, [pc, #248] @ (80096c8 <HAL_DMA_Abort+0x608>)
  21599. 80095ce: 4293 cmp r3, r2
  21600. 80095d0: d03b beq.n 800964a <HAL_DMA_Abort+0x58a>
  21601. 80095d2: 687b ldr r3, [r7, #4]
  21602. 80095d4: 681b ldr r3, [r3, #0]
  21603. 80095d6: 4a3d ldr r2, [pc, #244] @ (80096cc <HAL_DMA_Abort+0x60c>)
  21604. 80095d8: 4293 cmp r3, r2
  21605. 80095da: d036 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21606. 80095dc: 687b ldr r3, [r7, #4]
  21607. 80095de: 681b ldr r3, [r3, #0]
  21608. 80095e0: 4a3b ldr r2, [pc, #236] @ (80096d0 <HAL_DMA_Abort+0x610>)
  21609. 80095e2: 4293 cmp r3, r2
  21610. 80095e4: d031 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21611. 80095e6: 687b ldr r3, [r7, #4]
  21612. 80095e8: 681b ldr r3, [r3, #0]
  21613. 80095ea: 4a3a ldr r2, [pc, #232] @ (80096d4 <HAL_DMA_Abort+0x614>)
  21614. 80095ec: 4293 cmp r3, r2
  21615. 80095ee: d02c beq.n 800964a <HAL_DMA_Abort+0x58a>
  21616. 80095f0: 687b ldr r3, [r7, #4]
  21617. 80095f2: 681b ldr r3, [r3, #0]
  21618. 80095f4: 4a38 ldr r2, [pc, #224] @ (80096d8 <HAL_DMA_Abort+0x618>)
  21619. 80095f6: 4293 cmp r3, r2
  21620. 80095f8: d027 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21621. 80095fa: 687b ldr r3, [r7, #4]
  21622. 80095fc: 681b ldr r3, [r3, #0]
  21623. 80095fe: 4a37 ldr r2, [pc, #220] @ (80096dc <HAL_DMA_Abort+0x61c>)
  21624. 8009600: 4293 cmp r3, r2
  21625. 8009602: d022 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21626. 8009604: 687b ldr r3, [r7, #4]
  21627. 8009606: 681b ldr r3, [r3, #0]
  21628. 8009608: 4a35 ldr r2, [pc, #212] @ (80096e0 <HAL_DMA_Abort+0x620>)
  21629. 800960a: 4293 cmp r3, r2
  21630. 800960c: d01d beq.n 800964a <HAL_DMA_Abort+0x58a>
  21631. 800960e: 687b ldr r3, [r7, #4]
  21632. 8009610: 681b ldr r3, [r3, #0]
  21633. 8009612: 4a34 ldr r2, [pc, #208] @ (80096e4 <HAL_DMA_Abort+0x624>)
  21634. 8009614: 4293 cmp r3, r2
  21635. 8009616: d018 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21636. 8009618: 687b ldr r3, [r7, #4]
  21637. 800961a: 681b ldr r3, [r3, #0]
  21638. 800961c: 4a32 ldr r2, [pc, #200] @ (80096e8 <HAL_DMA_Abort+0x628>)
  21639. 800961e: 4293 cmp r3, r2
  21640. 8009620: d013 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21641. 8009622: 687b ldr r3, [r7, #4]
  21642. 8009624: 681b ldr r3, [r3, #0]
  21643. 8009626: 4a31 ldr r2, [pc, #196] @ (80096ec <HAL_DMA_Abort+0x62c>)
  21644. 8009628: 4293 cmp r3, r2
  21645. 800962a: d00e beq.n 800964a <HAL_DMA_Abort+0x58a>
  21646. 800962c: 687b ldr r3, [r7, #4]
  21647. 800962e: 681b ldr r3, [r3, #0]
  21648. 8009630: 4a2f ldr r2, [pc, #188] @ (80096f0 <HAL_DMA_Abort+0x630>)
  21649. 8009632: 4293 cmp r3, r2
  21650. 8009634: d009 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21651. 8009636: 687b ldr r3, [r7, #4]
  21652. 8009638: 681b ldr r3, [r3, #0]
  21653. 800963a: 4a2e ldr r2, [pc, #184] @ (80096f4 <HAL_DMA_Abort+0x634>)
  21654. 800963c: 4293 cmp r3, r2
  21655. 800963e: d004 beq.n 800964a <HAL_DMA_Abort+0x58a>
  21656. 8009640: 687b ldr r3, [r7, #4]
  21657. 8009642: 681b ldr r3, [r3, #0]
  21658. 8009644: 4a2c ldr r2, [pc, #176] @ (80096f8 <HAL_DMA_Abort+0x638>)
  21659. 8009646: 4293 cmp r3, r2
  21660. 8009648: d101 bne.n 800964e <HAL_DMA_Abort+0x58e>
  21661. 800964a: 2301 movs r3, #1
  21662. 800964c: e000 b.n 8009650 <HAL_DMA_Abort+0x590>
  21663. 800964e: 2300 movs r3, #0
  21664. 8009650: 2b00 cmp r3, #0
  21665. 8009652: d015 beq.n 8009680 <HAL_DMA_Abort+0x5c0>
  21666. {
  21667. /* Clear the DMAMUX synchro overrun flag */
  21668. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21669. 8009654: 687b ldr r3, [r7, #4]
  21670. 8009656: 6e5b ldr r3, [r3, #100] @ 0x64
  21671. 8009658: 687a ldr r2, [r7, #4]
  21672. 800965a: 6e92 ldr r2, [r2, #104] @ 0x68
  21673. 800965c: 605a str r2, [r3, #4]
  21674. if(hdma->DMAmuxRequestGen != 0U)
  21675. 800965e: 687b ldr r3, [r7, #4]
  21676. 8009660: 6edb ldr r3, [r3, #108] @ 0x6c
  21677. 8009662: 2b00 cmp r3, #0
  21678. 8009664: d00c beq.n 8009680 <HAL_DMA_Abort+0x5c0>
  21679. {
  21680. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  21681. /* disable the request gen overrun IT */
  21682. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21683. 8009666: 687b ldr r3, [r7, #4]
  21684. 8009668: 6edb ldr r3, [r3, #108] @ 0x6c
  21685. 800966a: 681a ldr r2, [r3, #0]
  21686. 800966c: 687b ldr r3, [r7, #4]
  21687. 800966e: 6edb ldr r3, [r3, #108] @ 0x6c
  21688. 8009670: f422 7280 bic.w r2, r2, #256 @ 0x100
  21689. 8009674: 601a str r2, [r3, #0]
  21690. /* Clear the DMAMUX request generator overrun flag */
  21691. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21692. 8009676: 687b ldr r3, [r7, #4]
  21693. 8009678: 6f1b ldr r3, [r3, #112] @ 0x70
  21694. 800967a: 687a ldr r2, [r7, #4]
  21695. 800967c: 6f52 ldr r2, [r2, #116] @ 0x74
  21696. 800967e: 605a str r2, [r3, #4]
  21697. }
  21698. }
  21699. /* Change the DMA state */
  21700. hdma->State = HAL_DMA_STATE_READY;
  21701. 8009680: 687b ldr r3, [r7, #4]
  21702. 8009682: 2201 movs r2, #1
  21703. 8009684: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21704. /* Process Unlocked */
  21705. __HAL_UNLOCK(hdma);
  21706. 8009688: 687b ldr r3, [r7, #4]
  21707. 800968a: 2200 movs r2, #0
  21708. 800968c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21709. }
  21710. return HAL_OK;
  21711. 8009690: 2300 movs r3, #0
  21712. }
  21713. 8009692: 4618 mov r0, r3
  21714. 8009694: 3718 adds r7, #24
  21715. 8009696: 46bd mov sp, r7
  21716. 8009698: bd80 pop {r7, pc}
  21717. 800969a: bf00 nop
  21718. 800969c: 40020010 .word 0x40020010
  21719. 80096a0: 40020028 .word 0x40020028
  21720. 80096a4: 40020040 .word 0x40020040
  21721. 80096a8: 40020058 .word 0x40020058
  21722. 80096ac: 40020070 .word 0x40020070
  21723. 80096b0: 40020088 .word 0x40020088
  21724. 80096b4: 400200a0 .word 0x400200a0
  21725. 80096b8: 400200b8 .word 0x400200b8
  21726. 80096bc: 40020410 .word 0x40020410
  21727. 80096c0: 40020428 .word 0x40020428
  21728. 80096c4: 40020440 .word 0x40020440
  21729. 80096c8: 40020458 .word 0x40020458
  21730. 80096cc: 40020470 .word 0x40020470
  21731. 80096d0: 40020488 .word 0x40020488
  21732. 80096d4: 400204a0 .word 0x400204a0
  21733. 80096d8: 400204b8 .word 0x400204b8
  21734. 80096dc: 58025408 .word 0x58025408
  21735. 80096e0: 5802541c .word 0x5802541c
  21736. 80096e4: 58025430 .word 0x58025430
  21737. 80096e8: 58025444 .word 0x58025444
  21738. 80096ec: 58025458 .word 0x58025458
  21739. 80096f0: 5802546c .word 0x5802546c
  21740. 80096f4: 58025480 .word 0x58025480
  21741. 80096f8: 58025494 .word 0x58025494
  21742. 080096fc <HAL_DMA_Abort_IT>:
  21743. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  21744. * the configuration information for the specified DMA Stream.
  21745. * @retval HAL status
  21746. */
  21747. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  21748. {
  21749. 80096fc: b580 push {r7, lr}
  21750. 80096fe: b084 sub sp, #16
  21751. 8009700: af00 add r7, sp, #0
  21752. 8009702: 6078 str r0, [r7, #4]
  21753. BDMA_Base_Registers *regs_bdma;
  21754. /* Check the DMA peripheral handle */
  21755. if(hdma == NULL)
  21756. 8009704: 687b ldr r3, [r7, #4]
  21757. 8009706: 2b00 cmp r3, #0
  21758. 8009708: d101 bne.n 800970e <HAL_DMA_Abort_IT+0x12>
  21759. {
  21760. return HAL_ERROR;
  21761. 800970a: 2301 movs r3, #1
  21762. 800970c: e237 b.n 8009b7e <HAL_DMA_Abort_IT+0x482>
  21763. }
  21764. if(hdma->State != HAL_DMA_STATE_BUSY)
  21765. 800970e: 687b ldr r3, [r7, #4]
  21766. 8009710: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21767. 8009714: b2db uxtb r3, r3
  21768. 8009716: 2b02 cmp r3, #2
  21769. 8009718: d004 beq.n 8009724 <HAL_DMA_Abort_IT+0x28>
  21770. {
  21771. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21772. 800971a: 687b ldr r3, [r7, #4]
  21773. 800971c: 2280 movs r2, #128 @ 0x80
  21774. 800971e: 655a str r2, [r3, #84] @ 0x54
  21775. return HAL_ERROR;
  21776. 8009720: 2301 movs r3, #1
  21777. 8009722: e22c b.n 8009b7e <HAL_DMA_Abort_IT+0x482>
  21778. }
  21779. else
  21780. {
  21781. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21782. 8009724: 687b ldr r3, [r7, #4]
  21783. 8009726: 681b ldr r3, [r3, #0]
  21784. 8009728: 4a5c ldr r2, [pc, #368] @ (800989c <HAL_DMA_Abort_IT+0x1a0>)
  21785. 800972a: 4293 cmp r3, r2
  21786. 800972c: d04a beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21787. 800972e: 687b ldr r3, [r7, #4]
  21788. 8009730: 681b ldr r3, [r3, #0]
  21789. 8009732: 4a5b ldr r2, [pc, #364] @ (80098a0 <HAL_DMA_Abort_IT+0x1a4>)
  21790. 8009734: 4293 cmp r3, r2
  21791. 8009736: d045 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21792. 8009738: 687b ldr r3, [r7, #4]
  21793. 800973a: 681b ldr r3, [r3, #0]
  21794. 800973c: 4a59 ldr r2, [pc, #356] @ (80098a4 <HAL_DMA_Abort_IT+0x1a8>)
  21795. 800973e: 4293 cmp r3, r2
  21796. 8009740: d040 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21797. 8009742: 687b ldr r3, [r7, #4]
  21798. 8009744: 681b ldr r3, [r3, #0]
  21799. 8009746: 4a58 ldr r2, [pc, #352] @ (80098a8 <HAL_DMA_Abort_IT+0x1ac>)
  21800. 8009748: 4293 cmp r3, r2
  21801. 800974a: d03b beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21802. 800974c: 687b ldr r3, [r7, #4]
  21803. 800974e: 681b ldr r3, [r3, #0]
  21804. 8009750: 4a56 ldr r2, [pc, #344] @ (80098ac <HAL_DMA_Abort_IT+0x1b0>)
  21805. 8009752: 4293 cmp r3, r2
  21806. 8009754: d036 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21807. 8009756: 687b ldr r3, [r7, #4]
  21808. 8009758: 681b ldr r3, [r3, #0]
  21809. 800975a: 4a55 ldr r2, [pc, #340] @ (80098b0 <HAL_DMA_Abort_IT+0x1b4>)
  21810. 800975c: 4293 cmp r3, r2
  21811. 800975e: d031 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21812. 8009760: 687b ldr r3, [r7, #4]
  21813. 8009762: 681b ldr r3, [r3, #0]
  21814. 8009764: 4a53 ldr r2, [pc, #332] @ (80098b4 <HAL_DMA_Abort_IT+0x1b8>)
  21815. 8009766: 4293 cmp r3, r2
  21816. 8009768: d02c beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21817. 800976a: 687b ldr r3, [r7, #4]
  21818. 800976c: 681b ldr r3, [r3, #0]
  21819. 800976e: 4a52 ldr r2, [pc, #328] @ (80098b8 <HAL_DMA_Abort_IT+0x1bc>)
  21820. 8009770: 4293 cmp r3, r2
  21821. 8009772: d027 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21822. 8009774: 687b ldr r3, [r7, #4]
  21823. 8009776: 681b ldr r3, [r3, #0]
  21824. 8009778: 4a50 ldr r2, [pc, #320] @ (80098bc <HAL_DMA_Abort_IT+0x1c0>)
  21825. 800977a: 4293 cmp r3, r2
  21826. 800977c: d022 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21827. 800977e: 687b ldr r3, [r7, #4]
  21828. 8009780: 681b ldr r3, [r3, #0]
  21829. 8009782: 4a4f ldr r2, [pc, #316] @ (80098c0 <HAL_DMA_Abort_IT+0x1c4>)
  21830. 8009784: 4293 cmp r3, r2
  21831. 8009786: d01d beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21832. 8009788: 687b ldr r3, [r7, #4]
  21833. 800978a: 681b ldr r3, [r3, #0]
  21834. 800978c: 4a4d ldr r2, [pc, #308] @ (80098c4 <HAL_DMA_Abort_IT+0x1c8>)
  21835. 800978e: 4293 cmp r3, r2
  21836. 8009790: d018 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21837. 8009792: 687b ldr r3, [r7, #4]
  21838. 8009794: 681b ldr r3, [r3, #0]
  21839. 8009796: 4a4c ldr r2, [pc, #304] @ (80098c8 <HAL_DMA_Abort_IT+0x1cc>)
  21840. 8009798: 4293 cmp r3, r2
  21841. 800979a: d013 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21842. 800979c: 687b ldr r3, [r7, #4]
  21843. 800979e: 681b ldr r3, [r3, #0]
  21844. 80097a0: 4a4a ldr r2, [pc, #296] @ (80098cc <HAL_DMA_Abort_IT+0x1d0>)
  21845. 80097a2: 4293 cmp r3, r2
  21846. 80097a4: d00e beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21847. 80097a6: 687b ldr r3, [r7, #4]
  21848. 80097a8: 681b ldr r3, [r3, #0]
  21849. 80097aa: 4a49 ldr r2, [pc, #292] @ (80098d0 <HAL_DMA_Abort_IT+0x1d4>)
  21850. 80097ac: 4293 cmp r3, r2
  21851. 80097ae: d009 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21852. 80097b0: 687b ldr r3, [r7, #4]
  21853. 80097b2: 681b ldr r3, [r3, #0]
  21854. 80097b4: 4a47 ldr r2, [pc, #284] @ (80098d4 <HAL_DMA_Abort_IT+0x1d8>)
  21855. 80097b6: 4293 cmp r3, r2
  21856. 80097b8: d004 beq.n 80097c4 <HAL_DMA_Abort_IT+0xc8>
  21857. 80097ba: 687b ldr r3, [r7, #4]
  21858. 80097bc: 681b ldr r3, [r3, #0]
  21859. 80097be: 4a46 ldr r2, [pc, #280] @ (80098d8 <HAL_DMA_Abort_IT+0x1dc>)
  21860. 80097c0: 4293 cmp r3, r2
  21861. 80097c2: d101 bne.n 80097c8 <HAL_DMA_Abort_IT+0xcc>
  21862. 80097c4: 2301 movs r3, #1
  21863. 80097c6: e000 b.n 80097ca <HAL_DMA_Abort_IT+0xce>
  21864. 80097c8: 2300 movs r3, #0
  21865. 80097ca: 2b00 cmp r3, #0
  21866. 80097cc: f000 8086 beq.w 80098dc <HAL_DMA_Abort_IT+0x1e0>
  21867. {
  21868. /* Set Abort State */
  21869. hdma->State = HAL_DMA_STATE_ABORT;
  21870. 80097d0: 687b ldr r3, [r7, #4]
  21871. 80097d2: 2204 movs r2, #4
  21872. 80097d4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21873. /* Disable the stream */
  21874. __HAL_DMA_DISABLE(hdma);
  21875. 80097d8: 687b ldr r3, [r7, #4]
  21876. 80097da: 681b ldr r3, [r3, #0]
  21877. 80097dc: 4a2f ldr r2, [pc, #188] @ (800989c <HAL_DMA_Abort_IT+0x1a0>)
  21878. 80097de: 4293 cmp r3, r2
  21879. 80097e0: d04a beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21880. 80097e2: 687b ldr r3, [r7, #4]
  21881. 80097e4: 681b ldr r3, [r3, #0]
  21882. 80097e6: 4a2e ldr r2, [pc, #184] @ (80098a0 <HAL_DMA_Abort_IT+0x1a4>)
  21883. 80097e8: 4293 cmp r3, r2
  21884. 80097ea: d045 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21885. 80097ec: 687b ldr r3, [r7, #4]
  21886. 80097ee: 681b ldr r3, [r3, #0]
  21887. 80097f0: 4a2c ldr r2, [pc, #176] @ (80098a4 <HAL_DMA_Abort_IT+0x1a8>)
  21888. 80097f2: 4293 cmp r3, r2
  21889. 80097f4: d040 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21890. 80097f6: 687b ldr r3, [r7, #4]
  21891. 80097f8: 681b ldr r3, [r3, #0]
  21892. 80097fa: 4a2b ldr r2, [pc, #172] @ (80098a8 <HAL_DMA_Abort_IT+0x1ac>)
  21893. 80097fc: 4293 cmp r3, r2
  21894. 80097fe: d03b beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21895. 8009800: 687b ldr r3, [r7, #4]
  21896. 8009802: 681b ldr r3, [r3, #0]
  21897. 8009804: 4a29 ldr r2, [pc, #164] @ (80098ac <HAL_DMA_Abort_IT+0x1b0>)
  21898. 8009806: 4293 cmp r3, r2
  21899. 8009808: d036 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21900. 800980a: 687b ldr r3, [r7, #4]
  21901. 800980c: 681b ldr r3, [r3, #0]
  21902. 800980e: 4a28 ldr r2, [pc, #160] @ (80098b0 <HAL_DMA_Abort_IT+0x1b4>)
  21903. 8009810: 4293 cmp r3, r2
  21904. 8009812: d031 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21905. 8009814: 687b ldr r3, [r7, #4]
  21906. 8009816: 681b ldr r3, [r3, #0]
  21907. 8009818: 4a26 ldr r2, [pc, #152] @ (80098b4 <HAL_DMA_Abort_IT+0x1b8>)
  21908. 800981a: 4293 cmp r3, r2
  21909. 800981c: d02c beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21910. 800981e: 687b ldr r3, [r7, #4]
  21911. 8009820: 681b ldr r3, [r3, #0]
  21912. 8009822: 4a25 ldr r2, [pc, #148] @ (80098b8 <HAL_DMA_Abort_IT+0x1bc>)
  21913. 8009824: 4293 cmp r3, r2
  21914. 8009826: d027 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21915. 8009828: 687b ldr r3, [r7, #4]
  21916. 800982a: 681b ldr r3, [r3, #0]
  21917. 800982c: 4a23 ldr r2, [pc, #140] @ (80098bc <HAL_DMA_Abort_IT+0x1c0>)
  21918. 800982e: 4293 cmp r3, r2
  21919. 8009830: d022 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21920. 8009832: 687b ldr r3, [r7, #4]
  21921. 8009834: 681b ldr r3, [r3, #0]
  21922. 8009836: 4a22 ldr r2, [pc, #136] @ (80098c0 <HAL_DMA_Abort_IT+0x1c4>)
  21923. 8009838: 4293 cmp r3, r2
  21924. 800983a: d01d beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21925. 800983c: 687b ldr r3, [r7, #4]
  21926. 800983e: 681b ldr r3, [r3, #0]
  21927. 8009840: 4a20 ldr r2, [pc, #128] @ (80098c4 <HAL_DMA_Abort_IT+0x1c8>)
  21928. 8009842: 4293 cmp r3, r2
  21929. 8009844: d018 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21930. 8009846: 687b ldr r3, [r7, #4]
  21931. 8009848: 681b ldr r3, [r3, #0]
  21932. 800984a: 4a1f ldr r2, [pc, #124] @ (80098c8 <HAL_DMA_Abort_IT+0x1cc>)
  21933. 800984c: 4293 cmp r3, r2
  21934. 800984e: d013 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21935. 8009850: 687b ldr r3, [r7, #4]
  21936. 8009852: 681b ldr r3, [r3, #0]
  21937. 8009854: 4a1d ldr r2, [pc, #116] @ (80098cc <HAL_DMA_Abort_IT+0x1d0>)
  21938. 8009856: 4293 cmp r3, r2
  21939. 8009858: d00e beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21940. 800985a: 687b ldr r3, [r7, #4]
  21941. 800985c: 681b ldr r3, [r3, #0]
  21942. 800985e: 4a1c ldr r2, [pc, #112] @ (80098d0 <HAL_DMA_Abort_IT+0x1d4>)
  21943. 8009860: 4293 cmp r3, r2
  21944. 8009862: d009 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21945. 8009864: 687b ldr r3, [r7, #4]
  21946. 8009866: 681b ldr r3, [r3, #0]
  21947. 8009868: 4a1a ldr r2, [pc, #104] @ (80098d4 <HAL_DMA_Abort_IT+0x1d8>)
  21948. 800986a: 4293 cmp r3, r2
  21949. 800986c: d004 beq.n 8009878 <HAL_DMA_Abort_IT+0x17c>
  21950. 800986e: 687b ldr r3, [r7, #4]
  21951. 8009870: 681b ldr r3, [r3, #0]
  21952. 8009872: 4a19 ldr r2, [pc, #100] @ (80098d8 <HAL_DMA_Abort_IT+0x1dc>)
  21953. 8009874: 4293 cmp r3, r2
  21954. 8009876: d108 bne.n 800988a <HAL_DMA_Abort_IT+0x18e>
  21955. 8009878: 687b ldr r3, [r7, #4]
  21956. 800987a: 681b ldr r3, [r3, #0]
  21957. 800987c: 681a ldr r2, [r3, #0]
  21958. 800987e: 687b ldr r3, [r7, #4]
  21959. 8009880: 681b ldr r3, [r3, #0]
  21960. 8009882: f022 0201 bic.w r2, r2, #1
  21961. 8009886: 601a str r2, [r3, #0]
  21962. 8009888: e178 b.n 8009b7c <HAL_DMA_Abort_IT+0x480>
  21963. 800988a: 687b ldr r3, [r7, #4]
  21964. 800988c: 681b ldr r3, [r3, #0]
  21965. 800988e: 681a ldr r2, [r3, #0]
  21966. 8009890: 687b ldr r3, [r7, #4]
  21967. 8009892: 681b ldr r3, [r3, #0]
  21968. 8009894: f022 0201 bic.w r2, r2, #1
  21969. 8009898: 601a str r2, [r3, #0]
  21970. 800989a: e16f b.n 8009b7c <HAL_DMA_Abort_IT+0x480>
  21971. 800989c: 40020010 .word 0x40020010
  21972. 80098a0: 40020028 .word 0x40020028
  21973. 80098a4: 40020040 .word 0x40020040
  21974. 80098a8: 40020058 .word 0x40020058
  21975. 80098ac: 40020070 .word 0x40020070
  21976. 80098b0: 40020088 .word 0x40020088
  21977. 80098b4: 400200a0 .word 0x400200a0
  21978. 80098b8: 400200b8 .word 0x400200b8
  21979. 80098bc: 40020410 .word 0x40020410
  21980. 80098c0: 40020428 .word 0x40020428
  21981. 80098c4: 40020440 .word 0x40020440
  21982. 80098c8: 40020458 .word 0x40020458
  21983. 80098cc: 40020470 .word 0x40020470
  21984. 80098d0: 40020488 .word 0x40020488
  21985. 80098d4: 400204a0 .word 0x400204a0
  21986. 80098d8: 400204b8 .word 0x400204b8
  21987. }
  21988. else /* BDMA channel */
  21989. {
  21990. /* Disable DMA All Interrupts */
  21991. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21992. 80098dc: 687b ldr r3, [r7, #4]
  21993. 80098de: 681b ldr r3, [r3, #0]
  21994. 80098e0: 681a ldr r2, [r3, #0]
  21995. 80098e2: 687b ldr r3, [r7, #4]
  21996. 80098e4: 681b ldr r3, [r3, #0]
  21997. 80098e6: f022 020e bic.w r2, r2, #14
  21998. 80098ea: 601a str r2, [r3, #0]
  21999. /* Disable the channel */
  22000. __HAL_DMA_DISABLE(hdma);
  22001. 80098ec: 687b ldr r3, [r7, #4]
  22002. 80098ee: 681b ldr r3, [r3, #0]
  22003. 80098f0: 4a6c ldr r2, [pc, #432] @ (8009aa4 <HAL_DMA_Abort_IT+0x3a8>)
  22004. 80098f2: 4293 cmp r3, r2
  22005. 80098f4: d04a beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22006. 80098f6: 687b ldr r3, [r7, #4]
  22007. 80098f8: 681b ldr r3, [r3, #0]
  22008. 80098fa: 4a6b ldr r2, [pc, #428] @ (8009aa8 <HAL_DMA_Abort_IT+0x3ac>)
  22009. 80098fc: 4293 cmp r3, r2
  22010. 80098fe: d045 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22011. 8009900: 687b ldr r3, [r7, #4]
  22012. 8009902: 681b ldr r3, [r3, #0]
  22013. 8009904: 4a69 ldr r2, [pc, #420] @ (8009aac <HAL_DMA_Abort_IT+0x3b0>)
  22014. 8009906: 4293 cmp r3, r2
  22015. 8009908: d040 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22016. 800990a: 687b ldr r3, [r7, #4]
  22017. 800990c: 681b ldr r3, [r3, #0]
  22018. 800990e: 4a68 ldr r2, [pc, #416] @ (8009ab0 <HAL_DMA_Abort_IT+0x3b4>)
  22019. 8009910: 4293 cmp r3, r2
  22020. 8009912: d03b beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22021. 8009914: 687b ldr r3, [r7, #4]
  22022. 8009916: 681b ldr r3, [r3, #0]
  22023. 8009918: 4a66 ldr r2, [pc, #408] @ (8009ab4 <HAL_DMA_Abort_IT+0x3b8>)
  22024. 800991a: 4293 cmp r3, r2
  22025. 800991c: d036 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22026. 800991e: 687b ldr r3, [r7, #4]
  22027. 8009920: 681b ldr r3, [r3, #0]
  22028. 8009922: 4a65 ldr r2, [pc, #404] @ (8009ab8 <HAL_DMA_Abort_IT+0x3bc>)
  22029. 8009924: 4293 cmp r3, r2
  22030. 8009926: d031 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22031. 8009928: 687b ldr r3, [r7, #4]
  22032. 800992a: 681b ldr r3, [r3, #0]
  22033. 800992c: 4a63 ldr r2, [pc, #396] @ (8009abc <HAL_DMA_Abort_IT+0x3c0>)
  22034. 800992e: 4293 cmp r3, r2
  22035. 8009930: d02c beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22036. 8009932: 687b ldr r3, [r7, #4]
  22037. 8009934: 681b ldr r3, [r3, #0]
  22038. 8009936: 4a62 ldr r2, [pc, #392] @ (8009ac0 <HAL_DMA_Abort_IT+0x3c4>)
  22039. 8009938: 4293 cmp r3, r2
  22040. 800993a: d027 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22041. 800993c: 687b ldr r3, [r7, #4]
  22042. 800993e: 681b ldr r3, [r3, #0]
  22043. 8009940: 4a60 ldr r2, [pc, #384] @ (8009ac4 <HAL_DMA_Abort_IT+0x3c8>)
  22044. 8009942: 4293 cmp r3, r2
  22045. 8009944: d022 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22046. 8009946: 687b ldr r3, [r7, #4]
  22047. 8009948: 681b ldr r3, [r3, #0]
  22048. 800994a: 4a5f ldr r2, [pc, #380] @ (8009ac8 <HAL_DMA_Abort_IT+0x3cc>)
  22049. 800994c: 4293 cmp r3, r2
  22050. 800994e: d01d beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22051. 8009950: 687b ldr r3, [r7, #4]
  22052. 8009952: 681b ldr r3, [r3, #0]
  22053. 8009954: 4a5d ldr r2, [pc, #372] @ (8009acc <HAL_DMA_Abort_IT+0x3d0>)
  22054. 8009956: 4293 cmp r3, r2
  22055. 8009958: d018 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22056. 800995a: 687b ldr r3, [r7, #4]
  22057. 800995c: 681b ldr r3, [r3, #0]
  22058. 800995e: 4a5c ldr r2, [pc, #368] @ (8009ad0 <HAL_DMA_Abort_IT+0x3d4>)
  22059. 8009960: 4293 cmp r3, r2
  22060. 8009962: d013 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22061. 8009964: 687b ldr r3, [r7, #4]
  22062. 8009966: 681b ldr r3, [r3, #0]
  22063. 8009968: 4a5a ldr r2, [pc, #360] @ (8009ad4 <HAL_DMA_Abort_IT+0x3d8>)
  22064. 800996a: 4293 cmp r3, r2
  22065. 800996c: d00e beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22066. 800996e: 687b ldr r3, [r7, #4]
  22067. 8009970: 681b ldr r3, [r3, #0]
  22068. 8009972: 4a59 ldr r2, [pc, #356] @ (8009ad8 <HAL_DMA_Abort_IT+0x3dc>)
  22069. 8009974: 4293 cmp r3, r2
  22070. 8009976: d009 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22071. 8009978: 687b ldr r3, [r7, #4]
  22072. 800997a: 681b ldr r3, [r3, #0]
  22073. 800997c: 4a57 ldr r2, [pc, #348] @ (8009adc <HAL_DMA_Abort_IT+0x3e0>)
  22074. 800997e: 4293 cmp r3, r2
  22075. 8009980: d004 beq.n 800998c <HAL_DMA_Abort_IT+0x290>
  22076. 8009982: 687b ldr r3, [r7, #4]
  22077. 8009984: 681b ldr r3, [r3, #0]
  22078. 8009986: 4a56 ldr r2, [pc, #344] @ (8009ae0 <HAL_DMA_Abort_IT+0x3e4>)
  22079. 8009988: 4293 cmp r3, r2
  22080. 800998a: d108 bne.n 800999e <HAL_DMA_Abort_IT+0x2a2>
  22081. 800998c: 687b ldr r3, [r7, #4]
  22082. 800998e: 681b ldr r3, [r3, #0]
  22083. 8009990: 681a ldr r2, [r3, #0]
  22084. 8009992: 687b ldr r3, [r7, #4]
  22085. 8009994: 681b ldr r3, [r3, #0]
  22086. 8009996: f022 0201 bic.w r2, r2, #1
  22087. 800999a: 601a str r2, [r3, #0]
  22088. 800999c: e007 b.n 80099ae <HAL_DMA_Abort_IT+0x2b2>
  22089. 800999e: 687b ldr r3, [r7, #4]
  22090. 80099a0: 681b ldr r3, [r3, #0]
  22091. 80099a2: 681a ldr r2, [r3, #0]
  22092. 80099a4: 687b ldr r3, [r7, #4]
  22093. 80099a6: 681b ldr r3, [r3, #0]
  22094. 80099a8: f022 0201 bic.w r2, r2, #1
  22095. 80099ac: 601a str r2, [r3, #0]
  22096. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  22097. 80099ae: 687b ldr r3, [r7, #4]
  22098. 80099b0: 681b ldr r3, [r3, #0]
  22099. 80099b2: 4a3c ldr r2, [pc, #240] @ (8009aa4 <HAL_DMA_Abort_IT+0x3a8>)
  22100. 80099b4: 4293 cmp r3, r2
  22101. 80099b6: d072 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22102. 80099b8: 687b ldr r3, [r7, #4]
  22103. 80099ba: 681b ldr r3, [r3, #0]
  22104. 80099bc: 4a3a ldr r2, [pc, #232] @ (8009aa8 <HAL_DMA_Abort_IT+0x3ac>)
  22105. 80099be: 4293 cmp r3, r2
  22106. 80099c0: d06d beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22107. 80099c2: 687b ldr r3, [r7, #4]
  22108. 80099c4: 681b ldr r3, [r3, #0]
  22109. 80099c6: 4a39 ldr r2, [pc, #228] @ (8009aac <HAL_DMA_Abort_IT+0x3b0>)
  22110. 80099c8: 4293 cmp r3, r2
  22111. 80099ca: d068 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22112. 80099cc: 687b ldr r3, [r7, #4]
  22113. 80099ce: 681b ldr r3, [r3, #0]
  22114. 80099d0: 4a37 ldr r2, [pc, #220] @ (8009ab0 <HAL_DMA_Abort_IT+0x3b4>)
  22115. 80099d2: 4293 cmp r3, r2
  22116. 80099d4: d063 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22117. 80099d6: 687b ldr r3, [r7, #4]
  22118. 80099d8: 681b ldr r3, [r3, #0]
  22119. 80099da: 4a36 ldr r2, [pc, #216] @ (8009ab4 <HAL_DMA_Abort_IT+0x3b8>)
  22120. 80099dc: 4293 cmp r3, r2
  22121. 80099de: d05e beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22122. 80099e0: 687b ldr r3, [r7, #4]
  22123. 80099e2: 681b ldr r3, [r3, #0]
  22124. 80099e4: 4a34 ldr r2, [pc, #208] @ (8009ab8 <HAL_DMA_Abort_IT+0x3bc>)
  22125. 80099e6: 4293 cmp r3, r2
  22126. 80099e8: d059 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22127. 80099ea: 687b ldr r3, [r7, #4]
  22128. 80099ec: 681b ldr r3, [r3, #0]
  22129. 80099ee: 4a33 ldr r2, [pc, #204] @ (8009abc <HAL_DMA_Abort_IT+0x3c0>)
  22130. 80099f0: 4293 cmp r3, r2
  22131. 80099f2: d054 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22132. 80099f4: 687b ldr r3, [r7, #4]
  22133. 80099f6: 681b ldr r3, [r3, #0]
  22134. 80099f8: 4a31 ldr r2, [pc, #196] @ (8009ac0 <HAL_DMA_Abort_IT+0x3c4>)
  22135. 80099fa: 4293 cmp r3, r2
  22136. 80099fc: d04f beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22137. 80099fe: 687b ldr r3, [r7, #4]
  22138. 8009a00: 681b ldr r3, [r3, #0]
  22139. 8009a02: 4a30 ldr r2, [pc, #192] @ (8009ac4 <HAL_DMA_Abort_IT+0x3c8>)
  22140. 8009a04: 4293 cmp r3, r2
  22141. 8009a06: d04a beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22142. 8009a08: 687b ldr r3, [r7, #4]
  22143. 8009a0a: 681b ldr r3, [r3, #0]
  22144. 8009a0c: 4a2e ldr r2, [pc, #184] @ (8009ac8 <HAL_DMA_Abort_IT+0x3cc>)
  22145. 8009a0e: 4293 cmp r3, r2
  22146. 8009a10: d045 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22147. 8009a12: 687b ldr r3, [r7, #4]
  22148. 8009a14: 681b ldr r3, [r3, #0]
  22149. 8009a16: 4a2d ldr r2, [pc, #180] @ (8009acc <HAL_DMA_Abort_IT+0x3d0>)
  22150. 8009a18: 4293 cmp r3, r2
  22151. 8009a1a: d040 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22152. 8009a1c: 687b ldr r3, [r7, #4]
  22153. 8009a1e: 681b ldr r3, [r3, #0]
  22154. 8009a20: 4a2b ldr r2, [pc, #172] @ (8009ad0 <HAL_DMA_Abort_IT+0x3d4>)
  22155. 8009a22: 4293 cmp r3, r2
  22156. 8009a24: d03b beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22157. 8009a26: 687b ldr r3, [r7, #4]
  22158. 8009a28: 681b ldr r3, [r3, #0]
  22159. 8009a2a: 4a2a ldr r2, [pc, #168] @ (8009ad4 <HAL_DMA_Abort_IT+0x3d8>)
  22160. 8009a2c: 4293 cmp r3, r2
  22161. 8009a2e: d036 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22162. 8009a30: 687b ldr r3, [r7, #4]
  22163. 8009a32: 681b ldr r3, [r3, #0]
  22164. 8009a34: 4a28 ldr r2, [pc, #160] @ (8009ad8 <HAL_DMA_Abort_IT+0x3dc>)
  22165. 8009a36: 4293 cmp r3, r2
  22166. 8009a38: d031 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22167. 8009a3a: 687b ldr r3, [r7, #4]
  22168. 8009a3c: 681b ldr r3, [r3, #0]
  22169. 8009a3e: 4a27 ldr r2, [pc, #156] @ (8009adc <HAL_DMA_Abort_IT+0x3e0>)
  22170. 8009a40: 4293 cmp r3, r2
  22171. 8009a42: d02c beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22172. 8009a44: 687b ldr r3, [r7, #4]
  22173. 8009a46: 681b ldr r3, [r3, #0]
  22174. 8009a48: 4a25 ldr r2, [pc, #148] @ (8009ae0 <HAL_DMA_Abort_IT+0x3e4>)
  22175. 8009a4a: 4293 cmp r3, r2
  22176. 8009a4c: d027 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22177. 8009a4e: 687b ldr r3, [r7, #4]
  22178. 8009a50: 681b ldr r3, [r3, #0]
  22179. 8009a52: 4a24 ldr r2, [pc, #144] @ (8009ae4 <HAL_DMA_Abort_IT+0x3e8>)
  22180. 8009a54: 4293 cmp r3, r2
  22181. 8009a56: d022 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22182. 8009a58: 687b ldr r3, [r7, #4]
  22183. 8009a5a: 681b ldr r3, [r3, #0]
  22184. 8009a5c: 4a22 ldr r2, [pc, #136] @ (8009ae8 <HAL_DMA_Abort_IT+0x3ec>)
  22185. 8009a5e: 4293 cmp r3, r2
  22186. 8009a60: d01d beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22187. 8009a62: 687b ldr r3, [r7, #4]
  22188. 8009a64: 681b ldr r3, [r3, #0]
  22189. 8009a66: 4a21 ldr r2, [pc, #132] @ (8009aec <HAL_DMA_Abort_IT+0x3f0>)
  22190. 8009a68: 4293 cmp r3, r2
  22191. 8009a6a: d018 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22192. 8009a6c: 687b ldr r3, [r7, #4]
  22193. 8009a6e: 681b ldr r3, [r3, #0]
  22194. 8009a70: 4a1f ldr r2, [pc, #124] @ (8009af0 <HAL_DMA_Abort_IT+0x3f4>)
  22195. 8009a72: 4293 cmp r3, r2
  22196. 8009a74: d013 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22197. 8009a76: 687b ldr r3, [r7, #4]
  22198. 8009a78: 681b ldr r3, [r3, #0]
  22199. 8009a7a: 4a1e ldr r2, [pc, #120] @ (8009af4 <HAL_DMA_Abort_IT+0x3f8>)
  22200. 8009a7c: 4293 cmp r3, r2
  22201. 8009a7e: d00e beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22202. 8009a80: 687b ldr r3, [r7, #4]
  22203. 8009a82: 681b ldr r3, [r3, #0]
  22204. 8009a84: 4a1c ldr r2, [pc, #112] @ (8009af8 <HAL_DMA_Abort_IT+0x3fc>)
  22205. 8009a86: 4293 cmp r3, r2
  22206. 8009a88: d009 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22207. 8009a8a: 687b ldr r3, [r7, #4]
  22208. 8009a8c: 681b ldr r3, [r3, #0]
  22209. 8009a8e: 4a1b ldr r2, [pc, #108] @ (8009afc <HAL_DMA_Abort_IT+0x400>)
  22210. 8009a90: 4293 cmp r3, r2
  22211. 8009a92: d004 beq.n 8009a9e <HAL_DMA_Abort_IT+0x3a2>
  22212. 8009a94: 687b ldr r3, [r7, #4]
  22213. 8009a96: 681b ldr r3, [r3, #0]
  22214. 8009a98: 4a19 ldr r2, [pc, #100] @ (8009b00 <HAL_DMA_Abort_IT+0x404>)
  22215. 8009a9a: 4293 cmp r3, r2
  22216. 8009a9c: d132 bne.n 8009b04 <HAL_DMA_Abort_IT+0x408>
  22217. 8009a9e: 2301 movs r3, #1
  22218. 8009aa0: e031 b.n 8009b06 <HAL_DMA_Abort_IT+0x40a>
  22219. 8009aa2: bf00 nop
  22220. 8009aa4: 40020010 .word 0x40020010
  22221. 8009aa8: 40020028 .word 0x40020028
  22222. 8009aac: 40020040 .word 0x40020040
  22223. 8009ab0: 40020058 .word 0x40020058
  22224. 8009ab4: 40020070 .word 0x40020070
  22225. 8009ab8: 40020088 .word 0x40020088
  22226. 8009abc: 400200a0 .word 0x400200a0
  22227. 8009ac0: 400200b8 .word 0x400200b8
  22228. 8009ac4: 40020410 .word 0x40020410
  22229. 8009ac8: 40020428 .word 0x40020428
  22230. 8009acc: 40020440 .word 0x40020440
  22231. 8009ad0: 40020458 .word 0x40020458
  22232. 8009ad4: 40020470 .word 0x40020470
  22233. 8009ad8: 40020488 .word 0x40020488
  22234. 8009adc: 400204a0 .word 0x400204a0
  22235. 8009ae0: 400204b8 .word 0x400204b8
  22236. 8009ae4: 58025408 .word 0x58025408
  22237. 8009ae8: 5802541c .word 0x5802541c
  22238. 8009aec: 58025430 .word 0x58025430
  22239. 8009af0: 58025444 .word 0x58025444
  22240. 8009af4: 58025458 .word 0x58025458
  22241. 8009af8: 5802546c .word 0x5802546c
  22242. 8009afc: 58025480 .word 0x58025480
  22243. 8009b00: 58025494 .word 0x58025494
  22244. 8009b04: 2300 movs r3, #0
  22245. 8009b06: 2b00 cmp r3, #0
  22246. 8009b08: d028 beq.n 8009b5c <HAL_DMA_Abort_IT+0x460>
  22247. {
  22248. /* disable the DMAMUX sync overrun IT */
  22249. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  22250. 8009b0a: 687b ldr r3, [r7, #4]
  22251. 8009b0c: 6e1b ldr r3, [r3, #96] @ 0x60
  22252. 8009b0e: 681a ldr r2, [r3, #0]
  22253. 8009b10: 687b ldr r3, [r7, #4]
  22254. 8009b12: 6e1b ldr r3, [r3, #96] @ 0x60
  22255. 8009b14: f422 7280 bic.w r2, r2, #256 @ 0x100
  22256. 8009b18: 601a str r2, [r3, #0]
  22257. /* Clear all flags */
  22258. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22259. 8009b1a: 687b ldr r3, [r7, #4]
  22260. 8009b1c: 6d9b ldr r3, [r3, #88] @ 0x58
  22261. 8009b1e: 60fb str r3, [r7, #12]
  22262. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  22263. 8009b20: 687b ldr r3, [r7, #4]
  22264. 8009b22: 6ddb ldr r3, [r3, #92] @ 0x5c
  22265. 8009b24: f003 031f and.w r3, r3, #31
  22266. 8009b28: 2201 movs r2, #1
  22267. 8009b2a: 409a lsls r2, r3
  22268. 8009b2c: 68fb ldr r3, [r7, #12]
  22269. 8009b2e: 605a str r2, [r3, #4]
  22270. /* Clear the DMAMUX synchro overrun flag */
  22271. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  22272. 8009b30: 687b ldr r3, [r7, #4]
  22273. 8009b32: 6e5b ldr r3, [r3, #100] @ 0x64
  22274. 8009b34: 687a ldr r2, [r7, #4]
  22275. 8009b36: 6e92 ldr r2, [r2, #104] @ 0x68
  22276. 8009b38: 605a str r2, [r3, #4]
  22277. if(hdma->DMAmuxRequestGen != 0U)
  22278. 8009b3a: 687b ldr r3, [r7, #4]
  22279. 8009b3c: 6edb ldr r3, [r3, #108] @ 0x6c
  22280. 8009b3e: 2b00 cmp r3, #0
  22281. 8009b40: d00c beq.n 8009b5c <HAL_DMA_Abort_IT+0x460>
  22282. {
  22283. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  22284. /* disable the request gen overrun IT */
  22285. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  22286. 8009b42: 687b ldr r3, [r7, #4]
  22287. 8009b44: 6edb ldr r3, [r3, #108] @ 0x6c
  22288. 8009b46: 681a ldr r2, [r3, #0]
  22289. 8009b48: 687b ldr r3, [r7, #4]
  22290. 8009b4a: 6edb ldr r3, [r3, #108] @ 0x6c
  22291. 8009b4c: f422 7280 bic.w r2, r2, #256 @ 0x100
  22292. 8009b50: 601a str r2, [r3, #0]
  22293. /* Clear the DMAMUX request generator overrun flag */
  22294. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  22295. 8009b52: 687b ldr r3, [r7, #4]
  22296. 8009b54: 6f1b ldr r3, [r3, #112] @ 0x70
  22297. 8009b56: 687a ldr r2, [r7, #4]
  22298. 8009b58: 6f52 ldr r2, [r2, #116] @ 0x74
  22299. 8009b5a: 605a str r2, [r3, #4]
  22300. }
  22301. }
  22302. /* Change the DMA state */
  22303. hdma->State = HAL_DMA_STATE_READY;
  22304. 8009b5c: 687b ldr r3, [r7, #4]
  22305. 8009b5e: 2201 movs r2, #1
  22306. 8009b60: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22307. /* Process Unlocked */
  22308. __HAL_UNLOCK(hdma);
  22309. 8009b64: 687b ldr r3, [r7, #4]
  22310. 8009b66: 2200 movs r2, #0
  22311. 8009b68: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22312. /* Call User Abort callback */
  22313. if(hdma->XferAbortCallback != NULL)
  22314. 8009b6c: 687b ldr r3, [r7, #4]
  22315. 8009b6e: 6d1b ldr r3, [r3, #80] @ 0x50
  22316. 8009b70: 2b00 cmp r3, #0
  22317. 8009b72: d003 beq.n 8009b7c <HAL_DMA_Abort_IT+0x480>
  22318. {
  22319. hdma->XferAbortCallback(hdma);
  22320. 8009b74: 687b ldr r3, [r7, #4]
  22321. 8009b76: 6d1b ldr r3, [r3, #80] @ 0x50
  22322. 8009b78: 6878 ldr r0, [r7, #4]
  22323. 8009b7a: 4798 blx r3
  22324. }
  22325. }
  22326. }
  22327. return HAL_OK;
  22328. 8009b7c: 2300 movs r3, #0
  22329. }
  22330. 8009b7e: 4618 mov r0, r3
  22331. 8009b80: 3710 adds r7, #16
  22332. 8009b82: 46bd mov sp, r7
  22333. 8009b84: bd80 pop {r7, pc}
  22334. 8009b86: bf00 nop
  22335. 08009b88 <HAL_DMA_IRQHandler>:
  22336. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  22337. * the configuration information for the specified DMA Stream.
  22338. * @retval None
  22339. */
  22340. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  22341. {
  22342. 8009b88: b580 push {r7, lr}
  22343. 8009b8a: b08a sub sp, #40 @ 0x28
  22344. 8009b8c: af00 add r7, sp, #0
  22345. 8009b8e: 6078 str r0, [r7, #4]
  22346. uint32_t tmpisr_dma, tmpisr_bdma;
  22347. uint32_t ccr_reg;
  22348. __IO uint32_t count = 0U;
  22349. 8009b90: 2300 movs r3, #0
  22350. 8009b92: 60fb str r3, [r7, #12]
  22351. uint32_t timeout = SystemCoreClock / 9600U;
  22352. 8009b94: 4b67 ldr r3, [pc, #412] @ (8009d34 <HAL_DMA_IRQHandler+0x1ac>)
  22353. 8009b96: 681b ldr r3, [r3, #0]
  22354. 8009b98: 4a67 ldr r2, [pc, #412] @ (8009d38 <HAL_DMA_IRQHandler+0x1b0>)
  22355. 8009b9a: fba2 2303 umull r2, r3, r2, r3
  22356. 8009b9e: 0a9b lsrs r3, r3, #10
  22357. 8009ba0: 627b str r3, [r7, #36] @ 0x24
  22358. /* calculate DMA base and stream number */
  22359. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  22360. 8009ba2: 687b ldr r3, [r7, #4]
  22361. 8009ba4: 6d9b ldr r3, [r3, #88] @ 0x58
  22362. 8009ba6: 623b str r3, [r7, #32]
  22363. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22364. 8009ba8: 687b ldr r3, [r7, #4]
  22365. 8009baa: 6d9b ldr r3, [r3, #88] @ 0x58
  22366. 8009bac: 61fb str r3, [r7, #28]
  22367. tmpisr_dma = regs_dma->ISR;
  22368. 8009bae: 6a3b ldr r3, [r7, #32]
  22369. 8009bb0: 681b ldr r3, [r3, #0]
  22370. 8009bb2: 61bb str r3, [r7, #24]
  22371. tmpisr_bdma = regs_bdma->ISR;
  22372. 8009bb4: 69fb ldr r3, [r7, #28]
  22373. 8009bb6: 681b ldr r3, [r3, #0]
  22374. 8009bb8: 617b str r3, [r7, #20]
  22375. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  22376. 8009bba: 687b ldr r3, [r7, #4]
  22377. 8009bbc: 681b ldr r3, [r3, #0]
  22378. 8009bbe: 4a5f ldr r2, [pc, #380] @ (8009d3c <HAL_DMA_IRQHandler+0x1b4>)
  22379. 8009bc0: 4293 cmp r3, r2
  22380. 8009bc2: d04a beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22381. 8009bc4: 687b ldr r3, [r7, #4]
  22382. 8009bc6: 681b ldr r3, [r3, #0]
  22383. 8009bc8: 4a5d ldr r2, [pc, #372] @ (8009d40 <HAL_DMA_IRQHandler+0x1b8>)
  22384. 8009bca: 4293 cmp r3, r2
  22385. 8009bcc: d045 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22386. 8009bce: 687b ldr r3, [r7, #4]
  22387. 8009bd0: 681b ldr r3, [r3, #0]
  22388. 8009bd2: 4a5c ldr r2, [pc, #368] @ (8009d44 <HAL_DMA_IRQHandler+0x1bc>)
  22389. 8009bd4: 4293 cmp r3, r2
  22390. 8009bd6: d040 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22391. 8009bd8: 687b ldr r3, [r7, #4]
  22392. 8009bda: 681b ldr r3, [r3, #0]
  22393. 8009bdc: 4a5a ldr r2, [pc, #360] @ (8009d48 <HAL_DMA_IRQHandler+0x1c0>)
  22394. 8009bde: 4293 cmp r3, r2
  22395. 8009be0: d03b beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22396. 8009be2: 687b ldr r3, [r7, #4]
  22397. 8009be4: 681b ldr r3, [r3, #0]
  22398. 8009be6: 4a59 ldr r2, [pc, #356] @ (8009d4c <HAL_DMA_IRQHandler+0x1c4>)
  22399. 8009be8: 4293 cmp r3, r2
  22400. 8009bea: d036 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22401. 8009bec: 687b ldr r3, [r7, #4]
  22402. 8009bee: 681b ldr r3, [r3, #0]
  22403. 8009bf0: 4a57 ldr r2, [pc, #348] @ (8009d50 <HAL_DMA_IRQHandler+0x1c8>)
  22404. 8009bf2: 4293 cmp r3, r2
  22405. 8009bf4: d031 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22406. 8009bf6: 687b ldr r3, [r7, #4]
  22407. 8009bf8: 681b ldr r3, [r3, #0]
  22408. 8009bfa: 4a56 ldr r2, [pc, #344] @ (8009d54 <HAL_DMA_IRQHandler+0x1cc>)
  22409. 8009bfc: 4293 cmp r3, r2
  22410. 8009bfe: d02c beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22411. 8009c00: 687b ldr r3, [r7, #4]
  22412. 8009c02: 681b ldr r3, [r3, #0]
  22413. 8009c04: 4a54 ldr r2, [pc, #336] @ (8009d58 <HAL_DMA_IRQHandler+0x1d0>)
  22414. 8009c06: 4293 cmp r3, r2
  22415. 8009c08: d027 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22416. 8009c0a: 687b ldr r3, [r7, #4]
  22417. 8009c0c: 681b ldr r3, [r3, #0]
  22418. 8009c0e: 4a53 ldr r2, [pc, #332] @ (8009d5c <HAL_DMA_IRQHandler+0x1d4>)
  22419. 8009c10: 4293 cmp r3, r2
  22420. 8009c12: d022 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22421. 8009c14: 687b ldr r3, [r7, #4]
  22422. 8009c16: 681b ldr r3, [r3, #0]
  22423. 8009c18: 4a51 ldr r2, [pc, #324] @ (8009d60 <HAL_DMA_IRQHandler+0x1d8>)
  22424. 8009c1a: 4293 cmp r3, r2
  22425. 8009c1c: d01d beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22426. 8009c1e: 687b ldr r3, [r7, #4]
  22427. 8009c20: 681b ldr r3, [r3, #0]
  22428. 8009c22: 4a50 ldr r2, [pc, #320] @ (8009d64 <HAL_DMA_IRQHandler+0x1dc>)
  22429. 8009c24: 4293 cmp r3, r2
  22430. 8009c26: d018 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22431. 8009c28: 687b ldr r3, [r7, #4]
  22432. 8009c2a: 681b ldr r3, [r3, #0]
  22433. 8009c2c: 4a4e ldr r2, [pc, #312] @ (8009d68 <HAL_DMA_IRQHandler+0x1e0>)
  22434. 8009c2e: 4293 cmp r3, r2
  22435. 8009c30: d013 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22436. 8009c32: 687b ldr r3, [r7, #4]
  22437. 8009c34: 681b ldr r3, [r3, #0]
  22438. 8009c36: 4a4d ldr r2, [pc, #308] @ (8009d6c <HAL_DMA_IRQHandler+0x1e4>)
  22439. 8009c38: 4293 cmp r3, r2
  22440. 8009c3a: d00e beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22441. 8009c3c: 687b ldr r3, [r7, #4]
  22442. 8009c3e: 681b ldr r3, [r3, #0]
  22443. 8009c40: 4a4b ldr r2, [pc, #300] @ (8009d70 <HAL_DMA_IRQHandler+0x1e8>)
  22444. 8009c42: 4293 cmp r3, r2
  22445. 8009c44: d009 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22446. 8009c46: 687b ldr r3, [r7, #4]
  22447. 8009c48: 681b ldr r3, [r3, #0]
  22448. 8009c4a: 4a4a ldr r2, [pc, #296] @ (8009d74 <HAL_DMA_IRQHandler+0x1ec>)
  22449. 8009c4c: 4293 cmp r3, r2
  22450. 8009c4e: d004 beq.n 8009c5a <HAL_DMA_IRQHandler+0xd2>
  22451. 8009c50: 687b ldr r3, [r7, #4]
  22452. 8009c52: 681b ldr r3, [r3, #0]
  22453. 8009c54: 4a48 ldr r2, [pc, #288] @ (8009d78 <HAL_DMA_IRQHandler+0x1f0>)
  22454. 8009c56: 4293 cmp r3, r2
  22455. 8009c58: d101 bne.n 8009c5e <HAL_DMA_IRQHandler+0xd6>
  22456. 8009c5a: 2301 movs r3, #1
  22457. 8009c5c: e000 b.n 8009c60 <HAL_DMA_IRQHandler+0xd8>
  22458. 8009c5e: 2300 movs r3, #0
  22459. 8009c60: 2b00 cmp r3, #0
  22460. 8009c62: f000 842b beq.w 800a4bc <HAL_DMA_IRQHandler+0x934>
  22461. {
  22462. /* Transfer Error Interrupt management ***************************************/
  22463. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22464. 8009c66: 687b ldr r3, [r7, #4]
  22465. 8009c68: 6ddb ldr r3, [r3, #92] @ 0x5c
  22466. 8009c6a: f003 031f and.w r3, r3, #31
  22467. 8009c6e: 2208 movs r2, #8
  22468. 8009c70: 409a lsls r2, r3
  22469. 8009c72: 69bb ldr r3, [r7, #24]
  22470. 8009c74: 4013 ands r3, r2
  22471. 8009c76: 2b00 cmp r3, #0
  22472. 8009c78: f000 80a2 beq.w 8009dc0 <HAL_DMA_IRQHandler+0x238>
  22473. {
  22474. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  22475. 8009c7c: 687b ldr r3, [r7, #4]
  22476. 8009c7e: 681b ldr r3, [r3, #0]
  22477. 8009c80: 4a2e ldr r2, [pc, #184] @ (8009d3c <HAL_DMA_IRQHandler+0x1b4>)
  22478. 8009c82: 4293 cmp r3, r2
  22479. 8009c84: d04a beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22480. 8009c86: 687b ldr r3, [r7, #4]
  22481. 8009c88: 681b ldr r3, [r3, #0]
  22482. 8009c8a: 4a2d ldr r2, [pc, #180] @ (8009d40 <HAL_DMA_IRQHandler+0x1b8>)
  22483. 8009c8c: 4293 cmp r3, r2
  22484. 8009c8e: d045 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22485. 8009c90: 687b ldr r3, [r7, #4]
  22486. 8009c92: 681b ldr r3, [r3, #0]
  22487. 8009c94: 4a2b ldr r2, [pc, #172] @ (8009d44 <HAL_DMA_IRQHandler+0x1bc>)
  22488. 8009c96: 4293 cmp r3, r2
  22489. 8009c98: d040 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22490. 8009c9a: 687b ldr r3, [r7, #4]
  22491. 8009c9c: 681b ldr r3, [r3, #0]
  22492. 8009c9e: 4a2a ldr r2, [pc, #168] @ (8009d48 <HAL_DMA_IRQHandler+0x1c0>)
  22493. 8009ca0: 4293 cmp r3, r2
  22494. 8009ca2: d03b beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22495. 8009ca4: 687b ldr r3, [r7, #4]
  22496. 8009ca6: 681b ldr r3, [r3, #0]
  22497. 8009ca8: 4a28 ldr r2, [pc, #160] @ (8009d4c <HAL_DMA_IRQHandler+0x1c4>)
  22498. 8009caa: 4293 cmp r3, r2
  22499. 8009cac: d036 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22500. 8009cae: 687b ldr r3, [r7, #4]
  22501. 8009cb0: 681b ldr r3, [r3, #0]
  22502. 8009cb2: 4a27 ldr r2, [pc, #156] @ (8009d50 <HAL_DMA_IRQHandler+0x1c8>)
  22503. 8009cb4: 4293 cmp r3, r2
  22504. 8009cb6: d031 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22505. 8009cb8: 687b ldr r3, [r7, #4]
  22506. 8009cba: 681b ldr r3, [r3, #0]
  22507. 8009cbc: 4a25 ldr r2, [pc, #148] @ (8009d54 <HAL_DMA_IRQHandler+0x1cc>)
  22508. 8009cbe: 4293 cmp r3, r2
  22509. 8009cc0: d02c beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22510. 8009cc2: 687b ldr r3, [r7, #4]
  22511. 8009cc4: 681b ldr r3, [r3, #0]
  22512. 8009cc6: 4a24 ldr r2, [pc, #144] @ (8009d58 <HAL_DMA_IRQHandler+0x1d0>)
  22513. 8009cc8: 4293 cmp r3, r2
  22514. 8009cca: d027 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22515. 8009ccc: 687b ldr r3, [r7, #4]
  22516. 8009cce: 681b ldr r3, [r3, #0]
  22517. 8009cd0: 4a22 ldr r2, [pc, #136] @ (8009d5c <HAL_DMA_IRQHandler+0x1d4>)
  22518. 8009cd2: 4293 cmp r3, r2
  22519. 8009cd4: d022 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22520. 8009cd6: 687b ldr r3, [r7, #4]
  22521. 8009cd8: 681b ldr r3, [r3, #0]
  22522. 8009cda: 4a21 ldr r2, [pc, #132] @ (8009d60 <HAL_DMA_IRQHandler+0x1d8>)
  22523. 8009cdc: 4293 cmp r3, r2
  22524. 8009cde: d01d beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22525. 8009ce0: 687b ldr r3, [r7, #4]
  22526. 8009ce2: 681b ldr r3, [r3, #0]
  22527. 8009ce4: 4a1f ldr r2, [pc, #124] @ (8009d64 <HAL_DMA_IRQHandler+0x1dc>)
  22528. 8009ce6: 4293 cmp r3, r2
  22529. 8009ce8: d018 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22530. 8009cea: 687b ldr r3, [r7, #4]
  22531. 8009cec: 681b ldr r3, [r3, #0]
  22532. 8009cee: 4a1e ldr r2, [pc, #120] @ (8009d68 <HAL_DMA_IRQHandler+0x1e0>)
  22533. 8009cf0: 4293 cmp r3, r2
  22534. 8009cf2: d013 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22535. 8009cf4: 687b ldr r3, [r7, #4]
  22536. 8009cf6: 681b ldr r3, [r3, #0]
  22537. 8009cf8: 4a1c ldr r2, [pc, #112] @ (8009d6c <HAL_DMA_IRQHandler+0x1e4>)
  22538. 8009cfa: 4293 cmp r3, r2
  22539. 8009cfc: d00e beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22540. 8009cfe: 687b ldr r3, [r7, #4]
  22541. 8009d00: 681b ldr r3, [r3, #0]
  22542. 8009d02: 4a1b ldr r2, [pc, #108] @ (8009d70 <HAL_DMA_IRQHandler+0x1e8>)
  22543. 8009d04: 4293 cmp r3, r2
  22544. 8009d06: d009 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22545. 8009d08: 687b ldr r3, [r7, #4]
  22546. 8009d0a: 681b ldr r3, [r3, #0]
  22547. 8009d0c: 4a19 ldr r2, [pc, #100] @ (8009d74 <HAL_DMA_IRQHandler+0x1ec>)
  22548. 8009d0e: 4293 cmp r3, r2
  22549. 8009d10: d004 beq.n 8009d1c <HAL_DMA_IRQHandler+0x194>
  22550. 8009d12: 687b ldr r3, [r7, #4]
  22551. 8009d14: 681b ldr r3, [r3, #0]
  22552. 8009d16: 4a18 ldr r2, [pc, #96] @ (8009d78 <HAL_DMA_IRQHandler+0x1f0>)
  22553. 8009d18: 4293 cmp r3, r2
  22554. 8009d1a: d12f bne.n 8009d7c <HAL_DMA_IRQHandler+0x1f4>
  22555. 8009d1c: 687b ldr r3, [r7, #4]
  22556. 8009d1e: 681b ldr r3, [r3, #0]
  22557. 8009d20: 681b ldr r3, [r3, #0]
  22558. 8009d22: f003 0304 and.w r3, r3, #4
  22559. 8009d26: 2b00 cmp r3, #0
  22560. 8009d28: bf14 ite ne
  22561. 8009d2a: 2301 movne r3, #1
  22562. 8009d2c: 2300 moveq r3, #0
  22563. 8009d2e: b2db uxtb r3, r3
  22564. 8009d30: e02e b.n 8009d90 <HAL_DMA_IRQHandler+0x208>
  22565. 8009d32: bf00 nop
  22566. 8009d34: 24000034 .word 0x24000034
  22567. 8009d38: 1b4e81b5 .word 0x1b4e81b5
  22568. 8009d3c: 40020010 .word 0x40020010
  22569. 8009d40: 40020028 .word 0x40020028
  22570. 8009d44: 40020040 .word 0x40020040
  22571. 8009d48: 40020058 .word 0x40020058
  22572. 8009d4c: 40020070 .word 0x40020070
  22573. 8009d50: 40020088 .word 0x40020088
  22574. 8009d54: 400200a0 .word 0x400200a0
  22575. 8009d58: 400200b8 .word 0x400200b8
  22576. 8009d5c: 40020410 .word 0x40020410
  22577. 8009d60: 40020428 .word 0x40020428
  22578. 8009d64: 40020440 .word 0x40020440
  22579. 8009d68: 40020458 .word 0x40020458
  22580. 8009d6c: 40020470 .word 0x40020470
  22581. 8009d70: 40020488 .word 0x40020488
  22582. 8009d74: 400204a0 .word 0x400204a0
  22583. 8009d78: 400204b8 .word 0x400204b8
  22584. 8009d7c: 687b ldr r3, [r7, #4]
  22585. 8009d7e: 681b ldr r3, [r3, #0]
  22586. 8009d80: 681b ldr r3, [r3, #0]
  22587. 8009d82: f003 0308 and.w r3, r3, #8
  22588. 8009d86: 2b00 cmp r3, #0
  22589. 8009d88: bf14 ite ne
  22590. 8009d8a: 2301 movne r3, #1
  22591. 8009d8c: 2300 moveq r3, #0
  22592. 8009d8e: b2db uxtb r3, r3
  22593. 8009d90: 2b00 cmp r3, #0
  22594. 8009d92: d015 beq.n 8009dc0 <HAL_DMA_IRQHandler+0x238>
  22595. {
  22596. /* Disable the transfer error interrupt */
  22597. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  22598. 8009d94: 687b ldr r3, [r7, #4]
  22599. 8009d96: 681b ldr r3, [r3, #0]
  22600. 8009d98: 681a ldr r2, [r3, #0]
  22601. 8009d9a: 687b ldr r3, [r7, #4]
  22602. 8009d9c: 681b ldr r3, [r3, #0]
  22603. 8009d9e: f022 0204 bic.w r2, r2, #4
  22604. 8009da2: 601a str r2, [r3, #0]
  22605. /* Clear the transfer error flag */
  22606. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22607. 8009da4: 687b ldr r3, [r7, #4]
  22608. 8009da6: 6ddb ldr r3, [r3, #92] @ 0x5c
  22609. 8009da8: f003 031f and.w r3, r3, #31
  22610. 8009dac: 2208 movs r2, #8
  22611. 8009dae: 409a lsls r2, r3
  22612. 8009db0: 6a3b ldr r3, [r7, #32]
  22613. 8009db2: 609a str r2, [r3, #8]
  22614. /* Update error code */
  22615. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  22616. 8009db4: 687b ldr r3, [r7, #4]
  22617. 8009db6: 6d5b ldr r3, [r3, #84] @ 0x54
  22618. 8009db8: f043 0201 orr.w r2, r3, #1
  22619. 8009dbc: 687b ldr r3, [r7, #4]
  22620. 8009dbe: 655a str r2, [r3, #84] @ 0x54
  22621. }
  22622. }
  22623. /* FIFO Error Interrupt management ******************************************/
  22624. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22625. 8009dc0: 687b ldr r3, [r7, #4]
  22626. 8009dc2: 6ddb ldr r3, [r3, #92] @ 0x5c
  22627. 8009dc4: f003 031f and.w r3, r3, #31
  22628. 8009dc8: 69ba ldr r2, [r7, #24]
  22629. 8009dca: fa22 f303 lsr.w r3, r2, r3
  22630. 8009dce: f003 0301 and.w r3, r3, #1
  22631. 8009dd2: 2b00 cmp r3, #0
  22632. 8009dd4: d06e beq.n 8009eb4 <HAL_DMA_IRQHandler+0x32c>
  22633. {
  22634. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  22635. 8009dd6: 687b ldr r3, [r7, #4]
  22636. 8009dd8: 681b ldr r3, [r3, #0]
  22637. 8009dda: 4a69 ldr r2, [pc, #420] @ (8009f80 <HAL_DMA_IRQHandler+0x3f8>)
  22638. 8009ddc: 4293 cmp r3, r2
  22639. 8009dde: d04a beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22640. 8009de0: 687b ldr r3, [r7, #4]
  22641. 8009de2: 681b ldr r3, [r3, #0]
  22642. 8009de4: 4a67 ldr r2, [pc, #412] @ (8009f84 <HAL_DMA_IRQHandler+0x3fc>)
  22643. 8009de6: 4293 cmp r3, r2
  22644. 8009de8: d045 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22645. 8009dea: 687b ldr r3, [r7, #4]
  22646. 8009dec: 681b ldr r3, [r3, #0]
  22647. 8009dee: 4a66 ldr r2, [pc, #408] @ (8009f88 <HAL_DMA_IRQHandler+0x400>)
  22648. 8009df0: 4293 cmp r3, r2
  22649. 8009df2: d040 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22650. 8009df4: 687b ldr r3, [r7, #4]
  22651. 8009df6: 681b ldr r3, [r3, #0]
  22652. 8009df8: 4a64 ldr r2, [pc, #400] @ (8009f8c <HAL_DMA_IRQHandler+0x404>)
  22653. 8009dfa: 4293 cmp r3, r2
  22654. 8009dfc: d03b beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22655. 8009dfe: 687b ldr r3, [r7, #4]
  22656. 8009e00: 681b ldr r3, [r3, #0]
  22657. 8009e02: 4a63 ldr r2, [pc, #396] @ (8009f90 <HAL_DMA_IRQHandler+0x408>)
  22658. 8009e04: 4293 cmp r3, r2
  22659. 8009e06: d036 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22660. 8009e08: 687b ldr r3, [r7, #4]
  22661. 8009e0a: 681b ldr r3, [r3, #0]
  22662. 8009e0c: 4a61 ldr r2, [pc, #388] @ (8009f94 <HAL_DMA_IRQHandler+0x40c>)
  22663. 8009e0e: 4293 cmp r3, r2
  22664. 8009e10: d031 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22665. 8009e12: 687b ldr r3, [r7, #4]
  22666. 8009e14: 681b ldr r3, [r3, #0]
  22667. 8009e16: 4a60 ldr r2, [pc, #384] @ (8009f98 <HAL_DMA_IRQHandler+0x410>)
  22668. 8009e18: 4293 cmp r3, r2
  22669. 8009e1a: d02c beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22670. 8009e1c: 687b ldr r3, [r7, #4]
  22671. 8009e1e: 681b ldr r3, [r3, #0]
  22672. 8009e20: 4a5e ldr r2, [pc, #376] @ (8009f9c <HAL_DMA_IRQHandler+0x414>)
  22673. 8009e22: 4293 cmp r3, r2
  22674. 8009e24: d027 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22675. 8009e26: 687b ldr r3, [r7, #4]
  22676. 8009e28: 681b ldr r3, [r3, #0]
  22677. 8009e2a: 4a5d ldr r2, [pc, #372] @ (8009fa0 <HAL_DMA_IRQHandler+0x418>)
  22678. 8009e2c: 4293 cmp r3, r2
  22679. 8009e2e: d022 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22680. 8009e30: 687b ldr r3, [r7, #4]
  22681. 8009e32: 681b ldr r3, [r3, #0]
  22682. 8009e34: 4a5b ldr r2, [pc, #364] @ (8009fa4 <HAL_DMA_IRQHandler+0x41c>)
  22683. 8009e36: 4293 cmp r3, r2
  22684. 8009e38: d01d beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22685. 8009e3a: 687b ldr r3, [r7, #4]
  22686. 8009e3c: 681b ldr r3, [r3, #0]
  22687. 8009e3e: 4a5a ldr r2, [pc, #360] @ (8009fa8 <HAL_DMA_IRQHandler+0x420>)
  22688. 8009e40: 4293 cmp r3, r2
  22689. 8009e42: d018 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22690. 8009e44: 687b ldr r3, [r7, #4]
  22691. 8009e46: 681b ldr r3, [r3, #0]
  22692. 8009e48: 4a58 ldr r2, [pc, #352] @ (8009fac <HAL_DMA_IRQHandler+0x424>)
  22693. 8009e4a: 4293 cmp r3, r2
  22694. 8009e4c: d013 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22695. 8009e4e: 687b ldr r3, [r7, #4]
  22696. 8009e50: 681b ldr r3, [r3, #0]
  22697. 8009e52: 4a57 ldr r2, [pc, #348] @ (8009fb0 <HAL_DMA_IRQHandler+0x428>)
  22698. 8009e54: 4293 cmp r3, r2
  22699. 8009e56: d00e beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22700. 8009e58: 687b ldr r3, [r7, #4]
  22701. 8009e5a: 681b ldr r3, [r3, #0]
  22702. 8009e5c: 4a55 ldr r2, [pc, #340] @ (8009fb4 <HAL_DMA_IRQHandler+0x42c>)
  22703. 8009e5e: 4293 cmp r3, r2
  22704. 8009e60: d009 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22705. 8009e62: 687b ldr r3, [r7, #4]
  22706. 8009e64: 681b ldr r3, [r3, #0]
  22707. 8009e66: 4a54 ldr r2, [pc, #336] @ (8009fb8 <HAL_DMA_IRQHandler+0x430>)
  22708. 8009e68: 4293 cmp r3, r2
  22709. 8009e6a: d004 beq.n 8009e76 <HAL_DMA_IRQHandler+0x2ee>
  22710. 8009e6c: 687b ldr r3, [r7, #4]
  22711. 8009e6e: 681b ldr r3, [r3, #0]
  22712. 8009e70: 4a52 ldr r2, [pc, #328] @ (8009fbc <HAL_DMA_IRQHandler+0x434>)
  22713. 8009e72: 4293 cmp r3, r2
  22714. 8009e74: d10a bne.n 8009e8c <HAL_DMA_IRQHandler+0x304>
  22715. 8009e76: 687b ldr r3, [r7, #4]
  22716. 8009e78: 681b ldr r3, [r3, #0]
  22717. 8009e7a: 695b ldr r3, [r3, #20]
  22718. 8009e7c: f003 0380 and.w r3, r3, #128 @ 0x80
  22719. 8009e80: 2b00 cmp r3, #0
  22720. 8009e82: bf14 ite ne
  22721. 8009e84: 2301 movne r3, #1
  22722. 8009e86: 2300 moveq r3, #0
  22723. 8009e88: b2db uxtb r3, r3
  22724. 8009e8a: e003 b.n 8009e94 <HAL_DMA_IRQHandler+0x30c>
  22725. 8009e8c: 687b ldr r3, [r7, #4]
  22726. 8009e8e: 681b ldr r3, [r3, #0]
  22727. 8009e90: 681b ldr r3, [r3, #0]
  22728. 8009e92: 2300 movs r3, #0
  22729. 8009e94: 2b00 cmp r3, #0
  22730. 8009e96: d00d beq.n 8009eb4 <HAL_DMA_IRQHandler+0x32c>
  22731. {
  22732. /* Clear the FIFO error flag */
  22733. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22734. 8009e98: 687b ldr r3, [r7, #4]
  22735. 8009e9a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22736. 8009e9c: f003 031f and.w r3, r3, #31
  22737. 8009ea0: 2201 movs r2, #1
  22738. 8009ea2: 409a lsls r2, r3
  22739. 8009ea4: 6a3b ldr r3, [r7, #32]
  22740. 8009ea6: 609a str r2, [r3, #8]
  22741. /* Update error code */
  22742. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  22743. 8009ea8: 687b ldr r3, [r7, #4]
  22744. 8009eaa: 6d5b ldr r3, [r3, #84] @ 0x54
  22745. 8009eac: f043 0202 orr.w r2, r3, #2
  22746. 8009eb0: 687b ldr r3, [r7, #4]
  22747. 8009eb2: 655a str r2, [r3, #84] @ 0x54
  22748. }
  22749. }
  22750. /* Direct Mode Error Interrupt management ***********************************/
  22751. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22752. 8009eb4: 687b ldr r3, [r7, #4]
  22753. 8009eb6: 6ddb ldr r3, [r3, #92] @ 0x5c
  22754. 8009eb8: f003 031f and.w r3, r3, #31
  22755. 8009ebc: 2204 movs r2, #4
  22756. 8009ebe: 409a lsls r2, r3
  22757. 8009ec0: 69bb ldr r3, [r7, #24]
  22758. 8009ec2: 4013 ands r3, r2
  22759. 8009ec4: 2b00 cmp r3, #0
  22760. 8009ec6: f000 808f beq.w 8009fe8 <HAL_DMA_IRQHandler+0x460>
  22761. {
  22762. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  22763. 8009eca: 687b ldr r3, [r7, #4]
  22764. 8009ecc: 681b ldr r3, [r3, #0]
  22765. 8009ece: 4a2c ldr r2, [pc, #176] @ (8009f80 <HAL_DMA_IRQHandler+0x3f8>)
  22766. 8009ed0: 4293 cmp r3, r2
  22767. 8009ed2: d04a beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22768. 8009ed4: 687b ldr r3, [r7, #4]
  22769. 8009ed6: 681b ldr r3, [r3, #0]
  22770. 8009ed8: 4a2a ldr r2, [pc, #168] @ (8009f84 <HAL_DMA_IRQHandler+0x3fc>)
  22771. 8009eda: 4293 cmp r3, r2
  22772. 8009edc: d045 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22773. 8009ede: 687b ldr r3, [r7, #4]
  22774. 8009ee0: 681b ldr r3, [r3, #0]
  22775. 8009ee2: 4a29 ldr r2, [pc, #164] @ (8009f88 <HAL_DMA_IRQHandler+0x400>)
  22776. 8009ee4: 4293 cmp r3, r2
  22777. 8009ee6: d040 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22778. 8009ee8: 687b ldr r3, [r7, #4]
  22779. 8009eea: 681b ldr r3, [r3, #0]
  22780. 8009eec: 4a27 ldr r2, [pc, #156] @ (8009f8c <HAL_DMA_IRQHandler+0x404>)
  22781. 8009eee: 4293 cmp r3, r2
  22782. 8009ef0: d03b beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22783. 8009ef2: 687b ldr r3, [r7, #4]
  22784. 8009ef4: 681b ldr r3, [r3, #0]
  22785. 8009ef6: 4a26 ldr r2, [pc, #152] @ (8009f90 <HAL_DMA_IRQHandler+0x408>)
  22786. 8009ef8: 4293 cmp r3, r2
  22787. 8009efa: d036 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22788. 8009efc: 687b ldr r3, [r7, #4]
  22789. 8009efe: 681b ldr r3, [r3, #0]
  22790. 8009f00: 4a24 ldr r2, [pc, #144] @ (8009f94 <HAL_DMA_IRQHandler+0x40c>)
  22791. 8009f02: 4293 cmp r3, r2
  22792. 8009f04: d031 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22793. 8009f06: 687b ldr r3, [r7, #4]
  22794. 8009f08: 681b ldr r3, [r3, #0]
  22795. 8009f0a: 4a23 ldr r2, [pc, #140] @ (8009f98 <HAL_DMA_IRQHandler+0x410>)
  22796. 8009f0c: 4293 cmp r3, r2
  22797. 8009f0e: d02c beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22798. 8009f10: 687b ldr r3, [r7, #4]
  22799. 8009f12: 681b ldr r3, [r3, #0]
  22800. 8009f14: 4a21 ldr r2, [pc, #132] @ (8009f9c <HAL_DMA_IRQHandler+0x414>)
  22801. 8009f16: 4293 cmp r3, r2
  22802. 8009f18: d027 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22803. 8009f1a: 687b ldr r3, [r7, #4]
  22804. 8009f1c: 681b ldr r3, [r3, #0]
  22805. 8009f1e: 4a20 ldr r2, [pc, #128] @ (8009fa0 <HAL_DMA_IRQHandler+0x418>)
  22806. 8009f20: 4293 cmp r3, r2
  22807. 8009f22: d022 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22808. 8009f24: 687b ldr r3, [r7, #4]
  22809. 8009f26: 681b ldr r3, [r3, #0]
  22810. 8009f28: 4a1e ldr r2, [pc, #120] @ (8009fa4 <HAL_DMA_IRQHandler+0x41c>)
  22811. 8009f2a: 4293 cmp r3, r2
  22812. 8009f2c: d01d beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22813. 8009f2e: 687b ldr r3, [r7, #4]
  22814. 8009f30: 681b ldr r3, [r3, #0]
  22815. 8009f32: 4a1d ldr r2, [pc, #116] @ (8009fa8 <HAL_DMA_IRQHandler+0x420>)
  22816. 8009f34: 4293 cmp r3, r2
  22817. 8009f36: d018 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22818. 8009f38: 687b ldr r3, [r7, #4]
  22819. 8009f3a: 681b ldr r3, [r3, #0]
  22820. 8009f3c: 4a1b ldr r2, [pc, #108] @ (8009fac <HAL_DMA_IRQHandler+0x424>)
  22821. 8009f3e: 4293 cmp r3, r2
  22822. 8009f40: d013 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22823. 8009f42: 687b ldr r3, [r7, #4]
  22824. 8009f44: 681b ldr r3, [r3, #0]
  22825. 8009f46: 4a1a ldr r2, [pc, #104] @ (8009fb0 <HAL_DMA_IRQHandler+0x428>)
  22826. 8009f48: 4293 cmp r3, r2
  22827. 8009f4a: d00e beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22828. 8009f4c: 687b ldr r3, [r7, #4]
  22829. 8009f4e: 681b ldr r3, [r3, #0]
  22830. 8009f50: 4a18 ldr r2, [pc, #96] @ (8009fb4 <HAL_DMA_IRQHandler+0x42c>)
  22831. 8009f52: 4293 cmp r3, r2
  22832. 8009f54: d009 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22833. 8009f56: 687b ldr r3, [r7, #4]
  22834. 8009f58: 681b ldr r3, [r3, #0]
  22835. 8009f5a: 4a17 ldr r2, [pc, #92] @ (8009fb8 <HAL_DMA_IRQHandler+0x430>)
  22836. 8009f5c: 4293 cmp r3, r2
  22837. 8009f5e: d004 beq.n 8009f6a <HAL_DMA_IRQHandler+0x3e2>
  22838. 8009f60: 687b ldr r3, [r7, #4]
  22839. 8009f62: 681b ldr r3, [r3, #0]
  22840. 8009f64: 4a15 ldr r2, [pc, #84] @ (8009fbc <HAL_DMA_IRQHandler+0x434>)
  22841. 8009f66: 4293 cmp r3, r2
  22842. 8009f68: d12a bne.n 8009fc0 <HAL_DMA_IRQHandler+0x438>
  22843. 8009f6a: 687b ldr r3, [r7, #4]
  22844. 8009f6c: 681b ldr r3, [r3, #0]
  22845. 8009f6e: 681b ldr r3, [r3, #0]
  22846. 8009f70: f003 0302 and.w r3, r3, #2
  22847. 8009f74: 2b00 cmp r3, #0
  22848. 8009f76: bf14 ite ne
  22849. 8009f78: 2301 movne r3, #1
  22850. 8009f7a: 2300 moveq r3, #0
  22851. 8009f7c: b2db uxtb r3, r3
  22852. 8009f7e: e023 b.n 8009fc8 <HAL_DMA_IRQHandler+0x440>
  22853. 8009f80: 40020010 .word 0x40020010
  22854. 8009f84: 40020028 .word 0x40020028
  22855. 8009f88: 40020040 .word 0x40020040
  22856. 8009f8c: 40020058 .word 0x40020058
  22857. 8009f90: 40020070 .word 0x40020070
  22858. 8009f94: 40020088 .word 0x40020088
  22859. 8009f98: 400200a0 .word 0x400200a0
  22860. 8009f9c: 400200b8 .word 0x400200b8
  22861. 8009fa0: 40020410 .word 0x40020410
  22862. 8009fa4: 40020428 .word 0x40020428
  22863. 8009fa8: 40020440 .word 0x40020440
  22864. 8009fac: 40020458 .word 0x40020458
  22865. 8009fb0: 40020470 .word 0x40020470
  22866. 8009fb4: 40020488 .word 0x40020488
  22867. 8009fb8: 400204a0 .word 0x400204a0
  22868. 8009fbc: 400204b8 .word 0x400204b8
  22869. 8009fc0: 687b ldr r3, [r7, #4]
  22870. 8009fc2: 681b ldr r3, [r3, #0]
  22871. 8009fc4: 681b ldr r3, [r3, #0]
  22872. 8009fc6: 2300 movs r3, #0
  22873. 8009fc8: 2b00 cmp r3, #0
  22874. 8009fca: d00d beq.n 8009fe8 <HAL_DMA_IRQHandler+0x460>
  22875. {
  22876. /* Clear the direct mode error flag */
  22877. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22878. 8009fcc: 687b ldr r3, [r7, #4]
  22879. 8009fce: 6ddb ldr r3, [r3, #92] @ 0x5c
  22880. 8009fd0: f003 031f and.w r3, r3, #31
  22881. 8009fd4: 2204 movs r2, #4
  22882. 8009fd6: 409a lsls r2, r3
  22883. 8009fd8: 6a3b ldr r3, [r7, #32]
  22884. 8009fda: 609a str r2, [r3, #8]
  22885. /* Update error code */
  22886. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  22887. 8009fdc: 687b ldr r3, [r7, #4]
  22888. 8009fde: 6d5b ldr r3, [r3, #84] @ 0x54
  22889. 8009fe0: f043 0204 orr.w r2, r3, #4
  22890. 8009fe4: 687b ldr r3, [r7, #4]
  22891. 8009fe6: 655a str r2, [r3, #84] @ 0x54
  22892. }
  22893. }
  22894. /* Half Transfer Complete Interrupt management ******************************/
  22895. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22896. 8009fe8: 687b ldr r3, [r7, #4]
  22897. 8009fea: 6ddb ldr r3, [r3, #92] @ 0x5c
  22898. 8009fec: f003 031f and.w r3, r3, #31
  22899. 8009ff0: 2210 movs r2, #16
  22900. 8009ff2: 409a lsls r2, r3
  22901. 8009ff4: 69bb ldr r3, [r7, #24]
  22902. 8009ff6: 4013 ands r3, r2
  22903. 8009ff8: 2b00 cmp r3, #0
  22904. 8009ffa: f000 80a6 beq.w 800a14a <HAL_DMA_IRQHandler+0x5c2>
  22905. {
  22906. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  22907. 8009ffe: 687b ldr r3, [r7, #4]
  22908. 800a000: 681b ldr r3, [r3, #0]
  22909. 800a002: 4a85 ldr r2, [pc, #532] @ (800a218 <HAL_DMA_IRQHandler+0x690>)
  22910. 800a004: 4293 cmp r3, r2
  22911. 800a006: d04a beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22912. 800a008: 687b ldr r3, [r7, #4]
  22913. 800a00a: 681b ldr r3, [r3, #0]
  22914. 800a00c: 4a83 ldr r2, [pc, #524] @ (800a21c <HAL_DMA_IRQHandler+0x694>)
  22915. 800a00e: 4293 cmp r3, r2
  22916. 800a010: d045 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22917. 800a012: 687b ldr r3, [r7, #4]
  22918. 800a014: 681b ldr r3, [r3, #0]
  22919. 800a016: 4a82 ldr r2, [pc, #520] @ (800a220 <HAL_DMA_IRQHandler+0x698>)
  22920. 800a018: 4293 cmp r3, r2
  22921. 800a01a: d040 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22922. 800a01c: 687b ldr r3, [r7, #4]
  22923. 800a01e: 681b ldr r3, [r3, #0]
  22924. 800a020: 4a80 ldr r2, [pc, #512] @ (800a224 <HAL_DMA_IRQHandler+0x69c>)
  22925. 800a022: 4293 cmp r3, r2
  22926. 800a024: d03b beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22927. 800a026: 687b ldr r3, [r7, #4]
  22928. 800a028: 681b ldr r3, [r3, #0]
  22929. 800a02a: 4a7f ldr r2, [pc, #508] @ (800a228 <HAL_DMA_IRQHandler+0x6a0>)
  22930. 800a02c: 4293 cmp r3, r2
  22931. 800a02e: d036 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22932. 800a030: 687b ldr r3, [r7, #4]
  22933. 800a032: 681b ldr r3, [r3, #0]
  22934. 800a034: 4a7d ldr r2, [pc, #500] @ (800a22c <HAL_DMA_IRQHandler+0x6a4>)
  22935. 800a036: 4293 cmp r3, r2
  22936. 800a038: d031 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22937. 800a03a: 687b ldr r3, [r7, #4]
  22938. 800a03c: 681b ldr r3, [r3, #0]
  22939. 800a03e: 4a7c ldr r2, [pc, #496] @ (800a230 <HAL_DMA_IRQHandler+0x6a8>)
  22940. 800a040: 4293 cmp r3, r2
  22941. 800a042: d02c beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22942. 800a044: 687b ldr r3, [r7, #4]
  22943. 800a046: 681b ldr r3, [r3, #0]
  22944. 800a048: 4a7a ldr r2, [pc, #488] @ (800a234 <HAL_DMA_IRQHandler+0x6ac>)
  22945. 800a04a: 4293 cmp r3, r2
  22946. 800a04c: d027 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22947. 800a04e: 687b ldr r3, [r7, #4]
  22948. 800a050: 681b ldr r3, [r3, #0]
  22949. 800a052: 4a79 ldr r2, [pc, #484] @ (800a238 <HAL_DMA_IRQHandler+0x6b0>)
  22950. 800a054: 4293 cmp r3, r2
  22951. 800a056: d022 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22952. 800a058: 687b ldr r3, [r7, #4]
  22953. 800a05a: 681b ldr r3, [r3, #0]
  22954. 800a05c: 4a77 ldr r2, [pc, #476] @ (800a23c <HAL_DMA_IRQHandler+0x6b4>)
  22955. 800a05e: 4293 cmp r3, r2
  22956. 800a060: d01d beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22957. 800a062: 687b ldr r3, [r7, #4]
  22958. 800a064: 681b ldr r3, [r3, #0]
  22959. 800a066: 4a76 ldr r2, [pc, #472] @ (800a240 <HAL_DMA_IRQHandler+0x6b8>)
  22960. 800a068: 4293 cmp r3, r2
  22961. 800a06a: d018 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22962. 800a06c: 687b ldr r3, [r7, #4]
  22963. 800a06e: 681b ldr r3, [r3, #0]
  22964. 800a070: 4a74 ldr r2, [pc, #464] @ (800a244 <HAL_DMA_IRQHandler+0x6bc>)
  22965. 800a072: 4293 cmp r3, r2
  22966. 800a074: d013 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22967. 800a076: 687b ldr r3, [r7, #4]
  22968. 800a078: 681b ldr r3, [r3, #0]
  22969. 800a07a: 4a73 ldr r2, [pc, #460] @ (800a248 <HAL_DMA_IRQHandler+0x6c0>)
  22970. 800a07c: 4293 cmp r3, r2
  22971. 800a07e: d00e beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22972. 800a080: 687b ldr r3, [r7, #4]
  22973. 800a082: 681b ldr r3, [r3, #0]
  22974. 800a084: 4a71 ldr r2, [pc, #452] @ (800a24c <HAL_DMA_IRQHandler+0x6c4>)
  22975. 800a086: 4293 cmp r3, r2
  22976. 800a088: d009 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22977. 800a08a: 687b ldr r3, [r7, #4]
  22978. 800a08c: 681b ldr r3, [r3, #0]
  22979. 800a08e: 4a70 ldr r2, [pc, #448] @ (800a250 <HAL_DMA_IRQHandler+0x6c8>)
  22980. 800a090: 4293 cmp r3, r2
  22981. 800a092: d004 beq.n 800a09e <HAL_DMA_IRQHandler+0x516>
  22982. 800a094: 687b ldr r3, [r7, #4]
  22983. 800a096: 681b ldr r3, [r3, #0]
  22984. 800a098: 4a6e ldr r2, [pc, #440] @ (800a254 <HAL_DMA_IRQHandler+0x6cc>)
  22985. 800a09a: 4293 cmp r3, r2
  22986. 800a09c: d10a bne.n 800a0b4 <HAL_DMA_IRQHandler+0x52c>
  22987. 800a09e: 687b ldr r3, [r7, #4]
  22988. 800a0a0: 681b ldr r3, [r3, #0]
  22989. 800a0a2: 681b ldr r3, [r3, #0]
  22990. 800a0a4: f003 0308 and.w r3, r3, #8
  22991. 800a0a8: 2b00 cmp r3, #0
  22992. 800a0aa: bf14 ite ne
  22993. 800a0ac: 2301 movne r3, #1
  22994. 800a0ae: 2300 moveq r3, #0
  22995. 800a0b0: b2db uxtb r3, r3
  22996. 800a0b2: e009 b.n 800a0c8 <HAL_DMA_IRQHandler+0x540>
  22997. 800a0b4: 687b ldr r3, [r7, #4]
  22998. 800a0b6: 681b ldr r3, [r3, #0]
  22999. 800a0b8: 681b ldr r3, [r3, #0]
  23000. 800a0ba: f003 0304 and.w r3, r3, #4
  23001. 800a0be: 2b00 cmp r3, #0
  23002. 800a0c0: bf14 ite ne
  23003. 800a0c2: 2301 movne r3, #1
  23004. 800a0c4: 2300 moveq r3, #0
  23005. 800a0c6: b2db uxtb r3, r3
  23006. 800a0c8: 2b00 cmp r3, #0
  23007. 800a0ca: d03e beq.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23008. {
  23009. /* Clear the half transfer complete flag */
  23010. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  23011. 800a0cc: 687b ldr r3, [r7, #4]
  23012. 800a0ce: 6ddb ldr r3, [r3, #92] @ 0x5c
  23013. 800a0d0: f003 031f and.w r3, r3, #31
  23014. 800a0d4: 2210 movs r2, #16
  23015. 800a0d6: 409a lsls r2, r3
  23016. 800a0d8: 6a3b ldr r3, [r7, #32]
  23017. 800a0da: 609a str r2, [r3, #8]
  23018. /* Multi_Buffering mode enabled */
  23019. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23020. 800a0dc: 687b ldr r3, [r7, #4]
  23021. 800a0de: 681b ldr r3, [r3, #0]
  23022. 800a0e0: 681b ldr r3, [r3, #0]
  23023. 800a0e2: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23024. 800a0e6: 2b00 cmp r3, #0
  23025. 800a0e8: d018 beq.n 800a11c <HAL_DMA_IRQHandler+0x594>
  23026. {
  23027. /* Current memory buffer used is Memory 0 */
  23028. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23029. 800a0ea: 687b ldr r3, [r7, #4]
  23030. 800a0ec: 681b ldr r3, [r3, #0]
  23031. 800a0ee: 681b ldr r3, [r3, #0]
  23032. 800a0f0: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23033. 800a0f4: 2b00 cmp r3, #0
  23034. 800a0f6: d108 bne.n 800a10a <HAL_DMA_IRQHandler+0x582>
  23035. {
  23036. if(hdma->XferHalfCpltCallback != NULL)
  23037. 800a0f8: 687b ldr r3, [r7, #4]
  23038. 800a0fa: 6c1b ldr r3, [r3, #64] @ 0x40
  23039. 800a0fc: 2b00 cmp r3, #0
  23040. 800a0fe: d024 beq.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23041. {
  23042. /* Half transfer callback */
  23043. hdma->XferHalfCpltCallback(hdma);
  23044. 800a100: 687b ldr r3, [r7, #4]
  23045. 800a102: 6c1b ldr r3, [r3, #64] @ 0x40
  23046. 800a104: 6878 ldr r0, [r7, #4]
  23047. 800a106: 4798 blx r3
  23048. 800a108: e01f b.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23049. }
  23050. }
  23051. /* Current memory buffer used is Memory 1 */
  23052. else
  23053. {
  23054. if(hdma->XferM1HalfCpltCallback != NULL)
  23055. 800a10a: 687b ldr r3, [r7, #4]
  23056. 800a10c: 6c9b ldr r3, [r3, #72] @ 0x48
  23057. 800a10e: 2b00 cmp r3, #0
  23058. 800a110: d01b beq.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23059. {
  23060. /* Half transfer callback */
  23061. hdma->XferM1HalfCpltCallback(hdma);
  23062. 800a112: 687b ldr r3, [r7, #4]
  23063. 800a114: 6c9b ldr r3, [r3, #72] @ 0x48
  23064. 800a116: 6878 ldr r0, [r7, #4]
  23065. 800a118: 4798 blx r3
  23066. 800a11a: e016 b.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23067. }
  23068. }
  23069. else
  23070. {
  23071. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  23072. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23073. 800a11c: 687b ldr r3, [r7, #4]
  23074. 800a11e: 681b ldr r3, [r3, #0]
  23075. 800a120: 681b ldr r3, [r3, #0]
  23076. 800a122: f403 7380 and.w r3, r3, #256 @ 0x100
  23077. 800a126: 2b00 cmp r3, #0
  23078. 800a128: d107 bne.n 800a13a <HAL_DMA_IRQHandler+0x5b2>
  23079. {
  23080. /* Disable the half transfer interrupt */
  23081. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23082. 800a12a: 687b ldr r3, [r7, #4]
  23083. 800a12c: 681b ldr r3, [r3, #0]
  23084. 800a12e: 681a ldr r2, [r3, #0]
  23085. 800a130: 687b ldr r3, [r7, #4]
  23086. 800a132: 681b ldr r3, [r3, #0]
  23087. 800a134: f022 0208 bic.w r2, r2, #8
  23088. 800a138: 601a str r2, [r3, #0]
  23089. }
  23090. if(hdma->XferHalfCpltCallback != NULL)
  23091. 800a13a: 687b ldr r3, [r7, #4]
  23092. 800a13c: 6c1b ldr r3, [r3, #64] @ 0x40
  23093. 800a13e: 2b00 cmp r3, #0
  23094. 800a140: d003 beq.n 800a14a <HAL_DMA_IRQHandler+0x5c2>
  23095. {
  23096. /* Half transfer callback */
  23097. hdma->XferHalfCpltCallback(hdma);
  23098. 800a142: 687b ldr r3, [r7, #4]
  23099. 800a144: 6c1b ldr r3, [r3, #64] @ 0x40
  23100. 800a146: 6878 ldr r0, [r7, #4]
  23101. 800a148: 4798 blx r3
  23102. }
  23103. }
  23104. }
  23105. }
  23106. /* Transfer Complete Interrupt management ***********************************/
  23107. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  23108. 800a14a: 687b ldr r3, [r7, #4]
  23109. 800a14c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23110. 800a14e: f003 031f and.w r3, r3, #31
  23111. 800a152: 2220 movs r2, #32
  23112. 800a154: 409a lsls r2, r3
  23113. 800a156: 69bb ldr r3, [r7, #24]
  23114. 800a158: 4013 ands r3, r2
  23115. 800a15a: 2b00 cmp r3, #0
  23116. 800a15c: f000 8110 beq.w 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23117. {
  23118. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  23119. 800a160: 687b ldr r3, [r7, #4]
  23120. 800a162: 681b ldr r3, [r3, #0]
  23121. 800a164: 4a2c ldr r2, [pc, #176] @ (800a218 <HAL_DMA_IRQHandler+0x690>)
  23122. 800a166: 4293 cmp r3, r2
  23123. 800a168: d04a beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23124. 800a16a: 687b ldr r3, [r7, #4]
  23125. 800a16c: 681b ldr r3, [r3, #0]
  23126. 800a16e: 4a2b ldr r2, [pc, #172] @ (800a21c <HAL_DMA_IRQHandler+0x694>)
  23127. 800a170: 4293 cmp r3, r2
  23128. 800a172: d045 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23129. 800a174: 687b ldr r3, [r7, #4]
  23130. 800a176: 681b ldr r3, [r3, #0]
  23131. 800a178: 4a29 ldr r2, [pc, #164] @ (800a220 <HAL_DMA_IRQHandler+0x698>)
  23132. 800a17a: 4293 cmp r3, r2
  23133. 800a17c: d040 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23134. 800a17e: 687b ldr r3, [r7, #4]
  23135. 800a180: 681b ldr r3, [r3, #0]
  23136. 800a182: 4a28 ldr r2, [pc, #160] @ (800a224 <HAL_DMA_IRQHandler+0x69c>)
  23137. 800a184: 4293 cmp r3, r2
  23138. 800a186: d03b beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23139. 800a188: 687b ldr r3, [r7, #4]
  23140. 800a18a: 681b ldr r3, [r3, #0]
  23141. 800a18c: 4a26 ldr r2, [pc, #152] @ (800a228 <HAL_DMA_IRQHandler+0x6a0>)
  23142. 800a18e: 4293 cmp r3, r2
  23143. 800a190: d036 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23144. 800a192: 687b ldr r3, [r7, #4]
  23145. 800a194: 681b ldr r3, [r3, #0]
  23146. 800a196: 4a25 ldr r2, [pc, #148] @ (800a22c <HAL_DMA_IRQHandler+0x6a4>)
  23147. 800a198: 4293 cmp r3, r2
  23148. 800a19a: d031 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23149. 800a19c: 687b ldr r3, [r7, #4]
  23150. 800a19e: 681b ldr r3, [r3, #0]
  23151. 800a1a0: 4a23 ldr r2, [pc, #140] @ (800a230 <HAL_DMA_IRQHandler+0x6a8>)
  23152. 800a1a2: 4293 cmp r3, r2
  23153. 800a1a4: d02c beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23154. 800a1a6: 687b ldr r3, [r7, #4]
  23155. 800a1a8: 681b ldr r3, [r3, #0]
  23156. 800a1aa: 4a22 ldr r2, [pc, #136] @ (800a234 <HAL_DMA_IRQHandler+0x6ac>)
  23157. 800a1ac: 4293 cmp r3, r2
  23158. 800a1ae: d027 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23159. 800a1b0: 687b ldr r3, [r7, #4]
  23160. 800a1b2: 681b ldr r3, [r3, #0]
  23161. 800a1b4: 4a20 ldr r2, [pc, #128] @ (800a238 <HAL_DMA_IRQHandler+0x6b0>)
  23162. 800a1b6: 4293 cmp r3, r2
  23163. 800a1b8: d022 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23164. 800a1ba: 687b ldr r3, [r7, #4]
  23165. 800a1bc: 681b ldr r3, [r3, #0]
  23166. 800a1be: 4a1f ldr r2, [pc, #124] @ (800a23c <HAL_DMA_IRQHandler+0x6b4>)
  23167. 800a1c0: 4293 cmp r3, r2
  23168. 800a1c2: d01d beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23169. 800a1c4: 687b ldr r3, [r7, #4]
  23170. 800a1c6: 681b ldr r3, [r3, #0]
  23171. 800a1c8: 4a1d ldr r2, [pc, #116] @ (800a240 <HAL_DMA_IRQHandler+0x6b8>)
  23172. 800a1ca: 4293 cmp r3, r2
  23173. 800a1cc: d018 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23174. 800a1ce: 687b ldr r3, [r7, #4]
  23175. 800a1d0: 681b ldr r3, [r3, #0]
  23176. 800a1d2: 4a1c ldr r2, [pc, #112] @ (800a244 <HAL_DMA_IRQHandler+0x6bc>)
  23177. 800a1d4: 4293 cmp r3, r2
  23178. 800a1d6: d013 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23179. 800a1d8: 687b ldr r3, [r7, #4]
  23180. 800a1da: 681b ldr r3, [r3, #0]
  23181. 800a1dc: 4a1a ldr r2, [pc, #104] @ (800a248 <HAL_DMA_IRQHandler+0x6c0>)
  23182. 800a1de: 4293 cmp r3, r2
  23183. 800a1e0: d00e beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23184. 800a1e2: 687b ldr r3, [r7, #4]
  23185. 800a1e4: 681b ldr r3, [r3, #0]
  23186. 800a1e6: 4a19 ldr r2, [pc, #100] @ (800a24c <HAL_DMA_IRQHandler+0x6c4>)
  23187. 800a1e8: 4293 cmp r3, r2
  23188. 800a1ea: d009 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23189. 800a1ec: 687b ldr r3, [r7, #4]
  23190. 800a1ee: 681b ldr r3, [r3, #0]
  23191. 800a1f0: 4a17 ldr r2, [pc, #92] @ (800a250 <HAL_DMA_IRQHandler+0x6c8>)
  23192. 800a1f2: 4293 cmp r3, r2
  23193. 800a1f4: d004 beq.n 800a200 <HAL_DMA_IRQHandler+0x678>
  23194. 800a1f6: 687b ldr r3, [r7, #4]
  23195. 800a1f8: 681b ldr r3, [r3, #0]
  23196. 800a1fa: 4a16 ldr r2, [pc, #88] @ (800a254 <HAL_DMA_IRQHandler+0x6cc>)
  23197. 800a1fc: 4293 cmp r3, r2
  23198. 800a1fe: d12b bne.n 800a258 <HAL_DMA_IRQHandler+0x6d0>
  23199. 800a200: 687b ldr r3, [r7, #4]
  23200. 800a202: 681b ldr r3, [r3, #0]
  23201. 800a204: 681b ldr r3, [r3, #0]
  23202. 800a206: f003 0310 and.w r3, r3, #16
  23203. 800a20a: 2b00 cmp r3, #0
  23204. 800a20c: bf14 ite ne
  23205. 800a20e: 2301 movne r3, #1
  23206. 800a210: 2300 moveq r3, #0
  23207. 800a212: b2db uxtb r3, r3
  23208. 800a214: e02a b.n 800a26c <HAL_DMA_IRQHandler+0x6e4>
  23209. 800a216: bf00 nop
  23210. 800a218: 40020010 .word 0x40020010
  23211. 800a21c: 40020028 .word 0x40020028
  23212. 800a220: 40020040 .word 0x40020040
  23213. 800a224: 40020058 .word 0x40020058
  23214. 800a228: 40020070 .word 0x40020070
  23215. 800a22c: 40020088 .word 0x40020088
  23216. 800a230: 400200a0 .word 0x400200a0
  23217. 800a234: 400200b8 .word 0x400200b8
  23218. 800a238: 40020410 .word 0x40020410
  23219. 800a23c: 40020428 .word 0x40020428
  23220. 800a240: 40020440 .word 0x40020440
  23221. 800a244: 40020458 .word 0x40020458
  23222. 800a248: 40020470 .word 0x40020470
  23223. 800a24c: 40020488 .word 0x40020488
  23224. 800a250: 400204a0 .word 0x400204a0
  23225. 800a254: 400204b8 .word 0x400204b8
  23226. 800a258: 687b ldr r3, [r7, #4]
  23227. 800a25a: 681b ldr r3, [r3, #0]
  23228. 800a25c: 681b ldr r3, [r3, #0]
  23229. 800a25e: f003 0302 and.w r3, r3, #2
  23230. 800a262: 2b00 cmp r3, #0
  23231. 800a264: bf14 ite ne
  23232. 800a266: 2301 movne r3, #1
  23233. 800a268: 2300 moveq r3, #0
  23234. 800a26a: b2db uxtb r3, r3
  23235. 800a26c: 2b00 cmp r3, #0
  23236. 800a26e: f000 8087 beq.w 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23237. {
  23238. /* Clear the transfer complete flag */
  23239. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  23240. 800a272: 687b ldr r3, [r7, #4]
  23241. 800a274: 6ddb ldr r3, [r3, #92] @ 0x5c
  23242. 800a276: f003 031f and.w r3, r3, #31
  23243. 800a27a: 2220 movs r2, #32
  23244. 800a27c: 409a lsls r2, r3
  23245. 800a27e: 6a3b ldr r3, [r7, #32]
  23246. 800a280: 609a str r2, [r3, #8]
  23247. if(HAL_DMA_STATE_ABORT == hdma->State)
  23248. 800a282: 687b ldr r3, [r7, #4]
  23249. 800a284: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  23250. 800a288: b2db uxtb r3, r3
  23251. 800a28a: 2b04 cmp r3, #4
  23252. 800a28c: d139 bne.n 800a302 <HAL_DMA_IRQHandler+0x77a>
  23253. {
  23254. /* Disable all the transfer interrupts */
  23255. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  23256. 800a28e: 687b ldr r3, [r7, #4]
  23257. 800a290: 681b ldr r3, [r3, #0]
  23258. 800a292: 681a ldr r2, [r3, #0]
  23259. 800a294: 687b ldr r3, [r7, #4]
  23260. 800a296: 681b ldr r3, [r3, #0]
  23261. 800a298: f022 0216 bic.w r2, r2, #22
  23262. 800a29c: 601a str r2, [r3, #0]
  23263. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  23264. 800a29e: 687b ldr r3, [r7, #4]
  23265. 800a2a0: 681b ldr r3, [r3, #0]
  23266. 800a2a2: 695a ldr r2, [r3, #20]
  23267. 800a2a4: 687b ldr r3, [r7, #4]
  23268. 800a2a6: 681b ldr r3, [r3, #0]
  23269. 800a2a8: f022 0280 bic.w r2, r2, #128 @ 0x80
  23270. 800a2ac: 615a str r2, [r3, #20]
  23271. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  23272. 800a2ae: 687b ldr r3, [r7, #4]
  23273. 800a2b0: 6c1b ldr r3, [r3, #64] @ 0x40
  23274. 800a2b2: 2b00 cmp r3, #0
  23275. 800a2b4: d103 bne.n 800a2be <HAL_DMA_IRQHandler+0x736>
  23276. 800a2b6: 687b ldr r3, [r7, #4]
  23277. 800a2b8: 6c9b ldr r3, [r3, #72] @ 0x48
  23278. 800a2ba: 2b00 cmp r3, #0
  23279. 800a2bc: d007 beq.n 800a2ce <HAL_DMA_IRQHandler+0x746>
  23280. {
  23281. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23282. 800a2be: 687b ldr r3, [r7, #4]
  23283. 800a2c0: 681b ldr r3, [r3, #0]
  23284. 800a2c2: 681a ldr r2, [r3, #0]
  23285. 800a2c4: 687b ldr r3, [r7, #4]
  23286. 800a2c6: 681b ldr r3, [r3, #0]
  23287. 800a2c8: f022 0208 bic.w r2, r2, #8
  23288. 800a2cc: 601a str r2, [r3, #0]
  23289. }
  23290. /* Clear all interrupt flags at correct offset within the register */
  23291. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23292. 800a2ce: 687b ldr r3, [r7, #4]
  23293. 800a2d0: 6ddb ldr r3, [r3, #92] @ 0x5c
  23294. 800a2d2: f003 031f and.w r3, r3, #31
  23295. 800a2d6: 223f movs r2, #63 @ 0x3f
  23296. 800a2d8: 409a lsls r2, r3
  23297. 800a2da: 6a3b ldr r3, [r7, #32]
  23298. 800a2dc: 609a str r2, [r3, #8]
  23299. /* Change the DMA state */
  23300. hdma->State = HAL_DMA_STATE_READY;
  23301. 800a2de: 687b ldr r3, [r7, #4]
  23302. 800a2e0: 2201 movs r2, #1
  23303. 800a2e2: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23304. /* Process Unlocked */
  23305. __HAL_UNLOCK(hdma);
  23306. 800a2e6: 687b ldr r3, [r7, #4]
  23307. 800a2e8: 2200 movs r2, #0
  23308. 800a2ea: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23309. if(hdma->XferAbortCallback != NULL)
  23310. 800a2ee: 687b ldr r3, [r7, #4]
  23311. 800a2f0: 6d1b ldr r3, [r3, #80] @ 0x50
  23312. 800a2f2: 2b00 cmp r3, #0
  23313. 800a2f4: f000 834a beq.w 800a98c <HAL_DMA_IRQHandler+0xe04>
  23314. {
  23315. hdma->XferAbortCallback(hdma);
  23316. 800a2f8: 687b ldr r3, [r7, #4]
  23317. 800a2fa: 6d1b ldr r3, [r3, #80] @ 0x50
  23318. 800a2fc: 6878 ldr r0, [r7, #4]
  23319. 800a2fe: 4798 blx r3
  23320. }
  23321. return;
  23322. 800a300: e344 b.n 800a98c <HAL_DMA_IRQHandler+0xe04>
  23323. }
  23324. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23325. 800a302: 687b ldr r3, [r7, #4]
  23326. 800a304: 681b ldr r3, [r3, #0]
  23327. 800a306: 681b ldr r3, [r3, #0]
  23328. 800a308: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23329. 800a30c: 2b00 cmp r3, #0
  23330. 800a30e: d018 beq.n 800a342 <HAL_DMA_IRQHandler+0x7ba>
  23331. {
  23332. /* Current memory buffer used is Memory 0 */
  23333. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23334. 800a310: 687b ldr r3, [r7, #4]
  23335. 800a312: 681b ldr r3, [r3, #0]
  23336. 800a314: 681b ldr r3, [r3, #0]
  23337. 800a316: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23338. 800a31a: 2b00 cmp r3, #0
  23339. 800a31c: d108 bne.n 800a330 <HAL_DMA_IRQHandler+0x7a8>
  23340. {
  23341. if(hdma->XferM1CpltCallback != NULL)
  23342. 800a31e: 687b ldr r3, [r7, #4]
  23343. 800a320: 6c5b ldr r3, [r3, #68] @ 0x44
  23344. 800a322: 2b00 cmp r3, #0
  23345. 800a324: d02c beq.n 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23346. {
  23347. /* Transfer complete Callback for memory1 */
  23348. hdma->XferM1CpltCallback(hdma);
  23349. 800a326: 687b ldr r3, [r7, #4]
  23350. 800a328: 6c5b ldr r3, [r3, #68] @ 0x44
  23351. 800a32a: 6878 ldr r0, [r7, #4]
  23352. 800a32c: 4798 blx r3
  23353. 800a32e: e027 b.n 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23354. }
  23355. }
  23356. /* Current memory buffer used is Memory 1 */
  23357. else
  23358. {
  23359. if(hdma->XferCpltCallback != NULL)
  23360. 800a330: 687b ldr r3, [r7, #4]
  23361. 800a332: 6bdb ldr r3, [r3, #60] @ 0x3c
  23362. 800a334: 2b00 cmp r3, #0
  23363. 800a336: d023 beq.n 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23364. {
  23365. /* Transfer complete Callback for memory0 */
  23366. hdma->XferCpltCallback(hdma);
  23367. 800a338: 687b ldr r3, [r7, #4]
  23368. 800a33a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23369. 800a33c: 6878 ldr r0, [r7, #4]
  23370. 800a33e: 4798 blx r3
  23371. 800a340: e01e b.n 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23372. }
  23373. }
  23374. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  23375. else
  23376. {
  23377. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23378. 800a342: 687b ldr r3, [r7, #4]
  23379. 800a344: 681b ldr r3, [r3, #0]
  23380. 800a346: 681b ldr r3, [r3, #0]
  23381. 800a348: f403 7380 and.w r3, r3, #256 @ 0x100
  23382. 800a34c: 2b00 cmp r3, #0
  23383. 800a34e: d10f bne.n 800a370 <HAL_DMA_IRQHandler+0x7e8>
  23384. {
  23385. /* Disable the transfer complete interrupt */
  23386. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  23387. 800a350: 687b ldr r3, [r7, #4]
  23388. 800a352: 681b ldr r3, [r3, #0]
  23389. 800a354: 681a ldr r2, [r3, #0]
  23390. 800a356: 687b ldr r3, [r7, #4]
  23391. 800a358: 681b ldr r3, [r3, #0]
  23392. 800a35a: f022 0210 bic.w r2, r2, #16
  23393. 800a35e: 601a str r2, [r3, #0]
  23394. /* Change the DMA state */
  23395. hdma->State = HAL_DMA_STATE_READY;
  23396. 800a360: 687b ldr r3, [r7, #4]
  23397. 800a362: 2201 movs r2, #1
  23398. 800a364: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23399. /* Process Unlocked */
  23400. __HAL_UNLOCK(hdma);
  23401. 800a368: 687b ldr r3, [r7, #4]
  23402. 800a36a: 2200 movs r2, #0
  23403. 800a36c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23404. }
  23405. if(hdma->XferCpltCallback != NULL)
  23406. 800a370: 687b ldr r3, [r7, #4]
  23407. 800a372: 6bdb ldr r3, [r3, #60] @ 0x3c
  23408. 800a374: 2b00 cmp r3, #0
  23409. 800a376: d003 beq.n 800a380 <HAL_DMA_IRQHandler+0x7f8>
  23410. {
  23411. /* Transfer complete callback */
  23412. hdma->XferCpltCallback(hdma);
  23413. 800a378: 687b ldr r3, [r7, #4]
  23414. 800a37a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23415. 800a37c: 6878 ldr r0, [r7, #4]
  23416. 800a37e: 4798 blx r3
  23417. }
  23418. }
  23419. }
  23420. /* manage error case */
  23421. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  23422. 800a380: 687b ldr r3, [r7, #4]
  23423. 800a382: 6d5b ldr r3, [r3, #84] @ 0x54
  23424. 800a384: 2b00 cmp r3, #0
  23425. 800a386: f000 8306 beq.w 800a996 <HAL_DMA_IRQHandler+0xe0e>
  23426. {
  23427. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  23428. 800a38a: 687b ldr r3, [r7, #4]
  23429. 800a38c: 6d5b ldr r3, [r3, #84] @ 0x54
  23430. 800a38e: f003 0301 and.w r3, r3, #1
  23431. 800a392: 2b00 cmp r3, #0
  23432. 800a394: f000 8088 beq.w 800a4a8 <HAL_DMA_IRQHandler+0x920>
  23433. {
  23434. hdma->State = HAL_DMA_STATE_ABORT;
  23435. 800a398: 687b ldr r3, [r7, #4]
  23436. 800a39a: 2204 movs r2, #4
  23437. 800a39c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23438. /* Disable the stream */
  23439. __HAL_DMA_DISABLE(hdma);
  23440. 800a3a0: 687b ldr r3, [r7, #4]
  23441. 800a3a2: 681b ldr r3, [r3, #0]
  23442. 800a3a4: 4a7a ldr r2, [pc, #488] @ (800a590 <HAL_DMA_IRQHandler+0xa08>)
  23443. 800a3a6: 4293 cmp r3, r2
  23444. 800a3a8: d04a beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23445. 800a3aa: 687b ldr r3, [r7, #4]
  23446. 800a3ac: 681b ldr r3, [r3, #0]
  23447. 800a3ae: 4a79 ldr r2, [pc, #484] @ (800a594 <HAL_DMA_IRQHandler+0xa0c>)
  23448. 800a3b0: 4293 cmp r3, r2
  23449. 800a3b2: d045 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23450. 800a3b4: 687b ldr r3, [r7, #4]
  23451. 800a3b6: 681b ldr r3, [r3, #0]
  23452. 800a3b8: 4a77 ldr r2, [pc, #476] @ (800a598 <HAL_DMA_IRQHandler+0xa10>)
  23453. 800a3ba: 4293 cmp r3, r2
  23454. 800a3bc: d040 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23455. 800a3be: 687b ldr r3, [r7, #4]
  23456. 800a3c0: 681b ldr r3, [r3, #0]
  23457. 800a3c2: 4a76 ldr r2, [pc, #472] @ (800a59c <HAL_DMA_IRQHandler+0xa14>)
  23458. 800a3c4: 4293 cmp r3, r2
  23459. 800a3c6: d03b beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23460. 800a3c8: 687b ldr r3, [r7, #4]
  23461. 800a3ca: 681b ldr r3, [r3, #0]
  23462. 800a3cc: 4a74 ldr r2, [pc, #464] @ (800a5a0 <HAL_DMA_IRQHandler+0xa18>)
  23463. 800a3ce: 4293 cmp r3, r2
  23464. 800a3d0: d036 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23465. 800a3d2: 687b ldr r3, [r7, #4]
  23466. 800a3d4: 681b ldr r3, [r3, #0]
  23467. 800a3d6: 4a73 ldr r2, [pc, #460] @ (800a5a4 <HAL_DMA_IRQHandler+0xa1c>)
  23468. 800a3d8: 4293 cmp r3, r2
  23469. 800a3da: d031 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23470. 800a3dc: 687b ldr r3, [r7, #4]
  23471. 800a3de: 681b ldr r3, [r3, #0]
  23472. 800a3e0: 4a71 ldr r2, [pc, #452] @ (800a5a8 <HAL_DMA_IRQHandler+0xa20>)
  23473. 800a3e2: 4293 cmp r3, r2
  23474. 800a3e4: d02c beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23475. 800a3e6: 687b ldr r3, [r7, #4]
  23476. 800a3e8: 681b ldr r3, [r3, #0]
  23477. 800a3ea: 4a70 ldr r2, [pc, #448] @ (800a5ac <HAL_DMA_IRQHandler+0xa24>)
  23478. 800a3ec: 4293 cmp r3, r2
  23479. 800a3ee: d027 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23480. 800a3f0: 687b ldr r3, [r7, #4]
  23481. 800a3f2: 681b ldr r3, [r3, #0]
  23482. 800a3f4: 4a6e ldr r2, [pc, #440] @ (800a5b0 <HAL_DMA_IRQHandler+0xa28>)
  23483. 800a3f6: 4293 cmp r3, r2
  23484. 800a3f8: d022 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23485. 800a3fa: 687b ldr r3, [r7, #4]
  23486. 800a3fc: 681b ldr r3, [r3, #0]
  23487. 800a3fe: 4a6d ldr r2, [pc, #436] @ (800a5b4 <HAL_DMA_IRQHandler+0xa2c>)
  23488. 800a400: 4293 cmp r3, r2
  23489. 800a402: d01d beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23490. 800a404: 687b ldr r3, [r7, #4]
  23491. 800a406: 681b ldr r3, [r3, #0]
  23492. 800a408: 4a6b ldr r2, [pc, #428] @ (800a5b8 <HAL_DMA_IRQHandler+0xa30>)
  23493. 800a40a: 4293 cmp r3, r2
  23494. 800a40c: d018 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23495. 800a40e: 687b ldr r3, [r7, #4]
  23496. 800a410: 681b ldr r3, [r3, #0]
  23497. 800a412: 4a6a ldr r2, [pc, #424] @ (800a5bc <HAL_DMA_IRQHandler+0xa34>)
  23498. 800a414: 4293 cmp r3, r2
  23499. 800a416: d013 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23500. 800a418: 687b ldr r3, [r7, #4]
  23501. 800a41a: 681b ldr r3, [r3, #0]
  23502. 800a41c: 4a68 ldr r2, [pc, #416] @ (800a5c0 <HAL_DMA_IRQHandler+0xa38>)
  23503. 800a41e: 4293 cmp r3, r2
  23504. 800a420: d00e beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23505. 800a422: 687b ldr r3, [r7, #4]
  23506. 800a424: 681b ldr r3, [r3, #0]
  23507. 800a426: 4a67 ldr r2, [pc, #412] @ (800a5c4 <HAL_DMA_IRQHandler+0xa3c>)
  23508. 800a428: 4293 cmp r3, r2
  23509. 800a42a: d009 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23510. 800a42c: 687b ldr r3, [r7, #4]
  23511. 800a42e: 681b ldr r3, [r3, #0]
  23512. 800a430: 4a65 ldr r2, [pc, #404] @ (800a5c8 <HAL_DMA_IRQHandler+0xa40>)
  23513. 800a432: 4293 cmp r3, r2
  23514. 800a434: d004 beq.n 800a440 <HAL_DMA_IRQHandler+0x8b8>
  23515. 800a436: 687b ldr r3, [r7, #4]
  23516. 800a438: 681b ldr r3, [r3, #0]
  23517. 800a43a: 4a64 ldr r2, [pc, #400] @ (800a5cc <HAL_DMA_IRQHandler+0xa44>)
  23518. 800a43c: 4293 cmp r3, r2
  23519. 800a43e: d108 bne.n 800a452 <HAL_DMA_IRQHandler+0x8ca>
  23520. 800a440: 687b ldr r3, [r7, #4]
  23521. 800a442: 681b ldr r3, [r3, #0]
  23522. 800a444: 681a ldr r2, [r3, #0]
  23523. 800a446: 687b ldr r3, [r7, #4]
  23524. 800a448: 681b ldr r3, [r3, #0]
  23525. 800a44a: f022 0201 bic.w r2, r2, #1
  23526. 800a44e: 601a str r2, [r3, #0]
  23527. 800a450: e007 b.n 800a462 <HAL_DMA_IRQHandler+0x8da>
  23528. 800a452: 687b ldr r3, [r7, #4]
  23529. 800a454: 681b ldr r3, [r3, #0]
  23530. 800a456: 681a ldr r2, [r3, #0]
  23531. 800a458: 687b ldr r3, [r7, #4]
  23532. 800a45a: 681b ldr r3, [r3, #0]
  23533. 800a45c: f022 0201 bic.w r2, r2, #1
  23534. 800a460: 601a str r2, [r3, #0]
  23535. do
  23536. {
  23537. if (++count > timeout)
  23538. 800a462: 68fb ldr r3, [r7, #12]
  23539. 800a464: 3301 adds r3, #1
  23540. 800a466: 60fb str r3, [r7, #12]
  23541. 800a468: 6a7a ldr r2, [r7, #36] @ 0x24
  23542. 800a46a: 429a cmp r2, r3
  23543. 800a46c: d307 bcc.n 800a47e <HAL_DMA_IRQHandler+0x8f6>
  23544. {
  23545. break;
  23546. }
  23547. }
  23548. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  23549. 800a46e: 687b ldr r3, [r7, #4]
  23550. 800a470: 681b ldr r3, [r3, #0]
  23551. 800a472: 681b ldr r3, [r3, #0]
  23552. 800a474: f003 0301 and.w r3, r3, #1
  23553. 800a478: 2b00 cmp r3, #0
  23554. 800a47a: d1f2 bne.n 800a462 <HAL_DMA_IRQHandler+0x8da>
  23555. 800a47c: e000 b.n 800a480 <HAL_DMA_IRQHandler+0x8f8>
  23556. break;
  23557. 800a47e: bf00 nop
  23558. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  23559. 800a480: 687b ldr r3, [r7, #4]
  23560. 800a482: 681b ldr r3, [r3, #0]
  23561. 800a484: 681b ldr r3, [r3, #0]
  23562. 800a486: f003 0301 and.w r3, r3, #1
  23563. 800a48a: 2b00 cmp r3, #0
  23564. 800a48c: d004 beq.n 800a498 <HAL_DMA_IRQHandler+0x910>
  23565. {
  23566. /* Change the DMA state to error if DMA disable fails */
  23567. hdma->State = HAL_DMA_STATE_ERROR;
  23568. 800a48e: 687b ldr r3, [r7, #4]
  23569. 800a490: 2203 movs r2, #3
  23570. 800a492: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23571. 800a496: e003 b.n 800a4a0 <HAL_DMA_IRQHandler+0x918>
  23572. }
  23573. else
  23574. {
  23575. /* Change the DMA state to Ready if DMA disable success */
  23576. hdma->State = HAL_DMA_STATE_READY;
  23577. 800a498: 687b ldr r3, [r7, #4]
  23578. 800a49a: 2201 movs r2, #1
  23579. 800a49c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23580. }
  23581. /* Process Unlocked */
  23582. __HAL_UNLOCK(hdma);
  23583. 800a4a0: 687b ldr r3, [r7, #4]
  23584. 800a4a2: 2200 movs r2, #0
  23585. 800a4a4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23586. }
  23587. if(hdma->XferErrorCallback != NULL)
  23588. 800a4a8: 687b ldr r3, [r7, #4]
  23589. 800a4aa: 6cdb ldr r3, [r3, #76] @ 0x4c
  23590. 800a4ac: 2b00 cmp r3, #0
  23591. 800a4ae: f000 8272 beq.w 800a996 <HAL_DMA_IRQHandler+0xe0e>
  23592. {
  23593. /* Transfer error callback */
  23594. hdma->XferErrorCallback(hdma);
  23595. 800a4b2: 687b ldr r3, [r7, #4]
  23596. 800a4b4: 6cdb ldr r3, [r3, #76] @ 0x4c
  23597. 800a4b6: 6878 ldr r0, [r7, #4]
  23598. 800a4b8: 4798 blx r3
  23599. 800a4ba: e26c b.n 800a996 <HAL_DMA_IRQHandler+0xe0e>
  23600. }
  23601. }
  23602. }
  23603. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23604. 800a4bc: 687b ldr r3, [r7, #4]
  23605. 800a4be: 681b ldr r3, [r3, #0]
  23606. 800a4c0: 4a43 ldr r2, [pc, #268] @ (800a5d0 <HAL_DMA_IRQHandler+0xa48>)
  23607. 800a4c2: 4293 cmp r3, r2
  23608. 800a4c4: d022 beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23609. 800a4c6: 687b ldr r3, [r7, #4]
  23610. 800a4c8: 681b ldr r3, [r3, #0]
  23611. 800a4ca: 4a42 ldr r2, [pc, #264] @ (800a5d4 <HAL_DMA_IRQHandler+0xa4c>)
  23612. 800a4cc: 4293 cmp r3, r2
  23613. 800a4ce: d01d beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23614. 800a4d0: 687b ldr r3, [r7, #4]
  23615. 800a4d2: 681b ldr r3, [r3, #0]
  23616. 800a4d4: 4a40 ldr r2, [pc, #256] @ (800a5d8 <HAL_DMA_IRQHandler+0xa50>)
  23617. 800a4d6: 4293 cmp r3, r2
  23618. 800a4d8: d018 beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23619. 800a4da: 687b ldr r3, [r7, #4]
  23620. 800a4dc: 681b ldr r3, [r3, #0]
  23621. 800a4de: 4a3f ldr r2, [pc, #252] @ (800a5dc <HAL_DMA_IRQHandler+0xa54>)
  23622. 800a4e0: 4293 cmp r3, r2
  23623. 800a4e2: d013 beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23624. 800a4e4: 687b ldr r3, [r7, #4]
  23625. 800a4e6: 681b ldr r3, [r3, #0]
  23626. 800a4e8: 4a3d ldr r2, [pc, #244] @ (800a5e0 <HAL_DMA_IRQHandler+0xa58>)
  23627. 800a4ea: 4293 cmp r3, r2
  23628. 800a4ec: d00e beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23629. 800a4ee: 687b ldr r3, [r7, #4]
  23630. 800a4f0: 681b ldr r3, [r3, #0]
  23631. 800a4f2: 4a3c ldr r2, [pc, #240] @ (800a5e4 <HAL_DMA_IRQHandler+0xa5c>)
  23632. 800a4f4: 4293 cmp r3, r2
  23633. 800a4f6: d009 beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23634. 800a4f8: 687b ldr r3, [r7, #4]
  23635. 800a4fa: 681b ldr r3, [r3, #0]
  23636. 800a4fc: 4a3a ldr r2, [pc, #232] @ (800a5e8 <HAL_DMA_IRQHandler+0xa60>)
  23637. 800a4fe: 4293 cmp r3, r2
  23638. 800a500: d004 beq.n 800a50c <HAL_DMA_IRQHandler+0x984>
  23639. 800a502: 687b ldr r3, [r7, #4]
  23640. 800a504: 681b ldr r3, [r3, #0]
  23641. 800a506: 4a39 ldr r2, [pc, #228] @ (800a5ec <HAL_DMA_IRQHandler+0xa64>)
  23642. 800a508: 4293 cmp r3, r2
  23643. 800a50a: d101 bne.n 800a510 <HAL_DMA_IRQHandler+0x988>
  23644. 800a50c: 2301 movs r3, #1
  23645. 800a50e: e000 b.n 800a512 <HAL_DMA_IRQHandler+0x98a>
  23646. 800a510: 2300 movs r3, #0
  23647. 800a512: 2b00 cmp r3, #0
  23648. 800a514: f000 823f beq.w 800a996 <HAL_DMA_IRQHandler+0xe0e>
  23649. {
  23650. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  23651. 800a518: 687b ldr r3, [r7, #4]
  23652. 800a51a: 681b ldr r3, [r3, #0]
  23653. 800a51c: 681b ldr r3, [r3, #0]
  23654. 800a51e: 613b str r3, [r7, #16]
  23655. /* Half Transfer Complete Interrupt management ******************************/
  23656. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  23657. 800a520: 687b ldr r3, [r7, #4]
  23658. 800a522: 6ddb ldr r3, [r3, #92] @ 0x5c
  23659. 800a524: f003 031f and.w r3, r3, #31
  23660. 800a528: 2204 movs r2, #4
  23661. 800a52a: 409a lsls r2, r3
  23662. 800a52c: 697b ldr r3, [r7, #20]
  23663. 800a52e: 4013 ands r3, r2
  23664. 800a530: 2b00 cmp r3, #0
  23665. 800a532: f000 80cd beq.w 800a6d0 <HAL_DMA_IRQHandler+0xb48>
  23666. 800a536: 693b ldr r3, [r7, #16]
  23667. 800a538: f003 0304 and.w r3, r3, #4
  23668. 800a53c: 2b00 cmp r3, #0
  23669. 800a53e: f000 80c7 beq.w 800a6d0 <HAL_DMA_IRQHandler+0xb48>
  23670. {
  23671. /* Clear the half transfer complete flag */
  23672. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  23673. 800a542: 687b ldr r3, [r7, #4]
  23674. 800a544: 6ddb ldr r3, [r3, #92] @ 0x5c
  23675. 800a546: f003 031f and.w r3, r3, #31
  23676. 800a54a: 2204 movs r2, #4
  23677. 800a54c: 409a lsls r2, r3
  23678. 800a54e: 69fb ldr r3, [r7, #28]
  23679. 800a550: 605a str r2, [r3, #4]
  23680. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23681. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23682. 800a552: 693b ldr r3, [r7, #16]
  23683. 800a554: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23684. 800a558: 2b00 cmp r3, #0
  23685. 800a55a: d049 beq.n 800a5f0 <HAL_DMA_IRQHandler+0xa68>
  23686. {
  23687. /* Current memory buffer used is Memory 0 */
  23688. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23689. 800a55c: 693b ldr r3, [r7, #16]
  23690. 800a55e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23691. 800a562: 2b00 cmp r3, #0
  23692. 800a564: d109 bne.n 800a57a <HAL_DMA_IRQHandler+0x9f2>
  23693. {
  23694. if(hdma->XferM1HalfCpltCallback != NULL)
  23695. 800a566: 687b ldr r3, [r7, #4]
  23696. 800a568: 6c9b ldr r3, [r3, #72] @ 0x48
  23697. 800a56a: 2b00 cmp r3, #0
  23698. 800a56c: f000 8210 beq.w 800a990 <HAL_DMA_IRQHandler+0xe08>
  23699. {
  23700. /* Half transfer Callback for Memory 1 */
  23701. hdma->XferM1HalfCpltCallback(hdma);
  23702. 800a570: 687b ldr r3, [r7, #4]
  23703. 800a572: 6c9b ldr r3, [r3, #72] @ 0x48
  23704. 800a574: 6878 ldr r0, [r7, #4]
  23705. 800a576: 4798 blx r3
  23706. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23707. 800a578: e20a b.n 800a990 <HAL_DMA_IRQHandler+0xe08>
  23708. }
  23709. }
  23710. /* Current memory buffer used is Memory 1 */
  23711. else
  23712. {
  23713. if(hdma->XferHalfCpltCallback != NULL)
  23714. 800a57a: 687b ldr r3, [r7, #4]
  23715. 800a57c: 6c1b ldr r3, [r3, #64] @ 0x40
  23716. 800a57e: 2b00 cmp r3, #0
  23717. 800a580: f000 8206 beq.w 800a990 <HAL_DMA_IRQHandler+0xe08>
  23718. {
  23719. /* Half transfer Callback for Memory 0 */
  23720. hdma->XferHalfCpltCallback(hdma);
  23721. 800a584: 687b ldr r3, [r7, #4]
  23722. 800a586: 6c1b ldr r3, [r3, #64] @ 0x40
  23723. 800a588: 6878 ldr r0, [r7, #4]
  23724. 800a58a: 4798 blx r3
  23725. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23726. 800a58c: e200 b.n 800a990 <HAL_DMA_IRQHandler+0xe08>
  23727. 800a58e: bf00 nop
  23728. 800a590: 40020010 .word 0x40020010
  23729. 800a594: 40020028 .word 0x40020028
  23730. 800a598: 40020040 .word 0x40020040
  23731. 800a59c: 40020058 .word 0x40020058
  23732. 800a5a0: 40020070 .word 0x40020070
  23733. 800a5a4: 40020088 .word 0x40020088
  23734. 800a5a8: 400200a0 .word 0x400200a0
  23735. 800a5ac: 400200b8 .word 0x400200b8
  23736. 800a5b0: 40020410 .word 0x40020410
  23737. 800a5b4: 40020428 .word 0x40020428
  23738. 800a5b8: 40020440 .word 0x40020440
  23739. 800a5bc: 40020458 .word 0x40020458
  23740. 800a5c0: 40020470 .word 0x40020470
  23741. 800a5c4: 40020488 .word 0x40020488
  23742. 800a5c8: 400204a0 .word 0x400204a0
  23743. 800a5cc: 400204b8 .word 0x400204b8
  23744. 800a5d0: 58025408 .word 0x58025408
  23745. 800a5d4: 5802541c .word 0x5802541c
  23746. 800a5d8: 58025430 .word 0x58025430
  23747. 800a5dc: 58025444 .word 0x58025444
  23748. 800a5e0: 58025458 .word 0x58025458
  23749. 800a5e4: 5802546c .word 0x5802546c
  23750. 800a5e8: 58025480 .word 0x58025480
  23751. 800a5ec: 58025494 .word 0x58025494
  23752. }
  23753. }
  23754. }
  23755. else
  23756. {
  23757. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23758. 800a5f0: 693b ldr r3, [r7, #16]
  23759. 800a5f2: f003 0320 and.w r3, r3, #32
  23760. 800a5f6: 2b00 cmp r3, #0
  23761. 800a5f8: d160 bne.n 800a6bc <HAL_DMA_IRQHandler+0xb34>
  23762. {
  23763. /* Disable the half transfer interrupt */
  23764. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  23765. 800a5fa: 687b ldr r3, [r7, #4]
  23766. 800a5fc: 681b ldr r3, [r3, #0]
  23767. 800a5fe: 4a7f ldr r2, [pc, #508] @ (800a7fc <HAL_DMA_IRQHandler+0xc74>)
  23768. 800a600: 4293 cmp r3, r2
  23769. 800a602: d04a beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23770. 800a604: 687b ldr r3, [r7, #4]
  23771. 800a606: 681b ldr r3, [r3, #0]
  23772. 800a608: 4a7d ldr r2, [pc, #500] @ (800a800 <HAL_DMA_IRQHandler+0xc78>)
  23773. 800a60a: 4293 cmp r3, r2
  23774. 800a60c: d045 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23775. 800a60e: 687b ldr r3, [r7, #4]
  23776. 800a610: 681b ldr r3, [r3, #0]
  23777. 800a612: 4a7c ldr r2, [pc, #496] @ (800a804 <HAL_DMA_IRQHandler+0xc7c>)
  23778. 800a614: 4293 cmp r3, r2
  23779. 800a616: d040 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23780. 800a618: 687b ldr r3, [r7, #4]
  23781. 800a61a: 681b ldr r3, [r3, #0]
  23782. 800a61c: 4a7a ldr r2, [pc, #488] @ (800a808 <HAL_DMA_IRQHandler+0xc80>)
  23783. 800a61e: 4293 cmp r3, r2
  23784. 800a620: d03b beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23785. 800a622: 687b ldr r3, [r7, #4]
  23786. 800a624: 681b ldr r3, [r3, #0]
  23787. 800a626: 4a79 ldr r2, [pc, #484] @ (800a80c <HAL_DMA_IRQHandler+0xc84>)
  23788. 800a628: 4293 cmp r3, r2
  23789. 800a62a: d036 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23790. 800a62c: 687b ldr r3, [r7, #4]
  23791. 800a62e: 681b ldr r3, [r3, #0]
  23792. 800a630: 4a77 ldr r2, [pc, #476] @ (800a810 <HAL_DMA_IRQHandler+0xc88>)
  23793. 800a632: 4293 cmp r3, r2
  23794. 800a634: d031 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23795. 800a636: 687b ldr r3, [r7, #4]
  23796. 800a638: 681b ldr r3, [r3, #0]
  23797. 800a63a: 4a76 ldr r2, [pc, #472] @ (800a814 <HAL_DMA_IRQHandler+0xc8c>)
  23798. 800a63c: 4293 cmp r3, r2
  23799. 800a63e: d02c beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23800. 800a640: 687b ldr r3, [r7, #4]
  23801. 800a642: 681b ldr r3, [r3, #0]
  23802. 800a644: 4a74 ldr r2, [pc, #464] @ (800a818 <HAL_DMA_IRQHandler+0xc90>)
  23803. 800a646: 4293 cmp r3, r2
  23804. 800a648: d027 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23805. 800a64a: 687b ldr r3, [r7, #4]
  23806. 800a64c: 681b ldr r3, [r3, #0]
  23807. 800a64e: 4a73 ldr r2, [pc, #460] @ (800a81c <HAL_DMA_IRQHandler+0xc94>)
  23808. 800a650: 4293 cmp r3, r2
  23809. 800a652: d022 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23810. 800a654: 687b ldr r3, [r7, #4]
  23811. 800a656: 681b ldr r3, [r3, #0]
  23812. 800a658: 4a71 ldr r2, [pc, #452] @ (800a820 <HAL_DMA_IRQHandler+0xc98>)
  23813. 800a65a: 4293 cmp r3, r2
  23814. 800a65c: d01d beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23815. 800a65e: 687b ldr r3, [r7, #4]
  23816. 800a660: 681b ldr r3, [r3, #0]
  23817. 800a662: 4a70 ldr r2, [pc, #448] @ (800a824 <HAL_DMA_IRQHandler+0xc9c>)
  23818. 800a664: 4293 cmp r3, r2
  23819. 800a666: d018 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23820. 800a668: 687b ldr r3, [r7, #4]
  23821. 800a66a: 681b ldr r3, [r3, #0]
  23822. 800a66c: 4a6e ldr r2, [pc, #440] @ (800a828 <HAL_DMA_IRQHandler+0xca0>)
  23823. 800a66e: 4293 cmp r3, r2
  23824. 800a670: d013 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23825. 800a672: 687b ldr r3, [r7, #4]
  23826. 800a674: 681b ldr r3, [r3, #0]
  23827. 800a676: 4a6d ldr r2, [pc, #436] @ (800a82c <HAL_DMA_IRQHandler+0xca4>)
  23828. 800a678: 4293 cmp r3, r2
  23829. 800a67a: d00e beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23830. 800a67c: 687b ldr r3, [r7, #4]
  23831. 800a67e: 681b ldr r3, [r3, #0]
  23832. 800a680: 4a6b ldr r2, [pc, #428] @ (800a830 <HAL_DMA_IRQHandler+0xca8>)
  23833. 800a682: 4293 cmp r3, r2
  23834. 800a684: d009 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23835. 800a686: 687b ldr r3, [r7, #4]
  23836. 800a688: 681b ldr r3, [r3, #0]
  23837. 800a68a: 4a6a ldr r2, [pc, #424] @ (800a834 <HAL_DMA_IRQHandler+0xcac>)
  23838. 800a68c: 4293 cmp r3, r2
  23839. 800a68e: d004 beq.n 800a69a <HAL_DMA_IRQHandler+0xb12>
  23840. 800a690: 687b ldr r3, [r7, #4]
  23841. 800a692: 681b ldr r3, [r3, #0]
  23842. 800a694: 4a68 ldr r2, [pc, #416] @ (800a838 <HAL_DMA_IRQHandler+0xcb0>)
  23843. 800a696: 4293 cmp r3, r2
  23844. 800a698: d108 bne.n 800a6ac <HAL_DMA_IRQHandler+0xb24>
  23845. 800a69a: 687b ldr r3, [r7, #4]
  23846. 800a69c: 681b ldr r3, [r3, #0]
  23847. 800a69e: 681a ldr r2, [r3, #0]
  23848. 800a6a0: 687b ldr r3, [r7, #4]
  23849. 800a6a2: 681b ldr r3, [r3, #0]
  23850. 800a6a4: f022 0208 bic.w r2, r2, #8
  23851. 800a6a8: 601a str r2, [r3, #0]
  23852. 800a6aa: e007 b.n 800a6bc <HAL_DMA_IRQHandler+0xb34>
  23853. 800a6ac: 687b ldr r3, [r7, #4]
  23854. 800a6ae: 681b ldr r3, [r3, #0]
  23855. 800a6b0: 681a ldr r2, [r3, #0]
  23856. 800a6b2: 687b ldr r3, [r7, #4]
  23857. 800a6b4: 681b ldr r3, [r3, #0]
  23858. 800a6b6: f022 0204 bic.w r2, r2, #4
  23859. 800a6ba: 601a str r2, [r3, #0]
  23860. }
  23861. /* DMA peripheral state is not updated in Half Transfer */
  23862. /* but in Transfer Complete case */
  23863. if(hdma->XferHalfCpltCallback != NULL)
  23864. 800a6bc: 687b ldr r3, [r7, #4]
  23865. 800a6be: 6c1b ldr r3, [r3, #64] @ 0x40
  23866. 800a6c0: 2b00 cmp r3, #0
  23867. 800a6c2: f000 8165 beq.w 800a990 <HAL_DMA_IRQHandler+0xe08>
  23868. {
  23869. /* Half transfer callback */
  23870. hdma->XferHalfCpltCallback(hdma);
  23871. 800a6c6: 687b ldr r3, [r7, #4]
  23872. 800a6c8: 6c1b ldr r3, [r3, #64] @ 0x40
  23873. 800a6ca: 6878 ldr r0, [r7, #4]
  23874. 800a6cc: 4798 blx r3
  23875. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23876. 800a6ce: e15f b.n 800a990 <HAL_DMA_IRQHandler+0xe08>
  23877. }
  23878. }
  23879. }
  23880. /* Transfer Complete Interrupt management ***********************************/
  23881. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  23882. 800a6d0: 687b ldr r3, [r7, #4]
  23883. 800a6d2: 6ddb ldr r3, [r3, #92] @ 0x5c
  23884. 800a6d4: f003 031f and.w r3, r3, #31
  23885. 800a6d8: 2202 movs r2, #2
  23886. 800a6da: 409a lsls r2, r3
  23887. 800a6dc: 697b ldr r3, [r7, #20]
  23888. 800a6de: 4013 ands r3, r2
  23889. 800a6e0: 2b00 cmp r3, #0
  23890. 800a6e2: f000 80c5 beq.w 800a870 <HAL_DMA_IRQHandler+0xce8>
  23891. 800a6e6: 693b ldr r3, [r7, #16]
  23892. 800a6e8: f003 0302 and.w r3, r3, #2
  23893. 800a6ec: 2b00 cmp r3, #0
  23894. 800a6ee: f000 80bf beq.w 800a870 <HAL_DMA_IRQHandler+0xce8>
  23895. {
  23896. /* Clear the transfer complete flag */
  23897. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  23898. 800a6f2: 687b ldr r3, [r7, #4]
  23899. 800a6f4: 6ddb ldr r3, [r3, #92] @ 0x5c
  23900. 800a6f6: f003 031f and.w r3, r3, #31
  23901. 800a6fa: 2202 movs r2, #2
  23902. 800a6fc: 409a lsls r2, r3
  23903. 800a6fe: 69fb ldr r3, [r7, #28]
  23904. 800a700: 605a str r2, [r3, #4]
  23905. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23906. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23907. 800a702: 693b ldr r3, [r7, #16]
  23908. 800a704: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23909. 800a708: 2b00 cmp r3, #0
  23910. 800a70a: d018 beq.n 800a73e <HAL_DMA_IRQHandler+0xbb6>
  23911. {
  23912. /* Current memory buffer used is Memory 0 */
  23913. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23914. 800a70c: 693b ldr r3, [r7, #16]
  23915. 800a70e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23916. 800a712: 2b00 cmp r3, #0
  23917. 800a714: d109 bne.n 800a72a <HAL_DMA_IRQHandler+0xba2>
  23918. {
  23919. if(hdma->XferM1CpltCallback != NULL)
  23920. 800a716: 687b ldr r3, [r7, #4]
  23921. 800a718: 6c5b ldr r3, [r3, #68] @ 0x44
  23922. 800a71a: 2b00 cmp r3, #0
  23923. 800a71c: f000 813a beq.w 800a994 <HAL_DMA_IRQHandler+0xe0c>
  23924. {
  23925. /* Transfer complete Callback for Memory 1 */
  23926. hdma->XferM1CpltCallback(hdma);
  23927. 800a720: 687b ldr r3, [r7, #4]
  23928. 800a722: 6c5b ldr r3, [r3, #68] @ 0x44
  23929. 800a724: 6878 ldr r0, [r7, #4]
  23930. 800a726: 4798 blx r3
  23931. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23932. 800a728: e134 b.n 800a994 <HAL_DMA_IRQHandler+0xe0c>
  23933. }
  23934. }
  23935. /* Current memory buffer used is Memory 1 */
  23936. else
  23937. {
  23938. if(hdma->XferCpltCallback != NULL)
  23939. 800a72a: 687b ldr r3, [r7, #4]
  23940. 800a72c: 6bdb ldr r3, [r3, #60] @ 0x3c
  23941. 800a72e: 2b00 cmp r3, #0
  23942. 800a730: f000 8130 beq.w 800a994 <HAL_DMA_IRQHandler+0xe0c>
  23943. {
  23944. /* Transfer complete Callback for Memory 0 */
  23945. hdma->XferCpltCallback(hdma);
  23946. 800a734: 687b ldr r3, [r7, #4]
  23947. 800a736: 6bdb ldr r3, [r3, #60] @ 0x3c
  23948. 800a738: 6878 ldr r0, [r7, #4]
  23949. 800a73a: 4798 blx r3
  23950. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23951. 800a73c: e12a b.n 800a994 <HAL_DMA_IRQHandler+0xe0c>
  23952. }
  23953. }
  23954. }
  23955. else
  23956. {
  23957. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23958. 800a73e: 693b ldr r3, [r7, #16]
  23959. 800a740: f003 0320 and.w r3, r3, #32
  23960. 800a744: 2b00 cmp r3, #0
  23961. 800a746: f040 8089 bne.w 800a85c <HAL_DMA_IRQHandler+0xcd4>
  23962. {
  23963. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  23964. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  23965. 800a74a: 687b ldr r3, [r7, #4]
  23966. 800a74c: 681b ldr r3, [r3, #0]
  23967. 800a74e: 4a2b ldr r2, [pc, #172] @ (800a7fc <HAL_DMA_IRQHandler+0xc74>)
  23968. 800a750: 4293 cmp r3, r2
  23969. 800a752: d04a beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23970. 800a754: 687b ldr r3, [r7, #4]
  23971. 800a756: 681b ldr r3, [r3, #0]
  23972. 800a758: 4a29 ldr r2, [pc, #164] @ (800a800 <HAL_DMA_IRQHandler+0xc78>)
  23973. 800a75a: 4293 cmp r3, r2
  23974. 800a75c: d045 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23975. 800a75e: 687b ldr r3, [r7, #4]
  23976. 800a760: 681b ldr r3, [r3, #0]
  23977. 800a762: 4a28 ldr r2, [pc, #160] @ (800a804 <HAL_DMA_IRQHandler+0xc7c>)
  23978. 800a764: 4293 cmp r3, r2
  23979. 800a766: d040 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23980. 800a768: 687b ldr r3, [r7, #4]
  23981. 800a76a: 681b ldr r3, [r3, #0]
  23982. 800a76c: 4a26 ldr r2, [pc, #152] @ (800a808 <HAL_DMA_IRQHandler+0xc80>)
  23983. 800a76e: 4293 cmp r3, r2
  23984. 800a770: d03b beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23985. 800a772: 687b ldr r3, [r7, #4]
  23986. 800a774: 681b ldr r3, [r3, #0]
  23987. 800a776: 4a25 ldr r2, [pc, #148] @ (800a80c <HAL_DMA_IRQHandler+0xc84>)
  23988. 800a778: 4293 cmp r3, r2
  23989. 800a77a: d036 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23990. 800a77c: 687b ldr r3, [r7, #4]
  23991. 800a77e: 681b ldr r3, [r3, #0]
  23992. 800a780: 4a23 ldr r2, [pc, #140] @ (800a810 <HAL_DMA_IRQHandler+0xc88>)
  23993. 800a782: 4293 cmp r3, r2
  23994. 800a784: d031 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  23995. 800a786: 687b ldr r3, [r7, #4]
  23996. 800a788: 681b ldr r3, [r3, #0]
  23997. 800a78a: 4a22 ldr r2, [pc, #136] @ (800a814 <HAL_DMA_IRQHandler+0xc8c>)
  23998. 800a78c: 4293 cmp r3, r2
  23999. 800a78e: d02c beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24000. 800a790: 687b ldr r3, [r7, #4]
  24001. 800a792: 681b ldr r3, [r3, #0]
  24002. 800a794: 4a20 ldr r2, [pc, #128] @ (800a818 <HAL_DMA_IRQHandler+0xc90>)
  24003. 800a796: 4293 cmp r3, r2
  24004. 800a798: d027 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24005. 800a79a: 687b ldr r3, [r7, #4]
  24006. 800a79c: 681b ldr r3, [r3, #0]
  24007. 800a79e: 4a1f ldr r2, [pc, #124] @ (800a81c <HAL_DMA_IRQHandler+0xc94>)
  24008. 800a7a0: 4293 cmp r3, r2
  24009. 800a7a2: d022 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24010. 800a7a4: 687b ldr r3, [r7, #4]
  24011. 800a7a6: 681b ldr r3, [r3, #0]
  24012. 800a7a8: 4a1d ldr r2, [pc, #116] @ (800a820 <HAL_DMA_IRQHandler+0xc98>)
  24013. 800a7aa: 4293 cmp r3, r2
  24014. 800a7ac: d01d beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24015. 800a7ae: 687b ldr r3, [r7, #4]
  24016. 800a7b0: 681b ldr r3, [r3, #0]
  24017. 800a7b2: 4a1c ldr r2, [pc, #112] @ (800a824 <HAL_DMA_IRQHandler+0xc9c>)
  24018. 800a7b4: 4293 cmp r3, r2
  24019. 800a7b6: d018 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24020. 800a7b8: 687b ldr r3, [r7, #4]
  24021. 800a7ba: 681b ldr r3, [r3, #0]
  24022. 800a7bc: 4a1a ldr r2, [pc, #104] @ (800a828 <HAL_DMA_IRQHandler+0xca0>)
  24023. 800a7be: 4293 cmp r3, r2
  24024. 800a7c0: d013 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24025. 800a7c2: 687b ldr r3, [r7, #4]
  24026. 800a7c4: 681b ldr r3, [r3, #0]
  24027. 800a7c6: 4a19 ldr r2, [pc, #100] @ (800a82c <HAL_DMA_IRQHandler+0xca4>)
  24028. 800a7c8: 4293 cmp r3, r2
  24029. 800a7ca: d00e beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24030. 800a7cc: 687b ldr r3, [r7, #4]
  24031. 800a7ce: 681b ldr r3, [r3, #0]
  24032. 800a7d0: 4a17 ldr r2, [pc, #92] @ (800a830 <HAL_DMA_IRQHandler+0xca8>)
  24033. 800a7d2: 4293 cmp r3, r2
  24034. 800a7d4: d009 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24035. 800a7d6: 687b ldr r3, [r7, #4]
  24036. 800a7d8: 681b ldr r3, [r3, #0]
  24037. 800a7da: 4a16 ldr r2, [pc, #88] @ (800a834 <HAL_DMA_IRQHandler+0xcac>)
  24038. 800a7dc: 4293 cmp r3, r2
  24039. 800a7de: d004 beq.n 800a7ea <HAL_DMA_IRQHandler+0xc62>
  24040. 800a7e0: 687b ldr r3, [r7, #4]
  24041. 800a7e2: 681b ldr r3, [r3, #0]
  24042. 800a7e4: 4a14 ldr r2, [pc, #80] @ (800a838 <HAL_DMA_IRQHandler+0xcb0>)
  24043. 800a7e6: 4293 cmp r3, r2
  24044. 800a7e8: d128 bne.n 800a83c <HAL_DMA_IRQHandler+0xcb4>
  24045. 800a7ea: 687b ldr r3, [r7, #4]
  24046. 800a7ec: 681b ldr r3, [r3, #0]
  24047. 800a7ee: 681a ldr r2, [r3, #0]
  24048. 800a7f0: 687b ldr r3, [r7, #4]
  24049. 800a7f2: 681b ldr r3, [r3, #0]
  24050. 800a7f4: f022 0214 bic.w r2, r2, #20
  24051. 800a7f8: 601a str r2, [r3, #0]
  24052. 800a7fa: e027 b.n 800a84c <HAL_DMA_IRQHandler+0xcc4>
  24053. 800a7fc: 40020010 .word 0x40020010
  24054. 800a800: 40020028 .word 0x40020028
  24055. 800a804: 40020040 .word 0x40020040
  24056. 800a808: 40020058 .word 0x40020058
  24057. 800a80c: 40020070 .word 0x40020070
  24058. 800a810: 40020088 .word 0x40020088
  24059. 800a814: 400200a0 .word 0x400200a0
  24060. 800a818: 400200b8 .word 0x400200b8
  24061. 800a81c: 40020410 .word 0x40020410
  24062. 800a820: 40020428 .word 0x40020428
  24063. 800a824: 40020440 .word 0x40020440
  24064. 800a828: 40020458 .word 0x40020458
  24065. 800a82c: 40020470 .word 0x40020470
  24066. 800a830: 40020488 .word 0x40020488
  24067. 800a834: 400204a0 .word 0x400204a0
  24068. 800a838: 400204b8 .word 0x400204b8
  24069. 800a83c: 687b ldr r3, [r7, #4]
  24070. 800a83e: 681b ldr r3, [r3, #0]
  24071. 800a840: 681a ldr r2, [r3, #0]
  24072. 800a842: 687b ldr r3, [r7, #4]
  24073. 800a844: 681b ldr r3, [r3, #0]
  24074. 800a846: f022 020a bic.w r2, r2, #10
  24075. 800a84a: 601a str r2, [r3, #0]
  24076. /* Change the DMA state */
  24077. hdma->State = HAL_DMA_STATE_READY;
  24078. 800a84c: 687b ldr r3, [r7, #4]
  24079. 800a84e: 2201 movs r2, #1
  24080. 800a850: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24081. /* Process Unlocked */
  24082. __HAL_UNLOCK(hdma);
  24083. 800a854: 687b ldr r3, [r7, #4]
  24084. 800a856: 2200 movs r2, #0
  24085. 800a858: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24086. }
  24087. if(hdma->XferCpltCallback != NULL)
  24088. 800a85c: 687b ldr r3, [r7, #4]
  24089. 800a85e: 6bdb ldr r3, [r3, #60] @ 0x3c
  24090. 800a860: 2b00 cmp r3, #0
  24091. 800a862: f000 8097 beq.w 800a994 <HAL_DMA_IRQHandler+0xe0c>
  24092. {
  24093. /* Transfer complete callback */
  24094. hdma->XferCpltCallback(hdma);
  24095. 800a866: 687b ldr r3, [r7, #4]
  24096. 800a868: 6bdb ldr r3, [r3, #60] @ 0x3c
  24097. 800a86a: 6878 ldr r0, [r7, #4]
  24098. 800a86c: 4798 blx r3
  24099. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24100. 800a86e: e091 b.n 800a994 <HAL_DMA_IRQHandler+0xe0c>
  24101. }
  24102. }
  24103. }
  24104. /* Transfer Error Interrupt management **************************************/
  24105. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  24106. 800a870: 687b ldr r3, [r7, #4]
  24107. 800a872: 6ddb ldr r3, [r3, #92] @ 0x5c
  24108. 800a874: f003 031f and.w r3, r3, #31
  24109. 800a878: 2208 movs r2, #8
  24110. 800a87a: 409a lsls r2, r3
  24111. 800a87c: 697b ldr r3, [r7, #20]
  24112. 800a87e: 4013 ands r3, r2
  24113. 800a880: 2b00 cmp r3, #0
  24114. 800a882: f000 8088 beq.w 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24115. 800a886: 693b ldr r3, [r7, #16]
  24116. 800a888: f003 0308 and.w r3, r3, #8
  24117. 800a88c: 2b00 cmp r3, #0
  24118. 800a88e: f000 8082 beq.w 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24119. {
  24120. /* When a DMA transfer error occurs */
  24121. /* A hardware clear of its EN bits is performed */
  24122. /* Disable ALL DMA IT */
  24123. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  24124. 800a892: 687b ldr r3, [r7, #4]
  24125. 800a894: 681b ldr r3, [r3, #0]
  24126. 800a896: 4a41 ldr r2, [pc, #260] @ (800a99c <HAL_DMA_IRQHandler+0xe14>)
  24127. 800a898: 4293 cmp r3, r2
  24128. 800a89a: d04a beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24129. 800a89c: 687b ldr r3, [r7, #4]
  24130. 800a89e: 681b ldr r3, [r3, #0]
  24131. 800a8a0: 4a3f ldr r2, [pc, #252] @ (800a9a0 <HAL_DMA_IRQHandler+0xe18>)
  24132. 800a8a2: 4293 cmp r3, r2
  24133. 800a8a4: d045 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24134. 800a8a6: 687b ldr r3, [r7, #4]
  24135. 800a8a8: 681b ldr r3, [r3, #0]
  24136. 800a8aa: 4a3e ldr r2, [pc, #248] @ (800a9a4 <HAL_DMA_IRQHandler+0xe1c>)
  24137. 800a8ac: 4293 cmp r3, r2
  24138. 800a8ae: d040 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24139. 800a8b0: 687b ldr r3, [r7, #4]
  24140. 800a8b2: 681b ldr r3, [r3, #0]
  24141. 800a8b4: 4a3c ldr r2, [pc, #240] @ (800a9a8 <HAL_DMA_IRQHandler+0xe20>)
  24142. 800a8b6: 4293 cmp r3, r2
  24143. 800a8b8: d03b beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24144. 800a8ba: 687b ldr r3, [r7, #4]
  24145. 800a8bc: 681b ldr r3, [r3, #0]
  24146. 800a8be: 4a3b ldr r2, [pc, #236] @ (800a9ac <HAL_DMA_IRQHandler+0xe24>)
  24147. 800a8c0: 4293 cmp r3, r2
  24148. 800a8c2: d036 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24149. 800a8c4: 687b ldr r3, [r7, #4]
  24150. 800a8c6: 681b ldr r3, [r3, #0]
  24151. 800a8c8: 4a39 ldr r2, [pc, #228] @ (800a9b0 <HAL_DMA_IRQHandler+0xe28>)
  24152. 800a8ca: 4293 cmp r3, r2
  24153. 800a8cc: d031 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24154. 800a8ce: 687b ldr r3, [r7, #4]
  24155. 800a8d0: 681b ldr r3, [r3, #0]
  24156. 800a8d2: 4a38 ldr r2, [pc, #224] @ (800a9b4 <HAL_DMA_IRQHandler+0xe2c>)
  24157. 800a8d4: 4293 cmp r3, r2
  24158. 800a8d6: d02c beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24159. 800a8d8: 687b ldr r3, [r7, #4]
  24160. 800a8da: 681b ldr r3, [r3, #0]
  24161. 800a8dc: 4a36 ldr r2, [pc, #216] @ (800a9b8 <HAL_DMA_IRQHandler+0xe30>)
  24162. 800a8de: 4293 cmp r3, r2
  24163. 800a8e0: d027 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24164. 800a8e2: 687b ldr r3, [r7, #4]
  24165. 800a8e4: 681b ldr r3, [r3, #0]
  24166. 800a8e6: 4a35 ldr r2, [pc, #212] @ (800a9bc <HAL_DMA_IRQHandler+0xe34>)
  24167. 800a8e8: 4293 cmp r3, r2
  24168. 800a8ea: d022 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24169. 800a8ec: 687b ldr r3, [r7, #4]
  24170. 800a8ee: 681b ldr r3, [r3, #0]
  24171. 800a8f0: 4a33 ldr r2, [pc, #204] @ (800a9c0 <HAL_DMA_IRQHandler+0xe38>)
  24172. 800a8f2: 4293 cmp r3, r2
  24173. 800a8f4: d01d beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24174. 800a8f6: 687b ldr r3, [r7, #4]
  24175. 800a8f8: 681b ldr r3, [r3, #0]
  24176. 800a8fa: 4a32 ldr r2, [pc, #200] @ (800a9c4 <HAL_DMA_IRQHandler+0xe3c>)
  24177. 800a8fc: 4293 cmp r3, r2
  24178. 800a8fe: d018 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24179. 800a900: 687b ldr r3, [r7, #4]
  24180. 800a902: 681b ldr r3, [r3, #0]
  24181. 800a904: 4a30 ldr r2, [pc, #192] @ (800a9c8 <HAL_DMA_IRQHandler+0xe40>)
  24182. 800a906: 4293 cmp r3, r2
  24183. 800a908: d013 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24184. 800a90a: 687b ldr r3, [r7, #4]
  24185. 800a90c: 681b ldr r3, [r3, #0]
  24186. 800a90e: 4a2f ldr r2, [pc, #188] @ (800a9cc <HAL_DMA_IRQHandler+0xe44>)
  24187. 800a910: 4293 cmp r3, r2
  24188. 800a912: d00e beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24189. 800a914: 687b ldr r3, [r7, #4]
  24190. 800a916: 681b ldr r3, [r3, #0]
  24191. 800a918: 4a2d ldr r2, [pc, #180] @ (800a9d0 <HAL_DMA_IRQHandler+0xe48>)
  24192. 800a91a: 4293 cmp r3, r2
  24193. 800a91c: d009 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24194. 800a91e: 687b ldr r3, [r7, #4]
  24195. 800a920: 681b ldr r3, [r3, #0]
  24196. 800a922: 4a2c ldr r2, [pc, #176] @ (800a9d4 <HAL_DMA_IRQHandler+0xe4c>)
  24197. 800a924: 4293 cmp r3, r2
  24198. 800a926: d004 beq.n 800a932 <HAL_DMA_IRQHandler+0xdaa>
  24199. 800a928: 687b ldr r3, [r7, #4]
  24200. 800a92a: 681b ldr r3, [r3, #0]
  24201. 800a92c: 4a2a ldr r2, [pc, #168] @ (800a9d8 <HAL_DMA_IRQHandler+0xe50>)
  24202. 800a92e: 4293 cmp r3, r2
  24203. 800a930: d108 bne.n 800a944 <HAL_DMA_IRQHandler+0xdbc>
  24204. 800a932: 687b ldr r3, [r7, #4]
  24205. 800a934: 681b ldr r3, [r3, #0]
  24206. 800a936: 681a ldr r2, [r3, #0]
  24207. 800a938: 687b ldr r3, [r7, #4]
  24208. 800a93a: 681b ldr r3, [r3, #0]
  24209. 800a93c: f022 021c bic.w r2, r2, #28
  24210. 800a940: 601a str r2, [r3, #0]
  24211. 800a942: e007 b.n 800a954 <HAL_DMA_IRQHandler+0xdcc>
  24212. 800a944: 687b ldr r3, [r7, #4]
  24213. 800a946: 681b ldr r3, [r3, #0]
  24214. 800a948: 681a ldr r2, [r3, #0]
  24215. 800a94a: 687b ldr r3, [r7, #4]
  24216. 800a94c: 681b ldr r3, [r3, #0]
  24217. 800a94e: f022 020e bic.w r2, r2, #14
  24218. 800a952: 601a str r2, [r3, #0]
  24219. /* Clear all flags */
  24220. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24221. 800a954: 687b ldr r3, [r7, #4]
  24222. 800a956: 6ddb ldr r3, [r3, #92] @ 0x5c
  24223. 800a958: f003 031f and.w r3, r3, #31
  24224. 800a95c: 2201 movs r2, #1
  24225. 800a95e: 409a lsls r2, r3
  24226. 800a960: 69fb ldr r3, [r7, #28]
  24227. 800a962: 605a str r2, [r3, #4]
  24228. /* Update error code */
  24229. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  24230. 800a964: 687b ldr r3, [r7, #4]
  24231. 800a966: 2201 movs r2, #1
  24232. 800a968: 655a str r2, [r3, #84] @ 0x54
  24233. /* Change the DMA state */
  24234. hdma->State = HAL_DMA_STATE_READY;
  24235. 800a96a: 687b ldr r3, [r7, #4]
  24236. 800a96c: 2201 movs r2, #1
  24237. 800a96e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24238. /* Process Unlocked */
  24239. __HAL_UNLOCK(hdma);
  24240. 800a972: 687b ldr r3, [r7, #4]
  24241. 800a974: 2200 movs r2, #0
  24242. 800a976: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24243. if (hdma->XferErrorCallback != NULL)
  24244. 800a97a: 687b ldr r3, [r7, #4]
  24245. 800a97c: 6cdb ldr r3, [r3, #76] @ 0x4c
  24246. 800a97e: 2b00 cmp r3, #0
  24247. 800a980: d009 beq.n 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24248. {
  24249. /* Transfer error callback */
  24250. hdma->XferErrorCallback(hdma);
  24251. 800a982: 687b ldr r3, [r7, #4]
  24252. 800a984: 6cdb ldr r3, [r3, #76] @ 0x4c
  24253. 800a986: 6878 ldr r0, [r7, #4]
  24254. 800a988: 4798 blx r3
  24255. 800a98a: e004 b.n 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24256. return;
  24257. 800a98c: bf00 nop
  24258. 800a98e: e002 b.n 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24259. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24260. 800a990: bf00 nop
  24261. 800a992: e000 b.n 800a996 <HAL_DMA_IRQHandler+0xe0e>
  24262. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24263. 800a994: bf00 nop
  24264. }
  24265. else
  24266. {
  24267. /* Nothing To Do */
  24268. }
  24269. }
  24270. 800a996: 3728 adds r7, #40 @ 0x28
  24271. 800a998: 46bd mov sp, r7
  24272. 800a99a: bd80 pop {r7, pc}
  24273. 800a99c: 40020010 .word 0x40020010
  24274. 800a9a0: 40020028 .word 0x40020028
  24275. 800a9a4: 40020040 .word 0x40020040
  24276. 800a9a8: 40020058 .word 0x40020058
  24277. 800a9ac: 40020070 .word 0x40020070
  24278. 800a9b0: 40020088 .word 0x40020088
  24279. 800a9b4: 400200a0 .word 0x400200a0
  24280. 800a9b8: 400200b8 .word 0x400200b8
  24281. 800a9bc: 40020410 .word 0x40020410
  24282. 800a9c0: 40020428 .word 0x40020428
  24283. 800a9c4: 40020440 .word 0x40020440
  24284. 800a9c8: 40020458 .word 0x40020458
  24285. 800a9cc: 40020470 .word 0x40020470
  24286. 800a9d0: 40020488 .word 0x40020488
  24287. 800a9d4: 400204a0 .word 0x400204a0
  24288. 800a9d8: 400204b8 .word 0x400204b8
  24289. 0800a9dc <DMA_SetConfig>:
  24290. * @param DstAddress: The destination memory Buffer address
  24291. * @param DataLength: The length of data to be transferred from source to destination
  24292. * @retval None
  24293. */
  24294. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  24295. {
  24296. 800a9dc: b480 push {r7}
  24297. 800a9de: b087 sub sp, #28
  24298. 800a9e0: af00 add r7, sp, #0
  24299. 800a9e2: 60f8 str r0, [r7, #12]
  24300. 800a9e4: 60b9 str r1, [r7, #8]
  24301. 800a9e6: 607a str r2, [r7, #4]
  24302. 800a9e8: 603b str r3, [r7, #0]
  24303. /* calculate DMA base and stream number */
  24304. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  24305. 800a9ea: 68fb ldr r3, [r7, #12]
  24306. 800a9ec: 6d9b ldr r3, [r3, #88] @ 0x58
  24307. 800a9ee: 617b str r3, [r7, #20]
  24308. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  24309. 800a9f0: 68fb ldr r3, [r7, #12]
  24310. 800a9f2: 6d9b ldr r3, [r3, #88] @ 0x58
  24311. 800a9f4: 613b str r3, [r7, #16]
  24312. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  24313. 800a9f6: 68fb ldr r3, [r7, #12]
  24314. 800a9f8: 681b ldr r3, [r3, #0]
  24315. 800a9fa: 4a7f ldr r2, [pc, #508] @ (800abf8 <DMA_SetConfig+0x21c>)
  24316. 800a9fc: 4293 cmp r3, r2
  24317. 800a9fe: d072 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24318. 800aa00: 68fb ldr r3, [r7, #12]
  24319. 800aa02: 681b ldr r3, [r3, #0]
  24320. 800aa04: 4a7d ldr r2, [pc, #500] @ (800abfc <DMA_SetConfig+0x220>)
  24321. 800aa06: 4293 cmp r3, r2
  24322. 800aa08: d06d beq.n 800aae6 <DMA_SetConfig+0x10a>
  24323. 800aa0a: 68fb ldr r3, [r7, #12]
  24324. 800aa0c: 681b ldr r3, [r3, #0]
  24325. 800aa0e: 4a7c ldr r2, [pc, #496] @ (800ac00 <DMA_SetConfig+0x224>)
  24326. 800aa10: 4293 cmp r3, r2
  24327. 800aa12: d068 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24328. 800aa14: 68fb ldr r3, [r7, #12]
  24329. 800aa16: 681b ldr r3, [r3, #0]
  24330. 800aa18: 4a7a ldr r2, [pc, #488] @ (800ac04 <DMA_SetConfig+0x228>)
  24331. 800aa1a: 4293 cmp r3, r2
  24332. 800aa1c: d063 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24333. 800aa1e: 68fb ldr r3, [r7, #12]
  24334. 800aa20: 681b ldr r3, [r3, #0]
  24335. 800aa22: 4a79 ldr r2, [pc, #484] @ (800ac08 <DMA_SetConfig+0x22c>)
  24336. 800aa24: 4293 cmp r3, r2
  24337. 800aa26: d05e beq.n 800aae6 <DMA_SetConfig+0x10a>
  24338. 800aa28: 68fb ldr r3, [r7, #12]
  24339. 800aa2a: 681b ldr r3, [r3, #0]
  24340. 800aa2c: 4a77 ldr r2, [pc, #476] @ (800ac0c <DMA_SetConfig+0x230>)
  24341. 800aa2e: 4293 cmp r3, r2
  24342. 800aa30: d059 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24343. 800aa32: 68fb ldr r3, [r7, #12]
  24344. 800aa34: 681b ldr r3, [r3, #0]
  24345. 800aa36: 4a76 ldr r2, [pc, #472] @ (800ac10 <DMA_SetConfig+0x234>)
  24346. 800aa38: 4293 cmp r3, r2
  24347. 800aa3a: d054 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24348. 800aa3c: 68fb ldr r3, [r7, #12]
  24349. 800aa3e: 681b ldr r3, [r3, #0]
  24350. 800aa40: 4a74 ldr r2, [pc, #464] @ (800ac14 <DMA_SetConfig+0x238>)
  24351. 800aa42: 4293 cmp r3, r2
  24352. 800aa44: d04f beq.n 800aae6 <DMA_SetConfig+0x10a>
  24353. 800aa46: 68fb ldr r3, [r7, #12]
  24354. 800aa48: 681b ldr r3, [r3, #0]
  24355. 800aa4a: 4a73 ldr r2, [pc, #460] @ (800ac18 <DMA_SetConfig+0x23c>)
  24356. 800aa4c: 4293 cmp r3, r2
  24357. 800aa4e: d04a beq.n 800aae6 <DMA_SetConfig+0x10a>
  24358. 800aa50: 68fb ldr r3, [r7, #12]
  24359. 800aa52: 681b ldr r3, [r3, #0]
  24360. 800aa54: 4a71 ldr r2, [pc, #452] @ (800ac1c <DMA_SetConfig+0x240>)
  24361. 800aa56: 4293 cmp r3, r2
  24362. 800aa58: d045 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24363. 800aa5a: 68fb ldr r3, [r7, #12]
  24364. 800aa5c: 681b ldr r3, [r3, #0]
  24365. 800aa5e: 4a70 ldr r2, [pc, #448] @ (800ac20 <DMA_SetConfig+0x244>)
  24366. 800aa60: 4293 cmp r3, r2
  24367. 800aa62: d040 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24368. 800aa64: 68fb ldr r3, [r7, #12]
  24369. 800aa66: 681b ldr r3, [r3, #0]
  24370. 800aa68: 4a6e ldr r2, [pc, #440] @ (800ac24 <DMA_SetConfig+0x248>)
  24371. 800aa6a: 4293 cmp r3, r2
  24372. 800aa6c: d03b beq.n 800aae6 <DMA_SetConfig+0x10a>
  24373. 800aa6e: 68fb ldr r3, [r7, #12]
  24374. 800aa70: 681b ldr r3, [r3, #0]
  24375. 800aa72: 4a6d ldr r2, [pc, #436] @ (800ac28 <DMA_SetConfig+0x24c>)
  24376. 800aa74: 4293 cmp r3, r2
  24377. 800aa76: d036 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24378. 800aa78: 68fb ldr r3, [r7, #12]
  24379. 800aa7a: 681b ldr r3, [r3, #0]
  24380. 800aa7c: 4a6b ldr r2, [pc, #428] @ (800ac2c <DMA_SetConfig+0x250>)
  24381. 800aa7e: 4293 cmp r3, r2
  24382. 800aa80: d031 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24383. 800aa82: 68fb ldr r3, [r7, #12]
  24384. 800aa84: 681b ldr r3, [r3, #0]
  24385. 800aa86: 4a6a ldr r2, [pc, #424] @ (800ac30 <DMA_SetConfig+0x254>)
  24386. 800aa88: 4293 cmp r3, r2
  24387. 800aa8a: d02c beq.n 800aae6 <DMA_SetConfig+0x10a>
  24388. 800aa8c: 68fb ldr r3, [r7, #12]
  24389. 800aa8e: 681b ldr r3, [r3, #0]
  24390. 800aa90: 4a68 ldr r2, [pc, #416] @ (800ac34 <DMA_SetConfig+0x258>)
  24391. 800aa92: 4293 cmp r3, r2
  24392. 800aa94: d027 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24393. 800aa96: 68fb ldr r3, [r7, #12]
  24394. 800aa98: 681b ldr r3, [r3, #0]
  24395. 800aa9a: 4a67 ldr r2, [pc, #412] @ (800ac38 <DMA_SetConfig+0x25c>)
  24396. 800aa9c: 4293 cmp r3, r2
  24397. 800aa9e: d022 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24398. 800aaa0: 68fb ldr r3, [r7, #12]
  24399. 800aaa2: 681b ldr r3, [r3, #0]
  24400. 800aaa4: 4a65 ldr r2, [pc, #404] @ (800ac3c <DMA_SetConfig+0x260>)
  24401. 800aaa6: 4293 cmp r3, r2
  24402. 800aaa8: d01d beq.n 800aae6 <DMA_SetConfig+0x10a>
  24403. 800aaaa: 68fb ldr r3, [r7, #12]
  24404. 800aaac: 681b ldr r3, [r3, #0]
  24405. 800aaae: 4a64 ldr r2, [pc, #400] @ (800ac40 <DMA_SetConfig+0x264>)
  24406. 800aab0: 4293 cmp r3, r2
  24407. 800aab2: d018 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24408. 800aab4: 68fb ldr r3, [r7, #12]
  24409. 800aab6: 681b ldr r3, [r3, #0]
  24410. 800aab8: 4a62 ldr r2, [pc, #392] @ (800ac44 <DMA_SetConfig+0x268>)
  24411. 800aaba: 4293 cmp r3, r2
  24412. 800aabc: d013 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24413. 800aabe: 68fb ldr r3, [r7, #12]
  24414. 800aac0: 681b ldr r3, [r3, #0]
  24415. 800aac2: 4a61 ldr r2, [pc, #388] @ (800ac48 <DMA_SetConfig+0x26c>)
  24416. 800aac4: 4293 cmp r3, r2
  24417. 800aac6: d00e beq.n 800aae6 <DMA_SetConfig+0x10a>
  24418. 800aac8: 68fb ldr r3, [r7, #12]
  24419. 800aaca: 681b ldr r3, [r3, #0]
  24420. 800aacc: 4a5f ldr r2, [pc, #380] @ (800ac4c <DMA_SetConfig+0x270>)
  24421. 800aace: 4293 cmp r3, r2
  24422. 800aad0: d009 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24423. 800aad2: 68fb ldr r3, [r7, #12]
  24424. 800aad4: 681b ldr r3, [r3, #0]
  24425. 800aad6: 4a5e ldr r2, [pc, #376] @ (800ac50 <DMA_SetConfig+0x274>)
  24426. 800aad8: 4293 cmp r3, r2
  24427. 800aada: d004 beq.n 800aae6 <DMA_SetConfig+0x10a>
  24428. 800aadc: 68fb ldr r3, [r7, #12]
  24429. 800aade: 681b ldr r3, [r3, #0]
  24430. 800aae0: 4a5c ldr r2, [pc, #368] @ (800ac54 <DMA_SetConfig+0x278>)
  24431. 800aae2: 4293 cmp r3, r2
  24432. 800aae4: d101 bne.n 800aaea <DMA_SetConfig+0x10e>
  24433. 800aae6: 2301 movs r3, #1
  24434. 800aae8: e000 b.n 800aaec <DMA_SetConfig+0x110>
  24435. 800aaea: 2300 movs r3, #0
  24436. 800aaec: 2b00 cmp r3, #0
  24437. 800aaee: d00d beq.n 800ab0c <DMA_SetConfig+0x130>
  24438. {
  24439. /* Clear the DMAMUX synchro overrun flag */
  24440. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  24441. 800aaf0: 68fb ldr r3, [r7, #12]
  24442. 800aaf2: 6e5b ldr r3, [r3, #100] @ 0x64
  24443. 800aaf4: 68fa ldr r2, [r7, #12]
  24444. 800aaf6: 6e92 ldr r2, [r2, #104] @ 0x68
  24445. 800aaf8: 605a str r2, [r3, #4]
  24446. if(hdma->DMAmuxRequestGen != 0U)
  24447. 800aafa: 68fb ldr r3, [r7, #12]
  24448. 800aafc: 6edb ldr r3, [r3, #108] @ 0x6c
  24449. 800aafe: 2b00 cmp r3, #0
  24450. 800ab00: d004 beq.n 800ab0c <DMA_SetConfig+0x130>
  24451. {
  24452. /* Clear the DMAMUX request generator overrun flag */
  24453. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  24454. 800ab02: 68fb ldr r3, [r7, #12]
  24455. 800ab04: 6f1b ldr r3, [r3, #112] @ 0x70
  24456. 800ab06: 68fa ldr r2, [r7, #12]
  24457. 800ab08: 6f52 ldr r2, [r2, #116] @ 0x74
  24458. 800ab0a: 605a str r2, [r3, #4]
  24459. }
  24460. }
  24461. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24462. 800ab0c: 68fb ldr r3, [r7, #12]
  24463. 800ab0e: 681b ldr r3, [r3, #0]
  24464. 800ab10: 4a39 ldr r2, [pc, #228] @ (800abf8 <DMA_SetConfig+0x21c>)
  24465. 800ab12: 4293 cmp r3, r2
  24466. 800ab14: d04a beq.n 800abac <DMA_SetConfig+0x1d0>
  24467. 800ab16: 68fb ldr r3, [r7, #12]
  24468. 800ab18: 681b ldr r3, [r3, #0]
  24469. 800ab1a: 4a38 ldr r2, [pc, #224] @ (800abfc <DMA_SetConfig+0x220>)
  24470. 800ab1c: 4293 cmp r3, r2
  24471. 800ab1e: d045 beq.n 800abac <DMA_SetConfig+0x1d0>
  24472. 800ab20: 68fb ldr r3, [r7, #12]
  24473. 800ab22: 681b ldr r3, [r3, #0]
  24474. 800ab24: 4a36 ldr r2, [pc, #216] @ (800ac00 <DMA_SetConfig+0x224>)
  24475. 800ab26: 4293 cmp r3, r2
  24476. 800ab28: d040 beq.n 800abac <DMA_SetConfig+0x1d0>
  24477. 800ab2a: 68fb ldr r3, [r7, #12]
  24478. 800ab2c: 681b ldr r3, [r3, #0]
  24479. 800ab2e: 4a35 ldr r2, [pc, #212] @ (800ac04 <DMA_SetConfig+0x228>)
  24480. 800ab30: 4293 cmp r3, r2
  24481. 800ab32: d03b beq.n 800abac <DMA_SetConfig+0x1d0>
  24482. 800ab34: 68fb ldr r3, [r7, #12]
  24483. 800ab36: 681b ldr r3, [r3, #0]
  24484. 800ab38: 4a33 ldr r2, [pc, #204] @ (800ac08 <DMA_SetConfig+0x22c>)
  24485. 800ab3a: 4293 cmp r3, r2
  24486. 800ab3c: d036 beq.n 800abac <DMA_SetConfig+0x1d0>
  24487. 800ab3e: 68fb ldr r3, [r7, #12]
  24488. 800ab40: 681b ldr r3, [r3, #0]
  24489. 800ab42: 4a32 ldr r2, [pc, #200] @ (800ac0c <DMA_SetConfig+0x230>)
  24490. 800ab44: 4293 cmp r3, r2
  24491. 800ab46: d031 beq.n 800abac <DMA_SetConfig+0x1d0>
  24492. 800ab48: 68fb ldr r3, [r7, #12]
  24493. 800ab4a: 681b ldr r3, [r3, #0]
  24494. 800ab4c: 4a30 ldr r2, [pc, #192] @ (800ac10 <DMA_SetConfig+0x234>)
  24495. 800ab4e: 4293 cmp r3, r2
  24496. 800ab50: d02c beq.n 800abac <DMA_SetConfig+0x1d0>
  24497. 800ab52: 68fb ldr r3, [r7, #12]
  24498. 800ab54: 681b ldr r3, [r3, #0]
  24499. 800ab56: 4a2f ldr r2, [pc, #188] @ (800ac14 <DMA_SetConfig+0x238>)
  24500. 800ab58: 4293 cmp r3, r2
  24501. 800ab5a: d027 beq.n 800abac <DMA_SetConfig+0x1d0>
  24502. 800ab5c: 68fb ldr r3, [r7, #12]
  24503. 800ab5e: 681b ldr r3, [r3, #0]
  24504. 800ab60: 4a2d ldr r2, [pc, #180] @ (800ac18 <DMA_SetConfig+0x23c>)
  24505. 800ab62: 4293 cmp r3, r2
  24506. 800ab64: d022 beq.n 800abac <DMA_SetConfig+0x1d0>
  24507. 800ab66: 68fb ldr r3, [r7, #12]
  24508. 800ab68: 681b ldr r3, [r3, #0]
  24509. 800ab6a: 4a2c ldr r2, [pc, #176] @ (800ac1c <DMA_SetConfig+0x240>)
  24510. 800ab6c: 4293 cmp r3, r2
  24511. 800ab6e: d01d beq.n 800abac <DMA_SetConfig+0x1d0>
  24512. 800ab70: 68fb ldr r3, [r7, #12]
  24513. 800ab72: 681b ldr r3, [r3, #0]
  24514. 800ab74: 4a2a ldr r2, [pc, #168] @ (800ac20 <DMA_SetConfig+0x244>)
  24515. 800ab76: 4293 cmp r3, r2
  24516. 800ab78: d018 beq.n 800abac <DMA_SetConfig+0x1d0>
  24517. 800ab7a: 68fb ldr r3, [r7, #12]
  24518. 800ab7c: 681b ldr r3, [r3, #0]
  24519. 800ab7e: 4a29 ldr r2, [pc, #164] @ (800ac24 <DMA_SetConfig+0x248>)
  24520. 800ab80: 4293 cmp r3, r2
  24521. 800ab82: d013 beq.n 800abac <DMA_SetConfig+0x1d0>
  24522. 800ab84: 68fb ldr r3, [r7, #12]
  24523. 800ab86: 681b ldr r3, [r3, #0]
  24524. 800ab88: 4a27 ldr r2, [pc, #156] @ (800ac28 <DMA_SetConfig+0x24c>)
  24525. 800ab8a: 4293 cmp r3, r2
  24526. 800ab8c: d00e beq.n 800abac <DMA_SetConfig+0x1d0>
  24527. 800ab8e: 68fb ldr r3, [r7, #12]
  24528. 800ab90: 681b ldr r3, [r3, #0]
  24529. 800ab92: 4a26 ldr r2, [pc, #152] @ (800ac2c <DMA_SetConfig+0x250>)
  24530. 800ab94: 4293 cmp r3, r2
  24531. 800ab96: d009 beq.n 800abac <DMA_SetConfig+0x1d0>
  24532. 800ab98: 68fb ldr r3, [r7, #12]
  24533. 800ab9a: 681b ldr r3, [r3, #0]
  24534. 800ab9c: 4a24 ldr r2, [pc, #144] @ (800ac30 <DMA_SetConfig+0x254>)
  24535. 800ab9e: 4293 cmp r3, r2
  24536. 800aba0: d004 beq.n 800abac <DMA_SetConfig+0x1d0>
  24537. 800aba2: 68fb ldr r3, [r7, #12]
  24538. 800aba4: 681b ldr r3, [r3, #0]
  24539. 800aba6: 4a23 ldr r2, [pc, #140] @ (800ac34 <DMA_SetConfig+0x258>)
  24540. 800aba8: 4293 cmp r3, r2
  24541. 800abaa: d101 bne.n 800abb0 <DMA_SetConfig+0x1d4>
  24542. 800abac: 2301 movs r3, #1
  24543. 800abae: e000 b.n 800abb2 <DMA_SetConfig+0x1d6>
  24544. 800abb0: 2300 movs r3, #0
  24545. 800abb2: 2b00 cmp r3, #0
  24546. 800abb4: d059 beq.n 800ac6a <DMA_SetConfig+0x28e>
  24547. {
  24548. /* Clear all interrupt flags at correct offset within the register */
  24549. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  24550. 800abb6: 68fb ldr r3, [r7, #12]
  24551. 800abb8: 6ddb ldr r3, [r3, #92] @ 0x5c
  24552. 800abba: f003 031f and.w r3, r3, #31
  24553. 800abbe: 223f movs r2, #63 @ 0x3f
  24554. 800abc0: 409a lsls r2, r3
  24555. 800abc2: 697b ldr r3, [r7, #20]
  24556. 800abc4: 609a str r2, [r3, #8]
  24557. /* Clear DBM bit */
  24558. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  24559. 800abc6: 68fb ldr r3, [r7, #12]
  24560. 800abc8: 681b ldr r3, [r3, #0]
  24561. 800abca: 681a ldr r2, [r3, #0]
  24562. 800abcc: 68fb ldr r3, [r7, #12]
  24563. 800abce: 681b ldr r3, [r3, #0]
  24564. 800abd0: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  24565. 800abd4: 601a str r2, [r3, #0]
  24566. /* Configure DMA Stream data length */
  24567. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  24568. 800abd6: 68fb ldr r3, [r7, #12]
  24569. 800abd8: 681b ldr r3, [r3, #0]
  24570. 800abda: 683a ldr r2, [r7, #0]
  24571. 800abdc: 605a str r2, [r3, #4]
  24572. /* Peripheral to Memory */
  24573. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24574. 800abde: 68fb ldr r3, [r7, #12]
  24575. 800abe0: 689b ldr r3, [r3, #8]
  24576. 800abe2: 2b40 cmp r3, #64 @ 0x40
  24577. 800abe4: d138 bne.n 800ac58 <DMA_SetConfig+0x27c>
  24578. {
  24579. /* Configure DMA Stream destination address */
  24580. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  24581. 800abe6: 68fb ldr r3, [r7, #12]
  24582. 800abe8: 681b ldr r3, [r3, #0]
  24583. 800abea: 687a ldr r2, [r7, #4]
  24584. 800abec: 609a str r2, [r3, #8]
  24585. /* Configure DMA Stream source address */
  24586. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  24587. 800abee: 68fb ldr r3, [r7, #12]
  24588. 800abf0: 681b ldr r3, [r3, #0]
  24589. 800abf2: 68ba ldr r2, [r7, #8]
  24590. 800abf4: 60da str r2, [r3, #12]
  24591. }
  24592. else
  24593. {
  24594. /* Nothing To Do */
  24595. }
  24596. }
  24597. 800abf6: e086 b.n 800ad06 <DMA_SetConfig+0x32a>
  24598. 800abf8: 40020010 .word 0x40020010
  24599. 800abfc: 40020028 .word 0x40020028
  24600. 800ac00: 40020040 .word 0x40020040
  24601. 800ac04: 40020058 .word 0x40020058
  24602. 800ac08: 40020070 .word 0x40020070
  24603. 800ac0c: 40020088 .word 0x40020088
  24604. 800ac10: 400200a0 .word 0x400200a0
  24605. 800ac14: 400200b8 .word 0x400200b8
  24606. 800ac18: 40020410 .word 0x40020410
  24607. 800ac1c: 40020428 .word 0x40020428
  24608. 800ac20: 40020440 .word 0x40020440
  24609. 800ac24: 40020458 .word 0x40020458
  24610. 800ac28: 40020470 .word 0x40020470
  24611. 800ac2c: 40020488 .word 0x40020488
  24612. 800ac30: 400204a0 .word 0x400204a0
  24613. 800ac34: 400204b8 .word 0x400204b8
  24614. 800ac38: 58025408 .word 0x58025408
  24615. 800ac3c: 5802541c .word 0x5802541c
  24616. 800ac40: 58025430 .word 0x58025430
  24617. 800ac44: 58025444 .word 0x58025444
  24618. 800ac48: 58025458 .word 0x58025458
  24619. 800ac4c: 5802546c .word 0x5802546c
  24620. 800ac50: 58025480 .word 0x58025480
  24621. 800ac54: 58025494 .word 0x58025494
  24622. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  24623. 800ac58: 68fb ldr r3, [r7, #12]
  24624. 800ac5a: 681b ldr r3, [r3, #0]
  24625. 800ac5c: 68ba ldr r2, [r7, #8]
  24626. 800ac5e: 609a str r2, [r3, #8]
  24627. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  24628. 800ac60: 68fb ldr r3, [r7, #12]
  24629. 800ac62: 681b ldr r3, [r3, #0]
  24630. 800ac64: 687a ldr r2, [r7, #4]
  24631. 800ac66: 60da str r2, [r3, #12]
  24632. }
  24633. 800ac68: e04d b.n 800ad06 <DMA_SetConfig+0x32a>
  24634. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  24635. 800ac6a: 68fb ldr r3, [r7, #12]
  24636. 800ac6c: 681b ldr r3, [r3, #0]
  24637. 800ac6e: 4a29 ldr r2, [pc, #164] @ (800ad14 <DMA_SetConfig+0x338>)
  24638. 800ac70: 4293 cmp r3, r2
  24639. 800ac72: d022 beq.n 800acba <DMA_SetConfig+0x2de>
  24640. 800ac74: 68fb ldr r3, [r7, #12]
  24641. 800ac76: 681b ldr r3, [r3, #0]
  24642. 800ac78: 4a27 ldr r2, [pc, #156] @ (800ad18 <DMA_SetConfig+0x33c>)
  24643. 800ac7a: 4293 cmp r3, r2
  24644. 800ac7c: d01d beq.n 800acba <DMA_SetConfig+0x2de>
  24645. 800ac7e: 68fb ldr r3, [r7, #12]
  24646. 800ac80: 681b ldr r3, [r3, #0]
  24647. 800ac82: 4a26 ldr r2, [pc, #152] @ (800ad1c <DMA_SetConfig+0x340>)
  24648. 800ac84: 4293 cmp r3, r2
  24649. 800ac86: d018 beq.n 800acba <DMA_SetConfig+0x2de>
  24650. 800ac88: 68fb ldr r3, [r7, #12]
  24651. 800ac8a: 681b ldr r3, [r3, #0]
  24652. 800ac8c: 4a24 ldr r2, [pc, #144] @ (800ad20 <DMA_SetConfig+0x344>)
  24653. 800ac8e: 4293 cmp r3, r2
  24654. 800ac90: d013 beq.n 800acba <DMA_SetConfig+0x2de>
  24655. 800ac92: 68fb ldr r3, [r7, #12]
  24656. 800ac94: 681b ldr r3, [r3, #0]
  24657. 800ac96: 4a23 ldr r2, [pc, #140] @ (800ad24 <DMA_SetConfig+0x348>)
  24658. 800ac98: 4293 cmp r3, r2
  24659. 800ac9a: d00e beq.n 800acba <DMA_SetConfig+0x2de>
  24660. 800ac9c: 68fb ldr r3, [r7, #12]
  24661. 800ac9e: 681b ldr r3, [r3, #0]
  24662. 800aca0: 4a21 ldr r2, [pc, #132] @ (800ad28 <DMA_SetConfig+0x34c>)
  24663. 800aca2: 4293 cmp r3, r2
  24664. 800aca4: d009 beq.n 800acba <DMA_SetConfig+0x2de>
  24665. 800aca6: 68fb ldr r3, [r7, #12]
  24666. 800aca8: 681b ldr r3, [r3, #0]
  24667. 800acaa: 4a20 ldr r2, [pc, #128] @ (800ad2c <DMA_SetConfig+0x350>)
  24668. 800acac: 4293 cmp r3, r2
  24669. 800acae: d004 beq.n 800acba <DMA_SetConfig+0x2de>
  24670. 800acb0: 68fb ldr r3, [r7, #12]
  24671. 800acb2: 681b ldr r3, [r3, #0]
  24672. 800acb4: 4a1e ldr r2, [pc, #120] @ (800ad30 <DMA_SetConfig+0x354>)
  24673. 800acb6: 4293 cmp r3, r2
  24674. 800acb8: d101 bne.n 800acbe <DMA_SetConfig+0x2e2>
  24675. 800acba: 2301 movs r3, #1
  24676. 800acbc: e000 b.n 800acc0 <DMA_SetConfig+0x2e4>
  24677. 800acbe: 2300 movs r3, #0
  24678. 800acc0: 2b00 cmp r3, #0
  24679. 800acc2: d020 beq.n 800ad06 <DMA_SetConfig+0x32a>
  24680. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24681. 800acc4: 68fb ldr r3, [r7, #12]
  24682. 800acc6: 6ddb ldr r3, [r3, #92] @ 0x5c
  24683. 800acc8: f003 031f and.w r3, r3, #31
  24684. 800accc: 2201 movs r2, #1
  24685. 800acce: 409a lsls r2, r3
  24686. 800acd0: 693b ldr r3, [r7, #16]
  24687. 800acd2: 605a str r2, [r3, #4]
  24688. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  24689. 800acd4: 68fb ldr r3, [r7, #12]
  24690. 800acd6: 681b ldr r3, [r3, #0]
  24691. 800acd8: 683a ldr r2, [r7, #0]
  24692. 800acda: 605a str r2, [r3, #4]
  24693. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24694. 800acdc: 68fb ldr r3, [r7, #12]
  24695. 800acde: 689b ldr r3, [r3, #8]
  24696. 800ace0: 2b40 cmp r3, #64 @ 0x40
  24697. 800ace2: d108 bne.n 800acf6 <DMA_SetConfig+0x31a>
  24698. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  24699. 800ace4: 68fb ldr r3, [r7, #12]
  24700. 800ace6: 681b ldr r3, [r3, #0]
  24701. 800ace8: 687a ldr r2, [r7, #4]
  24702. 800acea: 609a str r2, [r3, #8]
  24703. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  24704. 800acec: 68fb ldr r3, [r7, #12]
  24705. 800acee: 681b ldr r3, [r3, #0]
  24706. 800acf0: 68ba ldr r2, [r7, #8]
  24707. 800acf2: 60da str r2, [r3, #12]
  24708. }
  24709. 800acf4: e007 b.n 800ad06 <DMA_SetConfig+0x32a>
  24710. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  24711. 800acf6: 68fb ldr r3, [r7, #12]
  24712. 800acf8: 681b ldr r3, [r3, #0]
  24713. 800acfa: 68ba ldr r2, [r7, #8]
  24714. 800acfc: 609a str r2, [r3, #8]
  24715. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  24716. 800acfe: 68fb ldr r3, [r7, #12]
  24717. 800ad00: 681b ldr r3, [r3, #0]
  24718. 800ad02: 687a ldr r2, [r7, #4]
  24719. 800ad04: 60da str r2, [r3, #12]
  24720. }
  24721. 800ad06: bf00 nop
  24722. 800ad08: 371c adds r7, #28
  24723. 800ad0a: 46bd mov sp, r7
  24724. 800ad0c: f85d 7b04 ldr.w r7, [sp], #4
  24725. 800ad10: 4770 bx lr
  24726. 800ad12: bf00 nop
  24727. 800ad14: 58025408 .word 0x58025408
  24728. 800ad18: 5802541c .word 0x5802541c
  24729. 800ad1c: 58025430 .word 0x58025430
  24730. 800ad20: 58025444 .word 0x58025444
  24731. 800ad24: 58025458 .word 0x58025458
  24732. 800ad28: 5802546c .word 0x5802546c
  24733. 800ad2c: 58025480 .word 0x58025480
  24734. 800ad30: 58025494 .word 0x58025494
  24735. 0800ad34 <DMA_CalcBaseAndBitshift>:
  24736. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24737. * the configuration information for the specified DMA Stream.
  24738. * @retval Stream base address
  24739. */
  24740. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  24741. {
  24742. 800ad34: b480 push {r7}
  24743. 800ad36: b085 sub sp, #20
  24744. 800ad38: af00 add r7, sp, #0
  24745. 800ad3a: 6078 str r0, [r7, #4]
  24746. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24747. 800ad3c: 687b ldr r3, [r7, #4]
  24748. 800ad3e: 681b ldr r3, [r3, #0]
  24749. 800ad40: 4a42 ldr r2, [pc, #264] @ (800ae4c <DMA_CalcBaseAndBitshift+0x118>)
  24750. 800ad42: 4293 cmp r3, r2
  24751. 800ad44: d04a beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24752. 800ad46: 687b ldr r3, [r7, #4]
  24753. 800ad48: 681b ldr r3, [r3, #0]
  24754. 800ad4a: 4a41 ldr r2, [pc, #260] @ (800ae50 <DMA_CalcBaseAndBitshift+0x11c>)
  24755. 800ad4c: 4293 cmp r3, r2
  24756. 800ad4e: d045 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24757. 800ad50: 687b ldr r3, [r7, #4]
  24758. 800ad52: 681b ldr r3, [r3, #0]
  24759. 800ad54: 4a3f ldr r2, [pc, #252] @ (800ae54 <DMA_CalcBaseAndBitshift+0x120>)
  24760. 800ad56: 4293 cmp r3, r2
  24761. 800ad58: d040 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24762. 800ad5a: 687b ldr r3, [r7, #4]
  24763. 800ad5c: 681b ldr r3, [r3, #0]
  24764. 800ad5e: 4a3e ldr r2, [pc, #248] @ (800ae58 <DMA_CalcBaseAndBitshift+0x124>)
  24765. 800ad60: 4293 cmp r3, r2
  24766. 800ad62: d03b beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24767. 800ad64: 687b ldr r3, [r7, #4]
  24768. 800ad66: 681b ldr r3, [r3, #0]
  24769. 800ad68: 4a3c ldr r2, [pc, #240] @ (800ae5c <DMA_CalcBaseAndBitshift+0x128>)
  24770. 800ad6a: 4293 cmp r3, r2
  24771. 800ad6c: d036 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24772. 800ad6e: 687b ldr r3, [r7, #4]
  24773. 800ad70: 681b ldr r3, [r3, #0]
  24774. 800ad72: 4a3b ldr r2, [pc, #236] @ (800ae60 <DMA_CalcBaseAndBitshift+0x12c>)
  24775. 800ad74: 4293 cmp r3, r2
  24776. 800ad76: d031 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24777. 800ad78: 687b ldr r3, [r7, #4]
  24778. 800ad7a: 681b ldr r3, [r3, #0]
  24779. 800ad7c: 4a39 ldr r2, [pc, #228] @ (800ae64 <DMA_CalcBaseAndBitshift+0x130>)
  24780. 800ad7e: 4293 cmp r3, r2
  24781. 800ad80: d02c beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24782. 800ad82: 687b ldr r3, [r7, #4]
  24783. 800ad84: 681b ldr r3, [r3, #0]
  24784. 800ad86: 4a38 ldr r2, [pc, #224] @ (800ae68 <DMA_CalcBaseAndBitshift+0x134>)
  24785. 800ad88: 4293 cmp r3, r2
  24786. 800ad8a: d027 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24787. 800ad8c: 687b ldr r3, [r7, #4]
  24788. 800ad8e: 681b ldr r3, [r3, #0]
  24789. 800ad90: 4a36 ldr r2, [pc, #216] @ (800ae6c <DMA_CalcBaseAndBitshift+0x138>)
  24790. 800ad92: 4293 cmp r3, r2
  24791. 800ad94: d022 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24792. 800ad96: 687b ldr r3, [r7, #4]
  24793. 800ad98: 681b ldr r3, [r3, #0]
  24794. 800ad9a: 4a35 ldr r2, [pc, #212] @ (800ae70 <DMA_CalcBaseAndBitshift+0x13c>)
  24795. 800ad9c: 4293 cmp r3, r2
  24796. 800ad9e: d01d beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24797. 800ada0: 687b ldr r3, [r7, #4]
  24798. 800ada2: 681b ldr r3, [r3, #0]
  24799. 800ada4: 4a33 ldr r2, [pc, #204] @ (800ae74 <DMA_CalcBaseAndBitshift+0x140>)
  24800. 800ada6: 4293 cmp r3, r2
  24801. 800ada8: d018 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24802. 800adaa: 687b ldr r3, [r7, #4]
  24803. 800adac: 681b ldr r3, [r3, #0]
  24804. 800adae: 4a32 ldr r2, [pc, #200] @ (800ae78 <DMA_CalcBaseAndBitshift+0x144>)
  24805. 800adb0: 4293 cmp r3, r2
  24806. 800adb2: d013 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24807. 800adb4: 687b ldr r3, [r7, #4]
  24808. 800adb6: 681b ldr r3, [r3, #0]
  24809. 800adb8: 4a30 ldr r2, [pc, #192] @ (800ae7c <DMA_CalcBaseAndBitshift+0x148>)
  24810. 800adba: 4293 cmp r3, r2
  24811. 800adbc: d00e beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24812. 800adbe: 687b ldr r3, [r7, #4]
  24813. 800adc0: 681b ldr r3, [r3, #0]
  24814. 800adc2: 4a2f ldr r2, [pc, #188] @ (800ae80 <DMA_CalcBaseAndBitshift+0x14c>)
  24815. 800adc4: 4293 cmp r3, r2
  24816. 800adc6: d009 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24817. 800adc8: 687b ldr r3, [r7, #4]
  24818. 800adca: 681b ldr r3, [r3, #0]
  24819. 800adcc: 4a2d ldr r2, [pc, #180] @ (800ae84 <DMA_CalcBaseAndBitshift+0x150>)
  24820. 800adce: 4293 cmp r3, r2
  24821. 800add0: d004 beq.n 800addc <DMA_CalcBaseAndBitshift+0xa8>
  24822. 800add2: 687b ldr r3, [r7, #4]
  24823. 800add4: 681b ldr r3, [r3, #0]
  24824. 800add6: 4a2c ldr r2, [pc, #176] @ (800ae88 <DMA_CalcBaseAndBitshift+0x154>)
  24825. 800add8: 4293 cmp r3, r2
  24826. 800adda: d101 bne.n 800ade0 <DMA_CalcBaseAndBitshift+0xac>
  24827. 800addc: 2301 movs r3, #1
  24828. 800adde: e000 b.n 800ade2 <DMA_CalcBaseAndBitshift+0xae>
  24829. 800ade0: 2300 movs r3, #0
  24830. 800ade2: 2b00 cmp r3, #0
  24831. 800ade4: d024 beq.n 800ae30 <DMA_CalcBaseAndBitshift+0xfc>
  24832. {
  24833. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24834. 800ade6: 687b ldr r3, [r7, #4]
  24835. 800ade8: 681b ldr r3, [r3, #0]
  24836. 800adea: b2db uxtb r3, r3
  24837. 800adec: 3b10 subs r3, #16
  24838. 800adee: 4a27 ldr r2, [pc, #156] @ (800ae8c <DMA_CalcBaseAndBitshift+0x158>)
  24839. 800adf0: fba2 2303 umull r2, r3, r2, r3
  24840. 800adf4: 091b lsrs r3, r3, #4
  24841. 800adf6: 60fb str r3, [r7, #12]
  24842. /* lookup table for necessary bitshift of flags within status registers */
  24843. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  24844. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  24845. 800adf8: 68fb ldr r3, [r7, #12]
  24846. 800adfa: f003 0307 and.w r3, r3, #7
  24847. 800adfe: 4a24 ldr r2, [pc, #144] @ (800ae90 <DMA_CalcBaseAndBitshift+0x15c>)
  24848. 800ae00: 5cd3 ldrb r3, [r2, r3]
  24849. 800ae02: 461a mov r2, r3
  24850. 800ae04: 687b ldr r3, [r7, #4]
  24851. 800ae06: 65da str r2, [r3, #92] @ 0x5c
  24852. if (stream_number > 3U)
  24853. 800ae08: 68fb ldr r3, [r7, #12]
  24854. 800ae0a: 2b03 cmp r3, #3
  24855. 800ae0c: d908 bls.n 800ae20 <DMA_CalcBaseAndBitshift+0xec>
  24856. {
  24857. /* return pointer to HISR and HIFCR */
  24858. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  24859. 800ae0e: 687b ldr r3, [r7, #4]
  24860. 800ae10: 681b ldr r3, [r3, #0]
  24861. 800ae12: 461a mov r2, r3
  24862. 800ae14: 4b1f ldr r3, [pc, #124] @ (800ae94 <DMA_CalcBaseAndBitshift+0x160>)
  24863. 800ae16: 4013 ands r3, r2
  24864. 800ae18: 1d1a adds r2, r3, #4
  24865. 800ae1a: 687b ldr r3, [r7, #4]
  24866. 800ae1c: 659a str r2, [r3, #88] @ 0x58
  24867. 800ae1e: e00d b.n 800ae3c <DMA_CalcBaseAndBitshift+0x108>
  24868. }
  24869. else
  24870. {
  24871. /* return pointer to LISR and LIFCR */
  24872. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  24873. 800ae20: 687b ldr r3, [r7, #4]
  24874. 800ae22: 681b ldr r3, [r3, #0]
  24875. 800ae24: 461a mov r2, r3
  24876. 800ae26: 4b1b ldr r3, [pc, #108] @ (800ae94 <DMA_CalcBaseAndBitshift+0x160>)
  24877. 800ae28: 4013 ands r3, r2
  24878. 800ae2a: 687a ldr r2, [r7, #4]
  24879. 800ae2c: 6593 str r3, [r2, #88] @ 0x58
  24880. 800ae2e: e005 b.n 800ae3c <DMA_CalcBaseAndBitshift+0x108>
  24881. }
  24882. }
  24883. else /* BDMA instance(s) */
  24884. {
  24885. /* return pointer to ISR and IFCR */
  24886. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  24887. 800ae30: 687b ldr r3, [r7, #4]
  24888. 800ae32: 681b ldr r3, [r3, #0]
  24889. 800ae34: f023 02ff bic.w r2, r3, #255 @ 0xff
  24890. 800ae38: 687b ldr r3, [r7, #4]
  24891. 800ae3a: 659a str r2, [r3, #88] @ 0x58
  24892. }
  24893. return hdma->StreamBaseAddress;
  24894. 800ae3c: 687b ldr r3, [r7, #4]
  24895. 800ae3e: 6d9b ldr r3, [r3, #88] @ 0x58
  24896. }
  24897. 800ae40: 4618 mov r0, r3
  24898. 800ae42: 3714 adds r7, #20
  24899. 800ae44: 46bd mov sp, r7
  24900. 800ae46: f85d 7b04 ldr.w r7, [sp], #4
  24901. 800ae4a: 4770 bx lr
  24902. 800ae4c: 40020010 .word 0x40020010
  24903. 800ae50: 40020028 .word 0x40020028
  24904. 800ae54: 40020040 .word 0x40020040
  24905. 800ae58: 40020058 .word 0x40020058
  24906. 800ae5c: 40020070 .word 0x40020070
  24907. 800ae60: 40020088 .word 0x40020088
  24908. 800ae64: 400200a0 .word 0x400200a0
  24909. 800ae68: 400200b8 .word 0x400200b8
  24910. 800ae6c: 40020410 .word 0x40020410
  24911. 800ae70: 40020428 .word 0x40020428
  24912. 800ae74: 40020440 .word 0x40020440
  24913. 800ae78: 40020458 .word 0x40020458
  24914. 800ae7c: 40020470 .word 0x40020470
  24915. 800ae80: 40020488 .word 0x40020488
  24916. 800ae84: 400204a0 .word 0x400204a0
  24917. 800ae88: 400204b8 .word 0x400204b8
  24918. 800ae8c: aaaaaaab .word 0xaaaaaaab
  24919. 800ae90: 080186ec .word 0x080186ec
  24920. 800ae94: fffffc00 .word 0xfffffc00
  24921. 0800ae98 <DMA_CheckFifoParam>:
  24922. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24923. * the configuration information for the specified DMA Stream.
  24924. * @retval HAL status
  24925. */
  24926. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  24927. {
  24928. 800ae98: b480 push {r7}
  24929. 800ae9a: b085 sub sp, #20
  24930. 800ae9c: af00 add r7, sp, #0
  24931. 800ae9e: 6078 str r0, [r7, #4]
  24932. HAL_StatusTypeDef status = HAL_OK;
  24933. 800aea0: 2300 movs r3, #0
  24934. 800aea2: 73fb strb r3, [r7, #15]
  24935. /* Memory Data size equal to Byte */
  24936. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  24937. 800aea4: 687b ldr r3, [r7, #4]
  24938. 800aea6: 699b ldr r3, [r3, #24]
  24939. 800aea8: 2b00 cmp r3, #0
  24940. 800aeaa: d120 bne.n 800aeee <DMA_CheckFifoParam+0x56>
  24941. {
  24942. switch (hdma->Init.FIFOThreshold)
  24943. 800aeac: 687b ldr r3, [r7, #4]
  24944. 800aeae: 6a9b ldr r3, [r3, #40] @ 0x28
  24945. 800aeb0: 2b03 cmp r3, #3
  24946. 800aeb2: d858 bhi.n 800af66 <DMA_CheckFifoParam+0xce>
  24947. 800aeb4: a201 add r2, pc, #4 @ (adr r2, 800aebc <DMA_CheckFifoParam+0x24>)
  24948. 800aeb6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24949. 800aeba: bf00 nop
  24950. 800aebc: 0800aecd .word 0x0800aecd
  24951. 800aec0: 0800aedf .word 0x0800aedf
  24952. 800aec4: 0800aecd .word 0x0800aecd
  24953. 800aec8: 0800af67 .word 0x0800af67
  24954. {
  24955. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  24956. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  24957. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24958. 800aecc: 687b ldr r3, [r7, #4]
  24959. 800aece: 6adb ldr r3, [r3, #44] @ 0x2c
  24960. 800aed0: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24961. 800aed4: 2b00 cmp r3, #0
  24962. 800aed6: d048 beq.n 800af6a <DMA_CheckFifoParam+0xd2>
  24963. {
  24964. status = HAL_ERROR;
  24965. 800aed8: 2301 movs r3, #1
  24966. 800aeda: 73fb strb r3, [r7, #15]
  24967. }
  24968. break;
  24969. 800aedc: e045 b.n 800af6a <DMA_CheckFifoParam+0xd2>
  24970. case DMA_FIFO_THRESHOLD_HALFFULL:
  24971. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  24972. 800aede: 687b ldr r3, [r7, #4]
  24973. 800aee0: 6adb ldr r3, [r3, #44] @ 0x2c
  24974. 800aee2: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  24975. 800aee6: d142 bne.n 800af6e <DMA_CheckFifoParam+0xd6>
  24976. {
  24977. status = HAL_ERROR;
  24978. 800aee8: 2301 movs r3, #1
  24979. 800aeea: 73fb strb r3, [r7, #15]
  24980. }
  24981. break;
  24982. 800aeec: e03f b.n 800af6e <DMA_CheckFifoParam+0xd6>
  24983. break;
  24984. }
  24985. }
  24986. /* Memory Data size equal to Half-Word */
  24987. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  24988. 800aeee: 687b ldr r3, [r7, #4]
  24989. 800aef0: 699b ldr r3, [r3, #24]
  24990. 800aef2: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  24991. 800aef6: d123 bne.n 800af40 <DMA_CheckFifoParam+0xa8>
  24992. {
  24993. switch (hdma->Init.FIFOThreshold)
  24994. 800aef8: 687b ldr r3, [r7, #4]
  24995. 800aefa: 6a9b ldr r3, [r3, #40] @ 0x28
  24996. 800aefc: 2b03 cmp r3, #3
  24997. 800aefe: d838 bhi.n 800af72 <DMA_CheckFifoParam+0xda>
  24998. 800af00: a201 add r2, pc, #4 @ (adr r2, 800af08 <DMA_CheckFifoParam+0x70>)
  24999. 800af02: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25000. 800af06: bf00 nop
  25001. 800af08: 0800af19 .word 0x0800af19
  25002. 800af0c: 0800af1f .word 0x0800af1f
  25003. 800af10: 0800af19 .word 0x0800af19
  25004. 800af14: 0800af31 .word 0x0800af31
  25005. {
  25006. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  25007. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  25008. status = HAL_ERROR;
  25009. 800af18: 2301 movs r3, #1
  25010. 800af1a: 73fb strb r3, [r7, #15]
  25011. break;
  25012. 800af1c: e030 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25013. case DMA_FIFO_THRESHOLD_HALFFULL:
  25014. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25015. 800af1e: 687b ldr r3, [r7, #4]
  25016. 800af20: 6adb ldr r3, [r3, #44] @ 0x2c
  25017. 800af22: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25018. 800af26: 2b00 cmp r3, #0
  25019. 800af28: d025 beq.n 800af76 <DMA_CheckFifoParam+0xde>
  25020. {
  25021. status = HAL_ERROR;
  25022. 800af2a: 2301 movs r3, #1
  25023. 800af2c: 73fb strb r3, [r7, #15]
  25024. }
  25025. break;
  25026. 800af2e: e022 b.n 800af76 <DMA_CheckFifoParam+0xde>
  25027. case DMA_FIFO_THRESHOLD_FULL:
  25028. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  25029. 800af30: 687b ldr r3, [r7, #4]
  25030. 800af32: 6adb ldr r3, [r3, #44] @ 0x2c
  25031. 800af34: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  25032. 800af38: d11f bne.n 800af7a <DMA_CheckFifoParam+0xe2>
  25033. {
  25034. status = HAL_ERROR;
  25035. 800af3a: 2301 movs r3, #1
  25036. 800af3c: 73fb strb r3, [r7, #15]
  25037. }
  25038. break;
  25039. 800af3e: e01c b.n 800af7a <DMA_CheckFifoParam+0xe2>
  25040. }
  25041. /* Memory Data size equal to Word */
  25042. else
  25043. {
  25044. switch (hdma->Init.FIFOThreshold)
  25045. 800af40: 687b ldr r3, [r7, #4]
  25046. 800af42: 6a9b ldr r3, [r3, #40] @ 0x28
  25047. 800af44: 2b02 cmp r3, #2
  25048. 800af46: d902 bls.n 800af4e <DMA_CheckFifoParam+0xb6>
  25049. 800af48: 2b03 cmp r3, #3
  25050. 800af4a: d003 beq.n 800af54 <DMA_CheckFifoParam+0xbc>
  25051. status = HAL_ERROR;
  25052. }
  25053. break;
  25054. default:
  25055. break;
  25056. 800af4c: e018 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25057. status = HAL_ERROR;
  25058. 800af4e: 2301 movs r3, #1
  25059. 800af50: 73fb strb r3, [r7, #15]
  25060. break;
  25061. 800af52: e015 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25062. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25063. 800af54: 687b ldr r3, [r7, #4]
  25064. 800af56: 6adb ldr r3, [r3, #44] @ 0x2c
  25065. 800af58: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25066. 800af5c: 2b00 cmp r3, #0
  25067. 800af5e: d00e beq.n 800af7e <DMA_CheckFifoParam+0xe6>
  25068. status = HAL_ERROR;
  25069. 800af60: 2301 movs r3, #1
  25070. 800af62: 73fb strb r3, [r7, #15]
  25071. break;
  25072. 800af64: e00b b.n 800af7e <DMA_CheckFifoParam+0xe6>
  25073. break;
  25074. 800af66: bf00 nop
  25075. 800af68: e00a b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25076. break;
  25077. 800af6a: bf00 nop
  25078. 800af6c: e008 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25079. break;
  25080. 800af6e: bf00 nop
  25081. 800af70: e006 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25082. break;
  25083. 800af72: bf00 nop
  25084. 800af74: e004 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25085. break;
  25086. 800af76: bf00 nop
  25087. 800af78: e002 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25088. break;
  25089. 800af7a: bf00 nop
  25090. 800af7c: e000 b.n 800af80 <DMA_CheckFifoParam+0xe8>
  25091. break;
  25092. 800af7e: bf00 nop
  25093. }
  25094. }
  25095. return status;
  25096. 800af80: 7bfb ldrb r3, [r7, #15]
  25097. }
  25098. 800af82: 4618 mov r0, r3
  25099. 800af84: 3714 adds r7, #20
  25100. 800af86: 46bd mov sp, r7
  25101. 800af88: f85d 7b04 ldr.w r7, [sp], #4
  25102. 800af8c: 4770 bx lr
  25103. 800af8e: bf00 nop
  25104. 0800af90 <DMA_CalcDMAMUXChannelBaseAndMask>:
  25105. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25106. * the configuration information for the specified DMA Stream.
  25107. * @retval HAL status
  25108. */
  25109. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  25110. {
  25111. 800af90: b480 push {r7}
  25112. 800af92: b085 sub sp, #20
  25113. 800af94: af00 add r7, sp, #0
  25114. 800af96: 6078 str r0, [r7, #4]
  25115. uint32_t stream_number;
  25116. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  25117. 800af98: 687b ldr r3, [r7, #4]
  25118. 800af9a: 681b ldr r3, [r3, #0]
  25119. 800af9c: 60bb str r3, [r7, #8]
  25120. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25121. 800af9e: 687b ldr r3, [r7, #4]
  25122. 800afa0: 681b ldr r3, [r3, #0]
  25123. 800afa2: 4a38 ldr r2, [pc, #224] @ (800b084 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  25124. 800afa4: 4293 cmp r3, r2
  25125. 800afa6: d022 beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25126. 800afa8: 687b ldr r3, [r7, #4]
  25127. 800afaa: 681b ldr r3, [r3, #0]
  25128. 800afac: 4a36 ldr r2, [pc, #216] @ (800b088 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  25129. 800afae: 4293 cmp r3, r2
  25130. 800afb0: d01d beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25131. 800afb2: 687b ldr r3, [r7, #4]
  25132. 800afb4: 681b ldr r3, [r3, #0]
  25133. 800afb6: 4a35 ldr r2, [pc, #212] @ (800b08c <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  25134. 800afb8: 4293 cmp r3, r2
  25135. 800afba: d018 beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25136. 800afbc: 687b ldr r3, [r7, #4]
  25137. 800afbe: 681b ldr r3, [r3, #0]
  25138. 800afc0: 4a33 ldr r2, [pc, #204] @ (800b090 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  25139. 800afc2: 4293 cmp r3, r2
  25140. 800afc4: d013 beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25141. 800afc6: 687b ldr r3, [r7, #4]
  25142. 800afc8: 681b ldr r3, [r3, #0]
  25143. 800afca: 4a32 ldr r2, [pc, #200] @ (800b094 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  25144. 800afcc: 4293 cmp r3, r2
  25145. 800afce: d00e beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25146. 800afd0: 687b ldr r3, [r7, #4]
  25147. 800afd2: 681b ldr r3, [r3, #0]
  25148. 800afd4: 4a30 ldr r2, [pc, #192] @ (800b098 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  25149. 800afd6: 4293 cmp r3, r2
  25150. 800afd8: d009 beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25151. 800afda: 687b ldr r3, [r7, #4]
  25152. 800afdc: 681b ldr r3, [r3, #0]
  25153. 800afde: 4a2f ldr r2, [pc, #188] @ (800b09c <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  25154. 800afe0: 4293 cmp r3, r2
  25155. 800afe2: d004 beq.n 800afee <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25156. 800afe4: 687b ldr r3, [r7, #4]
  25157. 800afe6: 681b ldr r3, [r3, #0]
  25158. 800afe8: 4a2d ldr r2, [pc, #180] @ (800b0a0 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  25159. 800afea: 4293 cmp r3, r2
  25160. 800afec: d101 bne.n 800aff2 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  25161. 800afee: 2301 movs r3, #1
  25162. 800aff0: e000 b.n 800aff4 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  25163. 800aff2: 2300 movs r3, #0
  25164. 800aff4: 2b00 cmp r3, #0
  25165. 800aff6: d01a beq.n 800b02e <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  25166. {
  25167. /* BDMA Channels are connected to DMAMUX2 channels */
  25168. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  25169. 800aff8: 687b ldr r3, [r7, #4]
  25170. 800affa: 681b ldr r3, [r3, #0]
  25171. 800affc: b2db uxtb r3, r3
  25172. 800affe: 3b08 subs r3, #8
  25173. 800b000: 4a28 ldr r2, [pc, #160] @ (800b0a4 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  25174. 800b002: fba2 2303 umull r2, r3, r2, r3
  25175. 800b006: 091b lsrs r3, r3, #4
  25176. 800b008: 60fb str r3, [r7, #12]
  25177. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  25178. 800b00a: 68fa ldr r2, [r7, #12]
  25179. 800b00c: 4b26 ldr r3, [pc, #152] @ (800b0a8 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  25180. 800b00e: 4413 add r3, r2
  25181. 800b010: 009b lsls r3, r3, #2
  25182. 800b012: 461a mov r2, r3
  25183. 800b014: 687b ldr r3, [r7, #4]
  25184. 800b016: 661a str r2, [r3, #96] @ 0x60
  25185. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  25186. 800b018: 687b ldr r3, [r7, #4]
  25187. 800b01a: 4a24 ldr r2, [pc, #144] @ (800b0ac <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  25188. 800b01c: 665a str r2, [r3, #100] @ 0x64
  25189. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25190. 800b01e: 68fb ldr r3, [r7, #12]
  25191. 800b020: f003 031f and.w r3, r3, #31
  25192. 800b024: 2201 movs r2, #1
  25193. 800b026: 409a lsls r2, r3
  25194. 800b028: 687b ldr r3, [r7, #4]
  25195. 800b02a: 669a str r2, [r3, #104] @ 0x68
  25196. }
  25197. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25198. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25199. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25200. }
  25201. }
  25202. 800b02c: e024 b.n 800b078 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  25203. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  25204. 800b02e: 687b ldr r3, [r7, #4]
  25205. 800b030: 681b ldr r3, [r3, #0]
  25206. 800b032: b2db uxtb r3, r3
  25207. 800b034: 3b10 subs r3, #16
  25208. 800b036: 4a1e ldr r2, [pc, #120] @ (800b0b0 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  25209. 800b038: fba2 2303 umull r2, r3, r2, r3
  25210. 800b03c: 091b lsrs r3, r3, #4
  25211. 800b03e: 60fb str r3, [r7, #12]
  25212. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  25213. 800b040: 68bb ldr r3, [r7, #8]
  25214. 800b042: 4a1c ldr r2, [pc, #112] @ (800b0b4 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  25215. 800b044: 4293 cmp r3, r2
  25216. 800b046: d806 bhi.n 800b056 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25217. 800b048: 68bb ldr r3, [r7, #8]
  25218. 800b04a: 4a1b ldr r2, [pc, #108] @ (800b0b8 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  25219. 800b04c: 4293 cmp r3, r2
  25220. 800b04e: d902 bls.n 800b056 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25221. stream_number += 8U;
  25222. 800b050: 68fb ldr r3, [r7, #12]
  25223. 800b052: 3308 adds r3, #8
  25224. 800b054: 60fb str r3, [r7, #12]
  25225. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25226. 800b056: 68fa ldr r2, [r7, #12]
  25227. 800b058: 4b18 ldr r3, [pc, #96] @ (800b0bc <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  25228. 800b05a: 4413 add r3, r2
  25229. 800b05c: 009b lsls r3, r3, #2
  25230. 800b05e: 461a mov r2, r3
  25231. 800b060: 687b ldr r3, [r7, #4]
  25232. 800b062: 661a str r2, [r3, #96] @ 0x60
  25233. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25234. 800b064: 687b ldr r3, [r7, #4]
  25235. 800b066: 4a16 ldr r2, [pc, #88] @ (800b0c0 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  25236. 800b068: 665a str r2, [r3, #100] @ 0x64
  25237. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25238. 800b06a: 68fb ldr r3, [r7, #12]
  25239. 800b06c: f003 031f and.w r3, r3, #31
  25240. 800b070: 2201 movs r2, #1
  25241. 800b072: 409a lsls r2, r3
  25242. 800b074: 687b ldr r3, [r7, #4]
  25243. 800b076: 669a str r2, [r3, #104] @ 0x68
  25244. }
  25245. 800b078: bf00 nop
  25246. 800b07a: 3714 adds r7, #20
  25247. 800b07c: 46bd mov sp, r7
  25248. 800b07e: f85d 7b04 ldr.w r7, [sp], #4
  25249. 800b082: 4770 bx lr
  25250. 800b084: 58025408 .word 0x58025408
  25251. 800b088: 5802541c .word 0x5802541c
  25252. 800b08c: 58025430 .word 0x58025430
  25253. 800b090: 58025444 .word 0x58025444
  25254. 800b094: 58025458 .word 0x58025458
  25255. 800b098: 5802546c .word 0x5802546c
  25256. 800b09c: 58025480 .word 0x58025480
  25257. 800b0a0: 58025494 .word 0x58025494
  25258. 800b0a4: cccccccd .word 0xcccccccd
  25259. 800b0a8: 16009600 .word 0x16009600
  25260. 800b0ac: 58025880 .word 0x58025880
  25261. 800b0b0: aaaaaaab .word 0xaaaaaaab
  25262. 800b0b4: 400204b8 .word 0x400204b8
  25263. 800b0b8: 4002040f .word 0x4002040f
  25264. 800b0bc: 10008200 .word 0x10008200
  25265. 800b0c0: 40020880 .word 0x40020880
  25266. 0800b0c4 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  25267. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25268. * the configuration information for the specified DMA Stream.
  25269. * @retval HAL status
  25270. */
  25271. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  25272. {
  25273. 800b0c4: b480 push {r7}
  25274. 800b0c6: b085 sub sp, #20
  25275. 800b0c8: af00 add r7, sp, #0
  25276. 800b0ca: 6078 str r0, [r7, #4]
  25277. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  25278. 800b0cc: 687b ldr r3, [r7, #4]
  25279. 800b0ce: 685b ldr r3, [r3, #4]
  25280. 800b0d0: b2db uxtb r3, r3
  25281. 800b0d2: 60fb str r3, [r7, #12]
  25282. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  25283. 800b0d4: 68fb ldr r3, [r7, #12]
  25284. 800b0d6: 2b00 cmp r3, #0
  25285. 800b0d8: d04a beq.n 800b170 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25286. 800b0da: 68fb ldr r3, [r7, #12]
  25287. 800b0dc: 2b08 cmp r3, #8
  25288. 800b0de: d847 bhi.n 800b170 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25289. {
  25290. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25291. 800b0e0: 687b ldr r3, [r7, #4]
  25292. 800b0e2: 681b ldr r3, [r3, #0]
  25293. 800b0e4: 4a25 ldr r2, [pc, #148] @ (800b17c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  25294. 800b0e6: 4293 cmp r3, r2
  25295. 800b0e8: d022 beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25296. 800b0ea: 687b ldr r3, [r7, #4]
  25297. 800b0ec: 681b ldr r3, [r3, #0]
  25298. 800b0ee: 4a24 ldr r2, [pc, #144] @ (800b180 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  25299. 800b0f0: 4293 cmp r3, r2
  25300. 800b0f2: d01d beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25301. 800b0f4: 687b ldr r3, [r7, #4]
  25302. 800b0f6: 681b ldr r3, [r3, #0]
  25303. 800b0f8: 4a22 ldr r2, [pc, #136] @ (800b184 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  25304. 800b0fa: 4293 cmp r3, r2
  25305. 800b0fc: d018 beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25306. 800b0fe: 687b ldr r3, [r7, #4]
  25307. 800b100: 681b ldr r3, [r3, #0]
  25308. 800b102: 4a21 ldr r2, [pc, #132] @ (800b188 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  25309. 800b104: 4293 cmp r3, r2
  25310. 800b106: d013 beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25311. 800b108: 687b ldr r3, [r7, #4]
  25312. 800b10a: 681b ldr r3, [r3, #0]
  25313. 800b10c: 4a1f ldr r2, [pc, #124] @ (800b18c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  25314. 800b10e: 4293 cmp r3, r2
  25315. 800b110: d00e beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25316. 800b112: 687b ldr r3, [r7, #4]
  25317. 800b114: 681b ldr r3, [r3, #0]
  25318. 800b116: 4a1e ldr r2, [pc, #120] @ (800b190 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  25319. 800b118: 4293 cmp r3, r2
  25320. 800b11a: d009 beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25321. 800b11c: 687b ldr r3, [r7, #4]
  25322. 800b11e: 681b ldr r3, [r3, #0]
  25323. 800b120: 4a1c ldr r2, [pc, #112] @ (800b194 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  25324. 800b122: 4293 cmp r3, r2
  25325. 800b124: d004 beq.n 800b130 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25326. 800b126: 687b ldr r3, [r7, #4]
  25327. 800b128: 681b ldr r3, [r3, #0]
  25328. 800b12a: 4a1b ldr r2, [pc, #108] @ (800b198 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  25329. 800b12c: 4293 cmp r3, r2
  25330. 800b12e: d101 bne.n 800b134 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  25331. 800b130: 2301 movs r3, #1
  25332. 800b132: e000 b.n 800b136 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  25333. 800b134: 2300 movs r3, #0
  25334. 800b136: 2b00 cmp r3, #0
  25335. 800b138: d00a beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  25336. {
  25337. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  25338. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  25339. 800b13a: 68fa ldr r2, [r7, #12]
  25340. 800b13c: 4b17 ldr r3, [pc, #92] @ (800b19c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  25341. 800b13e: 4413 add r3, r2
  25342. 800b140: 009b lsls r3, r3, #2
  25343. 800b142: 461a mov r2, r3
  25344. 800b144: 687b ldr r3, [r7, #4]
  25345. 800b146: 66da str r2, [r3, #108] @ 0x6c
  25346. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  25347. 800b148: 687b ldr r3, [r7, #4]
  25348. 800b14a: 4a15 ldr r2, [pc, #84] @ (800b1a0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  25349. 800b14c: 671a str r2, [r3, #112] @ 0x70
  25350. 800b14e: e009 b.n 800b164 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  25351. }
  25352. else
  25353. {
  25354. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  25355. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  25356. 800b150: 68fa ldr r2, [r7, #12]
  25357. 800b152: 4b14 ldr r3, [pc, #80] @ (800b1a4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  25358. 800b154: 4413 add r3, r2
  25359. 800b156: 009b lsls r3, r3, #2
  25360. 800b158: 461a mov r2, r3
  25361. 800b15a: 687b ldr r3, [r7, #4]
  25362. 800b15c: 66da str r2, [r3, #108] @ 0x6c
  25363. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  25364. 800b15e: 687b ldr r3, [r7, #4]
  25365. 800b160: 4a11 ldr r2, [pc, #68] @ (800b1a8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  25366. 800b162: 671a str r2, [r3, #112] @ 0x70
  25367. }
  25368. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  25369. 800b164: 68fb ldr r3, [r7, #12]
  25370. 800b166: 3b01 subs r3, #1
  25371. 800b168: 2201 movs r2, #1
  25372. 800b16a: 409a lsls r2, r3
  25373. 800b16c: 687b ldr r3, [r7, #4]
  25374. 800b16e: 675a str r2, [r3, #116] @ 0x74
  25375. }
  25376. }
  25377. 800b170: bf00 nop
  25378. 800b172: 3714 adds r7, #20
  25379. 800b174: 46bd mov sp, r7
  25380. 800b176: f85d 7b04 ldr.w r7, [sp], #4
  25381. 800b17a: 4770 bx lr
  25382. 800b17c: 58025408 .word 0x58025408
  25383. 800b180: 5802541c .word 0x5802541c
  25384. 800b184: 58025430 .word 0x58025430
  25385. 800b188: 58025444 .word 0x58025444
  25386. 800b18c: 58025458 .word 0x58025458
  25387. 800b190: 5802546c .word 0x5802546c
  25388. 800b194: 58025480 .word 0x58025480
  25389. 800b198: 58025494 .word 0x58025494
  25390. 800b19c: 1600963f .word 0x1600963f
  25391. 800b1a0: 58025940 .word 0x58025940
  25392. 800b1a4: 1000823f .word 0x1000823f
  25393. 800b1a8: 40020940 .word 0x40020940
  25394. 0800b1ac <HAL_GPIO_Init>:
  25395. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  25396. * the configuration information for the specified GPIO peripheral.
  25397. * @retval None
  25398. */
  25399. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  25400. {
  25401. 800b1ac: b480 push {r7}
  25402. 800b1ae: b089 sub sp, #36 @ 0x24
  25403. 800b1b0: af00 add r7, sp, #0
  25404. 800b1b2: 6078 str r0, [r7, #4]
  25405. 800b1b4: 6039 str r1, [r7, #0]
  25406. uint32_t position = 0x00U;
  25407. 800b1b6: 2300 movs r3, #0
  25408. 800b1b8: 61fb str r3, [r7, #28]
  25409. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  25410. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25411. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  25412. #else
  25413. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  25414. 800b1ba: 4b89 ldr r3, [pc, #548] @ (800b3e0 <HAL_GPIO_Init+0x234>)
  25415. 800b1bc: 617b str r3, [r7, #20]
  25416. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  25417. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  25418. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  25419. /* Configure the port pins */
  25420. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25421. 800b1be: e194 b.n 800b4ea <HAL_GPIO_Init+0x33e>
  25422. {
  25423. /* Get current io position */
  25424. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  25425. 800b1c0: 683b ldr r3, [r7, #0]
  25426. 800b1c2: 681a ldr r2, [r3, #0]
  25427. 800b1c4: 2101 movs r1, #1
  25428. 800b1c6: 69fb ldr r3, [r7, #28]
  25429. 800b1c8: fa01 f303 lsl.w r3, r1, r3
  25430. 800b1cc: 4013 ands r3, r2
  25431. 800b1ce: 613b str r3, [r7, #16]
  25432. if (iocurrent != 0x00U)
  25433. 800b1d0: 693b ldr r3, [r7, #16]
  25434. 800b1d2: 2b00 cmp r3, #0
  25435. 800b1d4: f000 8186 beq.w 800b4e4 <HAL_GPIO_Init+0x338>
  25436. {
  25437. /*--------------------- GPIO Mode Configuration ------------------------*/
  25438. /* In case of Output or Alternate function mode selection */
  25439. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  25440. 800b1d8: 683b ldr r3, [r7, #0]
  25441. 800b1da: 685b ldr r3, [r3, #4]
  25442. 800b1dc: f003 0303 and.w r3, r3, #3
  25443. 800b1e0: 2b01 cmp r3, #1
  25444. 800b1e2: d005 beq.n 800b1f0 <HAL_GPIO_Init+0x44>
  25445. 800b1e4: 683b ldr r3, [r7, #0]
  25446. 800b1e6: 685b ldr r3, [r3, #4]
  25447. 800b1e8: f003 0303 and.w r3, r3, #3
  25448. 800b1ec: 2b02 cmp r3, #2
  25449. 800b1ee: d130 bne.n 800b252 <HAL_GPIO_Init+0xa6>
  25450. {
  25451. /* Check the Speed parameter */
  25452. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  25453. /* Configure the IO Speed */
  25454. temp = GPIOx->OSPEEDR;
  25455. 800b1f0: 687b ldr r3, [r7, #4]
  25456. 800b1f2: 689b ldr r3, [r3, #8]
  25457. 800b1f4: 61bb str r3, [r7, #24]
  25458. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  25459. 800b1f6: 69fb ldr r3, [r7, #28]
  25460. 800b1f8: 005b lsls r3, r3, #1
  25461. 800b1fa: 2203 movs r2, #3
  25462. 800b1fc: fa02 f303 lsl.w r3, r2, r3
  25463. 800b200: 43db mvns r3, r3
  25464. 800b202: 69ba ldr r2, [r7, #24]
  25465. 800b204: 4013 ands r3, r2
  25466. 800b206: 61bb str r3, [r7, #24]
  25467. temp |= (GPIO_Init->Speed << (position * 2U));
  25468. 800b208: 683b ldr r3, [r7, #0]
  25469. 800b20a: 68da ldr r2, [r3, #12]
  25470. 800b20c: 69fb ldr r3, [r7, #28]
  25471. 800b20e: 005b lsls r3, r3, #1
  25472. 800b210: fa02 f303 lsl.w r3, r2, r3
  25473. 800b214: 69ba ldr r2, [r7, #24]
  25474. 800b216: 4313 orrs r3, r2
  25475. 800b218: 61bb str r3, [r7, #24]
  25476. GPIOx->OSPEEDR = temp;
  25477. 800b21a: 687b ldr r3, [r7, #4]
  25478. 800b21c: 69ba ldr r2, [r7, #24]
  25479. 800b21e: 609a str r2, [r3, #8]
  25480. /* Configure the IO Output Type */
  25481. temp = GPIOx->OTYPER;
  25482. 800b220: 687b ldr r3, [r7, #4]
  25483. 800b222: 685b ldr r3, [r3, #4]
  25484. 800b224: 61bb str r3, [r7, #24]
  25485. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  25486. 800b226: 2201 movs r2, #1
  25487. 800b228: 69fb ldr r3, [r7, #28]
  25488. 800b22a: fa02 f303 lsl.w r3, r2, r3
  25489. 800b22e: 43db mvns r3, r3
  25490. 800b230: 69ba ldr r2, [r7, #24]
  25491. 800b232: 4013 ands r3, r2
  25492. 800b234: 61bb str r3, [r7, #24]
  25493. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  25494. 800b236: 683b ldr r3, [r7, #0]
  25495. 800b238: 685b ldr r3, [r3, #4]
  25496. 800b23a: 091b lsrs r3, r3, #4
  25497. 800b23c: f003 0201 and.w r2, r3, #1
  25498. 800b240: 69fb ldr r3, [r7, #28]
  25499. 800b242: fa02 f303 lsl.w r3, r2, r3
  25500. 800b246: 69ba ldr r2, [r7, #24]
  25501. 800b248: 4313 orrs r3, r2
  25502. 800b24a: 61bb str r3, [r7, #24]
  25503. GPIOx->OTYPER = temp;
  25504. 800b24c: 687b ldr r3, [r7, #4]
  25505. 800b24e: 69ba ldr r2, [r7, #24]
  25506. 800b250: 605a str r2, [r3, #4]
  25507. }
  25508. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  25509. 800b252: 683b ldr r3, [r7, #0]
  25510. 800b254: 685b ldr r3, [r3, #4]
  25511. 800b256: f003 0303 and.w r3, r3, #3
  25512. 800b25a: 2b03 cmp r3, #3
  25513. 800b25c: d017 beq.n 800b28e <HAL_GPIO_Init+0xe2>
  25514. {
  25515. /* Check the Pull parameter */
  25516. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  25517. /* Activate the Pull-up or Pull down resistor for the current IO */
  25518. temp = GPIOx->PUPDR;
  25519. 800b25e: 687b ldr r3, [r7, #4]
  25520. 800b260: 68db ldr r3, [r3, #12]
  25521. 800b262: 61bb str r3, [r7, #24]
  25522. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  25523. 800b264: 69fb ldr r3, [r7, #28]
  25524. 800b266: 005b lsls r3, r3, #1
  25525. 800b268: 2203 movs r2, #3
  25526. 800b26a: fa02 f303 lsl.w r3, r2, r3
  25527. 800b26e: 43db mvns r3, r3
  25528. 800b270: 69ba ldr r2, [r7, #24]
  25529. 800b272: 4013 ands r3, r2
  25530. 800b274: 61bb str r3, [r7, #24]
  25531. temp |= ((GPIO_Init->Pull) << (position * 2U));
  25532. 800b276: 683b ldr r3, [r7, #0]
  25533. 800b278: 689a ldr r2, [r3, #8]
  25534. 800b27a: 69fb ldr r3, [r7, #28]
  25535. 800b27c: 005b lsls r3, r3, #1
  25536. 800b27e: fa02 f303 lsl.w r3, r2, r3
  25537. 800b282: 69ba ldr r2, [r7, #24]
  25538. 800b284: 4313 orrs r3, r2
  25539. 800b286: 61bb str r3, [r7, #24]
  25540. GPIOx->PUPDR = temp;
  25541. 800b288: 687b ldr r3, [r7, #4]
  25542. 800b28a: 69ba ldr r2, [r7, #24]
  25543. 800b28c: 60da str r2, [r3, #12]
  25544. }
  25545. /* In case of Alternate function mode selection */
  25546. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  25547. 800b28e: 683b ldr r3, [r7, #0]
  25548. 800b290: 685b ldr r3, [r3, #4]
  25549. 800b292: f003 0303 and.w r3, r3, #3
  25550. 800b296: 2b02 cmp r3, #2
  25551. 800b298: d123 bne.n 800b2e2 <HAL_GPIO_Init+0x136>
  25552. /* Check the Alternate function parameters */
  25553. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  25554. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  25555. /* Configure Alternate function mapped with the current IO */
  25556. temp = GPIOx->AFR[position >> 3U];
  25557. 800b29a: 69fb ldr r3, [r7, #28]
  25558. 800b29c: 08da lsrs r2, r3, #3
  25559. 800b29e: 687b ldr r3, [r7, #4]
  25560. 800b2a0: 3208 adds r2, #8
  25561. 800b2a2: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  25562. 800b2a6: 61bb str r3, [r7, #24]
  25563. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  25564. 800b2a8: 69fb ldr r3, [r7, #28]
  25565. 800b2aa: f003 0307 and.w r3, r3, #7
  25566. 800b2ae: 009b lsls r3, r3, #2
  25567. 800b2b0: 220f movs r2, #15
  25568. 800b2b2: fa02 f303 lsl.w r3, r2, r3
  25569. 800b2b6: 43db mvns r3, r3
  25570. 800b2b8: 69ba ldr r2, [r7, #24]
  25571. 800b2ba: 4013 ands r3, r2
  25572. 800b2bc: 61bb str r3, [r7, #24]
  25573. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  25574. 800b2be: 683b ldr r3, [r7, #0]
  25575. 800b2c0: 691a ldr r2, [r3, #16]
  25576. 800b2c2: 69fb ldr r3, [r7, #28]
  25577. 800b2c4: f003 0307 and.w r3, r3, #7
  25578. 800b2c8: 009b lsls r3, r3, #2
  25579. 800b2ca: fa02 f303 lsl.w r3, r2, r3
  25580. 800b2ce: 69ba ldr r2, [r7, #24]
  25581. 800b2d0: 4313 orrs r3, r2
  25582. 800b2d2: 61bb str r3, [r7, #24]
  25583. GPIOx->AFR[position >> 3U] = temp;
  25584. 800b2d4: 69fb ldr r3, [r7, #28]
  25585. 800b2d6: 08da lsrs r2, r3, #3
  25586. 800b2d8: 687b ldr r3, [r7, #4]
  25587. 800b2da: 3208 adds r2, #8
  25588. 800b2dc: 69b9 ldr r1, [r7, #24]
  25589. 800b2de: f843 1022 str.w r1, [r3, r2, lsl #2]
  25590. }
  25591. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  25592. temp = GPIOx->MODER;
  25593. 800b2e2: 687b ldr r3, [r7, #4]
  25594. 800b2e4: 681b ldr r3, [r3, #0]
  25595. 800b2e6: 61bb str r3, [r7, #24]
  25596. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  25597. 800b2e8: 69fb ldr r3, [r7, #28]
  25598. 800b2ea: 005b lsls r3, r3, #1
  25599. 800b2ec: 2203 movs r2, #3
  25600. 800b2ee: fa02 f303 lsl.w r3, r2, r3
  25601. 800b2f2: 43db mvns r3, r3
  25602. 800b2f4: 69ba ldr r2, [r7, #24]
  25603. 800b2f6: 4013 ands r3, r2
  25604. 800b2f8: 61bb str r3, [r7, #24]
  25605. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  25606. 800b2fa: 683b ldr r3, [r7, #0]
  25607. 800b2fc: 685b ldr r3, [r3, #4]
  25608. 800b2fe: f003 0203 and.w r2, r3, #3
  25609. 800b302: 69fb ldr r3, [r7, #28]
  25610. 800b304: 005b lsls r3, r3, #1
  25611. 800b306: fa02 f303 lsl.w r3, r2, r3
  25612. 800b30a: 69ba ldr r2, [r7, #24]
  25613. 800b30c: 4313 orrs r3, r2
  25614. 800b30e: 61bb str r3, [r7, #24]
  25615. GPIOx->MODER = temp;
  25616. 800b310: 687b ldr r3, [r7, #4]
  25617. 800b312: 69ba ldr r2, [r7, #24]
  25618. 800b314: 601a str r2, [r3, #0]
  25619. /*--------------------- EXTI Mode Configuration ------------------------*/
  25620. /* Configure the External Interrupt or event for the current IO */
  25621. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  25622. 800b316: 683b ldr r3, [r7, #0]
  25623. 800b318: 685b ldr r3, [r3, #4]
  25624. 800b31a: f403 3340 and.w r3, r3, #196608 @ 0x30000
  25625. 800b31e: 2b00 cmp r3, #0
  25626. 800b320: f000 80e0 beq.w 800b4e4 <HAL_GPIO_Init+0x338>
  25627. {
  25628. /* Enable SYSCFG Clock */
  25629. __HAL_RCC_SYSCFG_CLK_ENABLE();
  25630. 800b324: 4b2f ldr r3, [pc, #188] @ (800b3e4 <HAL_GPIO_Init+0x238>)
  25631. 800b326: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25632. 800b32a: 4a2e ldr r2, [pc, #184] @ (800b3e4 <HAL_GPIO_Init+0x238>)
  25633. 800b32c: f043 0302 orr.w r3, r3, #2
  25634. 800b330: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  25635. 800b334: 4b2b ldr r3, [pc, #172] @ (800b3e4 <HAL_GPIO_Init+0x238>)
  25636. 800b336: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25637. 800b33a: f003 0302 and.w r3, r3, #2
  25638. 800b33e: 60fb str r3, [r7, #12]
  25639. 800b340: 68fb ldr r3, [r7, #12]
  25640. temp = SYSCFG->EXTICR[position >> 2U];
  25641. 800b342: 4a29 ldr r2, [pc, #164] @ (800b3e8 <HAL_GPIO_Init+0x23c>)
  25642. 800b344: 69fb ldr r3, [r7, #28]
  25643. 800b346: 089b lsrs r3, r3, #2
  25644. 800b348: 3302 adds r3, #2
  25645. 800b34a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  25646. 800b34e: 61bb str r3, [r7, #24]
  25647. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  25648. 800b350: 69fb ldr r3, [r7, #28]
  25649. 800b352: f003 0303 and.w r3, r3, #3
  25650. 800b356: 009b lsls r3, r3, #2
  25651. 800b358: 220f movs r2, #15
  25652. 800b35a: fa02 f303 lsl.w r3, r2, r3
  25653. 800b35e: 43db mvns r3, r3
  25654. 800b360: 69ba ldr r2, [r7, #24]
  25655. 800b362: 4013 ands r3, r2
  25656. 800b364: 61bb str r3, [r7, #24]
  25657. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  25658. 800b366: 687b ldr r3, [r7, #4]
  25659. 800b368: 4a20 ldr r2, [pc, #128] @ (800b3ec <HAL_GPIO_Init+0x240>)
  25660. 800b36a: 4293 cmp r3, r2
  25661. 800b36c: d052 beq.n 800b414 <HAL_GPIO_Init+0x268>
  25662. 800b36e: 687b ldr r3, [r7, #4]
  25663. 800b370: 4a1f ldr r2, [pc, #124] @ (800b3f0 <HAL_GPIO_Init+0x244>)
  25664. 800b372: 4293 cmp r3, r2
  25665. 800b374: d031 beq.n 800b3da <HAL_GPIO_Init+0x22e>
  25666. 800b376: 687b ldr r3, [r7, #4]
  25667. 800b378: 4a1e ldr r2, [pc, #120] @ (800b3f4 <HAL_GPIO_Init+0x248>)
  25668. 800b37a: 4293 cmp r3, r2
  25669. 800b37c: d02b beq.n 800b3d6 <HAL_GPIO_Init+0x22a>
  25670. 800b37e: 687b ldr r3, [r7, #4]
  25671. 800b380: 4a1d ldr r2, [pc, #116] @ (800b3f8 <HAL_GPIO_Init+0x24c>)
  25672. 800b382: 4293 cmp r3, r2
  25673. 800b384: d025 beq.n 800b3d2 <HAL_GPIO_Init+0x226>
  25674. 800b386: 687b ldr r3, [r7, #4]
  25675. 800b388: 4a1c ldr r2, [pc, #112] @ (800b3fc <HAL_GPIO_Init+0x250>)
  25676. 800b38a: 4293 cmp r3, r2
  25677. 800b38c: d01f beq.n 800b3ce <HAL_GPIO_Init+0x222>
  25678. 800b38e: 687b ldr r3, [r7, #4]
  25679. 800b390: 4a1b ldr r2, [pc, #108] @ (800b400 <HAL_GPIO_Init+0x254>)
  25680. 800b392: 4293 cmp r3, r2
  25681. 800b394: d019 beq.n 800b3ca <HAL_GPIO_Init+0x21e>
  25682. 800b396: 687b ldr r3, [r7, #4]
  25683. 800b398: 4a1a ldr r2, [pc, #104] @ (800b404 <HAL_GPIO_Init+0x258>)
  25684. 800b39a: 4293 cmp r3, r2
  25685. 800b39c: d013 beq.n 800b3c6 <HAL_GPIO_Init+0x21a>
  25686. 800b39e: 687b ldr r3, [r7, #4]
  25687. 800b3a0: 4a19 ldr r2, [pc, #100] @ (800b408 <HAL_GPIO_Init+0x25c>)
  25688. 800b3a2: 4293 cmp r3, r2
  25689. 800b3a4: d00d beq.n 800b3c2 <HAL_GPIO_Init+0x216>
  25690. 800b3a6: 687b ldr r3, [r7, #4]
  25691. 800b3a8: 4a18 ldr r2, [pc, #96] @ (800b40c <HAL_GPIO_Init+0x260>)
  25692. 800b3aa: 4293 cmp r3, r2
  25693. 800b3ac: d007 beq.n 800b3be <HAL_GPIO_Init+0x212>
  25694. 800b3ae: 687b ldr r3, [r7, #4]
  25695. 800b3b0: 4a17 ldr r2, [pc, #92] @ (800b410 <HAL_GPIO_Init+0x264>)
  25696. 800b3b2: 4293 cmp r3, r2
  25697. 800b3b4: d101 bne.n 800b3ba <HAL_GPIO_Init+0x20e>
  25698. 800b3b6: 2309 movs r3, #9
  25699. 800b3b8: e02d b.n 800b416 <HAL_GPIO_Init+0x26a>
  25700. 800b3ba: 230a movs r3, #10
  25701. 800b3bc: e02b b.n 800b416 <HAL_GPIO_Init+0x26a>
  25702. 800b3be: 2308 movs r3, #8
  25703. 800b3c0: e029 b.n 800b416 <HAL_GPIO_Init+0x26a>
  25704. 800b3c2: 2307 movs r3, #7
  25705. 800b3c4: e027 b.n 800b416 <HAL_GPIO_Init+0x26a>
  25706. 800b3c6: 2306 movs r3, #6
  25707. 800b3c8: e025 b.n 800b416 <HAL_GPIO_Init+0x26a>
  25708. 800b3ca: 2305 movs r3, #5
  25709. 800b3cc: e023 b.n 800b416 <HAL_GPIO_Init+0x26a>
  25710. 800b3ce: 2304 movs r3, #4
  25711. 800b3d0: e021 b.n 800b416 <HAL_GPIO_Init+0x26a>
  25712. 800b3d2: 2303 movs r3, #3
  25713. 800b3d4: e01f b.n 800b416 <HAL_GPIO_Init+0x26a>
  25714. 800b3d6: 2302 movs r3, #2
  25715. 800b3d8: e01d b.n 800b416 <HAL_GPIO_Init+0x26a>
  25716. 800b3da: 2301 movs r3, #1
  25717. 800b3dc: e01b b.n 800b416 <HAL_GPIO_Init+0x26a>
  25718. 800b3de: bf00 nop
  25719. 800b3e0: 58000080 .word 0x58000080
  25720. 800b3e4: 58024400 .word 0x58024400
  25721. 800b3e8: 58000400 .word 0x58000400
  25722. 800b3ec: 58020000 .word 0x58020000
  25723. 800b3f0: 58020400 .word 0x58020400
  25724. 800b3f4: 58020800 .word 0x58020800
  25725. 800b3f8: 58020c00 .word 0x58020c00
  25726. 800b3fc: 58021000 .word 0x58021000
  25727. 800b400: 58021400 .word 0x58021400
  25728. 800b404: 58021800 .word 0x58021800
  25729. 800b408: 58021c00 .word 0x58021c00
  25730. 800b40c: 58022000 .word 0x58022000
  25731. 800b410: 58022400 .word 0x58022400
  25732. 800b414: 2300 movs r3, #0
  25733. 800b416: 69fa ldr r2, [r7, #28]
  25734. 800b418: f002 0203 and.w r2, r2, #3
  25735. 800b41c: 0092 lsls r2, r2, #2
  25736. 800b41e: 4093 lsls r3, r2
  25737. 800b420: 69ba ldr r2, [r7, #24]
  25738. 800b422: 4313 orrs r3, r2
  25739. 800b424: 61bb str r3, [r7, #24]
  25740. SYSCFG->EXTICR[position >> 2U] = temp;
  25741. 800b426: 4938 ldr r1, [pc, #224] @ (800b508 <HAL_GPIO_Init+0x35c>)
  25742. 800b428: 69fb ldr r3, [r7, #28]
  25743. 800b42a: 089b lsrs r3, r3, #2
  25744. 800b42c: 3302 adds r3, #2
  25745. 800b42e: 69ba ldr r2, [r7, #24]
  25746. 800b430: f841 2023 str.w r2, [r1, r3, lsl #2]
  25747. /* Clear Rising Falling edge configuration */
  25748. temp = EXTI->RTSR1;
  25749. 800b434: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25750. 800b438: 681b ldr r3, [r3, #0]
  25751. 800b43a: 61bb str r3, [r7, #24]
  25752. temp &= ~(iocurrent);
  25753. 800b43c: 693b ldr r3, [r7, #16]
  25754. 800b43e: 43db mvns r3, r3
  25755. 800b440: 69ba ldr r2, [r7, #24]
  25756. 800b442: 4013 ands r3, r2
  25757. 800b444: 61bb str r3, [r7, #24]
  25758. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  25759. 800b446: 683b ldr r3, [r7, #0]
  25760. 800b448: 685b ldr r3, [r3, #4]
  25761. 800b44a: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  25762. 800b44e: 2b00 cmp r3, #0
  25763. 800b450: d003 beq.n 800b45a <HAL_GPIO_Init+0x2ae>
  25764. {
  25765. temp |= iocurrent;
  25766. 800b452: 69ba ldr r2, [r7, #24]
  25767. 800b454: 693b ldr r3, [r7, #16]
  25768. 800b456: 4313 orrs r3, r2
  25769. 800b458: 61bb str r3, [r7, #24]
  25770. }
  25771. EXTI->RTSR1 = temp;
  25772. 800b45a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25773. 800b45e: 69bb ldr r3, [r7, #24]
  25774. 800b460: 6013 str r3, [r2, #0]
  25775. temp = EXTI->FTSR1;
  25776. 800b462: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25777. 800b466: 685b ldr r3, [r3, #4]
  25778. 800b468: 61bb str r3, [r7, #24]
  25779. temp &= ~(iocurrent);
  25780. 800b46a: 693b ldr r3, [r7, #16]
  25781. 800b46c: 43db mvns r3, r3
  25782. 800b46e: 69ba ldr r2, [r7, #24]
  25783. 800b470: 4013 ands r3, r2
  25784. 800b472: 61bb str r3, [r7, #24]
  25785. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  25786. 800b474: 683b ldr r3, [r7, #0]
  25787. 800b476: 685b ldr r3, [r3, #4]
  25788. 800b478: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  25789. 800b47c: 2b00 cmp r3, #0
  25790. 800b47e: d003 beq.n 800b488 <HAL_GPIO_Init+0x2dc>
  25791. {
  25792. temp |= iocurrent;
  25793. 800b480: 69ba ldr r2, [r7, #24]
  25794. 800b482: 693b ldr r3, [r7, #16]
  25795. 800b484: 4313 orrs r3, r2
  25796. 800b486: 61bb str r3, [r7, #24]
  25797. }
  25798. EXTI->FTSR1 = temp;
  25799. 800b488: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25800. 800b48c: 69bb ldr r3, [r7, #24]
  25801. 800b48e: 6053 str r3, [r2, #4]
  25802. temp = EXTI_CurrentCPU->EMR1;
  25803. 800b490: 697b ldr r3, [r7, #20]
  25804. 800b492: 685b ldr r3, [r3, #4]
  25805. 800b494: 61bb str r3, [r7, #24]
  25806. temp &= ~(iocurrent);
  25807. 800b496: 693b ldr r3, [r7, #16]
  25808. 800b498: 43db mvns r3, r3
  25809. 800b49a: 69ba ldr r2, [r7, #24]
  25810. 800b49c: 4013 ands r3, r2
  25811. 800b49e: 61bb str r3, [r7, #24]
  25812. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  25813. 800b4a0: 683b ldr r3, [r7, #0]
  25814. 800b4a2: 685b ldr r3, [r3, #4]
  25815. 800b4a4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25816. 800b4a8: 2b00 cmp r3, #0
  25817. 800b4aa: d003 beq.n 800b4b4 <HAL_GPIO_Init+0x308>
  25818. {
  25819. temp |= iocurrent;
  25820. 800b4ac: 69ba ldr r2, [r7, #24]
  25821. 800b4ae: 693b ldr r3, [r7, #16]
  25822. 800b4b0: 4313 orrs r3, r2
  25823. 800b4b2: 61bb str r3, [r7, #24]
  25824. }
  25825. EXTI_CurrentCPU->EMR1 = temp;
  25826. 800b4b4: 697b ldr r3, [r7, #20]
  25827. 800b4b6: 69ba ldr r2, [r7, #24]
  25828. 800b4b8: 605a str r2, [r3, #4]
  25829. /* Clear EXTI line configuration */
  25830. temp = EXTI_CurrentCPU->IMR1;
  25831. 800b4ba: 697b ldr r3, [r7, #20]
  25832. 800b4bc: 681b ldr r3, [r3, #0]
  25833. 800b4be: 61bb str r3, [r7, #24]
  25834. temp &= ~(iocurrent);
  25835. 800b4c0: 693b ldr r3, [r7, #16]
  25836. 800b4c2: 43db mvns r3, r3
  25837. 800b4c4: 69ba ldr r2, [r7, #24]
  25838. 800b4c6: 4013 ands r3, r2
  25839. 800b4c8: 61bb str r3, [r7, #24]
  25840. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  25841. 800b4ca: 683b ldr r3, [r7, #0]
  25842. 800b4cc: 685b ldr r3, [r3, #4]
  25843. 800b4ce: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25844. 800b4d2: 2b00 cmp r3, #0
  25845. 800b4d4: d003 beq.n 800b4de <HAL_GPIO_Init+0x332>
  25846. {
  25847. temp |= iocurrent;
  25848. 800b4d6: 69ba ldr r2, [r7, #24]
  25849. 800b4d8: 693b ldr r3, [r7, #16]
  25850. 800b4da: 4313 orrs r3, r2
  25851. 800b4dc: 61bb str r3, [r7, #24]
  25852. }
  25853. EXTI_CurrentCPU->IMR1 = temp;
  25854. 800b4de: 697b ldr r3, [r7, #20]
  25855. 800b4e0: 69ba ldr r2, [r7, #24]
  25856. 800b4e2: 601a str r2, [r3, #0]
  25857. }
  25858. }
  25859. position++;
  25860. 800b4e4: 69fb ldr r3, [r7, #28]
  25861. 800b4e6: 3301 adds r3, #1
  25862. 800b4e8: 61fb str r3, [r7, #28]
  25863. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25864. 800b4ea: 683b ldr r3, [r7, #0]
  25865. 800b4ec: 681a ldr r2, [r3, #0]
  25866. 800b4ee: 69fb ldr r3, [r7, #28]
  25867. 800b4f0: fa22 f303 lsr.w r3, r2, r3
  25868. 800b4f4: 2b00 cmp r3, #0
  25869. 800b4f6: f47f ae63 bne.w 800b1c0 <HAL_GPIO_Init+0x14>
  25870. }
  25871. }
  25872. 800b4fa: bf00 nop
  25873. 800b4fc: bf00 nop
  25874. 800b4fe: 3724 adds r7, #36 @ 0x24
  25875. 800b500: 46bd mov sp, r7
  25876. 800b502: f85d 7b04 ldr.w r7, [sp], #4
  25877. 800b506: 4770 bx lr
  25878. 800b508: 58000400 .word 0x58000400
  25879. 0800b50c <HAL_GPIO_ReadPin>:
  25880. * @param GPIO_Pin: specifies the port bit to read.
  25881. * This parameter can be GPIO_PIN_x where x can be (0..15).
  25882. * @retval The input port pin value.
  25883. */
  25884. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25885. {
  25886. 800b50c: b480 push {r7}
  25887. 800b50e: b085 sub sp, #20
  25888. 800b510: af00 add r7, sp, #0
  25889. 800b512: 6078 str r0, [r7, #4]
  25890. 800b514: 460b mov r3, r1
  25891. 800b516: 807b strh r3, [r7, #2]
  25892. GPIO_PinState bitstatus;
  25893. /* Check the parameters */
  25894. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25895. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  25896. 800b518: 687b ldr r3, [r7, #4]
  25897. 800b51a: 691a ldr r2, [r3, #16]
  25898. 800b51c: 887b ldrh r3, [r7, #2]
  25899. 800b51e: 4013 ands r3, r2
  25900. 800b520: 2b00 cmp r3, #0
  25901. 800b522: d002 beq.n 800b52a <HAL_GPIO_ReadPin+0x1e>
  25902. {
  25903. bitstatus = GPIO_PIN_SET;
  25904. 800b524: 2301 movs r3, #1
  25905. 800b526: 73fb strb r3, [r7, #15]
  25906. 800b528: e001 b.n 800b52e <HAL_GPIO_ReadPin+0x22>
  25907. }
  25908. else
  25909. {
  25910. bitstatus = GPIO_PIN_RESET;
  25911. 800b52a: 2300 movs r3, #0
  25912. 800b52c: 73fb strb r3, [r7, #15]
  25913. }
  25914. return bitstatus;
  25915. 800b52e: 7bfb ldrb r3, [r7, #15]
  25916. }
  25917. 800b530: 4618 mov r0, r3
  25918. 800b532: 3714 adds r7, #20
  25919. 800b534: 46bd mov sp, r7
  25920. 800b536: f85d 7b04 ldr.w r7, [sp], #4
  25921. 800b53a: 4770 bx lr
  25922. 0800b53c <HAL_GPIO_WritePin>:
  25923. * @arg GPIO_PIN_RESET: to clear the port pin
  25924. * @arg GPIO_PIN_SET: to set the port pin
  25925. * @retval None
  25926. */
  25927. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  25928. {
  25929. 800b53c: b480 push {r7}
  25930. 800b53e: b083 sub sp, #12
  25931. 800b540: af00 add r7, sp, #0
  25932. 800b542: 6078 str r0, [r7, #4]
  25933. 800b544: 460b mov r3, r1
  25934. 800b546: 807b strh r3, [r7, #2]
  25935. 800b548: 4613 mov r3, r2
  25936. 800b54a: 707b strb r3, [r7, #1]
  25937. /* Check the parameters */
  25938. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25939. assert_param(IS_GPIO_PIN_ACTION(PinState));
  25940. if (PinState != GPIO_PIN_RESET)
  25941. 800b54c: 787b ldrb r3, [r7, #1]
  25942. 800b54e: 2b00 cmp r3, #0
  25943. 800b550: d003 beq.n 800b55a <HAL_GPIO_WritePin+0x1e>
  25944. {
  25945. GPIOx->BSRR = GPIO_Pin;
  25946. 800b552: 887a ldrh r2, [r7, #2]
  25947. 800b554: 687b ldr r3, [r7, #4]
  25948. 800b556: 619a str r2, [r3, #24]
  25949. }
  25950. else
  25951. {
  25952. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25953. }
  25954. }
  25955. 800b558: e003 b.n 800b562 <HAL_GPIO_WritePin+0x26>
  25956. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25957. 800b55a: 887b ldrh r3, [r7, #2]
  25958. 800b55c: 041a lsls r2, r3, #16
  25959. 800b55e: 687b ldr r3, [r7, #4]
  25960. 800b560: 619a str r2, [r3, #24]
  25961. }
  25962. 800b562: bf00 nop
  25963. 800b564: 370c adds r7, #12
  25964. 800b566: 46bd mov sp, r7
  25965. 800b568: f85d 7b04 ldr.w r7, [sp], #4
  25966. 800b56c: 4770 bx lr
  25967. 0800b56e <HAL_GPIO_TogglePin>:
  25968. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  25969. * @param GPIO_Pin: Specifies the pins to be toggled.
  25970. * @retval None
  25971. */
  25972. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25973. {
  25974. 800b56e: b480 push {r7}
  25975. 800b570: b085 sub sp, #20
  25976. 800b572: af00 add r7, sp, #0
  25977. 800b574: 6078 str r0, [r7, #4]
  25978. 800b576: 460b mov r3, r1
  25979. 800b578: 807b strh r3, [r7, #2]
  25980. /* Check the parameters */
  25981. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25982. /* get current Output Data Register value */
  25983. odr = GPIOx->ODR;
  25984. 800b57a: 687b ldr r3, [r7, #4]
  25985. 800b57c: 695b ldr r3, [r3, #20]
  25986. 800b57e: 60fb str r3, [r7, #12]
  25987. /* Set selected pins that were at low level, and reset ones that were high */
  25988. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  25989. 800b580: 887a ldrh r2, [r7, #2]
  25990. 800b582: 68fb ldr r3, [r7, #12]
  25991. 800b584: 4013 ands r3, r2
  25992. 800b586: 041a lsls r2, r3, #16
  25993. 800b588: 68fb ldr r3, [r7, #12]
  25994. 800b58a: 43d9 mvns r1, r3
  25995. 800b58c: 887b ldrh r3, [r7, #2]
  25996. 800b58e: 400b ands r3, r1
  25997. 800b590: 431a orrs r2, r3
  25998. 800b592: 687b ldr r3, [r7, #4]
  25999. 800b594: 619a str r2, [r3, #24]
  26000. }
  26001. 800b596: bf00 nop
  26002. 800b598: 3714 adds r7, #20
  26003. 800b59a: 46bd mov sp, r7
  26004. 800b59c: f85d 7b04 ldr.w r7, [sp], #4
  26005. 800b5a0: 4770 bx lr
  26006. 0800b5a2 <HAL_GPIO_EXTI_IRQHandler>:
  26007. * @brief Handle EXTI interrupt request.
  26008. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  26009. * @retval None
  26010. */
  26011. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  26012. {
  26013. 800b5a2: b580 push {r7, lr}
  26014. 800b5a4: b082 sub sp, #8
  26015. 800b5a6: af00 add r7, sp, #0
  26016. 800b5a8: 4603 mov r3, r0
  26017. 800b5aa: 80fb strh r3, [r7, #6]
  26018. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  26019. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26020. }
  26021. #else
  26022. /* EXTI line interrupt detected */
  26023. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  26024. 800b5ac: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26025. 800b5b0: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  26026. 800b5b4: 88fb ldrh r3, [r7, #6]
  26027. 800b5b6: 4013 ands r3, r2
  26028. 800b5b8: 2b00 cmp r3, #0
  26029. 800b5ba: d008 beq.n 800b5ce <HAL_GPIO_EXTI_IRQHandler+0x2c>
  26030. {
  26031. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  26032. 800b5bc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26033. 800b5c0: 88fb ldrh r3, [r7, #6]
  26034. 800b5c2: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  26035. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26036. 800b5c6: 88fb ldrh r3, [r7, #6]
  26037. 800b5c8: 4618 mov r0, r3
  26038. 800b5ca: f7f5 f823 bl 8000614 <HAL_GPIO_EXTI_Callback>
  26039. }
  26040. #endif
  26041. }
  26042. 800b5ce: bf00 nop
  26043. 800b5d0: 3708 adds r7, #8
  26044. 800b5d2: 46bd mov sp, r7
  26045. 800b5d4: bd80 pop {r7, pc}
  26046. 0800b5d6 <HAL_IWDG_Init>:
  26047. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26048. * the configuration information for the specified IWDG module.
  26049. * @retval HAL status
  26050. */
  26051. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  26052. {
  26053. 800b5d6: b580 push {r7, lr}
  26054. 800b5d8: b084 sub sp, #16
  26055. 800b5da: af00 add r7, sp, #0
  26056. 800b5dc: 6078 str r0, [r7, #4]
  26057. uint32_t tickstart;
  26058. /* Check the IWDG handle allocation */
  26059. if (hiwdg == NULL)
  26060. 800b5de: 687b ldr r3, [r7, #4]
  26061. 800b5e0: 2b00 cmp r3, #0
  26062. 800b5e2: d101 bne.n 800b5e8 <HAL_IWDG_Init+0x12>
  26063. {
  26064. return HAL_ERROR;
  26065. 800b5e4: 2301 movs r3, #1
  26066. 800b5e6: e041 b.n 800b66c <HAL_IWDG_Init+0x96>
  26067. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  26068. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  26069. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  26070. /* Enable IWDG. LSI is turned on automatically */
  26071. __HAL_IWDG_START(hiwdg);
  26072. 800b5e8: 687b ldr r3, [r7, #4]
  26073. 800b5ea: 681b ldr r3, [r3, #0]
  26074. 800b5ec: f64c 42cc movw r2, #52428 @ 0xcccc
  26075. 800b5f0: 601a str r2, [r3, #0]
  26076. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  26077. 0x5555 in KR */
  26078. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  26079. 800b5f2: 687b ldr r3, [r7, #4]
  26080. 800b5f4: 681b ldr r3, [r3, #0]
  26081. 800b5f6: f245 5255 movw r2, #21845 @ 0x5555
  26082. 800b5fa: 601a str r2, [r3, #0]
  26083. /* Write to IWDG registers the Prescaler & Reload values to work with */
  26084. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  26085. 800b5fc: 687b ldr r3, [r7, #4]
  26086. 800b5fe: 681b ldr r3, [r3, #0]
  26087. 800b600: 687a ldr r2, [r7, #4]
  26088. 800b602: 6852 ldr r2, [r2, #4]
  26089. 800b604: 605a str r2, [r3, #4]
  26090. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  26091. 800b606: 687b ldr r3, [r7, #4]
  26092. 800b608: 681b ldr r3, [r3, #0]
  26093. 800b60a: 687a ldr r2, [r7, #4]
  26094. 800b60c: 6892 ldr r2, [r2, #8]
  26095. 800b60e: 609a str r2, [r3, #8]
  26096. /* Check pending flag, if previous update not done, return timeout */
  26097. tickstart = HAL_GetTick();
  26098. 800b610: f7fa fbf4 bl 8005dfc <HAL_GetTick>
  26099. 800b614: 60f8 str r0, [r7, #12]
  26100. /* Wait for register to be updated */
  26101. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26102. 800b616: e00f b.n 800b638 <HAL_IWDG_Init+0x62>
  26103. {
  26104. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  26105. 800b618: f7fa fbf0 bl 8005dfc <HAL_GetTick>
  26106. 800b61c: 4602 mov r2, r0
  26107. 800b61e: 68fb ldr r3, [r7, #12]
  26108. 800b620: 1ad3 subs r3, r2, r3
  26109. 800b622: 2b31 cmp r3, #49 @ 0x31
  26110. 800b624: d908 bls.n 800b638 <HAL_IWDG_Init+0x62>
  26111. {
  26112. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26113. 800b626: 687b ldr r3, [r7, #4]
  26114. 800b628: 681b ldr r3, [r3, #0]
  26115. 800b62a: 68db ldr r3, [r3, #12]
  26116. 800b62c: f003 0307 and.w r3, r3, #7
  26117. 800b630: 2b00 cmp r3, #0
  26118. 800b632: d001 beq.n 800b638 <HAL_IWDG_Init+0x62>
  26119. {
  26120. return HAL_TIMEOUT;
  26121. 800b634: 2303 movs r3, #3
  26122. 800b636: e019 b.n 800b66c <HAL_IWDG_Init+0x96>
  26123. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26124. 800b638: 687b ldr r3, [r7, #4]
  26125. 800b63a: 681b ldr r3, [r3, #0]
  26126. 800b63c: 68db ldr r3, [r3, #12]
  26127. 800b63e: f003 0307 and.w r3, r3, #7
  26128. 800b642: 2b00 cmp r3, #0
  26129. 800b644: d1e8 bne.n 800b618 <HAL_IWDG_Init+0x42>
  26130. }
  26131. }
  26132. /* If window parameter is different than current value, modify window
  26133. register */
  26134. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  26135. 800b646: 687b ldr r3, [r7, #4]
  26136. 800b648: 681b ldr r3, [r3, #0]
  26137. 800b64a: 691a ldr r2, [r3, #16]
  26138. 800b64c: 687b ldr r3, [r7, #4]
  26139. 800b64e: 68db ldr r3, [r3, #12]
  26140. 800b650: 429a cmp r2, r3
  26141. 800b652: d005 beq.n 800b660 <HAL_IWDG_Init+0x8a>
  26142. {
  26143. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  26144. even if window feature is disabled, Watchdog will be reloaded by writing
  26145. windows register */
  26146. hiwdg->Instance->WINR = hiwdg->Init.Window;
  26147. 800b654: 687b ldr r3, [r7, #4]
  26148. 800b656: 681b ldr r3, [r3, #0]
  26149. 800b658: 687a ldr r2, [r7, #4]
  26150. 800b65a: 68d2 ldr r2, [r2, #12]
  26151. 800b65c: 611a str r2, [r3, #16]
  26152. 800b65e: e004 b.n 800b66a <HAL_IWDG_Init+0x94>
  26153. }
  26154. else
  26155. {
  26156. /* Reload IWDG counter with value defined in the reload register */
  26157. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26158. 800b660: 687b ldr r3, [r7, #4]
  26159. 800b662: 681b ldr r3, [r3, #0]
  26160. 800b664: f64a 22aa movw r2, #43690 @ 0xaaaa
  26161. 800b668: 601a str r2, [r3, #0]
  26162. }
  26163. /* Return function status */
  26164. return HAL_OK;
  26165. 800b66a: 2300 movs r3, #0
  26166. }
  26167. 800b66c: 4618 mov r0, r3
  26168. 800b66e: 3710 adds r7, #16
  26169. 800b670: 46bd mov sp, r7
  26170. 800b672: bd80 pop {r7, pc}
  26171. 0800b674 <HAL_IWDG_Refresh>:
  26172. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26173. * the configuration information for the specified IWDG module.
  26174. * @retval HAL status
  26175. */
  26176. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  26177. {
  26178. 800b674: b480 push {r7}
  26179. 800b676: b083 sub sp, #12
  26180. 800b678: af00 add r7, sp, #0
  26181. 800b67a: 6078 str r0, [r7, #4]
  26182. /* Reload IWDG counter with value defined in the reload register */
  26183. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26184. 800b67c: 687b ldr r3, [r7, #4]
  26185. 800b67e: 681b ldr r3, [r3, #0]
  26186. 800b680: f64a 22aa movw r2, #43690 @ 0xaaaa
  26187. 800b684: 601a str r2, [r3, #0]
  26188. /* Return function status */
  26189. return HAL_OK;
  26190. 800b686: 2300 movs r3, #0
  26191. }
  26192. 800b688: 4618 mov r0, r3
  26193. 800b68a: 370c adds r7, #12
  26194. 800b68c: 46bd mov sp, r7
  26195. 800b68e: f85d 7b04 ldr.w r7, [sp], #4
  26196. 800b692: 4770 bx lr
  26197. 0800b694 <HAL_PWR_ConfigPVD>:
  26198. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26199. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  26200. * @retval None.
  26201. */
  26202. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  26203. {
  26204. 800b694: b480 push {r7}
  26205. 800b696: b083 sub sp, #12
  26206. 800b698: af00 add r7, sp, #0
  26207. 800b69a: 6078 str r0, [r7, #4]
  26208. /* Check the PVD configuration parameter */
  26209. if (sConfigPVD == NULL)
  26210. 800b69c: 687b ldr r3, [r7, #4]
  26211. 800b69e: 2b00 cmp r3, #0
  26212. 800b6a0: d069 beq.n 800b776 <HAL_PWR_ConfigPVD+0xe2>
  26213. /* Check the parameters */
  26214. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  26215. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  26216. /* Set PLS[7:5] bits according to PVDLevel value */
  26217. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  26218. 800b6a2: 4b38 ldr r3, [pc, #224] @ (800b784 <HAL_PWR_ConfigPVD+0xf0>)
  26219. 800b6a4: 681b ldr r3, [r3, #0]
  26220. 800b6a6: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  26221. 800b6aa: 687b ldr r3, [r7, #4]
  26222. 800b6ac: 681b ldr r3, [r3, #0]
  26223. 800b6ae: 4935 ldr r1, [pc, #212] @ (800b784 <HAL_PWR_ConfigPVD+0xf0>)
  26224. 800b6b0: 4313 orrs r3, r2
  26225. 800b6b2: 600b str r3, [r1, #0]
  26226. /* Clear previous config */
  26227. #if !defined (DUAL_CORE)
  26228. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  26229. 800b6b4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26230. 800b6b8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26231. 800b6bc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26232. 800b6c0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26233. 800b6c4: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26234. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  26235. 800b6c8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26236. 800b6cc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26237. 800b6d0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26238. 800b6d4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26239. 800b6d8: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26240. #endif /* !defined (DUAL_CORE) */
  26241. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  26242. 800b6dc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26243. 800b6e0: 681b ldr r3, [r3, #0]
  26244. 800b6e2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26245. 800b6e6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26246. 800b6ea: 6013 str r3, [r2, #0]
  26247. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  26248. 800b6ec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26249. 800b6f0: 685b ldr r3, [r3, #4]
  26250. 800b6f2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26251. 800b6f6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26252. 800b6fa: 6053 str r3, [r2, #4]
  26253. #if !defined (DUAL_CORE)
  26254. /* Interrupt mode configuration */
  26255. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  26256. 800b6fc: 687b ldr r3, [r7, #4]
  26257. 800b6fe: 685b ldr r3, [r3, #4]
  26258. 800b700: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26259. 800b704: 2b00 cmp r3, #0
  26260. 800b706: d009 beq.n 800b71c <HAL_PWR_ConfigPVD+0x88>
  26261. {
  26262. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  26263. 800b708: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26264. 800b70c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26265. 800b710: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26266. 800b714: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26267. 800b718: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26268. }
  26269. /* Event mode configuration */
  26270. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  26271. 800b71c: 687b ldr r3, [r7, #4]
  26272. 800b71e: 685b ldr r3, [r3, #4]
  26273. 800b720: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26274. 800b724: 2b00 cmp r3, #0
  26275. 800b726: d009 beq.n 800b73c <HAL_PWR_ConfigPVD+0xa8>
  26276. {
  26277. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  26278. 800b728: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26279. 800b72c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26280. 800b730: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26281. 800b734: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26282. 800b738: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26283. }
  26284. #endif /* !defined (DUAL_CORE) */
  26285. /* Rising edge configuration */
  26286. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  26287. 800b73c: 687b ldr r3, [r7, #4]
  26288. 800b73e: 685b ldr r3, [r3, #4]
  26289. 800b740: f003 0301 and.w r3, r3, #1
  26290. 800b744: 2b00 cmp r3, #0
  26291. 800b746: d007 beq.n 800b758 <HAL_PWR_ConfigPVD+0xc4>
  26292. {
  26293. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  26294. 800b748: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26295. 800b74c: 681b ldr r3, [r3, #0]
  26296. 800b74e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26297. 800b752: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26298. 800b756: 6013 str r3, [r2, #0]
  26299. }
  26300. /* Falling edge configuration */
  26301. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  26302. 800b758: 687b ldr r3, [r7, #4]
  26303. 800b75a: 685b ldr r3, [r3, #4]
  26304. 800b75c: f003 0302 and.w r3, r3, #2
  26305. 800b760: 2b00 cmp r3, #0
  26306. 800b762: d009 beq.n 800b778 <HAL_PWR_ConfigPVD+0xe4>
  26307. {
  26308. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  26309. 800b764: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26310. 800b768: 685b ldr r3, [r3, #4]
  26311. 800b76a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26312. 800b76e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26313. 800b772: 6053 str r3, [r2, #4]
  26314. 800b774: e000 b.n 800b778 <HAL_PWR_ConfigPVD+0xe4>
  26315. return;
  26316. 800b776: bf00 nop
  26317. }
  26318. }
  26319. 800b778: 370c adds r7, #12
  26320. 800b77a: 46bd mov sp, r7
  26321. 800b77c: f85d 7b04 ldr.w r7, [sp], #4
  26322. 800b780: 4770 bx lr
  26323. 800b782: bf00 nop
  26324. 800b784: 58024800 .word 0x58024800
  26325. 0800b788 <HAL_PWR_EnablePVD>:
  26326. /**
  26327. * @brief Enable the Programmable Voltage Detector (PVD).
  26328. * @retval None.
  26329. */
  26330. void HAL_PWR_EnablePVD (void)
  26331. {
  26332. 800b788: b480 push {r7}
  26333. 800b78a: af00 add r7, sp, #0
  26334. /* Enable the power voltage detector */
  26335. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  26336. 800b78c: 4b05 ldr r3, [pc, #20] @ (800b7a4 <HAL_PWR_EnablePVD+0x1c>)
  26337. 800b78e: 681b ldr r3, [r3, #0]
  26338. 800b790: 4a04 ldr r2, [pc, #16] @ (800b7a4 <HAL_PWR_EnablePVD+0x1c>)
  26339. 800b792: f043 0310 orr.w r3, r3, #16
  26340. 800b796: 6013 str r3, [r2, #0]
  26341. }
  26342. 800b798: bf00 nop
  26343. 800b79a: 46bd mov sp, r7
  26344. 800b79c: f85d 7b04 ldr.w r7, [sp], #4
  26345. 800b7a0: 4770 bx lr
  26346. 800b7a2: bf00 nop
  26347. 800b7a4: 58024800 .word 0x58024800
  26348. 0800b7a8 <HAL_PWREx_ConfigSupply>:
  26349. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  26350. * regulator.
  26351. * @retval HAL status.
  26352. */
  26353. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  26354. {
  26355. 800b7a8: b580 push {r7, lr}
  26356. 800b7aa: b084 sub sp, #16
  26357. 800b7ac: af00 add r7, sp, #0
  26358. 800b7ae: 6078 str r0, [r7, #4]
  26359. /* Check the parameters */
  26360. assert_param (IS_PWR_SUPPLY (SupplySource));
  26361. /* Check if supply source was configured */
  26362. #if defined (PWR_FLAG_SCUEN)
  26363. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  26364. 800b7b0: 4b19 ldr r3, [pc, #100] @ (800b818 <HAL_PWREx_ConfigSupply+0x70>)
  26365. 800b7b2: 68db ldr r3, [r3, #12]
  26366. 800b7b4: f003 0304 and.w r3, r3, #4
  26367. 800b7b8: 2b04 cmp r3, #4
  26368. 800b7ba: d00a beq.n 800b7d2 <HAL_PWREx_ConfigSupply+0x2a>
  26369. #else
  26370. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  26371. #endif /* defined (PWR_FLAG_SCUEN) */
  26372. {
  26373. /* Check supply configuration */
  26374. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  26375. 800b7bc: 4b16 ldr r3, [pc, #88] @ (800b818 <HAL_PWREx_ConfigSupply+0x70>)
  26376. 800b7be: 68db ldr r3, [r3, #12]
  26377. 800b7c0: f003 0307 and.w r3, r3, #7
  26378. 800b7c4: 687a ldr r2, [r7, #4]
  26379. 800b7c6: 429a cmp r2, r3
  26380. 800b7c8: d001 beq.n 800b7ce <HAL_PWREx_ConfigSupply+0x26>
  26381. {
  26382. /* Supply configuration update locked, can't apply a new supply config */
  26383. return HAL_ERROR;
  26384. 800b7ca: 2301 movs r3, #1
  26385. 800b7cc: e01f b.n 800b80e <HAL_PWREx_ConfigSupply+0x66>
  26386. else
  26387. {
  26388. /* Supply configuration update locked, but new supply configuration
  26389. matches with old supply configuration : nothing to do
  26390. */
  26391. return HAL_OK;
  26392. 800b7ce: 2300 movs r3, #0
  26393. 800b7d0: e01d b.n 800b80e <HAL_PWREx_ConfigSupply+0x66>
  26394. }
  26395. }
  26396. /* Set the power supply configuration */
  26397. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  26398. 800b7d2: 4b11 ldr r3, [pc, #68] @ (800b818 <HAL_PWREx_ConfigSupply+0x70>)
  26399. 800b7d4: 68db ldr r3, [r3, #12]
  26400. 800b7d6: f023 0207 bic.w r2, r3, #7
  26401. 800b7da: 490f ldr r1, [pc, #60] @ (800b818 <HAL_PWREx_ConfigSupply+0x70>)
  26402. 800b7dc: 687b ldr r3, [r7, #4]
  26403. 800b7de: 4313 orrs r3, r2
  26404. 800b7e0: 60cb str r3, [r1, #12]
  26405. /* Get tick */
  26406. tickstart = HAL_GetTick ();
  26407. 800b7e2: f7fa fb0b bl 8005dfc <HAL_GetTick>
  26408. 800b7e6: 60f8 str r0, [r7, #12]
  26409. /* Wait till voltage level flag is set */
  26410. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26411. 800b7e8: e009 b.n 800b7fe <HAL_PWREx_ConfigSupply+0x56>
  26412. {
  26413. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  26414. 800b7ea: f7fa fb07 bl 8005dfc <HAL_GetTick>
  26415. 800b7ee: 4602 mov r2, r0
  26416. 800b7f0: 68fb ldr r3, [r7, #12]
  26417. 800b7f2: 1ad3 subs r3, r2, r3
  26418. 800b7f4: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  26419. 800b7f8: d901 bls.n 800b7fe <HAL_PWREx_ConfigSupply+0x56>
  26420. {
  26421. return HAL_ERROR;
  26422. 800b7fa: 2301 movs r3, #1
  26423. 800b7fc: e007 b.n 800b80e <HAL_PWREx_ConfigSupply+0x66>
  26424. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26425. 800b7fe: 4b06 ldr r3, [pc, #24] @ (800b818 <HAL_PWREx_ConfigSupply+0x70>)
  26426. 800b800: 685b ldr r3, [r3, #4]
  26427. 800b802: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26428. 800b806: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26429. 800b80a: d1ee bne.n 800b7ea <HAL_PWREx_ConfigSupply+0x42>
  26430. }
  26431. }
  26432. }
  26433. #endif /* defined (SMPS) */
  26434. return HAL_OK;
  26435. 800b80c: 2300 movs r3, #0
  26436. }
  26437. 800b80e: 4618 mov r0, r3
  26438. 800b810: 3710 adds r7, #16
  26439. 800b812: 46bd mov sp, r7
  26440. 800b814: bd80 pop {r7, pc}
  26441. 800b816: bf00 nop
  26442. 800b818: 58024800 .word 0x58024800
  26443. 0800b81c <HAL_PWREx_ConfigAVD>:
  26444. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26445. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  26446. * @retval None.
  26447. */
  26448. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  26449. {
  26450. 800b81c: b480 push {r7}
  26451. 800b81e: b083 sub sp, #12
  26452. 800b820: af00 add r7, sp, #0
  26453. 800b822: 6078 str r0, [r7, #4]
  26454. /* Check the parameters */
  26455. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  26456. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  26457. /* Set the ALS[18:17] bits according to AVDLevel value */
  26458. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  26459. 800b824: 4b37 ldr r3, [pc, #220] @ (800b904 <HAL_PWREx_ConfigAVD+0xe8>)
  26460. 800b826: 681b ldr r3, [r3, #0]
  26461. 800b828: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  26462. 800b82c: 687b ldr r3, [r7, #4]
  26463. 800b82e: 681b ldr r3, [r3, #0]
  26464. 800b830: 4934 ldr r1, [pc, #208] @ (800b904 <HAL_PWREx_ConfigAVD+0xe8>)
  26465. 800b832: 4313 orrs r3, r2
  26466. 800b834: 600b str r3, [r1, #0]
  26467. /* Clear any previous config */
  26468. #if !defined (DUAL_CORE)
  26469. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  26470. 800b836: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26471. 800b83a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26472. 800b83e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26473. 800b842: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26474. 800b846: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26475. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  26476. 800b84a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26477. 800b84e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26478. 800b852: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26479. 800b856: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26480. 800b85a: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26481. #endif /* !defined (DUAL_CORE) */
  26482. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  26483. 800b85e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26484. 800b862: 681b ldr r3, [r3, #0]
  26485. 800b864: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26486. 800b868: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26487. 800b86c: 6013 str r3, [r2, #0]
  26488. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  26489. 800b86e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26490. 800b872: 685b ldr r3, [r3, #4]
  26491. 800b874: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26492. 800b878: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26493. 800b87c: 6053 str r3, [r2, #4]
  26494. #if !defined (DUAL_CORE)
  26495. /* Configure the interrupt mode */
  26496. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  26497. 800b87e: 687b ldr r3, [r7, #4]
  26498. 800b880: 685b ldr r3, [r3, #4]
  26499. 800b882: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26500. 800b886: 2b00 cmp r3, #0
  26501. 800b888: d009 beq.n 800b89e <HAL_PWREx_ConfigAVD+0x82>
  26502. {
  26503. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  26504. 800b88a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26505. 800b88e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26506. 800b892: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26507. 800b896: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26508. 800b89a: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26509. }
  26510. /* Configure the event mode */
  26511. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  26512. 800b89e: 687b ldr r3, [r7, #4]
  26513. 800b8a0: 685b ldr r3, [r3, #4]
  26514. 800b8a2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26515. 800b8a6: 2b00 cmp r3, #0
  26516. 800b8a8: d009 beq.n 800b8be <HAL_PWREx_ConfigAVD+0xa2>
  26517. {
  26518. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  26519. 800b8aa: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26520. 800b8ae: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26521. 800b8b2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26522. 800b8b6: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26523. 800b8ba: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26524. }
  26525. #endif /* !defined (DUAL_CORE) */
  26526. /* Rising edge configuration */
  26527. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  26528. 800b8be: 687b ldr r3, [r7, #4]
  26529. 800b8c0: 685b ldr r3, [r3, #4]
  26530. 800b8c2: f003 0301 and.w r3, r3, #1
  26531. 800b8c6: 2b00 cmp r3, #0
  26532. 800b8c8: d007 beq.n 800b8da <HAL_PWREx_ConfigAVD+0xbe>
  26533. {
  26534. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  26535. 800b8ca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26536. 800b8ce: 681b ldr r3, [r3, #0]
  26537. 800b8d0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26538. 800b8d4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26539. 800b8d8: 6013 str r3, [r2, #0]
  26540. }
  26541. /* Falling edge configuration */
  26542. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  26543. 800b8da: 687b ldr r3, [r7, #4]
  26544. 800b8dc: 685b ldr r3, [r3, #4]
  26545. 800b8de: f003 0302 and.w r3, r3, #2
  26546. 800b8e2: 2b00 cmp r3, #0
  26547. 800b8e4: d007 beq.n 800b8f6 <HAL_PWREx_ConfigAVD+0xda>
  26548. {
  26549. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  26550. 800b8e6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26551. 800b8ea: 685b ldr r3, [r3, #4]
  26552. 800b8ec: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26553. 800b8f0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26554. 800b8f4: 6053 str r3, [r2, #4]
  26555. }
  26556. }
  26557. 800b8f6: bf00 nop
  26558. 800b8f8: 370c adds r7, #12
  26559. 800b8fa: 46bd mov sp, r7
  26560. 800b8fc: f85d 7b04 ldr.w r7, [sp], #4
  26561. 800b900: 4770 bx lr
  26562. 800b902: bf00 nop
  26563. 800b904: 58024800 .word 0x58024800
  26564. 0800b908 <HAL_PWREx_EnableAVD>:
  26565. /**
  26566. * @brief Enable the Analog Voltage Detector (AVD).
  26567. * @retval None.
  26568. */
  26569. void HAL_PWREx_EnableAVD (void)
  26570. {
  26571. 800b908: b480 push {r7}
  26572. 800b90a: af00 add r7, sp, #0
  26573. /* Enable the Analog Voltage Detector */
  26574. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  26575. 800b90c: 4b05 ldr r3, [pc, #20] @ (800b924 <HAL_PWREx_EnableAVD+0x1c>)
  26576. 800b90e: 681b ldr r3, [r3, #0]
  26577. 800b910: 4a04 ldr r2, [pc, #16] @ (800b924 <HAL_PWREx_EnableAVD+0x1c>)
  26578. 800b912: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26579. 800b916: 6013 str r3, [r2, #0]
  26580. }
  26581. 800b918: bf00 nop
  26582. 800b91a: 46bd mov sp, r7
  26583. 800b91c: f85d 7b04 ldr.w r7, [sp], #4
  26584. 800b920: 4770 bx lr
  26585. 800b922: bf00 nop
  26586. 800b924: 58024800 .word 0x58024800
  26587. 0800b928 <HAL_RCC_OscConfig>:
  26588. * supported by this function. User should request a transition to HSE Off
  26589. * first and then HSE On or HSE Bypass.
  26590. * @retval HAL status
  26591. */
  26592. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  26593. {
  26594. 800b928: b580 push {r7, lr}
  26595. 800b92a: b08c sub sp, #48 @ 0x30
  26596. 800b92c: af00 add r7, sp, #0
  26597. 800b92e: 6078 str r0, [r7, #4]
  26598. uint32_t tickstart;
  26599. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  26600. /* Check Null pointer */
  26601. if (RCC_OscInitStruct == NULL)
  26602. 800b930: 687b ldr r3, [r7, #4]
  26603. 800b932: 2b00 cmp r3, #0
  26604. 800b934: d102 bne.n 800b93c <HAL_RCC_OscConfig+0x14>
  26605. {
  26606. return HAL_ERROR;
  26607. 800b936: 2301 movs r3, #1
  26608. 800b938: f000 bc48 b.w 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26609. }
  26610. /* Check the parameters */
  26611. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  26612. /*------------------------------- HSE Configuration ------------------------*/
  26613. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  26614. 800b93c: 687b ldr r3, [r7, #4]
  26615. 800b93e: 681b ldr r3, [r3, #0]
  26616. 800b940: f003 0301 and.w r3, r3, #1
  26617. 800b944: 2b00 cmp r3, #0
  26618. 800b946: f000 8088 beq.w 800ba5a <HAL_RCC_OscConfig+0x132>
  26619. {
  26620. /* Check the parameters */
  26621. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  26622. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26623. 800b94a: 4b99 ldr r3, [pc, #612] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26624. 800b94c: 691b ldr r3, [r3, #16]
  26625. 800b94e: f003 0338 and.w r3, r3, #56 @ 0x38
  26626. 800b952: 62fb str r3, [r7, #44] @ 0x2c
  26627. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26628. 800b954: 4b96 ldr r3, [pc, #600] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26629. 800b956: 6a9b ldr r3, [r3, #40] @ 0x28
  26630. 800b958: 62bb str r3, [r7, #40] @ 0x28
  26631. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  26632. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  26633. 800b95a: 6afb ldr r3, [r7, #44] @ 0x2c
  26634. 800b95c: 2b10 cmp r3, #16
  26635. 800b95e: d007 beq.n 800b970 <HAL_RCC_OscConfig+0x48>
  26636. 800b960: 6afb ldr r3, [r7, #44] @ 0x2c
  26637. 800b962: 2b18 cmp r3, #24
  26638. 800b964: d111 bne.n 800b98a <HAL_RCC_OscConfig+0x62>
  26639. 800b966: 6abb ldr r3, [r7, #40] @ 0x28
  26640. 800b968: f003 0303 and.w r3, r3, #3
  26641. 800b96c: 2b02 cmp r3, #2
  26642. 800b96e: d10c bne.n 800b98a <HAL_RCC_OscConfig+0x62>
  26643. {
  26644. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26645. 800b970: 4b8f ldr r3, [pc, #572] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26646. 800b972: 681b ldr r3, [r3, #0]
  26647. 800b974: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26648. 800b978: 2b00 cmp r3, #0
  26649. 800b97a: d06d beq.n 800ba58 <HAL_RCC_OscConfig+0x130>
  26650. 800b97c: 687b ldr r3, [r7, #4]
  26651. 800b97e: 685b ldr r3, [r3, #4]
  26652. 800b980: 2b00 cmp r3, #0
  26653. 800b982: d169 bne.n 800ba58 <HAL_RCC_OscConfig+0x130>
  26654. {
  26655. return HAL_ERROR;
  26656. 800b984: 2301 movs r3, #1
  26657. 800b986: f000 bc21 b.w 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26658. }
  26659. }
  26660. else
  26661. {
  26662. /* Set the new HSE configuration ---------------------------------------*/
  26663. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  26664. 800b98a: 687b ldr r3, [r7, #4]
  26665. 800b98c: 685b ldr r3, [r3, #4]
  26666. 800b98e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26667. 800b992: d106 bne.n 800b9a2 <HAL_RCC_OscConfig+0x7a>
  26668. 800b994: 4b86 ldr r3, [pc, #536] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26669. 800b996: 681b ldr r3, [r3, #0]
  26670. 800b998: 4a85 ldr r2, [pc, #532] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26671. 800b99a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26672. 800b99e: 6013 str r3, [r2, #0]
  26673. 800b9a0: e02e b.n 800ba00 <HAL_RCC_OscConfig+0xd8>
  26674. 800b9a2: 687b ldr r3, [r7, #4]
  26675. 800b9a4: 685b ldr r3, [r3, #4]
  26676. 800b9a6: 2b00 cmp r3, #0
  26677. 800b9a8: d10c bne.n 800b9c4 <HAL_RCC_OscConfig+0x9c>
  26678. 800b9aa: 4b81 ldr r3, [pc, #516] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26679. 800b9ac: 681b ldr r3, [r3, #0]
  26680. 800b9ae: 4a80 ldr r2, [pc, #512] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26681. 800b9b0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26682. 800b9b4: 6013 str r3, [r2, #0]
  26683. 800b9b6: 4b7e ldr r3, [pc, #504] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26684. 800b9b8: 681b ldr r3, [r3, #0]
  26685. 800b9ba: 4a7d ldr r2, [pc, #500] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26686. 800b9bc: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26687. 800b9c0: 6013 str r3, [r2, #0]
  26688. 800b9c2: e01d b.n 800ba00 <HAL_RCC_OscConfig+0xd8>
  26689. 800b9c4: 687b ldr r3, [r7, #4]
  26690. 800b9c6: 685b ldr r3, [r3, #4]
  26691. 800b9c8: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26692. 800b9cc: d10c bne.n 800b9e8 <HAL_RCC_OscConfig+0xc0>
  26693. 800b9ce: 4b78 ldr r3, [pc, #480] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26694. 800b9d0: 681b ldr r3, [r3, #0]
  26695. 800b9d2: 4a77 ldr r2, [pc, #476] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26696. 800b9d4: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26697. 800b9d8: 6013 str r3, [r2, #0]
  26698. 800b9da: 4b75 ldr r3, [pc, #468] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26699. 800b9dc: 681b ldr r3, [r3, #0]
  26700. 800b9de: 4a74 ldr r2, [pc, #464] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26701. 800b9e0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26702. 800b9e4: 6013 str r3, [r2, #0]
  26703. 800b9e6: e00b b.n 800ba00 <HAL_RCC_OscConfig+0xd8>
  26704. 800b9e8: 4b71 ldr r3, [pc, #452] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26705. 800b9ea: 681b ldr r3, [r3, #0]
  26706. 800b9ec: 4a70 ldr r2, [pc, #448] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26707. 800b9ee: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26708. 800b9f2: 6013 str r3, [r2, #0]
  26709. 800b9f4: 4b6e ldr r3, [pc, #440] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26710. 800b9f6: 681b ldr r3, [r3, #0]
  26711. 800b9f8: 4a6d ldr r2, [pc, #436] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26712. 800b9fa: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26713. 800b9fe: 6013 str r3, [r2, #0]
  26714. /* Check the HSE State */
  26715. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  26716. 800ba00: 687b ldr r3, [r7, #4]
  26717. 800ba02: 685b ldr r3, [r3, #4]
  26718. 800ba04: 2b00 cmp r3, #0
  26719. 800ba06: d013 beq.n 800ba30 <HAL_RCC_OscConfig+0x108>
  26720. {
  26721. /* Get Start Tick*/
  26722. tickstart = HAL_GetTick();
  26723. 800ba08: f7fa f9f8 bl 8005dfc <HAL_GetTick>
  26724. 800ba0c: 6278 str r0, [r7, #36] @ 0x24
  26725. /* Wait till HSE is ready */
  26726. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26727. 800ba0e: e008 b.n 800ba22 <HAL_RCC_OscConfig+0xfa>
  26728. {
  26729. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26730. 800ba10: f7fa f9f4 bl 8005dfc <HAL_GetTick>
  26731. 800ba14: 4602 mov r2, r0
  26732. 800ba16: 6a7b ldr r3, [r7, #36] @ 0x24
  26733. 800ba18: 1ad3 subs r3, r2, r3
  26734. 800ba1a: 2b64 cmp r3, #100 @ 0x64
  26735. 800ba1c: d901 bls.n 800ba22 <HAL_RCC_OscConfig+0xfa>
  26736. {
  26737. return HAL_TIMEOUT;
  26738. 800ba1e: 2303 movs r3, #3
  26739. 800ba20: e3d4 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26740. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26741. 800ba22: 4b63 ldr r3, [pc, #396] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26742. 800ba24: 681b ldr r3, [r3, #0]
  26743. 800ba26: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26744. 800ba2a: 2b00 cmp r3, #0
  26745. 800ba2c: d0f0 beq.n 800ba10 <HAL_RCC_OscConfig+0xe8>
  26746. 800ba2e: e014 b.n 800ba5a <HAL_RCC_OscConfig+0x132>
  26747. }
  26748. }
  26749. else
  26750. {
  26751. /* Get Start Tick*/
  26752. tickstart = HAL_GetTick();
  26753. 800ba30: f7fa f9e4 bl 8005dfc <HAL_GetTick>
  26754. 800ba34: 6278 str r0, [r7, #36] @ 0x24
  26755. /* Wait till HSE is disabled */
  26756. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26757. 800ba36: e008 b.n 800ba4a <HAL_RCC_OscConfig+0x122>
  26758. {
  26759. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26760. 800ba38: f7fa f9e0 bl 8005dfc <HAL_GetTick>
  26761. 800ba3c: 4602 mov r2, r0
  26762. 800ba3e: 6a7b ldr r3, [r7, #36] @ 0x24
  26763. 800ba40: 1ad3 subs r3, r2, r3
  26764. 800ba42: 2b64 cmp r3, #100 @ 0x64
  26765. 800ba44: d901 bls.n 800ba4a <HAL_RCC_OscConfig+0x122>
  26766. {
  26767. return HAL_TIMEOUT;
  26768. 800ba46: 2303 movs r3, #3
  26769. 800ba48: e3c0 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26770. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26771. 800ba4a: 4b59 ldr r3, [pc, #356] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26772. 800ba4c: 681b ldr r3, [r3, #0]
  26773. 800ba4e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26774. 800ba52: 2b00 cmp r3, #0
  26775. 800ba54: d1f0 bne.n 800ba38 <HAL_RCC_OscConfig+0x110>
  26776. 800ba56: e000 b.n 800ba5a <HAL_RCC_OscConfig+0x132>
  26777. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26778. 800ba58: bf00 nop
  26779. }
  26780. }
  26781. }
  26782. }
  26783. /*----------------------------- HSI Configuration --------------------------*/
  26784. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  26785. 800ba5a: 687b ldr r3, [r7, #4]
  26786. 800ba5c: 681b ldr r3, [r3, #0]
  26787. 800ba5e: f003 0302 and.w r3, r3, #2
  26788. 800ba62: 2b00 cmp r3, #0
  26789. 800ba64: f000 80ca beq.w 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26790. /* Check the parameters */
  26791. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  26792. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  26793. /* When the HSI is used as system clock it will not be disabled */
  26794. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26795. 800ba68: 4b51 ldr r3, [pc, #324] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26796. 800ba6a: 691b ldr r3, [r3, #16]
  26797. 800ba6c: f003 0338 and.w r3, r3, #56 @ 0x38
  26798. 800ba70: 623b str r3, [r7, #32]
  26799. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26800. 800ba72: 4b4f ldr r3, [pc, #316] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26801. 800ba74: 6a9b ldr r3, [r3, #40] @ 0x28
  26802. 800ba76: 61fb str r3, [r7, #28]
  26803. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  26804. 800ba78: 6a3b ldr r3, [r7, #32]
  26805. 800ba7a: 2b00 cmp r3, #0
  26806. 800ba7c: d007 beq.n 800ba8e <HAL_RCC_OscConfig+0x166>
  26807. 800ba7e: 6a3b ldr r3, [r7, #32]
  26808. 800ba80: 2b18 cmp r3, #24
  26809. 800ba82: d156 bne.n 800bb32 <HAL_RCC_OscConfig+0x20a>
  26810. 800ba84: 69fb ldr r3, [r7, #28]
  26811. 800ba86: f003 0303 and.w r3, r3, #3
  26812. 800ba8a: 2b00 cmp r3, #0
  26813. 800ba8c: d151 bne.n 800bb32 <HAL_RCC_OscConfig+0x20a>
  26814. {
  26815. /* When HSI is used as system clock it will not be disabled */
  26816. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26817. 800ba8e: 4b48 ldr r3, [pc, #288] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26818. 800ba90: 681b ldr r3, [r3, #0]
  26819. 800ba92: f003 0304 and.w r3, r3, #4
  26820. 800ba96: 2b00 cmp r3, #0
  26821. 800ba98: d005 beq.n 800baa6 <HAL_RCC_OscConfig+0x17e>
  26822. 800ba9a: 687b ldr r3, [r7, #4]
  26823. 800ba9c: 68db ldr r3, [r3, #12]
  26824. 800ba9e: 2b00 cmp r3, #0
  26825. 800baa0: d101 bne.n 800baa6 <HAL_RCC_OscConfig+0x17e>
  26826. {
  26827. return HAL_ERROR;
  26828. 800baa2: 2301 movs r3, #1
  26829. 800baa4: e392 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26830. }
  26831. /* Otherwise, only HSI division and calibration are allowed */
  26832. else
  26833. {
  26834. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  26835. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26836. 800baa6: 4b42 ldr r3, [pc, #264] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26837. 800baa8: 681b ldr r3, [r3, #0]
  26838. 800baaa: f023 0219 bic.w r2, r3, #25
  26839. 800baae: 687b ldr r3, [r7, #4]
  26840. 800bab0: 68db ldr r3, [r3, #12]
  26841. 800bab2: 493f ldr r1, [pc, #252] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26842. 800bab4: 4313 orrs r3, r2
  26843. 800bab6: 600b str r3, [r1, #0]
  26844. /* Get Start Tick*/
  26845. tickstart = HAL_GetTick();
  26846. 800bab8: f7fa f9a0 bl 8005dfc <HAL_GetTick>
  26847. 800babc: 6278 str r0, [r7, #36] @ 0x24
  26848. /* Wait till HSI is ready */
  26849. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26850. 800babe: e008 b.n 800bad2 <HAL_RCC_OscConfig+0x1aa>
  26851. {
  26852. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26853. 800bac0: f7fa f99c bl 8005dfc <HAL_GetTick>
  26854. 800bac4: 4602 mov r2, r0
  26855. 800bac6: 6a7b ldr r3, [r7, #36] @ 0x24
  26856. 800bac8: 1ad3 subs r3, r2, r3
  26857. 800baca: 2b02 cmp r3, #2
  26858. 800bacc: d901 bls.n 800bad2 <HAL_RCC_OscConfig+0x1aa>
  26859. {
  26860. return HAL_TIMEOUT;
  26861. 800bace: 2303 movs r3, #3
  26862. 800bad0: e37c b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26863. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26864. 800bad2: 4b37 ldr r3, [pc, #220] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26865. 800bad4: 681b ldr r3, [r3, #0]
  26866. 800bad6: f003 0304 and.w r3, r3, #4
  26867. 800bada: 2b00 cmp r3, #0
  26868. 800badc: d0f0 beq.n 800bac0 <HAL_RCC_OscConfig+0x198>
  26869. }
  26870. }
  26871. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26872. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26873. 800bade: f7fa f999 bl 8005e14 <HAL_GetREVID>
  26874. 800bae2: 4603 mov r3, r0
  26875. 800bae4: f241 0203 movw r2, #4099 @ 0x1003
  26876. 800bae8: 4293 cmp r3, r2
  26877. 800baea: d817 bhi.n 800bb1c <HAL_RCC_OscConfig+0x1f4>
  26878. 800baec: 687b ldr r3, [r7, #4]
  26879. 800baee: 691b ldr r3, [r3, #16]
  26880. 800baf0: 2b40 cmp r3, #64 @ 0x40
  26881. 800baf2: d108 bne.n 800bb06 <HAL_RCC_OscConfig+0x1de>
  26882. 800baf4: 4b2e ldr r3, [pc, #184] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26883. 800baf6: 685b ldr r3, [r3, #4]
  26884. 800baf8: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26885. 800bafc: 4a2c ldr r2, [pc, #176] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26886. 800bafe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26887. 800bb02: 6053 str r3, [r2, #4]
  26888. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26889. 800bb04: e07a b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26890. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26891. 800bb06: 4b2a ldr r3, [pc, #168] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26892. 800bb08: 685b ldr r3, [r3, #4]
  26893. 800bb0a: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26894. 800bb0e: 687b ldr r3, [r7, #4]
  26895. 800bb10: 691b ldr r3, [r3, #16]
  26896. 800bb12: 031b lsls r3, r3, #12
  26897. 800bb14: 4926 ldr r1, [pc, #152] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26898. 800bb16: 4313 orrs r3, r2
  26899. 800bb18: 604b str r3, [r1, #4]
  26900. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26901. 800bb1a: e06f b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26902. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26903. 800bb1c: 4b24 ldr r3, [pc, #144] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26904. 800bb1e: 685b ldr r3, [r3, #4]
  26905. 800bb20: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26906. 800bb24: 687b ldr r3, [r7, #4]
  26907. 800bb26: 691b ldr r3, [r3, #16]
  26908. 800bb28: 061b lsls r3, r3, #24
  26909. 800bb2a: 4921 ldr r1, [pc, #132] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26910. 800bb2c: 4313 orrs r3, r2
  26911. 800bb2e: 604b str r3, [r1, #4]
  26912. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26913. 800bb30: e064 b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26914. }
  26915. else
  26916. {
  26917. /* Check the HSI State */
  26918. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  26919. 800bb32: 687b ldr r3, [r7, #4]
  26920. 800bb34: 68db ldr r3, [r3, #12]
  26921. 800bb36: 2b00 cmp r3, #0
  26922. 800bb38: d047 beq.n 800bbca <HAL_RCC_OscConfig+0x2a2>
  26923. {
  26924. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  26925. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26926. 800bb3a: 4b1d ldr r3, [pc, #116] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26927. 800bb3c: 681b ldr r3, [r3, #0]
  26928. 800bb3e: f023 0219 bic.w r2, r3, #25
  26929. 800bb42: 687b ldr r3, [r7, #4]
  26930. 800bb44: 68db ldr r3, [r3, #12]
  26931. 800bb46: 491a ldr r1, [pc, #104] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26932. 800bb48: 4313 orrs r3, r2
  26933. 800bb4a: 600b str r3, [r1, #0]
  26934. /* Get Start Tick*/
  26935. tickstart = HAL_GetTick();
  26936. 800bb4c: f7fa f956 bl 8005dfc <HAL_GetTick>
  26937. 800bb50: 6278 str r0, [r7, #36] @ 0x24
  26938. /* Wait till HSI is ready */
  26939. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26940. 800bb52: e008 b.n 800bb66 <HAL_RCC_OscConfig+0x23e>
  26941. {
  26942. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26943. 800bb54: f7fa f952 bl 8005dfc <HAL_GetTick>
  26944. 800bb58: 4602 mov r2, r0
  26945. 800bb5a: 6a7b ldr r3, [r7, #36] @ 0x24
  26946. 800bb5c: 1ad3 subs r3, r2, r3
  26947. 800bb5e: 2b02 cmp r3, #2
  26948. 800bb60: d901 bls.n 800bb66 <HAL_RCC_OscConfig+0x23e>
  26949. {
  26950. return HAL_TIMEOUT;
  26951. 800bb62: 2303 movs r3, #3
  26952. 800bb64: e332 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  26953. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26954. 800bb66: 4b12 ldr r3, [pc, #72] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26955. 800bb68: 681b ldr r3, [r3, #0]
  26956. 800bb6a: f003 0304 and.w r3, r3, #4
  26957. 800bb6e: 2b00 cmp r3, #0
  26958. 800bb70: d0f0 beq.n 800bb54 <HAL_RCC_OscConfig+0x22c>
  26959. }
  26960. }
  26961. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26962. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26963. 800bb72: f7fa f94f bl 8005e14 <HAL_GetREVID>
  26964. 800bb76: 4603 mov r3, r0
  26965. 800bb78: f241 0203 movw r2, #4099 @ 0x1003
  26966. 800bb7c: 4293 cmp r3, r2
  26967. 800bb7e: d819 bhi.n 800bbb4 <HAL_RCC_OscConfig+0x28c>
  26968. 800bb80: 687b ldr r3, [r7, #4]
  26969. 800bb82: 691b ldr r3, [r3, #16]
  26970. 800bb84: 2b40 cmp r3, #64 @ 0x40
  26971. 800bb86: d108 bne.n 800bb9a <HAL_RCC_OscConfig+0x272>
  26972. 800bb88: 4b09 ldr r3, [pc, #36] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26973. 800bb8a: 685b ldr r3, [r3, #4]
  26974. 800bb8c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26975. 800bb90: 4a07 ldr r2, [pc, #28] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26976. 800bb92: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26977. 800bb96: 6053 str r3, [r2, #4]
  26978. 800bb98: e030 b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26979. 800bb9a: 4b05 ldr r3, [pc, #20] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26980. 800bb9c: 685b ldr r3, [r3, #4]
  26981. 800bb9e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26982. 800bba2: 687b ldr r3, [r7, #4]
  26983. 800bba4: 691b ldr r3, [r3, #16]
  26984. 800bba6: 031b lsls r3, r3, #12
  26985. 800bba8: 4901 ldr r1, [pc, #4] @ (800bbb0 <HAL_RCC_OscConfig+0x288>)
  26986. 800bbaa: 4313 orrs r3, r2
  26987. 800bbac: 604b str r3, [r1, #4]
  26988. 800bbae: e025 b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  26989. 800bbb0: 58024400 .word 0x58024400
  26990. 800bbb4: 4b9a ldr r3, [pc, #616] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  26991. 800bbb6: 685b ldr r3, [r3, #4]
  26992. 800bbb8: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26993. 800bbbc: 687b ldr r3, [r7, #4]
  26994. 800bbbe: 691b ldr r3, [r3, #16]
  26995. 800bbc0: 061b lsls r3, r3, #24
  26996. 800bbc2: 4997 ldr r1, [pc, #604] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  26997. 800bbc4: 4313 orrs r3, r2
  26998. 800bbc6: 604b str r3, [r1, #4]
  26999. 800bbc8: e018 b.n 800bbfc <HAL_RCC_OscConfig+0x2d4>
  27000. }
  27001. else
  27002. {
  27003. /* Disable the Internal High Speed oscillator (HSI). */
  27004. __HAL_RCC_HSI_DISABLE();
  27005. 800bbca: 4b95 ldr r3, [pc, #596] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27006. 800bbcc: 681b ldr r3, [r3, #0]
  27007. 800bbce: 4a94 ldr r2, [pc, #592] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27008. 800bbd0: f023 0301 bic.w r3, r3, #1
  27009. 800bbd4: 6013 str r3, [r2, #0]
  27010. /* Get Start Tick*/
  27011. tickstart = HAL_GetTick();
  27012. 800bbd6: f7fa f911 bl 8005dfc <HAL_GetTick>
  27013. 800bbda: 6278 str r0, [r7, #36] @ 0x24
  27014. /* Wait till HSI is disabled */
  27015. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27016. 800bbdc: e008 b.n 800bbf0 <HAL_RCC_OscConfig+0x2c8>
  27017. {
  27018. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  27019. 800bbde: f7fa f90d bl 8005dfc <HAL_GetTick>
  27020. 800bbe2: 4602 mov r2, r0
  27021. 800bbe4: 6a7b ldr r3, [r7, #36] @ 0x24
  27022. 800bbe6: 1ad3 subs r3, r2, r3
  27023. 800bbe8: 2b02 cmp r3, #2
  27024. 800bbea: d901 bls.n 800bbf0 <HAL_RCC_OscConfig+0x2c8>
  27025. {
  27026. return HAL_TIMEOUT;
  27027. 800bbec: 2303 movs r3, #3
  27028. 800bbee: e2ed b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27029. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27030. 800bbf0: 4b8b ldr r3, [pc, #556] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27031. 800bbf2: 681b ldr r3, [r3, #0]
  27032. 800bbf4: f003 0304 and.w r3, r3, #4
  27033. 800bbf8: 2b00 cmp r3, #0
  27034. 800bbfa: d1f0 bne.n 800bbde <HAL_RCC_OscConfig+0x2b6>
  27035. }
  27036. }
  27037. }
  27038. }
  27039. /*----------------------------- CSI Configuration --------------------------*/
  27040. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  27041. 800bbfc: 687b ldr r3, [r7, #4]
  27042. 800bbfe: 681b ldr r3, [r3, #0]
  27043. 800bc00: f003 0310 and.w r3, r3, #16
  27044. 800bc04: 2b00 cmp r3, #0
  27045. 800bc06: f000 80a9 beq.w 800bd5c <HAL_RCC_OscConfig+0x434>
  27046. /* Check the parameters */
  27047. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  27048. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  27049. /* When the CSI is used as system clock it will not disabled */
  27050. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  27051. 800bc0a: 4b85 ldr r3, [pc, #532] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27052. 800bc0c: 691b ldr r3, [r3, #16]
  27053. 800bc0e: f003 0338 and.w r3, r3, #56 @ 0x38
  27054. 800bc12: 61bb str r3, [r7, #24]
  27055. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  27056. 800bc14: 4b82 ldr r3, [pc, #520] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27057. 800bc16: 6a9b ldr r3, [r3, #40] @ 0x28
  27058. 800bc18: 617b str r3, [r7, #20]
  27059. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  27060. 800bc1a: 69bb ldr r3, [r7, #24]
  27061. 800bc1c: 2b08 cmp r3, #8
  27062. 800bc1e: d007 beq.n 800bc30 <HAL_RCC_OscConfig+0x308>
  27063. 800bc20: 69bb ldr r3, [r7, #24]
  27064. 800bc22: 2b18 cmp r3, #24
  27065. 800bc24: d13a bne.n 800bc9c <HAL_RCC_OscConfig+0x374>
  27066. 800bc26: 697b ldr r3, [r7, #20]
  27067. 800bc28: f003 0303 and.w r3, r3, #3
  27068. 800bc2c: 2b01 cmp r3, #1
  27069. 800bc2e: d135 bne.n 800bc9c <HAL_RCC_OscConfig+0x374>
  27070. {
  27071. /* When CSI is used as system clock it will not disabled */
  27072. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27073. 800bc30: 4b7b ldr r3, [pc, #492] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27074. 800bc32: 681b ldr r3, [r3, #0]
  27075. 800bc34: f403 7380 and.w r3, r3, #256 @ 0x100
  27076. 800bc38: 2b00 cmp r3, #0
  27077. 800bc3a: d005 beq.n 800bc48 <HAL_RCC_OscConfig+0x320>
  27078. 800bc3c: 687b ldr r3, [r7, #4]
  27079. 800bc3e: 69db ldr r3, [r3, #28]
  27080. 800bc40: 2b80 cmp r3, #128 @ 0x80
  27081. 800bc42: d001 beq.n 800bc48 <HAL_RCC_OscConfig+0x320>
  27082. {
  27083. return HAL_ERROR;
  27084. 800bc44: 2301 movs r3, #1
  27085. 800bc46: e2c1 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27086. }
  27087. /* Otherwise, just the calibration is allowed */
  27088. else
  27089. {
  27090. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27091. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27092. 800bc48: f7fa f8e4 bl 8005e14 <HAL_GetREVID>
  27093. 800bc4c: 4603 mov r3, r0
  27094. 800bc4e: f241 0203 movw r2, #4099 @ 0x1003
  27095. 800bc52: 4293 cmp r3, r2
  27096. 800bc54: d817 bhi.n 800bc86 <HAL_RCC_OscConfig+0x35e>
  27097. 800bc56: 687b ldr r3, [r7, #4]
  27098. 800bc58: 6a1b ldr r3, [r3, #32]
  27099. 800bc5a: 2b20 cmp r3, #32
  27100. 800bc5c: d108 bne.n 800bc70 <HAL_RCC_OscConfig+0x348>
  27101. 800bc5e: 4b70 ldr r3, [pc, #448] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27102. 800bc60: 685b ldr r3, [r3, #4]
  27103. 800bc62: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27104. 800bc66: 4a6e ldr r2, [pc, #440] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27105. 800bc68: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27106. 800bc6c: 6053 str r3, [r2, #4]
  27107. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27108. 800bc6e: e075 b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27109. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27110. 800bc70: 4b6b ldr r3, [pc, #428] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27111. 800bc72: 685b ldr r3, [r3, #4]
  27112. 800bc74: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27113. 800bc78: 687b ldr r3, [r7, #4]
  27114. 800bc7a: 6a1b ldr r3, [r3, #32]
  27115. 800bc7c: 069b lsls r3, r3, #26
  27116. 800bc7e: 4968 ldr r1, [pc, #416] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27117. 800bc80: 4313 orrs r3, r2
  27118. 800bc82: 604b str r3, [r1, #4]
  27119. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27120. 800bc84: e06a b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27121. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27122. 800bc86: 4b66 ldr r3, [pc, #408] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27123. 800bc88: 68db ldr r3, [r3, #12]
  27124. 800bc8a: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27125. 800bc8e: 687b ldr r3, [r7, #4]
  27126. 800bc90: 6a1b ldr r3, [r3, #32]
  27127. 800bc92: 061b lsls r3, r3, #24
  27128. 800bc94: 4962 ldr r1, [pc, #392] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27129. 800bc96: 4313 orrs r3, r2
  27130. 800bc98: 60cb str r3, [r1, #12]
  27131. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27132. 800bc9a: e05f b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27133. }
  27134. }
  27135. else
  27136. {
  27137. /* Check the CSI State */
  27138. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  27139. 800bc9c: 687b ldr r3, [r7, #4]
  27140. 800bc9e: 69db ldr r3, [r3, #28]
  27141. 800bca0: 2b00 cmp r3, #0
  27142. 800bca2: d042 beq.n 800bd2a <HAL_RCC_OscConfig+0x402>
  27143. {
  27144. /* Enable the Internal High Speed oscillator (CSI). */
  27145. __HAL_RCC_CSI_ENABLE();
  27146. 800bca4: 4b5e ldr r3, [pc, #376] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27147. 800bca6: 681b ldr r3, [r3, #0]
  27148. 800bca8: 4a5d ldr r2, [pc, #372] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27149. 800bcaa: f043 0380 orr.w r3, r3, #128 @ 0x80
  27150. 800bcae: 6013 str r3, [r2, #0]
  27151. /* Get Start Tick*/
  27152. tickstart = HAL_GetTick();
  27153. 800bcb0: f7fa f8a4 bl 8005dfc <HAL_GetTick>
  27154. 800bcb4: 6278 str r0, [r7, #36] @ 0x24
  27155. /* Wait till CSI is ready */
  27156. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27157. 800bcb6: e008 b.n 800bcca <HAL_RCC_OscConfig+0x3a2>
  27158. {
  27159. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27160. 800bcb8: f7fa f8a0 bl 8005dfc <HAL_GetTick>
  27161. 800bcbc: 4602 mov r2, r0
  27162. 800bcbe: 6a7b ldr r3, [r7, #36] @ 0x24
  27163. 800bcc0: 1ad3 subs r3, r2, r3
  27164. 800bcc2: 2b02 cmp r3, #2
  27165. 800bcc4: d901 bls.n 800bcca <HAL_RCC_OscConfig+0x3a2>
  27166. {
  27167. return HAL_TIMEOUT;
  27168. 800bcc6: 2303 movs r3, #3
  27169. 800bcc8: e280 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27170. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27171. 800bcca: 4b55 ldr r3, [pc, #340] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27172. 800bccc: 681b ldr r3, [r3, #0]
  27173. 800bcce: f403 7380 and.w r3, r3, #256 @ 0x100
  27174. 800bcd2: 2b00 cmp r3, #0
  27175. 800bcd4: d0f0 beq.n 800bcb8 <HAL_RCC_OscConfig+0x390>
  27176. }
  27177. }
  27178. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27179. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27180. 800bcd6: f7fa f89d bl 8005e14 <HAL_GetREVID>
  27181. 800bcda: 4603 mov r3, r0
  27182. 800bcdc: f241 0203 movw r2, #4099 @ 0x1003
  27183. 800bce0: 4293 cmp r3, r2
  27184. 800bce2: d817 bhi.n 800bd14 <HAL_RCC_OscConfig+0x3ec>
  27185. 800bce4: 687b ldr r3, [r7, #4]
  27186. 800bce6: 6a1b ldr r3, [r3, #32]
  27187. 800bce8: 2b20 cmp r3, #32
  27188. 800bcea: d108 bne.n 800bcfe <HAL_RCC_OscConfig+0x3d6>
  27189. 800bcec: 4b4c ldr r3, [pc, #304] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27190. 800bcee: 685b ldr r3, [r3, #4]
  27191. 800bcf0: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27192. 800bcf4: 4a4a ldr r2, [pc, #296] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27193. 800bcf6: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27194. 800bcfa: 6053 str r3, [r2, #4]
  27195. 800bcfc: e02e b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27196. 800bcfe: 4b48 ldr r3, [pc, #288] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27197. 800bd00: 685b ldr r3, [r3, #4]
  27198. 800bd02: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27199. 800bd06: 687b ldr r3, [r7, #4]
  27200. 800bd08: 6a1b ldr r3, [r3, #32]
  27201. 800bd0a: 069b lsls r3, r3, #26
  27202. 800bd0c: 4944 ldr r1, [pc, #272] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27203. 800bd0e: 4313 orrs r3, r2
  27204. 800bd10: 604b str r3, [r1, #4]
  27205. 800bd12: e023 b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27206. 800bd14: 4b42 ldr r3, [pc, #264] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27207. 800bd16: 68db ldr r3, [r3, #12]
  27208. 800bd18: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27209. 800bd1c: 687b ldr r3, [r7, #4]
  27210. 800bd1e: 6a1b ldr r3, [r3, #32]
  27211. 800bd20: 061b lsls r3, r3, #24
  27212. 800bd22: 493f ldr r1, [pc, #252] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27213. 800bd24: 4313 orrs r3, r2
  27214. 800bd26: 60cb str r3, [r1, #12]
  27215. 800bd28: e018 b.n 800bd5c <HAL_RCC_OscConfig+0x434>
  27216. }
  27217. else
  27218. {
  27219. /* Disable the Internal High Speed oscillator (CSI). */
  27220. __HAL_RCC_CSI_DISABLE();
  27221. 800bd2a: 4b3d ldr r3, [pc, #244] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27222. 800bd2c: 681b ldr r3, [r3, #0]
  27223. 800bd2e: 4a3c ldr r2, [pc, #240] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27224. 800bd30: f023 0380 bic.w r3, r3, #128 @ 0x80
  27225. 800bd34: 6013 str r3, [r2, #0]
  27226. /* Get Start Tick*/
  27227. tickstart = HAL_GetTick();
  27228. 800bd36: f7fa f861 bl 8005dfc <HAL_GetTick>
  27229. 800bd3a: 6278 str r0, [r7, #36] @ 0x24
  27230. /* Wait till CSI is disabled */
  27231. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27232. 800bd3c: e008 b.n 800bd50 <HAL_RCC_OscConfig+0x428>
  27233. {
  27234. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27235. 800bd3e: f7fa f85d bl 8005dfc <HAL_GetTick>
  27236. 800bd42: 4602 mov r2, r0
  27237. 800bd44: 6a7b ldr r3, [r7, #36] @ 0x24
  27238. 800bd46: 1ad3 subs r3, r2, r3
  27239. 800bd48: 2b02 cmp r3, #2
  27240. 800bd4a: d901 bls.n 800bd50 <HAL_RCC_OscConfig+0x428>
  27241. {
  27242. return HAL_TIMEOUT;
  27243. 800bd4c: 2303 movs r3, #3
  27244. 800bd4e: e23d b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27245. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27246. 800bd50: 4b33 ldr r3, [pc, #204] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27247. 800bd52: 681b ldr r3, [r3, #0]
  27248. 800bd54: f403 7380 and.w r3, r3, #256 @ 0x100
  27249. 800bd58: 2b00 cmp r3, #0
  27250. 800bd5a: d1f0 bne.n 800bd3e <HAL_RCC_OscConfig+0x416>
  27251. }
  27252. }
  27253. }
  27254. }
  27255. /*------------------------------ LSI Configuration -------------------------*/
  27256. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  27257. 800bd5c: 687b ldr r3, [r7, #4]
  27258. 800bd5e: 681b ldr r3, [r3, #0]
  27259. 800bd60: f003 0308 and.w r3, r3, #8
  27260. 800bd64: 2b00 cmp r3, #0
  27261. 800bd66: d036 beq.n 800bdd6 <HAL_RCC_OscConfig+0x4ae>
  27262. {
  27263. /* Check the parameters */
  27264. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  27265. /* Check the LSI State */
  27266. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  27267. 800bd68: 687b ldr r3, [r7, #4]
  27268. 800bd6a: 695b ldr r3, [r3, #20]
  27269. 800bd6c: 2b00 cmp r3, #0
  27270. 800bd6e: d019 beq.n 800bda4 <HAL_RCC_OscConfig+0x47c>
  27271. {
  27272. /* Enable the Internal Low Speed oscillator (LSI). */
  27273. __HAL_RCC_LSI_ENABLE();
  27274. 800bd70: 4b2b ldr r3, [pc, #172] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27275. 800bd72: 6f5b ldr r3, [r3, #116] @ 0x74
  27276. 800bd74: 4a2a ldr r2, [pc, #168] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27277. 800bd76: f043 0301 orr.w r3, r3, #1
  27278. 800bd7a: 6753 str r3, [r2, #116] @ 0x74
  27279. /* Get Start Tick*/
  27280. tickstart = HAL_GetTick();
  27281. 800bd7c: f7fa f83e bl 8005dfc <HAL_GetTick>
  27282. 800bd80: 6278 str r0, [r7, #36] @ 0x24
  27283. /* Wait till LSI is ready */
  27284. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27285. 800bd82: e008 b.n 800bd96 <HAL_RCC_OscConfig+0x46e>
  27286. {
  27287. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27288. 800bd84: f7fa f83a bl 8005dfc <HAL_GetTick>
  27289. 800bd88: 4602 mov r2, r0
  27290. 800bd8a: 6a7b ldr r3, [r7, #36] @ 0x24
  27291. 800bd8c: 1ad3 subs r3, r2, r3
  27292. 800bd8e: 2b02 cmp r3, #2
  27293. 800bd90: d901 bls.n 800bd96 <HAL_RCC_OscConfig+0x46e>
  27294. {
  27295. return HAL_TIMEOUT;
  27296. 800bd92: 2303 movs r3, #3
  27297. 800bd94: e21a b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27298. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27299. 800bd96: 4b22 ldr r3, [pc, #136] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27300. 800bd98: 6f5b ldr r3, [r3, #116] @ 0x74
  27301. 800bd9a: f003 0302 and.w r3, r3, #2
  27302. 800bd9e: 2b00 cmp r3, #0
  27303. 800bda0: d0f0 beq.n 800bd84 <HAL_RCC_OscConfig+0x45c>
  27304. 800bda2: e018 b.n 800bdd6 <HAL_RCC_OscConfig+0x4ae>
  27305. }
  27306. }
  27307. else
  27308. {
  27309. /* Disable the Internal Low Speed oscillator (LSI). */
  27310. __HAL_RCC_LSI_DISABLE();
  27311. 800bda4: 4b1e ldr r3, [pc, #120] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27312. 800bda6: 6f5b ldr r3, [r3, #116] @ 0x74
  27313. 800bda8: 4a1d ldr r2, [pc, #116] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27314. 800bdaa: f023 0301 bic.w r3, r3, #1
  27315. 800bdae: 6753 str r3, [r2, #116] @ 0x74
  27316. /* Get Start Tick*/
  27317. tickstart = HAL_GetTick();
  27318. 800bdb0: f7fa f824 bl 8005dfc <HAL_GetTick>
  27319. 800bdb4: 6278 str r0, [r7, #36] @ 0x24
  27320. /* Wait till LSI is ready */
  27321. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27322. 800bdb6: e008 b.n 800bdca <HAL_RCC_OscConfig+0x4a2>
  27323. {
  27324. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27325. 800bdb8: f7fa f820 bl 8005dfc <HAL_GetTick>
  27326. 800bdbc: 4602 mov r2, r0
  27327. 800bdbe: 6a7b ldr r3, [r7, #36] @ 0x24
  27328. 800bdc0: 1ad3 subs r3, r2, r3
  27329. 800bdc2: 2b02 cmp r3, #2
  27330. 800bdc4: d901 bls.n 800bdca <HAL_RCC_OscConfig+0x4a2>
  27331. {
  27332. return HAL_TIMEOUT;
  27333. 800bdc6: 2303 movs r3, #3
  27334. 800bdc8: e200 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27335. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27336. 800bdca: 4b15 ldr r3, [pc, #84] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27337. 800bdcc: 6f5b ldr r3, [r3, #116] @ 0x74
  27338. 800bdce: f003 0302 and.w r3, r3, #2
  27339. 800bdd2: 2b00 cmp r3, #0
  27340. 800bdd4: d1f0 bne.n 800bdb8 <HAL_RCC_OscConfig+0x490>
  27341. }
  27342. }
  27343. }
  27344. /*------------------------------ HSI48 Configuration -------------------------*/
  27345. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  27346. 800bdd6: 687b ldr r3, [r7, #4]
  27347. 800bdd8: 681b ldr r3, [r3, #0]
  27348. 800bdda: f003 0320 and.w r3, r3, #32
  27349. 800bdde: 2b00 cmp r3, #0
  27350. 800bde0: d039 beq.n 800be56 <HAL_RCC_OscConfig+0x52e>
  27351. {
  27352. /* Check the parameters */
  27353. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  27354. /* Check the HSI48 State */
  27355. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  27356. 800bde2: 687b ldr r3, [r7, #4]
  27357. 800bde4: 699b ldr r3, [r3, #24]
  27358. 800bde6: 2b00 cmp r3, #0
  27359. 800bde8: d01c beq.n 800be24 <HAL_RCC_OscConfig+0x4fc>
  27360. {
  27361. /* Enable the Internal Low Speed oscillator (HSI48). */
  27362. __HAL_RCC_HSI48_ENABLE();
  27363. 800bdea: 4b0d ldr r3, [pc, #52] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27364. 800bdec: 681b ldr r3, [r3, #0]
  27365. 800bdee: 4a0c ldr r2, [pc, #48] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27366. 800bdf0: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  27367. 800bdf4: 6013 str r3, [r2, #0]
  27368. /* Get time-out */
  27369. tickstart = HAL_GetTick();
  27370. 800bdf6: f7fa f801 bl 8005dfc <HAL_GetTick>
  27371. 800bdfa: 6278 str r0, [r7, #36] @ 0x24
  27372. /* Wait till HSI48 is ready */
  27373. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27374. 800bdfc: e008 b.n 800be10 <HAL_RCC_OscConfig+0x4e8>
  27375. {
  27376. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27377. 800bdfe: f7f9 fffd bl 8005dfc <HAL_GetTick>
  27378. 800be02: 4602 mov r2, r0
  27379. 800be04: 6a7b ldr r3, [r7, #36] @ 0x24
  27380. 800be06: 1ad3 subs r3, r2, r3
  27381. 800be08: 2b02 cmp r3, #2
  27382. 800be0a: d901 bls.n 800be10 <HAL_RCC_OscConfig+0x4e8>
  27383. {
  27384. return HAL_TIMEOUT;
  27385. 800be0c: 2303 movs r3, #3
  27386. 800be0e: e1dd b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27387. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27388. 800be10: 4b03 ldr r3, [pc, #12] @ (800be20 <HAL_RCC_OscConfig+0x4f8>)
  27389. 800be12: 681b ldr r3, [r3, #0]
  27390. 800be14: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27391. 800be18: 2b00 cmp r3, #0
  27392. 800be1a: d0f0 beq.n 800bdfe <HAL_RCC_OscConfig+0x4d6>
  27393. 800be1c: e01b b.n 800be56 <HAL_RCC_OscConfig+0x52e>
  27394. 800be1e: bf00 nop
  27395. 800be20: 58024400 .word 0x58024400
  27396. }
  27397. }
  27398. else
  27399. {
  27400. /* Disable the Internal Low Speed oscillator (HSI48). */
  27401. __HAL_RCC_HSI48_DISABLE();
  27402. 800be24: 4b9b ldr r3, [pc, #620] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27403. 800be26: 681b ldr r3, [r3, #0]
  27404. 800be28: 4a9a ldr r2, [pc, #616] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27405. 800be2a: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  27406. 800be2e: 6013 str r3, [r2, #0]
  27407. /* Get time-out */
  27408. tickstart = HAL_GetTick();
  27409. 800be30: f7f9 ffe4 bl 8005dfc <HAL_GetTick>
  27410. 800be34: 6278 str r0, [r7, #36] @ 0x24
  27411. /* Wait till HSI48 is ready */
  27412. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27413. 800be36: e008 b.n 800be4a <HAL_RCC_OscConfig+0x522>
  27414. {
  27415. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27416. 800be38: f7f9 ffe0 bl 8005dfc <HAL_GetTick>
  27417. 800be3c: 4602 mov r2, r0
  27418. 800be3e: 6a7b ldr r3, [r7, #36] @ 0x24
  27419. 800be40: 1ad3 subs r3, r2, r3
  27420. 800be42: 2b02 cmp r3, #2
  27421. 800be44: d901 bls.n 800be4a <HAL_RCC_OscConfig+0x522>
  27422. {
  27423. return HAL_TIMEOUT;
  27424. 800be46: 2303 movs r3, #3
  27425. 800be48: e1c0 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27426. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27427. 800be4a: 4b92 ldr r3, [pc, #584] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27428. 800be4c: 681b ldr r3, [r3, #0]
  27429. 800be4e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27430. 800be52: 2b00 cmp r3, #0
  27431. 800be54: d1f0 bne.n 800be38 <HAL_RCC_OscConfig+0x510>
  27432. }
  27433. }
  27434. }
  27435. }
  27436. /*------------------------------ LSE Configuration -------------------------*/
  27437. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  27438. 800be56: 687b ldr r3, [r7, #4]
  27439. 800be58: 681b ldr r3, [r3, #0]
  27440. 800be5a: f003 0304 and.w r3, r3, #4
  27441. 800be5e: 2b00 cmp r3, #0
  27442. 800be60: f000 8081 beq.w 800bf66 <HAL_RCC_OscConfig+0x63e>
  27443. {
  27444. /* Check the parameters */
  27445. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  27446. /* Enable write access to Backup domain */
  27447. PWR->CR1 |= PWR_CR1_DBP;
  27448. 800be64: 4b8c ldr r3, [pc, #560] @ (800c098 <HAL_RCC_OscConfig+0x770>)
  27449. 800be66: 681b ldr r3, [r3, #0]
  27450. 800be68: 4a8b ldr r2, [pc, #556] @ (800c098 <HAL_RCC_OscConfig+0x770>)
  27451. 800be6a: f443 7380 orr.w r3, r3, #256 @ 0x100
  27452. 800be6e: 6013 str r3, [r2, #0]
  27453. /* Wait for Backup domain Write protection disable */
  27454. tickstart = HAL_GetTick();
  27455. 800be70: f7f9 ffc4 bl 8005dfc <HAL_GetTick>
  27456. 800be74: 6278 str r0, [r7, #36] @ 0x24
  27457. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27458. 800be76: e008 b.n 800be8a <HAL_RCC_OscConfig+0x562>
  27459. {
  27460. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  27461. 800be78: f7f9 ffc0 bl 8005dfc <HAL_GetTick>
  27462. 800be7c: 4602 mov r2, r0
  27463. 800be7e: 6a7b ldr r3, [r7, #36] @ 0x24
  27464. 800be80: 1ad3 subs r3, r2, r3
  27465. 800be82: 2b64 cmp r3, #100 @ 0x64
  27466. 800be84: d901 bls.n 800be8a <HAL_RCC_OscConfig+0x562>
  27467. {
  27468. return HAL_TIMEOUT;
  27469. 800be86: 2303 movs r3, #3
  27470. 800be88: e1a0 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27471. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27472. 800be8a: 4b83 ldr r3, [pc, #524] @ (800c098 <HAL_RCC_OscConfig+0x770>)
  27473. 800be8c: 681b ldr r3, [r3, #0]
  27474. 800be8e: f403 7380 and.w r3, r3, #256 @ 0x100
  27475. 800be92: 2b00 cmp r3, #0
  27476. 800be94: d0f0 beq.n 800be78 <HAL_RCC_OscConfig+0x550>
  27477. }
  27478. }
  27479. /* Set the new LSE configuration -----------------------------------------*/
  27480. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  27481. 800be96: 687b ldr r3, [r7, #4]
  27482. 800be98: 689b ldr r3, [r3, #8]
  27483. 800be9a: 2b01 cmp r3, #1
  27484. 800be9c: d106 bne.n 800beac <HAL_RCC_OscConfig+0x584>
  27485. 800be9e: 4b7d ldr r3, [pc, #500] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27486. 800bea0: 6f1b ldr r3, [r3, #112] @ 0x70
  27487. 800bea2: 4a7c ldr r2, [pc, #496] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27488. 800bea4: f043 0301 orr.w r3, r3, #1
  27489. 800bea8: 6713 str r3, [r2, #112] @ 0x70
  27490. 800beaa: e02d b.n 800bf08 <HAL_RCC_OscConfig+0x5e0>
  27491. 800beac: 687b ldr r3, [r7, #4]
  27492. 800beae: 689b ldr r3, [r3, #8]
  27493. 800beb0: 2b00 cmp r3, #0
  27494. 800beb2: d10c bne.n 800bece <HAL_RCC_OscConfig+0x5a6>
  27495. 800beb4: 4b77 ldr r3, [pc, #476] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27496. 800beb6: 6f1b ldr r3, [r3, #112] @ 0x70
  27497. 800beb8: 4a76 ldr r2, [pc, #472] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27498. 800beba: f023 0301 bic.w r3, r3, #1
  27499. 800bebe: 6713 str r3, [r2, #112] @ 0x70
  27500. 800bec0: 4b74 ldr r3, [pc, #464] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27501. 800bec2: 6f1b ldr r3, [r3, #112] @ 0x70
  27502. 800bec4: 4a73 ldr r2, [pc, #460] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27503. 800bec6: f023 0304 bic.w r3, r3, #4
  27504. 800beca: 6713 str r3, [r2, #112] @ 0x70
  27505. 800becc: e01c b.n 800bf08 <HAL_RCC_OscConfig+0x5e0>
  27506. 800bece: 687b ldr r3, [r7, #4]
  27507. 800bed0: 689b ldr r3, [r3, #8]
  27508. 800bed2: 2b05 cmp r3, #5
  27509. 800bed4: d10c bne.n 800bef0 <HAL_RCC_OscConfig+0x5c8>
  27510. 800bed6: 4b6f ldr r3, [pc, #444] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27511. 800bed8: 6f1b ldr r3, [r3, #112] @ 0x70
  27512. 800beda: 4a6e ldr r2, [pc, #440] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27513. 800bedc: f043 0304 orr.w r3, r3, #4
  27514. 800bee0: 6713 str r3, [r2, #112] @ 0x70
  27515. 800bee2: 4b6c ldr r3, [pc, #432] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27516. 800bee4: 6f1b ldr r3, [r3, #112] @ 0x70
  27517. 800bee6: 4a6b ldr r2, [pc, #428] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27518. 800bee8: f043 0301 orr.w r3, r3, #1
  27519. 800beec: 6713 str r3, [r2, #112] @ 0x70
  27520. 800beee: e00b b.n 800bf08 <HAL_RCC_OscConfig+0x5e0>
  27521. 800bef0: 4b68 ldr r3, [pc, #416] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27522. 800bef2: 6f1b ldr r3, [r3, #112] @ 0x70
  27523. 800bef4: 4a67 ldr r2, [pc, #412] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27524. 800bef6: f023 0301 bic.w r3, r3, #1
  27525. 800befa: 6713 str r3, [r2, #112] @ 0x70
  27526. 800befc: 4b65 ldr r3, [pc, #404] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27527. 800befe: 6f1b ldr r3, [r3, #112] @ 0x70
  27528. 800bf00: 4a64 ldr r2, [pc, #400] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27529. 800bf02: f023 0304 bic.w r3, r3, #4
  27530. 800bf06: 6713 str r3, [r2, #112] @ 0x70
  27531. /* Check the LSE State */
  27532. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  27533. 800bf08: 687b ldr r3, [r7, #4]
  27534. 800bf0a: 689b ldr r3, [r3, #8]
  27535. 800bf0c: 2b00 cmp r3, #0
  27536. 800bf0e: d015 beq.n 800bf3c <HAL_RCC_OscConfig+0x614>
  27537. {
  27538. /* Get Start Tick*/
  27539. tickstart = HAL_GetTick();
  27540. 800bf10: f7f9 ff74 bl 8005dfc <HAL_GetTick>
  27541. 800bf14: 6278 str r0, [r7, #36] @ 0x24
  27542. /* Wait till LSE is ready */
  27543. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27544. 800bf16: e00a b.n 800bf2e <HAL_RCC_OscConfig+0x606>
  27545. {
  27546. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27547. 800bf18: f7f9 ff70 bl 8005dfc <HAL_GetTick>
  27548. 800bf1c: 4602 mov r2, r0
  27549. 800bf1e: 6a7b ldr r3, [r7, #36] @ 0x24
  27550. 800bf20: 1ad3 subs r3, r2, r3
  27551. 800bf22: f241 3288 movw r2, #5000 @ 0x1388
  27552. 800bf26: 4293 cmp r3, r2
  27553. 800bf28: d901 bls.n 800bf2e <HAL_RCC_OscConfig+0x606>
  27554. {
  27555. return HAL_TIMEOUT;
  27556. 800bf2a: 2303 movs r3, #3
  27557. 800bf2c: e14e b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27558. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27559. 800bf2e: 4b59 ldr r3, [pc, #356] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27560. 800bf30: 6f1b ldr r3, [r3, #112] @ 0x70
  27561. 800bf32: f003 0302 and.w r3, r3, #2
  27562. 800bf36: 2b00 cmp r3, #0
  27563. 800bf38: d0ee beq.n 800bf18 <HAL_RCC_OscConfig+0x5f0>
  27564. 800bf3a: e014 b.n 800bf66 <HAL_RCC_OscConfig+0x63e>
  27565. }
  27566. }
  27567. else
  27568. {
  27569. /* Get Start Tick*/
  27570. tickstart = HAL_GetTick();
  27571. 800bf3c: f7f9 ff5e bl 8005dfc <HAL_GetTick>
  27572. 800bf40: 6278 str r0, [r7, #36] @ 0x24
  27573. /* Wait till LSE is disabled */
  27574. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27575. 800bf42: e00a b.n 800bf5a <HAL_RCC_OscConfig+0x632>
  27576. {
  27577. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27578. 800bf44: f7f9 ff5a bl 8005dfc <HAL_GetTick>
  27579. 800bf48: 4602 mov r2, r0
  27580. 800bf4a: 6a7b ldr r3, [r7, #36] @ 0x24
  27581. 800bf4c: 1ad3 subs r3, r2, r3
  27582. 800bf4e: f241 3288 movw r2, #5000 @ 0x1388
  27583. 800bf52: 4293 cmp r3, r2
  27584. 800bf54: d901 bls.n 800bf5a <HAL_RCC_OscConfig+0x632>
  27585. {
  27586. return HAL_TIMEOUT;
  27587. 800bf56: 2303 movs r3, #3
  27588. 800bf58: e138 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27589. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27590. 800bf5a: 4b4e ldr r3, [pc, #312] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27591. 800bf5c: 6f1b ldr r3, [r3, #112] @ 0x70
  27592. 800bf5e: f003 0302 and.w r3, r3, #2
  27593. 800bf62: 2b00 cmp r3, #0
  27594. 800bf64: d1ee bne.n 800bf44 <HAL_RCC_OscConfig+0x61c>
  27595. }
  27596. }
  27597. /*-------------------------------- PLL Configuration -----------------------*/
  27598. /* Check the parameters */
  27599. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  27600. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  27601. 800bf66: 687b ldr r3, [r7, #4]
  27602. 800bf68: 6a5b ldr r3, [r3, #36] @ 0x24
  27603. 800bf6a: 2b00 cmp r3, #0
  27604. 800bf6c: f000 812d beq.w 800c1ca <HAL_RCC_OscConfig+0x8a2>
  27605. {
  27606. /* Check if the PLL is used as system clock or not */
  27607. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  27608. 800bf70: 4b48 ldr r3, [pc, #288] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27609. 800bf72: 691b ldr r3, [r3, #16]
  27610. 800bf74: f003 0338 and.w r3, r3, #56 @ 0x38
  27611. 800bf78: 2b18 cmp r3, #24
  27612. 800bf7a: f000 80bd beq.w 800c0f8 <HAL_RCC_OscConfig+0x7d0>
  27613. {
  27614. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  27615. 800bf7e: 687b ldr r3, [r7, #4]
  27616. 800bf80: 6a5b ldr r3, [r3, #36] @ 0x24
  27617. 800bf82: 2b02 cmp r3, #2
  27618. 800bf84: f040 809e bne.w 800c0c4 <HAL_RCC_OscConfig+0x79c>
  27619. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  27620. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  27621. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27622. /* Disable the main PLL. */
  27623. __HAL_RCC_PLL_DISABLE();
  27624. 800bf88: 4b42 ldr r3, [pc, #264] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27625. 800bf8a: 681b ldr r3, [r3, #0]
  27626. 800bf8c: 4a41 ldr r2, [pc, #260] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27627. 800bf8e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27628. 800bf92: 6013 str r3, [r2, #0]
  27629. /* Get Start Tick*/
  27630. tickstart = HAL_GetTick();
  27631. 800bf94: f7f9 ff32 bl 8005dfc <HAL_GetTick>
  27632. 800bf98: 6278 str r0, [r7, #36] @ 0x24
  27633. /* Wait till PLL is disabled */
  27634. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27635. 800bf9a: e008 b.n 800bfae <HAL_RCC_OscConfig+0x686>
  27636. {
  27637. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27638. 800bf9c: f7f9 ff2e bl 8005dfc <HAL_GetTick>
  27639. 800bfa0: 4602 mov r2, r0
  27640. 800bfa2: 6a7b ldr r3, [r7, #36] @ 0x24
  27641. 800bfa4: 1ad3 subs r3, r2, r3
  27642. 800bfa6: 2b02 cmp r3, #2
  27643. 800bfa8: d901 bls.n 800bfae <HAL_RCC_OscConfig+0x686>
  27644. {
  27645. return HAL_TIMEOUT;
  27646. 800bfaa: 2303 movs r3, #3
  27647. 800bfac: e10e b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27648. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27649. 800bfae: 4b39 ldr r3, [pc, #228] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27650. 800bfb0: 681b ldr r3, [r3, #0]
  27651. 800bfb2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27652. 800bfb6: 2b00 cmp r3, #0
  27653. 800bfb8: d1f0 bne.n 800bf9c <HAL_RCC_OscConfig+0x674>
  27654. }
  27655. }
  27656. /* Configure the main PLL clock source, multiplication and division factors. */
  27657. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  27658. 800bfba: 4b36 ldr r3, [pc, #216] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27659. 800bfbc: 6a9a ldr r2, [r3, #40] @ 0x28
  27660. 800bfbe: 4b37 ldr r3, [pc, #220] @ (800c09c <HAL_RCC_OscConfig+0x774>)
  27661. 800bfc0: 4013 ands r3, r2
  27662. 800bfc2: 687a ldr r2, [r7, #4]
  27663. 800bfc4: 6a91 ldr r1, [r2, #40] @ 0x28
  27664. 800bfc6: 687a ldr r2, [r7, #4]
  27665. 800bfc8: 6ad2 ldr r2, [r2, #44] @ 0x2c
  27666. 800bfca: 0112 lsls r2, r2, #4
  27667. 800bfcc: 430a orrs r2, r1
  27668. 800bfce: 4931 ldr r1, [pc, #196] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27669. 800bfd0: 4313 orrs r3, r2
  27670. 800bfd2: 628b str r3, [r1, #40] @ 0x28
  27671. 800bfd4: 687b ldr r3, [r7, #4]
  27672. 800bfd6: 6b1b ldr r3, [r3, #48] @ 0x30
  27673. 800bfd8: 3b01 subs r3, #1
  27674. 800bfda: f3c3 0208 ubfx r2, r3, #0, #9
  27675. 800bfde: 687b ldr r3, [r7, #4]
  27676. 800bfe0: 6b5b ldr r3, [r3, #52] @ 0x34
  27677. 800bfe2: 3b01 subs r3, #1
  27678. 800bfe4: 025b lsls r3, r3, #9
  27679. 800bfe6: b29b uxth r3, r3
  27680. 800bfe8: 431a orrs r2, r3
  27681. 800bfea: 687b ldr r3, [r7, #4]
  27682. 800bfec: 6b9b ldr r3, [r3, #56] @ 0x38
  27683. 800bfee: 3b01 subs r3, #1
  27684. 800bff0: 041b lsls r3, r3, #16
  27685. 800bff2: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27686. 800bff6: 431a orrs r2, r3
  27687. 800bff8: 687b ldr r3, [r7, #4]
  27688. 800bffa: 6bdb ldr r3, [r3, #60] @ 0x3c
  27689. 800bffc: 3b01 subs r3, #1
  27690. 800bffe: 061b lsls r3, r3, #24
  27691. 800c000: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27692. 800c004: 4923 ldr r1, [pc, #140] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27693. 800c006: 4313 orrs r3, r2
  27694. 800c008: 630b str r3, [r1, #48] @ 0x30
  27695. RCC_OscInitStruct->PLL.PLLP,
  27696. RCC_OscInitStruct->PLL.PLLQ,
  27697. RCC_OscInitStruct->PLL.PLLR);
  27698. /* Disable PLLFRACN . */
  27699. __HAL_RCC_PLLFRACN_DISABLE();
  27700. 800c00a: 4b22 ldr r3, [pc, #136] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27701. 800c00c: 6adb ldr r3, [r3, #44] @ 0x2c
  27702. 800c00e: 4a21 ldr r2, [pc, #132] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27703. 800c010: f023 0301 bic.w r3, r3, #1
  27704. 800c014: 62d3 str r3, [r2, #44] @ 0x2c
  27705. /* Configure PLL PLL1FRACN */
  27706. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27707. 800c016: 4b1f ldr r3, [pc, #124] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27708. 800c018: 6b5a ldr r2, [r3, #52] @ 0x34
  27709. 800c01a: 4b21 ldr r3, [pc, #132] @ (800c0a0 <HAL_RCC_OscConfig+0x778>)
  27710. 800c01c: 4013 ands r3, r2
  27711. 800c01e: 687a ldr r2, [r7, #4]
  27712. 800c020: 6c92 ldr r2, [r2, #72] @ 0x48
  27713. 800c022: 00d2 lsls r2, r2, #3
  27714. 800c024: 491b ldr r1, [pc, #108] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27715. 800c026: 4313 orrs r3, r2
  27716. 800c028: 634b str r3, [r1, #52] @ 0x34
  27717. /* Select PLL1 input reference frequency range: VCI */
  27718. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  27719. 800c02a: 4b1a ldr r3, [pc, #104] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27720. 800c02c: 6adb ldr r3, [r3, #44] @ 0x2c
  27721. 800c02e: f023 020c bic.w r2, r3, #12
  27722. 800c032: 687b ldr r3, [r7, #4]
  27723. 800c034: 6c1b ldr r3, [r3, #64] @ 0x40
  27724. 800c036: 4917 ldr r1, [pc, #92] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27725. 800c038: 4313 orrs r3, r2
  27726. 800c03a: 62cb str r3, [r1, #44] @ 0x2c
  27727. /* Select PLL1 output frequency range : VCO */
  27728. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  27729. 800c03c: 4b15 ldr r3, [pc, #84] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27730. 800c03e: 6adb ldr r3, [r3, #44] @ 0x2c
  27731. 800c040: f023 0202 bic.w r2, r3, #2
  27732. 800c044: 687b ldr r3, [r7, #4]
  27733. 800c046: 6c5b ldr r3, [r3, #68] @ 0x44
  27734. 800c048: 4912 ldr r1, [pc, #72] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27735. 800c04a: 4313 orrs r3, r2
  27736. 800c04c: 62cb str r3, [r1, #44] @ 0x2c
  27737. /* Enable PLL System Clock output. */
  27738. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  27739. 800c04e: 4b11 ldr r3, [pc, #68] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27740. 800c050: 6adb ldr r3, [r3, #44] @ 0x2c
  27741. 800c052: 4a10 ldr r2, [pc, #64] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27742. 800c054: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  27743. 800c058: 62d3 str r3, [r2, #44] @ 0x2c
  27744. /* Enable PLL1Q Clock output. */
  27745. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27746. 800c05a: 4b0e ldr r3, [pc, #56] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27747. 800c05c: 6adb ldr r3, [r3, #44] @ 0x2c
  27748. 800c05e: 4a0d ldr r2, [pc, #52] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27749. 800c060: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27750. 800c064: 62d3 str r3, [r2, #44] @ 0x2c
  27751. /* Enable PLL1R Clock output. */
  27752. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  27753. 800c066: 4b0b ldr r3, [pc, #44] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27754. 800c068: 6adb ldr r3, [r3, #44] @ 0x2c
  27755. 800c06a: 4a0a ldr r2, [pc, #40] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27756. 800c06c: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  27757. 800c070: 62d3 str r3, [r2, #44] @ 0x2c
  27758. /* Enable PLL1FRACN . */
  27759. __HAL_RCC_PLLFRACN_ENABLE();
  27760. 800c072: 4b08 ldr r3, [pc, #32] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27761. 800c074: 6adb ldr r3, [r3, #44] @ 0x2c
  27762. 800c076: 4a07 ldr r2, [pc, #28] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27763. 800c078: f043 0301 orr.w r3, r3, #1
  27764. 800c07c: 62d3 str r3, [r2, #44] @ 0x2c
  27765. /* Enable the main PLL. */
  27766. __HAL_RCC_PLL_ENABLE();
  27767. 800c07e: 4b05 ldr r3, [pc, #20] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27768. 800c080: 681b ldr r3, [r3, #0]
  27769. 800c082: 4a04 ldr r2, [pc, #16] @ (800c094 <HAL_RCC_OscConfig+0x76c>)
  27770. 800c084: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27771. 800c088: 6013 str r3, [r2, #0]
  27772. /* Get Start Tick*/
  27773. tickstart = HAL_GetTick();
  27774. 800c08a: f7f9 feb7 bl 8005dfc <HAL_GetTick>
  27775. 800c08e: 6278 str r0, [r7, #36] @ 0x24
  27776. /* Wait till PLL is ready */
  27777. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27778. 800c090: e011 b.n 800c0b6 <HAL_RCC_OscConfig+0x78e>
  27779. 800c092: bf00 nop
  27780. 800c094: 58024400 .word 0x58024400
  27781. 800c098: 58024800 .word 0x58024800
  27782. 800c09c: fffffc0c .word 0xfffffc0c
  27783. 800c0a0: ffff0007 .word 0xffff0007
  27784. {
  27785. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27786. 800c0a4: f7f9 feaa bl 8005dfc <HAL_GetTick>
  27787. 800c0a8: 4602 mov r2, r0
  27788. 800c0aa: 6a7b ldr r3, [r7, #36] @ 0x24
  27789. 800c0ac: 1ad3 subs r3, r2, r3
  27790. 800c0ae: 2b02 cmp r3, #2
  27791. 800c0b0: d901 bls.n 800c0b6 <HAL_RCC_OscConfig+0x78e>
  27792. {
  27793. return HAL_TIMEOUT;
  27794. 800c0b2: 2303 movs r3, #3
  27795. 800c0b4: e08a b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27796. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27797. 800c0b6: 4b47 ldr r3, [pc, #284] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27798. 800c0b8: 681b ldr r3, [r3, #0]
  27799. 800c0ba: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27800. 800c0be: 2b00 cmp r3, #0
  27801. 800c0c0: d0f0 beq.n 800c0a4 <HAL_RCC_OscConfig+0x77c>
  27802. 800c0c2: e082 b.n 800c1ca <HAL_RCC_OscConfig+0x8a2>
  27803. }
  27804. }
  27805. else
  27806. {
  27807. /* Disable the main PLL. */
  27808. __HAL_RCC_PLL_DISABLE();
  27809. 800c0c4: 4b43 ldr r3, [pc, #268] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27810. 800c0c6: 681b ldr r3, [r3, #0]
  27811. 800c0c8: 4a42 ldr r2, [pc, #264] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27812. 800c0ca: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27813. 800c0ce: 6013 str r3, [r2, #0]
  27814. /* Get Start Tick*/
  27815. tickstart = HAL_GetTick();
  27816. 800c0d0: f7f9 fe94 bl 8005dfc <HAL_GetTick>
  27817. 800c0d4: 6278 str r0, [r7, #36] @ 0x24
  27818. /* Wait till PLL is disabled */
  27819. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27820. 800c0d6: e008 b.n 800c0ea <HAL_RCC_OscConfig+0x7c2>
  27821. {
  27822. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27823. 800c0d8: f7f9 fe90 bl 8005dfc <HAL_GetTick>
  27824. 800c0dc: 4602 mov r2, r0
  27825. 800c0de: 6a7b ldr r3, [r7, #36] @ 0x24
  27826. 800c0e0: 1ad3 subs r3, r2, r3
  27827. 800c0e2: 2b02 cmp r3, #2
  27828. 800c0e4: d901 bls.n 800c0ea <HAL_RCC_OscConfig+0x7c2>
  27829. {
  27830. return HAL_TIMEOUT;
  27831. 800c0e6: 2303 movs r3, #3
  27832. 800c0e8: e070 b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27833. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27834. 800c0ea: 4b3a ldr r3, [pc, #232] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27835. 800c0ec: 681b ldr r3, [r3, #0]
  27836. 800c0ee: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27837. 800c0f2: 2b00 cmp r3, #0
  27838. 800c0f4: d1f0 bne.n 800c0d8 <HAL_RCC_OscConfig+0x7b0>
  27839. 800c0f6: e068 b.n 800c1ca <HAL_RCC_OscConfig+0x8a2>
  27840. }
  27841. }
  27842. else
  27843. {
  27844. /* Do not return HAL_ERROR if request repeats the current configuration */
  27845. temp1_pllckcfg = RCC->PLLCKSELR;
  27846. 800c0f8: 4b36 ldr r3, [pc, #216] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27847. 800c0fa: 6a9b ldr r3, [r3, #40] @ 0x28
  27848. 800c0fc: 613b str r3, [r7, #16]
  27849. temp2_pllckcfg = RCC->PLL1DIVR;
  27850. 800c0fe: 4b35 ldr r3, [pc, #212] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27851. 800c100: 6b1b ldr r3, [r3, #48] @ 0x30
  27852. 800c102: 60fb str r3, [r7, #12]
  27853. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27854. 800c104: 687b ldr r3, [r7, #4]
  27855. 800c106: 6a5b ldr r3, [r3, #36] @ 0x24
  27856. 800c108: 2b01 cmp r3, #1
  27857. 800c10a: d031 beq.n 800c170 <HAL_RCC_OscConfig+0x848>
  27858. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27859. 800c10c: 693b ldr r3, [r7, #16]
  27860. 800c10e: f003 0203 and.w r2, r3, #3
  27861. 800c112: 687b ldr r3, [r7, #4]
  27862. 800c114: 6a9b ldr r3, [r3, #40] @ 0x28
  27863. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27864. 800c116: 429a cmp r2, r3
  27865. 800c118: d12a bne.n 800c170 <HAL_RCC_OscConfig+0x848>
  27866. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27867. 800c11a: 693b ldr r3, [r7, #16]
  27868. 800c11c: 091b lsrs r3, r3, #4
  27869. 800c11e: f003 023f and.w r2, r3, #63 @ 0x3f
  27870. 800c122: 687b ldr r3, [r7, #4]
  27871. 800c124: 6adb ldr r3, [r3, #44] @ 0x2c
  27872. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27873. 800c126: 429a cmp r2, r3
  27874. 800c128: d122 bne.n 800c170 <HAL_RCC_OscConfig+0x848>
  27875. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27876. 800c12a: 68fb ldr r3, [r7, #12]
  27877. 800c12c: f3c3 0208 ubfx r2, r3, #0, #9
  27878. 800c130: 687b ldr r3, [r7, #4]
  27879. 800c132: 6b1b ldr r3, [r3, #48] @ 0x30
  27880. 800c134: 3b01 subs r3, #1
  27881. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27882. 800c136: 429a cmp r2, r3
  27883. 800c138: d11a bne.n 800c170 <HAL_RCC_OscConfig+0x848>
  27884. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27885. 800c13a: 68fb ldr r3, [r7, #12]
  27886. 800c13c: 0a5b lsrs r3, r3, #9
  27887. 800c13e: f003 027f and.w r2, r3, #127 @ 0x7f
  27888. 800c142: 687b ldr r3, [r7, #4]
  27889. 800c144: 6b5b ldr r3, [r3, #52] @ 0x34
  27890. 800c146: 3b01 subs r3, #1
  27891. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27892. 800c148: 429a cmp r2, r3
  27893. 800c14a: d111 bne.n 800c170 <HAL_RCC_OscConfig+0x848>
  27894. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27895. 800c14c: 68fb ldr r3, [r7, #12]
  27896. 800c14e: 0c1b lsrs r3, r3, #16
  27897. 800c150: f003 027f and.w r2, r3, #127 @ 0x7f
  27898. 800c154: 687b ldr r3, [r7, #4]
  27899. 800c156: 6b9b ldr r3, [r3, #56] @ 0x38
  27900. 800c158: 3b01 subs r3, #1
  27901. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27902. 800c15a: 429a cmp r2, r3
  27903. 800c15c: d108 bne.n 800c170 <HAL_RCC_OscConfig+0x848>
  27904. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  27905. 800c15e: 68fb ldr r3, [r7, #12]
  27906. 800c160: 0e1b lsrs r3, r3, #24
  27907. 800c162: f003 027f and.w r2, r3, #127 @ 0x7f
  27908. 800c166: 687b ldr r3, [r7, #4]
  27909. 800c168: 6bdb ldr r3, [r3, #60] @ 0x3c
  27910. 800c16a: 3b01 subs r3, #1
  27911. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27912. 800c16c: 429a cmp r2, r3
  27913. 800c16e: d001 beq.n 800c174 <HAL_RCC_OscConfig+0x84c>
  27914. {
  27915. return HAL_ERROR;
  27916. 800c170: 2301 movs r3, #1
  27917. 800c172: e02b b.n 800c1cc <HAL_RCC_OscConfig+0x8a4>
  27918. }
  27919. else
  27920. {
  27921. /* Check if only fractional part needs to be updated */
  27922. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  27923. 800c174: 4b17 ldr r3, [pc, #92] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27924. 800c176: 6b5b ldr r3, [r3, #52] @ 0x34
  27925. 800c178: 08db lsrs r3, r3, #3
  27926. 800c17a: f3c3 030c ubfx r3, r3, #0, #13
  27927. 800c17e: 613b str r3, [r7, #16]
  27928. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  27929. 800c180: 687b ldr r3, [r7, #4]
  27930. 800c182: 6c9b ldr r3, [r3, #72] @ 0x48
  27931. 800c184: 693a ldr r2, [r7, #16]
  27932. 800c186: 429a cmp r2, r3
  27933. 800c188: d01f beq.n 800c1ca <HAL_RCC_OscConfig+0x8a2>
  27934. {
  27935. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27936. /* Disable PLL1FRACEN */
  27937. __HAL_RCC_PLLFRACN_DISABLE();
  27938. 800c18a: 4b12 ldr r3, [pc, #72] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27939. 800c18c: 6adb ldr r3, [r3, #44] @ 0x2c
  27940. 800c18e: 4a11 ldr r2, [pc, #68] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27941. 800c190: f023 0301 bic.w r3, r3, #1
  27942. 800c194: 62d3 str r3, [r2, #44] @ 0x2c
  27943. /* Get Start Tick*/
  27944. tickstart = HAL_GetTick();
  27945. 800c196: f7f9 fe31 bl 8005dfc <HAL_GetTick>
  27946. 800c19a: 6278 str r0, [r7, #36] @ 0x24
  27947. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  27948. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  27949. 800c19c: bf00 nop
  27950. 800c19e: f7f9 fe2d bl 8005dfc <HAL_GetTick>
  27951. 800c1a2: 4602 mov r2, r0
  27952. 800c1a4: 6a7b ldr r3, [r7, #36] @ 0x24
  27953. 800c1a6: 4293 cmp r3, r2
  27954. 800c1a8: d0f9 beq.n 800c19e <HAL_RCC_OscConfig+0x876>
  27955. {
  27956. }
  27957. /* Configure PLL1 PLL1FRACN */
  27958. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27959. 800c1aa: 4b0a ldr r3, [pc, #40] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27960. 800c1ac: 6b5a ldr r2, [r3, #52] @ 0x34
  27961. 800c1ae: 4b0a ldr r3, [pc, #40] @ (800c1d8 <HAL_RCC_OscConfig+0x8b0>)
  27962. 800c1b0: 4013 ands r3, r2
  27963. 800c1b2: 687a ldr r2, [r7, #4]
  27964. 800c1b4: 6c92 ldr r2, [r2, #72] @ 0x48
  27965. 800c1b6: 00d2 lsls r2, r2, #3
  27966. 800c1b8: 4906 ldr r1, [pc, #24] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27967. 800c1ba: 4313 orrs r3, r2
  27968. 800c1bc: 634b str r3, [r1, #52] @ 0x34
  27969. /* Enable PLL1FRACEN to latch new value. */
  27970. __HAL_RCC_PLLFRACN_ENABLE();
  27971. 800c1be: 4b05 ldr r3, [pc, #20] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27972. 800c1c0: 6adb ldr r3, [r3, #44] @ 0x2c
  27973. 800c1c2: 4a04 ldr r2, [pc, #16] @ (800c1d4 <HAL_RCC_OscConfig+0x8ac>)
  27974. 800c1c4: f043 0301 orr.w r3, r3, #1
  27975. 800c1c8: 62d3 str r3, [r2, #44] @ 0x2c
  27976. }
  27977. }
  27978. }
  27979. }
  27980. return HAL_OK;
  27981. 800c1ca: 2300 movs r3, #0
  27982. }
  27983. 800c1cc: 4618 mov r0, r3
  27984. 800c1ce: 3730 adds r7, #48 @ 0x30
  27985. 800c1d0: 46bd mov sp, r7
  27986. 800c1d2: bd80 pop {r7, pc}
  27987. 800c1d4: 58024400 .word 0x58024400
  27988. 800c1d8: ffff0007 .word 0xffff0007
  27989. 0800c1dc <HAL_RCC_ClockConfig>:
  27990. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  27991. * (for more details refer to section above "Initialization/de-initialization functions")
  27992. * @retval None
  27993. */
  27994. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  27995. {
  27996. 800c1dc: b580 push {r7, lr}
  27997. 800c1de: b086 sub sp, #24
  27998. 800c1e0: af00 add r7, sp, #0
  27999. 800c1e2: 6078 str r0, [r7, #4]
  28000. 800c1e4: 6039 str r1, [r7, #0]
  28001. HAL_StatusTypeDef halstatus;
  28002. uint32_t tickstart;
  28003. uint32_t common_system_clock;
  28004. /* Check Null pointer */
  28005. if (RCC_ClkInitStruct == NULL)
  28006. 800c1e6: 687b ldr r3, [r7, #4]
  28007. 800c1e8: 2b00 cmp r3, #0
  28008. 800c1ea: d101 bne.n 800c1f0 <HAL_RCC_ClockConfig+0x14>
  28009. {
  28010. return HAL_ERROR;
  28011. 800c1ec: 2301 movs r3, #1
  28012. 800c1ee: e19c b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28013. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  28014. must be correctly programmed according to the frequency of the CPU clock
  28015. (HCLK) and the supply voltage of the device. */
  28016. /* Increasing the CPU frequency */
  28017. if (FLatency > __HAL_FLASH_GET_LATENCY())
  28018. 800c1f0: 4b8a ldr r3, [pc, #552] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28019. 800c1f2: 681b ldr r3, [r3, #0]
  28020. 800c1f4: f003 030f and.w r3, r3, #15
  28021. 800c1f8: 683a ldr r2, [r7, #0]
  28022. 800c1fa: 429a cmp r2, r3
  28023. 800c1fc: d910 bls.n 800c220 <HAL_RCC_ClockConfig+0x44>
  28024. {
  28025. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28026. __HAL_FLASH_SET_LATENCY(FLatency);
  28027. 800c1fe: 4b87 ldr r3, [pc, #540] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28028. 800c200: 681b ldr r3, [r3, #0]
  28029. 800c202: f023 020f bic.w r2, r3, #15
  28030. 800c206: 4985 ldr r1, [pc, #532] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28031. 800c208: 683b ldr r3, [r7, #0]
  28032. 800c20a: 4313 orrs r3, r2
  28033. 800c20c: 600b str r3, [r1, #0]
  28034. /* Check that the new number of wait states is taken into account to access the Flash
  28035. memory by reading the FLASH_ACR register */
  28036. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28037. 800c20e: 4b83 ldr r3, [pc, #524] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28038. 800c210: 681b ldr r3, [r3, #0]
  28039. 800c212: f003 030f and.w r3, r3, #15
  28040. 800c216: 683a ldr r2, [r7, #0]
  28041. 800c218: 429a cmp r2, r3
  28042. 800c21a: d001 beq.n 800c220 <HAL_RCC_ClockConfig+0x44>
  28043. {
  28044. return HAL_ERROR;
  28045. 800c21c: 2301 movs r3, #1
  28046. 800c21e: e184 b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28047. }
  28048. /* Increasing the BUS frequency divider */
  28049. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  28050. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28051. 800c220: 687b ldr r3, [r7, #4]
  28052. 800c222: 681b ldr r3, [r3, #0]
  28053. 800c224: f003 0304 and.w r3, r3, #4
  28054. 800c228: 2b00 cmp r3, #0
  28055. 800c22a: d010 beq.n 800c24e <HAL_RCC_ClockConfig+0x72>
  28056. {
  28057. #if defined (RCC_D1CFGR_D1PPRE)
  28058. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28059. 800c22c: 687b ldr r3, [r7, #4]
  28060. 800c22e: 691a ldr r2, [r3, #16]
  28061. 800c230: 4b7b ldr r3, [pc, #492] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28062. 800c232: 699b ldr r3, [r3, #24]
  28063. 800c234: f003 0370 and.w r3, r3, #112 @ 0x70
  28064. 800c238: 429a cmp r2, r3
  28065. 800c23a: d908 bls.n 800c24e <HAL_RCC_ClockConfig+0x72>
  28066. {
  28067. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28068. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28069. 800c23c: 4b78 ldr r3, [pc, #480] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28070. 800c23e: 699b ldr r3, [r3, #24]
  28071. 800c240: f023 0270 bic.w r2, r3, #112 @ 0x70
  28072. 800c244: 687b ldr r3, [r7, #4]
  28073. 800c246: 691b ldr r3, [r3, #16]
  28074. 800c248: 4975 ldr r1, [pc, #468] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28075. 800c24a: 4313 orrs r3, r2
  28076. 800c24c: 618b str r3, [r1, #24]
  28077. }
  28078. #endif
  28079. }
  28080. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28081. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28082. 800c24e: 687b ldr r3, [r7, #4]
  28083. 800c250: 681b ldr r3, [r3, #0]
  28084. 800c252: f003 0308 and.w r3, r3, #8
  28085. 800c256: 2b00 cmp r3, #0
  28086. 800c258: d010 beq.n 800c27c <HAL_RCC_ClockConfig+0xa0>
  28087. {
  28088. #if defined (RCC_D2CFGR_D2PPRE1)
  28089. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28090. 800c25a: 687b ldr r3, [r7, #4]
  28091. 800c25c: 695a ldr r2, [r3, #20]
  28092. 800c25e: 4b70 ldr r3, [pc, #448] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28093. 800c260: 69db ldr r3, [r3, #28]
  28094. 800c262: f003 0370 and.w r3, r3, #112 @ 0x70
  28095. 800c266: 429a cmp r2, r3
  28096. 800c268: d908 bls.n 800c27c <HAL_RCC_ClockConfig+0xa0>
  28097. {
  28098. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28099. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28100. 800c26a: 4b6d ldr r3, [pc, #436] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28101. 800c26c: 69db ldr r3, [r3, #28]
  28102. 800c26e: f023 0270 bic.w r2, r3, #112 @ 0x70
  28103. 800c272: 687b ldr r3, [r7, #4]
  28104. 800c274: 695b ldr r3, [r3, #20]
  28105. 800c276: 496a ldr r1, [pc, #424] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28106. 800c278: 4313 orrs r3, r2
  28107. 800c27a: 61cb str r3, [r1, #28]
  28108. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28109. }
  28110. #endif
  28111. }
  28112. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28113. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28114. 800c27c: 687b ldr r3, [r7, #4]
  28115. 800c27e: 681b ldr r3, [r3, #0]
  28116. 800c280: f003 0310 and.w r3, r3, #16
  28117. 800c284: 2b00 cmp r3, #0
  28118. 800c286: d010 beq.n 800c2aa <HAL_RCC_ClockConfig+0xce>
  28119. {
  28120. #if defined(RCC_D2CFGR_D2PPRE2)
  28121. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28122. 800c288: 687b ldr r3, [r7, #4]
  28123. 800c28a: 699a ldr r2, [r3, #24]
  28124. 800c28c: 4b64 ldr r3, [pc, #400] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28125. 800c28e: 69db ldr r3, [r3, #28]
  28126. 800c290: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28127. 800c294: 429a cmp r2, r3
  28128. 800c296: d908 bls.n 800c2aa <HAL_RCC_ClockConfig+0xce>
  28129. {
  28130. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28131. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28132. 800c298: 4b61 ldr r3, [pc, #388] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28133. 800c29a: 69db ldr r3, [r3, #28]
  28134. 800c29c: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28135. 800c2a0: 687b ldr r3, [r7, #4]
  28136. 800c2a2: 699b ldr r3, [r3, #24]
  28137. 800c2a4: 495e ldr r1, [pc, #376] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28138. 800c2a6: 4313 orrs r3, r2
  28139. 800c2a8: 61cb str r3, [r1, #28]
  28140. }
  28141. #endif
  28142. }
  28143. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  28144. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28145. 800c2aa: 687b ldr r3, [r7, #4]
  28146. 800c2ac: 681b ldr r3, [r3, #0]
  28147. 800c2ae: f003 0320 and.w r3, r3, #32
  28148. 800c2b2: 2b00 cmp r3, #0
  28149. 800c2b4: d010 beq.n 800c2d8 <HAL_RCC_ClockConfig+0xfc>
  28150. {
  28151. #if defined(RCC_D3CFGR_D3PPRE)
  28152. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28153. 800c2b6: 687b ldr r3, [r7, #4]
  28154. 800c2b8: 69da ldr r2, [r3, #28]
  28155. 800c2ba: 4b59 ldr r3, [pc, #356] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28156. 800c2bc: 6a1b ldr r3, [r3, #32]
  28157. 800c2be: f003 0370 and.w r3, r3, #112 @ 0x70
  28158. 800c2c2: 429a cmp r2, r3
  28159. 800c2c4: d908 bls.n 800c2d8 <HAL_RCC_ClockConfig+0xfc>
  28160. {
  28161. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28162. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28163. 800c2c6: 4b56 ldr r3, [pc, #344] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28164. 800c2c8: 6a1b ldr r3, [r3, #32]
  28165. 800c2ca: f023 0270 bic.w r2, r3, #112 @ 0x70
  28166. 800c2ce: 687b ldr r3, [r7, #4]
  28167. 800c2d0: 69db ldr r3, [r3, #28]
  28168. 800c2d2: 4953 ldr r1, [pc, #332] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28169. 800c2d4: 4313 orrs r3, r2
  28170. 800c2d6: 620b str r3, [r1, #32]
  28171. }
  28172. #endif
  28173. }
  28174. /*-------------------------- HCLK Configuration --------------------------*/
  28175. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28176. 800c2d8: 687b ldr r3, [r7, #4]
  28177. 800c2da: 681b ldr r3, [r3, #0]
  28178. 800c2dc: f003 0302 and.w r3, r3, #2
  28179. 800c2e0: 2b00 cmp r3, #0
  28180. 800c2e2: d010 beq.n 800c306 <HAL_RCC_ClockConfig+0x12a>
  28181. {
  28182. #if defined (RCC_D1CFGR_HPRE)
  28183. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28184. 800c2e4: 687b ldr r3, [r7, #4]
  28185. 800c2e6: 68da ldr r2, [r3, #12]
  28186. 800c2e8: 4b4d ldr r3, [pc, #308] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28187. 800c2ea: 699b ldr r3, [r3, #24]
  28188. 800c2ec: f003 030f and.w r3, r3, #15
  28189. 800c2f0: 429a cmp r2, r3
  28190. 800c2f2: d908 bls.n 800c306 <HAL_RCC_ClockConfig+0x12a>
  28191. {
  28192. /* Set the new HCLK clock divider */
  28193. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28194. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28195. 800c2f4: 4b4a ldr r3, [pc, #296] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28196. 800c2f6: 699b ldr r3, [r3, #24]
  28197. 800c2f8: f023 020f bic.w r2, r3, #15
  28198. 800c2fc: 687b ldr r3, [r7, #4]
  28199. 800c2fe: 68db ldr r3, [r3, #12]
  28200. 800c300: 4947 ldr r1, [pc, #284] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28201. 800c302: 4313 orrs r3, r2
  28202. 800c304: 618b str r3, [r1, #24]
  28203. }
  28204. #endif
  28205. }
  28206. /*------------------------- SYSCLK Configuration -------------------------*/
  28207. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  28208. 800c306: 687b ldr r3, [r7, #4]
  28209. 800c308: 681b ldr r3, [r3, #0]
  28210. 800c30a: f003 0301 and.w r3, r3, #1
  28211. 800c30e: 2b00 cmp r3, #0
  28212. 800c310: d055 beq.n 800c3be <HAL_RCC_ClockConfig+0x1e2>
  28213. {
  28214. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  28215. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  28216. #if defined(RCC_D1CFGR_D1CPRE)
  28217. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28218. 800c312: 4b43 ldr r3, [pc, #268] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28219. 800c314: 699b ldr r3, [r3, #24]
  28220. 800c316: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  28221. 800c31a: 687b ldr r3, [r7, #4]
  28222. 800c31c: 689b ldr r3, [r3, #8]
  28223. 800c31e: 4940 ldr r1, [pc, #256] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28224. 800c320: 4313 orrs r3, r2
  28225. 800c322: 618b str r3, [r1, #24]
  28226. #else
  28227. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28228. #endif
  28229. /* HSE is selected as System Clock Source */
  28230. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  28231. 800c324: 687b ldr r3, [r7, #4]
  28232. 800c326: 685b ldr r3, [r3, #4]
  28233. 800c328: 2b02 cmp r3, #2
  28234. 800c32a: d107 bne.n 800c33c <HAL_RCC_ClockConfig+0x160>
  28235. {
  28236. /* Check the HSE ready flag */
  28237. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  28238. 800c32c: 4b3c ldr r3, [pc, #240] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28239. 800c32e: 681b ldr r3, [r3, #0]
  28240. 800c330: f403 3300 and.w r3, r3, #131072 @ 0x20000
  28241. 800c334: 2b00 cmp r3, #0
  28242. 800c336: d121 bne.n 800c37c <HAL_RCC_ClockConfig+0x1a0>
  28243. {
  28244. return HAL_ERROR;
  28245. 800c338: 2301 movs r3, #1
  28246. 800c33a: e0f6 b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28247. }
  28248. }
  28249. /* PLL is selected as System Clock Source */
  28250. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  28251. 800c33c: 687b ldr r3, [r7, #4]
  28252. 800c33e: 685b ldr r3, [r3, #4]
  28253. 800c340: 2b03 cmp r3, #3
  28254. 800c342: d107 bne.n 800c354 <HAL_RCC_ClockConfig+0x178>
  28255. {
  28256. /* Check the PLL ready flag */
  28257. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  28258. 800c344: 4b36 ldr r3, [pc, #216] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28259. 800c346: 681b ldr r3, [r3, #0]
  28260. 800c348: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  28261. 800c34c: 2b00 cmp r3, #0
  28262. 800c34e: d115 bne.n 800c37c <HAL_RCC_ClockConfig+0x1a0>
  28263. {
  28264. return HAL_ERROR;
  28265. 800c350: 2301 movs r3, #1
  28266. 800c352: e0ea b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28267. }
  28268. }
  28269. /* CSI is selected as System Clock Source */
  28270. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  28271. 800c354: 687b ldr r3, [r7, #4]
  28272. 800c356: 685b ldr r3, [r3, #4]
  28273. 800c358: 2b01 cmp r3, #1
  28274. 800c35a: d107 bne.n 800c36c <HAL_RCC_ClockConfig+0x190>
  28275. {
  28276. /* Check the PLL ready flag */
  28277. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  28278. 800c35c: 4b30 ldr r3, [pc, #192] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28279. 800c35e: 681b ldr r3, [r3, #0]
  28280. 800c360: f403 7380 and.w r3, r3, #256 @ 0x100
  28281. 800c364: 2b00 cmp r3, #0
  28282. 800c366: d109 bne.n 800c37c <HAL_RCC_ClockConfig+0x1a0>
  28283. {
  28284. return HAL_ERROR;
  28285. 800c368: 2301 movs r3, #1
  28286. 800c36a: e0de b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28287. }
  28288. /* HSI is selected as System Clock Source */
  28289. else
  28290. {
  28291. /* Check the HSI ready flag */
  28292. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  28293. 800c36c: 4b2c ldr r3, [pc, #176] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28294. 800c36e: 681b ldr r3, [r3, #0]
  28295. 800c370: f003 0304 and.w r3, r3, #4
  28296. 800c374: 2b00 cmp r3, #0
  28297. 800c376: d101 bne.n 800c37c <HAL_RCC_ClockConfig+0x1a0>
  28298. {
  28299. return HAL_ERROR;
  28300. 800c378: 2301 movs r3, #1
  28301. 800c37a: e0d6 b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28302. }
  28303. }
  28304. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  28305. 800c37c: 4b28 ldr r3, [pc, #160] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28306. 800c37e: 691b ldr r3, [r3, #16]
  28307. 800c380: f023 0207 bic.w r2, r3, #7
  28308. 800c384: 687b ldr r3, [r7, #4]
  28309. 800c386: 685b ldr r3, [r3, #4]
  28310. 800c388: 4925 ldr r1, [pc, #148] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28311. 800c38a: 4313 orrs r3, r2
  28312. 800c38c: 610b str r3, [r1, #16]
  28313. /* Get Start Tick*/
  28314. tickstart = HAL_GetTick();
  28315. 800c38e: f7f9 fd35 bl 8005dfc <HAL_GetTick>
  28316. 800c392: 6178 str r0, [r7, #20]
  28317. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28318. 800c394: e00a b.n 800c3ac <HAL_RCC_ClockConfig+0x1d0>
  28319. {
  28320. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  28321. 800c396: f7f9 fd31 bl 8005dfc <HAL_GetTick>
  28322. 800c39a: 4602 mov r2, r0
  28323. 800c39c: 697b ldr r3, [r7, #20]
  28324. 800c39e: 1ad3 subs r3, r2, r3
  28325. 800c3a0: f241 3288 movw r2, #5000 @ 0x1388
  28326. 800c3a4: 4293 cmp r3, r2
  28327. 800c3a6: d901 bls.n 800c3ac <HAL_RCC_ClockConfig+0x1d0>
  28328. {
  28329. return HAL_TIMEOUT;
  28330. 800c3a8: 2303 movs r3, #3
  28331. 800c3aa: e0be b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28332. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28333. 800c3ac: 4b1c ldr r3, [pc, #112] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28334. 800c3ae: 691b ldr r3, [r3, #16]
  28335. 800c3b0: f003 0238 and.w r2, r3, #56 @ 0x38
  28336. 800c3b4: 687b ldr r3, [r7, #4]
  28337. 800c3b6: 685b ldr r3, [r3, #4]
  28338. 800c3b8: 00db lsls r3, r3, #3
  28339. 800c3ba: 429a cmp r2, r3
  28340. 800c3bc: d1eb bne.n 800c396 <HAL_RCC_ClockConfig+0x1ba>
  28341. }
  28342. /* Decreasing the BUS frequency divider */
  28343. /*-------------------------- HCLK Configuration --------------------------*/
  28344. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28345. 800c3be: 687b ldr r3, [r7, #4]
  28346. 800c3c0: 681b ldr r3, [r3, #0]
  28347. 800c3c2: f003 0302 and.w r3, r3, #2
  28348. 800c3c6: 2b00 cmp r3, #0
  28349. 800c3c8: d010 beq.n 800c3ec <HAL_RCC_ClockConfig+0x210>
  28350. {
  28351. #if defined(RCC_D1CFGR_HPRE)
  28352. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28353. 800c3ca: 687b ldr r3, [r7, #4]
  28354. 800c3cc: 68da ldr r2, [r3, #12]
  28355. 800c3ce: 4b14 ldr r3, [pc, #80] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28356. 800c3d0: 699b ldr r3, [r3, #24]
  28357. 800c3d2: f003 030f and.w r3, r3, #15
  28358. 800c3d6: 429a cmp r2, r3
  28359. 800c3d8: d208 bcs.n 800c3ec <HAL_RCC_ClockConfig+0x210>
  28360. {
  28361. /* Set the new HCLK clock divider */
  28362. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28363. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28364. 800c3da: 4b11 ldr r3, [pc, #68] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28365. 800c3dc: 699b ldr r3, [r3, #24]
  28366. 800c3de: f023 020f bic.w r2, r3, #15
  28367. 800c3e2: 687b ldr r3, [r7, #4]
  28368. 800c3e4: 68db ldr r3, [r3, #12]
  28369. 800c3e6: 490e ldr r1, [pc, #56] @ (800c420 <HAL_RCC_ClockConfig+0x244>)
  28370. 800c3e8: 4313 orrs r3, r2
  28371. 800c3ea: 618b str r3, [r1, #24]
  28372. }
  28373. #endif
  28374. }
  28375. /* Decreasing the number of wait states because of lower CPU frequency */
  28376. if (FLatency < __HAL_FLASH_GET_LATENCY())
  28377. 800c3ec: 4b0b ldr r3, [pc, #44] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28378. 800c3ee: 681b ldr r3, [r3, #0]
  28379. 800c3f0: f003 030f and.w r3, r3, #15
  28380. 800c3f4: 683a ldr r2, [r7, #0]
  28381. 800c3f6: 429a cmp r2, r3
  28382. 800c3f8: d214 bcs.n 800c424 <HAL_RCC_ClockConfig+0x248>
  28383. {
  28384. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28385. __HAL_FLASH_SET_LATENCY(FLatency);
  28386. 800c3fa: 4b08 ldr r3, [pc, #32] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28387. 800c3fc: 681b ldr r3, [r3, #0]
  28388. 800c3fe: f023 020f bic.w r2, r3, #15
  28389. 800c402: 4906 ldr r1, [pc, #24] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28390. 800c404: 683b ldr r3, [r7, #0]
  28391. 800c406: 4313 orrs r3, r2
  28392. 800c408: 600b str r3, [r1, #0]
  28393. /* Check that the new number of wait states is taken into account to access the Flash
  28394. memory by reading the FLASH_ACR register */
  28395. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28396. 800c40a: 4b04 ldr r3, [pc, #16] @ (800c41c <HAL_RCC_ClockConfig+0x240>)
  28397. 800c40c: 681b ldr r3, [r3, #0]
  28398. 800c40e: f003 030f and.w r3, r3, #15
  28399. 800c412: 683a ldr r2, [r7, #0]
  28400. 800c414: 429a cmp r2, r3
  28401. 800c416: d005 beq.n 800c424 <HAL_RCC_ClockConfig+0x248>
  28402. {
  28403. return HAL_ERROR;
  28404. 800c418: 2301 movs r3, #1
  28405. 800c41a: e086 b.n 800c52a <HAL_RCC_ClockConfig+0x34e>
  28406. 800c41c: 52002000 .word 0x52002000
  28407. 800c420: 58024400 .word 0x58024400
  28408. }
  28409. }
  28410. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  28411. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28412. 800c424: 687b ldr r3, [r7, #4]
  28413. 800c426: 681b ldr r3, [r3, #0]
  28414. 800c428: f003 0304 and.w r3, r3, #4
  28415. 800c42c: 2b00 cmp r3, #0
  28416. 800c42e: d010 beq.n 800c452 <HAL_RCC_ClockConfig+0x276>
  28417. {
  28418. #if defined(RCC_D1CFGR_D1PPRE)
  28419. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28420. 800c430: 687b ldr r3, [r7, #4]
  28421. 800c432: 691a ldr r2, [r3, #16]
  28422. 800c434: 4b3f ldr r3, [pc, #252] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28423. 800c436: 699b ldr r3, [r3, #24]
  28424. 800c438: f003 0370 and.w r3, r3, #112 @ 0x70
  28425. 800c43c: 429a cmp r2, r3
  28426. 800c43e: d208 bcs.n 800c452 <HAL_RCC_ClockConfig+0x276>
  28427. {
  28428. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28429. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28430. 800c440: 4b3c ldr r3, [pc, #240] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28431. 800c442: 699b ldr r3, [r3, #24]
  28432. 800c444: f023 0270 bic.w r2, r3, #112 @ 0x70
  28433. 800c448: 687b ldr r3, [r7, #4]
  28434. 800c44a: 691b ldr r3, [r3, #16]
  28435. 800c44c: 4939 ldr r1, [pc, #228] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28436. 800c44e: 4313 orrs r3, r2
  28437. 800c450: 618b str r3, [r1, #24]
  28438. }
  28439. #endif
  28440. }
  28441. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28442. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28443. 800c452: 687b ldr r3, [r7, #4]
  28444. 800c454: 681b ldr r3, [r3, #0]
  28445. 800c456: f003 0308 and.w r3, r3, #8
  28446. 800c45a: 2b00 cmp r3, #0
  28447. 800c45c: d010 beq.n 800c480 <HAL_RCC_ClockConfig+0x2a4>
  28448. {
  28449. #if defined(RCC_D2CFGR_D2PPRE1)
  28450. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28451. 800c45e: 687b ldr r3, [r7, #4]
  28452. 800c460: 695a ldr r2, [r3, #20]
  28453. 800c462: 4b34 ldr r3, [pc, #208] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28454. 800c464: 69db ldr r3, [r3, #28]
  28455. 800c466: f003 0370 and.w r3, r3, #112 @ 0x70
  28456. 800c46a: 429a cmp r2, r3
  28457. 800c46c: d208 bcs.n 800c480 <HAL_RCC_ClockConfig+0x2a4>
  28458. {
  28459. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28460. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28461. 800c46e: 4b31 ldr r3, [pc, #196] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28462. 800c470: 69db ldr r3, [r3, #28]
  28463. 800c472: f023 0270 bic.w r2, r3, #112 @ 0x70
  28464. 800c476: 687b ldr r3, [r7, #4]
  28465. 800c478: 695b ldr r3, [r3, #20]
  28466. 800c47a: 492e ldr r1, [pc, #184] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28467. 800c47c: 4313 orrs r3, r2
  28468. 800c47e: 61cb str r3, [r1, #28]
  28469. }
  28470. #endif
  28471. }
  28472. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28473. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28474. 800c480: 687b ldr r3, [r7, #4]
  28475. 800c482: 681b ldr r3, [r3, #0]
  28476. 800c484: f003 0310 and.w r3, r3, #16
  28477. 800c488: 2b00 cmp r3, #0
  28478. 800c48a: d010 beq.n 800c4ae <HAL_RCC_ClockConfig+0x2d2>
  28479. {
  28480. #if defined (RCC_D2CFGR_D2PPRE2)
  28481. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28482. 800c48c: 687b ldr r3, [r7, #4]
  28483. 800c48e: 699a ldr r2, [r3, #24]
  28484. 800c490: 4b28 ldr r3, [pc, #160] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28485. 800c492: 69db ldr r3, [r3, #28]
  28486. 800c494: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28487. 800c498: 429a cmp r2, r3
  28488. 800c49a: d208 bcs.n 800c4ae <HAL_RCC_ClockConfig+0x2d2>
  28489. {
  28490. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28491. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28492. 800c49c: 4b25 ldr r3, [pc, #148] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28493. 800c49e: 69db ldr r3, [r3, #28]
  28494. 800c4a0: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28495. 800c4a4: 687b ldr r3, [r7, #4]
  28496. 800c4a6: 699b ldr r3, [r3, #24]
  28497. 800c4a8: 4922 ldr r1, [pc, #136] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28498. 800c4aa: 4313 orrs r3, r2
  28499. 800c4ac: 61cb str r3, [r1, #28]
  28500. }
  28501. #endif
  28502. }
  28503. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  28504. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28505. 800c4ae: 687b ldr r3, [r7, #4]
  28506. 800c4b0: 681b ldr r3, [r3, #0]
  28507. 800c4b2: f003 0320 and.w r3, r3, #32
  28508. 800c4b6: 2b00 cmp r3, #0
  28509. 800c4b8: d010 beq.n 800c4dc <HAL_RCC_ClockConfig+0x300>
  28510. {
  28511. #if defined(RCC_D3CFGR_D3PPRE)
  28512. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28513. 800c4ba: 687b ldr r3, [r7, #4]
  28514. 800c4bc: 69da ldr r2, [r3, #28]
  28515. 800c4be: 4b1d ldr r3, [pc, #116] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28516. 800c4c0: 6a1b ldr r3, [r3, #32]
  28517. 800c4c2: f003 0370 and.w r3, r3, #112 @ 0x70
  28518. 800c4c6: 429a cmp r2, r3
  28519. 800c4c8: d208 bcs.n 800c4dc <HAL_RCC_ClockConfig+0x300>
  28520. {
  28521. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28522. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28523. 800c4ca: 4b1a ldr r3, [pc, #104] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28524. 800c4cc: 6a1b ldr r3, [r3, #32]
  28525. 800c4ce: f023 0270 bic.w r2, r3, #112 @ 0x70
  28526. 800c4d2: 687b ldr r3, [r7, #4]
  28527. 800c4d4: 69db ldr r3, [r3, #28]
  28528. 800c4d6: 4917 ldr r1, [pc, #92] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28529. 800c4d8: 4313 orrs r3, r2
  28530. 800c4da: 620b str r3, [r1, #32]
  28531. #endif
  28532. }
  28533. /* Update the SystemCoreClock global variable */
  28534. #if defined(RCC_D1CFGR_D1CPRE)
  28535. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  28536. 800c4dc: f000 f834 bl 800c548 <HAL_RCC_GetSysClockFreq>
  28537. 800c4e0: 4602 mov r2, r0
  28538. 800c4e2: 4b14 ldr r3, [pc, #80] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28539. 800c4e4: 699b ldr r3, [r3, #24]
  28540. 800c4e6: 0a1b lsrs r3, r3, #8
  28541. 800c4e8: f003 030f and.w r3, r3, #15
  28542. 800c4ec: 4912 ldr r1, [pc, #72] @ (800c538 <HAL_RCC_ClockConfig+0x35c>)
  28543. 800c4ee: 5ccb ldrb r3, [r1, r3]
  28544. 800c4f0: f003 031f and.w r3, r3, #31
  28545. 800c4f4: fa22 f303 lsr.w r3, r2, r3
  28546. 800c4f8: 613b str r3, [r7, #16]
  28547. #else
  28548. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  28549. #endif
  28550. #if defined(RCC_D1CFGR_HPRE)
  28551. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28552. 800c4fa: 4b0e ldr r3, [pc, #56] @ (800c534 <HAL_RCC_ClockConfig+0x358>)
  28553. 800c4fc: 699b ldr r3, [r3, #24]
  28554. 800c4fe: f003 030f and.w r3, r3, #15
  28555. 800c502: 4a0d ldr r2, [pc, #52] @ (800c538 <HAL_RCC_ClockConfig+0x35c>)
  28556. 800c504: 5cd3 ldrb r3, [r2, r3]
  28557. 800c506: f003 031f and.w r3, r3, #31
  28558. 800c50a: 693a ldr r2, [r7, #16]
  28559. 800c50c: fa22 f303 lsr.w r3, r2, r3
  28560. 800c510: 4a0a ldr r2, [pc, #40] @ (800c53c <HAL_RCC_ClockConfig+0x360>)
  28561. 800c512: 6013 str r3, [r2, #0]
  28562. #endif
  28563. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28564. SystemCoreClock = SystemD2Clock;
  28565. #else
  28566. SystemCoreClock = common_system_clock;
  28567. 800c514: 4a0a ldr r2, [pc, #40] @ (800c540 <HAL_RCC_ClockConfig+0x364>)
  28568. 800c516: 693b ldr r3, [r7, #16]
  28569. 800c518: 6013 str r3, [r2, #0]
  28570. #endif /* DUAL_CORE && CORE_CM4 */
  28571. /* Configure the source of time base considering new system clocks settings*/
  28572. halstatus = HAL_InitTick(uwTickPrio);
  28573. 800c51a: 4b0a ldr r3, [pc, #40] @ (800c544 <HAL_RCC_ClockConfig+0x368>)
  28574. 800c51c: 681b ldr r3, [r3, #0]
  28575. 800c51e: 4618 mov r0, r3
  28576. 800c520: f7f8 f89c bl 800465c <HAL_InitTick>
  28577. 800c524: 4603 mov r3, r0
  28578. 800c526: 73fb strb r3, [r7, #15]
  28579. return halstatus;
  28580. 800c528: 7bfb ldrb r3, [r7, #15]
  28581. }
  28582. 800c52a: 4618 mov r0, r3
  28583. 800c52c: 3718 adds r7, #24
  28584. 800c52e: 46bd mov sp, r7
  28585. 800c530: bd80 pop {r7, pc}
  28586. 800c532: bf00 nop
  28587. 800c534: 58024400 .word 0x58024400
  28588. 800c538: 080186dc .word 0x080186dc
  28589. 800c53c: 24000038 .word 0x24000038
  28590. 800c540: 24000034 .word 0x24000034
  28591. 800c544: 2400003c .word 0x2400003c
  28592. 0800c548 <HAL_RCC_GetSysClockFreq>:
  28593. *
  28594. *
  28595. * @retval SYSCLK frequency
  28596. */
  28597. uint32_t HAL_RCC_GetSysClockFreq(void)
  28598. {
  28599. 800c548: b480 push {r7}
  28600. 800c54a: b089 sub sp, #36 @ 0x24
  28601. 800c54c: af00 add r7, sp, #0
  28602. float_t fracn1, pllvco;
  28603. uint32_t sysclockfreq;
  28604. /* Get SYSCLK source -------------------------------------------------------*/
  28605. switch (RCC->CFGR & RCC_CFGR_SWS)
  28606. 800c54e: 4bb3 ldr r3, [pc, #716] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28607. 800c550: 691b ldr r3, [r3, #16]
  28608. 800c552: f003 0338 and.w r3, r3, #56 @ 0x38
  28609. 800c556: 2b18 cmp r3, #24
  28610. 800c558: f200 8155 bhi.w 800c806 <HAL_RCC_GetSysClockFreq+0x2be>
  28611. 800c55c: a201 add r2, pc, #4 @ (adr r2, 800c564 <HAL_RCC_GetSysClockFreq+0x1c>)
  28612. 800c55e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28613. 800c562: bf00 nop
  28614. 800c564: 0800c5c9 .word 0x0800c5c9
  28615. 800c568: 0800c807 .word 0x0800c807
  28616. 800c56c: 0800c807 .word 0x0800c807
  28617. 800c570: 0800c807 .word 0x0800c807
  28618. 800c574: 0800c807 .word 0x0800c807
  28619. 800c578: 0800c807 .word 0x0800c807
  28620. 800c57c: 0800c807 .word 0x0800c807
  28621. 800c580: 0800c807 .word 0x0800c807
  28622. 800c584: 0800c5ef .word 0x0800c5ef
  28623. 800c588: 0800c807 .word 0x0800c807
  28624. 800c58c: 0800c807 .word 0x0800c807
  28625. 800c590: 0800c807 .word 0x0800c807
  28626. 800c594: 0800c807 .word 0x0800c807
  28627. 800c598: 0800c807 .word 0x0800c807
  28628. 800c59c: 0800c807 .word 0x0800c807
  28629. 800c5a0: 0800c807 .word 0x0800c807
  28630. 800c5a4: 0800c5f5 .word 0x0800c5f5
  28631. 800c5a8: 0800c807 .word 0x0800c807
  28632. 800c5ac: 0800c807 .word 0x0800c807
  28633. 800c5b0: 0800c807 .word 0x0800c807
  28634. 800c5b4: 0800c807 .word 0x0800c807
  28635. 800c5b8: 0800c807 .word 0x0800c807
  28636. 800c5bc: 0800c807 .word 0x0800c807
  28637. 800c5c0: 0800c807 .word 0x0800c807
  28638. 800c5c4: 0800c5fb .word 0x0800c5fb
  28639. {
  28640. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  28641. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28642. 800c5c8: 4b94 ldr r3, [pc, #592] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28643. 800c5ca: 681b ldr r3, [r3, #0]
  28644. 800c5cc: f003 0320 and.w r3, r3, #32
  28645. 800c5d0: 2b00 cmp r3, #0
  28646. 800c5d2: d009 beq.n 800c5e8 <HAL_RCC_GetSysClockFreq+0xa0>
  28647. {
  28648. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28649. 800c5d4: 4b91 ldr r3, [pc, #580] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28650. 800c5d6: 681b ldr r3, [r3, #0]
  28651. 800c5d8: 08db lsrs r3, r3, #3
  28652. 800c5da: f003 0303 and.w r3, r3, #3
  28653. 800c5de: 4a90 ldr r2, [pc, #576] @ (800c820 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28654. 800c5e0: fa22 f303 lsr.w r3, r2, r3
  28655. 800c5e4: 61bb str r3, [r7, #24]
  28656. else
  28657. {
  28658. sysclockfreq = (uint32_t) HSI_VALUE;
  28659. }
  28660. break;
  28661. 800c5e6: e111 b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28662. sysclockfreq = (uint32_t) HSI_VALUE;
  28663. 800c5e8: 4b8d ldr r3, [pc, #564] @ (800c820 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28664. 800c5ea: 61bb str r3, [r7, #24]
  28665. break;
  28666. 800c5ec: e10e b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28667. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  28668. sysclockfreq = CSI_VALUE;
  28669. 800c5ee: 4b8d ldr r3, [pc, #564] @ (800c824 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28670. 800c5f0: 61bb str r3, [r7, #24]
  28671. break;
  28672. 800c5f2: e10b b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28673. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  28674. sysclockfreq = HSE_VALUE;
  28675. 800c5f4: 4b8c ldr r3, [pc, #560] @ (800c828 <HAL_RCC_GetSysClockFreq+0x2e0>)
  28676. 800c5f6: 61bb str r3, [r7, #24]
  28677. break;
  28678. 800c5f8: e108 b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28679. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  28680. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  28681. SYSCLK = PLL_VCO / PLLR
  28682. */
  28683. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28684. 800c5fa: 4b88 ldr r3, [pc, #544] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28685. 800c5fc: 6a9b ldr r3, [r3, #40] @ 0x28
  28686. 800c5fe: f003 0303 and.w r3, r3, #3
  28687. 800c602: 617b str r3, [r7, #20]
  28688. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  28689. 800c604: 4b85 ldr r3, [pc, #532] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28690. 800c606: 6a9b ldr r3, [r3, #40] @ 0x28
  28691. 800c608: 091b lsrs r3, r3, #4
  28692. 800c60a: f003 033f and.w r3, r3, #63 @ 0x3f
  28693. 800c60e: 613b str r3, [r7, #16]
  28694. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  28695. 800c610: 4b82 ldr r3, [pc, #520] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28696. 800c612: 6adb ldr r3, [r3, #44] @ 0x2c
  28697. 800c614: f003 0301 and.w r3, r3, #1
  28698. 800c618: 60fb str r3, [r7, #12]
  28699. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  28700. 800c61a: 4b80 ldr r3, [pc, #512] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28701. 800c61c: 6b5b ldr r3, [r3, #52] @ 0x34
  28702. 800c61e: 08db lsrs r3, r3, #3
  28703. 800c620: f3c3 030c ubfx r3, r3, #0, #13
  28704. 800c624: 68fa ldr r2, [r7, #12]
  28705. 800c626: fb02 f303 mul.w r3, r2, r3
  28706. 800c62a: ee07 3a90 vmov s15, r3
  28707. 800c62e: eef8 7a67 vcvt.f32.u32 s15, s15
  28708. 800c632: edc7 7a02 vstr s15, [r7, #8]
  28709. if (pllm != 0U)
  28710. 800c636: 693b ldr r3, [r7, #16]
  28711. 800c638: 2b00 cmp r3, #0
  28712. 800c63a: f000 80e1 beq.w 800c800 <HAL_RCC_GetSysClockFreq+0x2b8>
  28713. 800c63e: 697b ldr r3, [r7, #20]
  28714. 800c640: 2b02 cmp r3, #2
  28715. 800c642: f000 8083 beq.w 800c74c <HAL_RCC_GetSysClockFreq+0x204>
  28716. 800c646: 697b ldr r3, [r7, #20]
  28717. 800c648: 2b02 cmp r3, #2
  28718. 800c64a: f200 80a1 bhi.w 800c790 <HAL_RCC_GetSysClockFreq+0x248>
  28719. 800c64e: 697b ldr r3, [r7, #20]
  28720. 800c650: 2b00 cmp r3, #0
  28721. 800c652: d003 beq.n 800c65c <HAL_RCC_GetSysClockFreq+0x114>
  28722. 800c654: 697b ldr r3, [r7, #20]
  28723. 800c656: 2b01 cmp r3, #1
  28724. 800c658: d056 beq.n 800c708 <HAL_RCC_GetSysClockFreq+0x1c0>
  28725. 800c65a: e099 b.n 800c790 <HAL_RCC_GetSysClockFreq+0x248>
  28726. {
  28727. switch (pllsource)
  28728. {
  28729. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28730. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28731. 800c65c: 4b6f ldr r3, [pc, #444] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28732. 800c65e: 681b ldr r3, [r3, #0]
  28733. 800c660: f003 0320 and.w r3, r3, #32
  28734. 800c664: 2b00 cmp r3, #0
  28735. 800c666: d02d beq.n 800c6c4 <HAL_RCC_GetSysClockFreq+0x17c>
  28736. {
  28737. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28738. 800c668: 4b6c ldr r3, [pc, #432] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28739. 800c66a: 681b ldr r3, [r3, #0]
  28740. 800c66c: 08db lsrs r3, r3, #3
  28741. 800c66e: f003 0303 and.w r3, r3, #3
  28742. 800c672: 4a6b ldr r2, [pc, #428] @ (800c820 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28743. 800c674: fa22 f303 lsr.w r3, r2, r3
  28744. 800c678: 607b str r3, [r7, #4]
  28745. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28746. 800c67a: 687b ldr r3, [r7, #4]
  28747. 800c67c: ee07 3a90 vmov s15, r3
  28748. 800c680: eef8 6a67 vcvt.f32.u32 s13, s15
  28749. 800c684: 693b ldr r3, [r7, #16]
  28750. 800c686: ee07 3a90 vmov s15, r3
  28751. 800c68a: eef8 7a67 vcvt.f32.u32 s15, s15
  28752. 800c68e: ee86 7aa7 vdiv.f32 s14, s13, s15
  28753. 800c692: 4b62 ldr r3, [pc, #392] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28754. 800c694: 6b1b ldr r3, [r3, #48] @ 0x30
  28755. 800c696: f3c3 0308 ubfx r3, r3, #0, #9
  28756. 800c69a: ee07 3a90 vmov s15, r3
  28757. 800c69e: eef8 6a67 vcvt.f32.u32 s13, s15
  28758. 800c6a2: ed97 6a02 vldr s12, [r7, #8]
  28759. 800c6a6: eddf 5a61 vldr s11, [pc, #388] @ 800c82c <HAL_RCC_GetSysClockFreq+0x2e4>
  28760. 800c6aa: eec6 7a25 vdiv.f32 s15, s12, s11
  28761. 800c6ae: ee76 7aa7 vadd.f32 s15, s13, s15
  28762. 800c6b2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28763. 800c6b6: ee77 7aa6 vadd.f32 s15, s15, s13
  28764. 800c6ba: ee67 7a27 vmul.f32 s15, s14, s15
  28765. 800c6be: edc7 7a07 vstr s15, [r7, #28]
  28766. }
  28767. else
  28768. {
  28769. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28770. }
  28771. break;
  28772. 800c6c2: e087 b.n 800c7d4 <HAL_RCC_GetSysClockFreq+0x28c>
  28773. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28774. 800c6c4: 693b ldr r3, [r7, #16]
  28775. 800c6c6: ee07 3a90 vmov s15, r3
  28776. 800c6ca: eef8 7a67 vcvt.f32.u32 s15, s15
  28777. 800c6ce: eddf 6a58 vldr s13, [pc, #352] @ 800c830 <HAL_RCC_GetSysClockFreq+0x2e8>
  28778. 800c6d2: ee86 7aa7 vdiv.f32 s14, s13, s15
  28779. 800c6d6: 4b51 ldr r3, [pc, #324] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28780. 800c6d8: 6b1b ldr r3, [r3, #48] @ 0x30
  28781. 800c6da: f3c3 0308 ubfx r3, r3, #0, #9
  28782. 800c6de: ee07 3a90 vmov s15, r3
  28783. 800c6e2: eef8 6a67 vcvt.f32.u32 s13, s15
  28784. 800c6e6: ed97 6a02 vldr s12, [r7, #8]
  28785. 800c6ea: eddf 5a50 vldr s11, [pc, #320] @ 800c82c <HAL_RCC_GetSysClockFreq+0x2e4>
  28786. 800c6ee: eec6 7a25 vdiv.f32 s15, s12, s11
  28787. 800c6f2: ee76 7aa7 vadd.f32 s15, s13, s15
  28788. 800c6f6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28789. 800c6fa: ee77 7aa6 vadd.f32 s15, s15, s13
  28790. 800c6fe: ee67 7a27 vmul.f32 s15, s14, s15
  28791. 800c702: edc7 7a07 vstr s15, [r7, #28]
  28792. break;
  28793. 800c706: e065 b.n 800c7d4 <HAL_RCC_GetSysClockFreq+0x28c>
  28794. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28795. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28796. 800c708: 693b ldr r3, [r7, #16]
  28797. 800c70a: ee07 3a90 vmov s15, r3
  28798. 800c70e: eef8 7a67 vcvt.f32.u32 s15, s15
  28799. 800c712: eddf 6a48 vldr s13, [pc, #288] @ 800c834 <HAL_RCC_GetSysClockFreq+0x2ec>
  28800. 800c716: ee86 7aa7 vdiv.f32 s14, s13, s15
  28801. 800c71a: 4b40 ldr r3, [pc, #256] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28802. 800c71c: 6b1b ldr r3, [r3, #48] @ 0x30
  28803. 800c71e: f3c3 0308 ubfx r3, r3, #0, #9
  28804. 800c722: ee07 3a90 vmov s15, r3
  28805. 800c726: eef8 6a67 vcvt.f32.u32 s13, s15
  28806. 800c72a: ed97 6a02 vldr s12, [r7, #8]
  28807. 800c72e: eddf 5a3f vldr s11, [pc, #252] @ 800c82c <HAL_RCC_GetSysClockFreq+0x2e4>
  28808. 800c732: eec6 7a25 vdiv.f32 s15, s12, s11
  28809. 800c736: ee76 7aa7 vadd.f32 s15, s13, s15
  28810. 800c73a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28811. 800c73e: ee77 7aa6 vadd.f32 s15, s15, s13
  28812. 800c742: ee67 7a27 vmul.f32 s15, s14, s15
  28813. 800c746: edc7 7a07 vstr s15, [r7, #28]
  28814. break;
  28815. 800c74a: e043 b.n 800c7d4 <HAL_RCC_GetSysClockFreq+0x28c>
  28816. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28817. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28818. 800c74c: 693b ldr r3, [r7, #16]
  28819. 800c74e: ee07 3a90 vmov s15, r3
  28820. 800c752: eef8 7a67 vcvt.f32.u32 s15, s15
  28821. 800c756: eddf 6a38 vldr s13, [pc, #224] @ 800c838 <HAL_RCC_GetSysClockFreq+0x2f0>
  28822. 800c75a: ee86 7aa7 vdiv.f32 s14, s13, s15
  28823. 800c75e: 4b2f ldr r3, [pc, #188] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28824. 800c760: 6b1b ldr r3, [r3, #48] @ 0x30
  28825. 800c762: f3c3 0308 ubfx r3, r3, #0, #9
  28826. 800c766: ee07 3a90 vmov s15, r3
  28827. 800c76a: eef8 6a67 vcvt.f32.u32 s13, s15
  28828. 800c76e: ed97 6a02 vldr s12, [r7, #8]
  28829. 800c772: eddf 5a2e vldr s11, [pc, #184] @ 800c82c <HAL_RCC_GetSysClockFreq+0x2e4>
  28830. 800c776: eec6 7a25 vdiv.f32 s15, s12, s11
  28831. 800c77a: ee76 7aa7 vadd.f32 s15, s13, s15
  28832. 800c77e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28833. 800c782: ee77 7aa6 vadd.f32 s15, s15, s13
  28834. 800c786: ee67 7a27 vmul.f32 s15, s14, s15
  28835. 800c78a: edc7 7a07 vstr s15, [r7, #28]
  28836. break;
  28837. 800c78e: e021 b.n 800c7d4 <HAL_RCC_GetSysClockFreq+0x28c>
  28838. default:
  28839. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28840. 800c790: 693b ldr r3, [r7, #16]
  28841. 800c792: ee07 3a90 vmov s15, r3
  28842. 800c796: eef8 7a67 vcvt.f32.u32 s15, s15
  28843. 800c79a: eddf 6a26 vldr s13, [pc, #152] @ 800c834 <HAL_RCC_GetSysClockFreq+0x2ec>
  28844. 800c79e: ee86 7aa7 vdiv.f32 s14, s13, s15
  28845. 800c7a2: 4b1e ldr r3, [pc, #120] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28846. 800c7a4: 6b1b ldr r3, [r3, #48] @ 0x30
  28847. 800c7a6: f3c3 0308 ubfx r3, r3, #0, #9
  28848. 800c7aa: ee07 3a90 vmov s15, r3
  28849. 800c7ae: eef8 6a67 vcvt.f32.u32 s13, s15
  28850. 800c7b2: ed97 6a02 vldr s12, [r7, #8]
  28851. 800c7b6: eddf 5a1d vldr s11, [pc, #116] @ 800c82c <HAL_RCC_GetSysClockFreq+0x2e4>
  28852. 800c7ba: eec6 7a25 vdiv.f32 s15, s12, s11
  28853. 800c7be: ee76 7aa7 vadd.f32 s15, s13, s15
  28854. 800c7c2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28855. 800c7c6: ee77 7aa6 vadd.f32 s15, s15, s13
  28856. 800c7ca: ee67 7a27 vmul.f32 s15, s14, s15
  28857. 800c7ce: edc7 7a07 vstr s15, [r7, #28]
  28858. break;
  28859. 800c7d2: bf00 nop
  28860. }
  28861. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  28862. 800c7d4: 4b11 ldr r3, [pc, #68] @ (800c81c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28863. 800c7d6: 6b1b ldr r3, [r3, #48] @ 0x30
  28864. 800c7d8: 0a5b lsrs r3, r3, #9
  28865. 800c7da: f003 037f and.w r3, r3, #127 @ 0x7f
  28866. 800c7de: 3301 adds r3, #1
  28867. 800c7e0: 603b str r3, [r7, #0]
  28868. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  28869. 800c7e2: 683b ldr r3, [r7, #0]
  28870. 800c7e4: ee07 3a90 vmov s15, r3
  28871. 800c7e8: eeb8 7a67 vcvt.f32.u32 s14, s15
  28872. 800c7ec: edd7 6a07 vldr s13, [r7, #28]
  28873. 800c7f0: eec6 7a87 vdiv.f32 s15, s13, s14
  28874. 800c7f4: eefc 7ae7 vcvt.u32.f32 s15, s15
  28875. 800c7f8: ee17 3a90 vmov r3, s15
  28876. 800c7fc: 61bb str r3, [r7, #24]
  28877. }
  28878. else
  28879. {
  28880. sysclockfreq = 0U;
  28881. }
  28882. break;
  28883. 800c7fe: e005 b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28884. sysclockfreq = 0U;
  28885. 800c800: 2300 movs r3, #0
  28886. 800c802: 61bb str r3, [r7, #24]
  28887. break;
  28888. 800c804: e002 b.n 800c80c <HAL_RCC_GetSysClockFreq+0x2c4>
  28889. default:
  28890. sysclockfreq = CSI_VALUE;
  28891. 800c806: 4b07 ldr r3, [pc, #28] @ (800c824 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28892. 800c808: 61bb str r3, [r7, #24]
  28893. break;
  28894. 800c80a: bf00 nop
  28895. }
  28896. return sysclockfreq;
  28897. 800c80c: 69bb ldr r3, [r7, #24]
  28898. }
  28899. 800c80e: 4618 mov r0, r3
  28900. 800c810: 3724 adds r7, #36 @ 0x24
  28901. 800c812: 46bd mov sp, r7
  28902. 800c814: f85d 7b04 ldr.w r7, [sp], #4
  28903. 800c818: 4770 bx lr
  28904. 800c81a: bf00 nop
  28905. 800c81c: 58024400 .word 0x58024400
  28906. 800c820: 03d09000 .word 0x03d09000
  28907. 800c824: 003d0900 .word 0x003d0900
  28908. 800c828: 017d7840 .word 0x017d7840
  28909. 800c82c: 46000000 .word 0x46000000
  28910. 800c830: 4c742400 .word 0x4c742400
  28911. 800c834: 4a742400 .word 0x4a742400
  28912. 800c838: 4bbebc20 .word 0x4bbebc20
  28913. 0800c83c <HAL_RCC_GetHCLKFreq>:
  28914. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  28915. * and updated within this function
  28916. * @retval HCLK frequency
  28917. */
  28918. uint32_t HAL_RCC_GetHCLKFreq(void)
  28919. {
  28920. 800c83c: b580 push {r7, lr}
  28921. 800c83e: b082 sub sp, #8
  28922. 800c840: af00 add r7, sp, #0
  28923. uint32_t common_system_clock;
  28924. #if defined(RCC_D1CFGR_D1CPRE)
  28925. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  28926. 800c842: f7ff fe81 bl 800c548 <HAL_RCC_GetSysClockFreq>
  28927. 800c846: 4602 mov r2, r0
  28928. 800c848: 4b10 ldr r3, [pc, #64] @ (800c88c <HAL_RCC_GetHCLKFreq+0x50>)
  28929. 800c84a: 699b ldr r3, [r3, #24]
  28930. 800c84c: 0a1b lsrs r3, r3, #8
  28931. 800c84e: f003 030f and.w r3, r3, #15
  28932. 800c852: 490f ldr r1, [pc, #60] @ (800c890 <HAL_RCC_GetHCLKFreq+0x54>)
  28933. 800c854: 5ccb ldrb r3, [r1, r3]
  28934. 800c856: f003 031f and.w r3, r3, #31
  28935. 800c85a: fa22 f303 lsr.w r3, r2, r3
  28936. 800c85e: 607b str r3, [r7, #4]
  28937. #else
  28938. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  28939. #endif
  28940. #if defined(RCC_D1CFGR_HPRE)
  28941. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28942. 800c860: 4b0a ldr r3, [pc, #40] @ (800c88c <HAL_RCC_GetHCLKFreq+0x50>)
  28943. 800c862: 699b ldr r3, [r3, #24]
  28944. 800c864: f003 030f and.w r3, r3, #15
  28945. 800c868: 4a09 ldr r2, [pc, #36] @ (800c890 <HAL_RCC_GetHCLKFreq+0x54>)
  28946. 800c86a: 5cd3 ldrb r3, [r2, r3]
  28947. 800c86c: f003 031f and.w r3, r3, #31
  28948. 800c870: 687a ldr r2, [r7, #4]
  28949. 800c872: fa22 f303 lsr.w r3, r2, r3
  28950. 800c876: 4a07 ldr r2, [pc, #28] @ (800c894 <HAL_RCC_GetHCLKFreq+0x58>)
  28951. 800c878: 6013 str r3, [r2, #0]
  28952. #endif
  28953. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28954. SystemCoreClock = SystemD2Clock;
  28955. #else
  28956. SystemCoreClock = common_system_clock;
  28957. 800c87a: 4a07 ldr r2, [pc, #28] @ (800c898 <HAL_RCC_GetHCLKFreq+0x5c>)
  28958. 800c87c: 687b ldr r3, [r7, #4]
  28959. 800c87e: 6013 str r3, [r2, #0]
  28960. #endif /* DUAL_CORE && CORE_CM4 */
  28961. return SystemD2Clock;
  28962. 800c880: 4b04 ldr r3, [pc, #16] @ (800c894 <HAL_RCC_GetHCLKFreq+0x58>)
  28963. 800c882: 681b ldr r3, [r3, #0]
  28964. }
  28965. 800c884: 4618 mov r0, r3
  28966. 800c886: 3708 adds r7, #8
  28967. 800c888: 46bd mov sp, r7
  28968. 800c88a: bd80 pop {r7, pc}
  28969. 800c88c: 58024400 .word 0x58024400
  28970. 800c890: 080186dc .word 0x080186dc
  28971. 800c894: 24000038 .word 0x24000038
  28972. 800c898: 24000034 .word 0x24000034
  28973. 0800c89c <HAL_RCC_GetPCLK1Freq>:
  28974. * @note Each time PCLK1 changes, this function must be called to update the
  28975. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  28976. * @retval PCLK1 frequency
  28977. */
  28978. uint32_t HAL_RCC_GetPCLK1Freq(void)
  28979. {
  28980. 800c89c: b580 push {r7, lr}
  28981. 800c89e: af00 add r7, sp, #0
  28982. #if defined (RCC_D2CFGR_D2PPRE1)
  28983. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28984. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  28985. 800c8a0: f7ff ffcc bl 800c83c <HAL_RCC_GetHCLKFreq>
  28986. 800c8a4: 4602 mov r2, r0
  28987. 800c8a6: 4b06 ldr r3, [pc, #24] @ (800c8c0 <HAL_RCC_GetPCLK1Freq+0x24>)
  28988. 800c8a8: 69db ldr r3, [r3, #28]
  28989. 800c8aa: 091b lsrs r3, r3, #4
  28990. 800c8ac: f003 0307 and.w r3, r3, #7
  28991. 800c8b0: 4904 ldr r1, [pc, #16] @ (800c8c4 <HAL_RCC_GetPCLK1Freq+0x28>)
  28992. 800c8b2: 5ccb ldrb r3, [r1, r3]
  28993. 800c8b4: f003 031f and.w r3, r3, #31
  28994. 800c8b8: fa22 f303 lsr.w r3, r2, r3
  28995. #else
  28996. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28997. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  28998. #endif
  28999. }
  29000. 800c8bc: 4618 mov r0, r3
  29001. 800c8be: bd80 pop {r7, pc}
  29002. 800c8c0: 58024400 .word 0x58024400
  29003. 800c8c4: 080186dc .word 0x080186dc
  29004. 0800c8c8 <HAL_RCC_GetPCLK2Freq>:
  29005. * @note Each time PCLK2 changes, this function must be called to update the
  29006. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  29007. * @retval PCLK1 frequency
  29008. */
  29009. uint32_t HAL_RCC_GetPCLK2Freq(void)
  29010. {
  29011. 800c8c8: b580 push {r7, lr}
  29012. 800c8ca: af00 add r7, sp, #0
  29013. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29014. #if defined(RCC_D2CFGR_D2PPRE2)
  29015. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  29016. 800c8cc: f7ff ffb6 bl 800c83c <HAL_RCC_GetHCLKFreq>
  29017. 800c8d0: 4602 mov r2, r0
  29018. 800c8d2: 4b06 ldr r3, [pc, #24] @ (800c8ec <HAL_RCC_GetPCLK2Freq+0x24>)
  29019. 800c8d4: 69db ldr r3, [r3, #28]
  29020. 800c8d6: 0a1b lsrs r3, r3, #8
  29021. 800c8d8: f003 0307 and.w r3, r3, #7
  29022. 800c8dc: 4904 ldr r1, [pc, #16] @ (800c8f0 <HAL_RCC_GetPCLK2Freq+0x28>)
  29023. 800c8de: 5ccb ldrb r3, [r1, r3]
  29024. 800c8e0: f003 031f and.w r3, r3, #31
  29025. 800c8e4: fa22 f303 lsr.w r3, r2, r3
  29026. #else
  29027. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  29028. #endif
  29029. }
  29030. 800c8e8: 4618 mov r0, r3
  29031. 800c8ea: bd80 pop {r7, pc}
  29032. 800c8ec: 58024400 .word 0x58024400
  29033. 800c8f0: 080186dc .word 0x080186dc
  29034. 0800c8f4 <HAL_RCC_GetClockConfig>:
  29035. * will be configured.
  29036. * @param pFLatency: Pointer on the Flash Latency.
  29037. * @retval None
  29038. */
  29039. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  29040. {
  29041. 800c8f4: b480 push {r7}
  29042. 800c8f6: b083 sub sp, #12
  29043. 800c8f8: af00 add r7, sp, #0
  29044. 800c8fa: 6078 str r0, [r7, #4]
  29045. 800c8fc: 6039 str r1, [r7, #0]
  29046. /* Set all possible values for the Clock type parameter --------------------*/
  29047. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  29048. 800c8fe: 687b ldr r3, [r7, #4]
  29049. 800c900: 223f movs r2, #63 @ 0x3f
  29050. 800c902: 601a str r2, [r3, #0]
  29051. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  29052. /* Get the SYSCLK configuration --------------------------------------------*/
  29053. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  29054. 800c904: 4b1a ldr r3, [pc, #104] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29055. 800c906: 691b ldr r3, [r3, #16]
  29056. 800c908: f003 0207 and.w r2, r3, #7
  29057. 800c90c: 687b ldr r3, [r7, #4]
  29058. 800c90e: 605a str r2, [r3, #4]
  29059. #if defined(RCC_D1CFGR_D1CPRE)
  29060. /* Get the SYSCLK configuration ----------------------------------------------*/
  29061. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  29062. 800c910: 4b17 ldr r3, [pc, #92] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29063. 800c912: 699b ldr r3, [r3, #24]
  29064. 800c914: f403 6270 and.w r2, r3, #3840 @ 0xf00
  29065. 800c918: 687b ldr r3, [r7, #4]
  29066. 800c91a: 609a str r2, [r3, #8]
  29067. /* Get the D1HCLK configuration ----------------------------------------------*/
  29068. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  29069. 800c91c: 4b14 ldr r3, [pc, #80] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29070. 800c91e: 699b ldr r3, [r3, #24]
  29071. 800c920: f003 020f and.w r2, r3, #15
  29072. 800c924: 687b ldr r3, [r7, #4]
  29073. 800c926: 60da str r2, [r3, #12]
  29074. /* Get the APB3 configuration ----------------------------------------------*/
  29075. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  29076. 800c928: 4b11 ldr r3, [pc, #68] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29077. 800c92a: 699b ldr r3, [r3, #24]
  29078. 800c92c: f003 0270 and.w r2, r3, #112 @ 0x70
  29079. 800c930: 687b ldr r3, [r7, #4]
  29080. 800c932: 611a str r2, [r3, #16]
  29081. /* Get the APB1 configuration ----------------------------------------------*/
  29082. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  29083. 800c934: 4b0e ldr r3, [pc, #56] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29084. 800c936: 69db ldr r3, [r3, #28]
  29085. 800c938: f003 0270 and.w r2, r3, #112 @ 0x70
  29086. 800c93c: 687b ldr r3, [r7, #4]
  29087. 800c93e: 615a str r2, [r3, #20]
  29088. /* Get the APB2 configuration ----------------------------------------------*/
  29089. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  29090. 800c940: 4b0b ldr r3, [pc, #44] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29091. 800c942: 69db ldr r3, [r3, #28]
  29092. 800c944: f403 62e0 and.w r2, r3, #1792 @ 0x700
  29093. 800c948: 687b ldr r3, [r7, #4]
  29094. 800c94a: 619a str r2, [r3, #24]
  29095. /* Get the APB4 configuration ----------------------------------------------*/
  29096. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  29097. 800c94c: 4b08 ldr r3, [pc, #32] @ (800c970 <HAL_RCC_GetClockConfig+0x7c>)
  29098. 800c94e: 6a1b ldr r3, [r3, #32]
  29099. 800c950: f003 0270 and.w r2, r3, #112 @ 0x70
  29100. 800c954: 687b ldr r3, [r7, #4]
  29101. 800c956: 61da str r2, [r3, #28]
  29102. /* Get the APB4 configuration ----------------------------------------------*/
  29103. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  29104. #endif
  29105. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  29106. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  29107. 800c958: 4b06 ldr r3, [pc, #24] @ (800c974 <HAL_RCC_GetClockConfig+0x80>)
  29108. 800c95a: 681b ldr r3, [r3, #0]
  29109. 800c95c: f003 020f and.w r2, r3, #15
  29110. 800c960: 683b ldr r3, [r7, #0]
  29111. 800c962: 601a str r2, [r3, #0]
  29112. }
  29113. 800c964: bf00 nop
  29114. 800c966: 370c adds r7, #12
  29115. 800c968: 46bd mov sp, r7
  29116. 800c96a: f85d 7b04 ldr.w r7, [sp], #4
  29117. 800c96e: 4770 bx lr
  29118. 800c970: 58024400 .word 0x58024400
  29119. 800c974: 52002000 .word 0x52002000
  29120. 0800c978 <HAL_RCCEx_PeriphCLKConfig>:
  29121. * (*) : Available on some STM32H7 lines only.
  29122. *
  29123. * @retval HAL status
  29124. */
  29125. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  29126. {
  29127. 800c978: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  29128. 800c97c: b0c8 sub sp, #288 @ 0x120
  29129. 800c97e: af00 add r7, sp, #0
  29130. 800c980: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  29131. uint32_t tmpreg;
  29132. uint32_t tickstart;
  29133. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  29134. 800c984: 2300 movs r3, #0
  29135. 800c986: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29136. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  29137. 800c98a: 2300 movs r3, #0
  29138. 800c98c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29139. /*---------------------------- SPDIFRX configuration -------------------------------*/
  29140. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  29141. 800c990: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29142. 800c994: e9d3 2300 ldrd r2, r3, [r3]
  29143. 800c998: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  29144. 800c99c: 2500 movs r5, #0
  29145. 800c99e: ea54 0305 orrs.w r3, r4, r5
  29146. 800c9a2: d049 beq.n 800ca38 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29147. {
  29148. switch (PeriphClkInit->SpdifrxClockSelection)
  29149. 800c9a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29150. 800c9a8: 6e9b ldr r3, [r3, #104] @ 0x68
  29151. 800c9aa: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29152. 800c9ae: d02f beq.n 800ca10 <HAL_RCCEx_PeriphCLKConfig+0x98>
  29153. 800c9b0: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29154. 800c9b4: d828 bhi.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29155. 800c9b6: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29156. 800c9ba: d01a beq.n 800c9f2 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  29157. 800c9bc: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29158. 800c9c0: d822 bhi.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29159. 800c9c2: 2b00 cmp r3, #0
  29160. 800c9c4: d003 beq.n 800c9ce <HAL_RCCEx_PeriphCLKConfig+0x56>
  29161. 800c9c6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  29162. 800c9ca: d007 beq.n 800c9dc <HAL_RCCEx_PeriphCLKConfig+0x64>
  29163. 800c9cc: e01c b.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29164. {
  29165. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  29166. /* Enable PLL1Q Clock output generated form System PLL . */
  29167. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29168. 800c9ce: 4bb8 ldr r3, [pc, #736] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29169. 800c9d0: 6adb ldr r3, [r3, #44] @ 0x2c
  29170. 800c9d2: 4ab7 ldr r2, [pc, #732] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29171. 800c9d4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29172. 800c9d8: 62d3 str r3, [r2, #44] @ 0x2c
  29173. /* SPDIFRX clock source configuration done later after clock selection check */
  29174. break;
  29175. 800c9da: e01a b.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29176. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  29177. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29178. 800c9dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29179. 800c9e0: 3308 adds r3, #8
  29180. 800c9e2: 2102 movs r1, #2
  29181. 800c9e4: 4618 mov r0, r3
  29182. 800c9e6: f002 fb45 bl 800f074 <RCCEx_PLL2_Config>
  29183. 800c9ea: 4603 mov r3, r0
  29184. 800c9ec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29185. /* SPDIFRX clock source configuration done later after clock selection check */
  29186. break;
  29187. 800c9f0: e00f b.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29188. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  29189. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29190. 800c9f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29191. 800c9f6: 3328 adds r3, #40 @ 0x28
  29192. 800c9f8: 2102 movs r1, #2
  29193. 800c9fa: 4618 mov r0, r3
  29194. 800c9fc: f002 fbec bl 800f1d8 <RCCEx_PLL3_Config>
  29195. 800ca00: 4603 mov r3, r0
  29196. 800ca02: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29197. /* SPDIFRX clock source configuration done later after clock selection check */
  29198. break;
  29199. 800ca06: e004 b.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29200. /* Internal OSC clock is used as source of SPDIFRX clock*/
  29201. /* SPDIFRX clock source configuration done later after clock selection check */
  29202. break;
  29203. default:
  29204. ret = HAL_ERROR;
  29205. 800ca08: 2301 movs r3, #1
  29206. 800ca0a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29207. break;
  29208. 800ca0e: e000 b.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29209. break;
  29210. 800ca10: bf00 nop
  29211. }
  29212. if (ret == HAL_OK)
  29213. 800ca12: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29214. 800ca16: 2b00 cmp r3, #0
  29215. 800ca18: d10a bne.n 800ca30 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  29216. {
  29217. /* Set the source of SPDIFRX clock*/
  29218. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  29219. 800ca1a: 4ba5 ldr r3, [pc, #660] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29220. 800ca1c: 6d1b ldr r3, [r3, #80] @ 0x50
  29221. 800ca1e: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  29222. 800ca22: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29223. 800ca26: 6e9b ldr r3, [r3, #104] @ 0x68
  29224. 800ca28: 4aa1 ldr r2, [pc, #644] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29225. 800ca2a: 430b orrs r3, r1
  29226. 800ca2c: 6513 str r3, [r2, #80] @ 0x50
  29227. 800ca2e: e003 b.n 800ca38 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29228. }
  29229. else
  29230. {
  29231. /* set overall return value */
  29232. status = ret;
  29233. 800ca30: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29234. 800ca34: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29235. }
  29236. }
  29237. /*---------------------------- SAI1 configuration -------------------------------*/
  29238. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  29239. 800ca38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29240. 800ca3c: e9d3 2300 ldrd r2, r3, [r3]
  29241. 800ca40: f402 7880 and.w r8, r2, #256 @ 0x100
  29242. 800ca44: f04f 0900 mov.w r9, #0
  29243. 800ca48: ea58 0309 orrs.w r3, r8, r9
  29244. 800ca4c: d047 beq.n 800cade <HAL_RCCEx_PeriphCLKConfig+0x166>
  29245. {
  29246. switch (PeriphClkInit->Sai1ClockSelection)
  29247. 800ca4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29248. 800ca52: 6d9b ldr r3, [r3, #88] @ 0x58
  29249. 800ca54: 2b04 cmp r3, #4
  29250. 800ca56: d82a bhi.n 800caae <HAL_RCCEx_PeriphCLKConfig+0x136>
  29251. 800ca58: a201 add r2, pc, #4 @ (adr r2, 800ca60 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  29252. 800ca5a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29253. 800ca5e: bf00 nop
  29254. 800ca60: 0800ca75 .word 0x0800ca75
  29255. 800ca64: 0800ca83 .word 0x0800ca83
  29256. 800ca68: 0800ca99 .word 0x0800ca99
  29257. 800ca6c: 0800cab7 .word 0x0800cab7
  29258. 800ca70: 0800cab7 .word 0x0800cab7
  29259. {
  29260. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  29261. /* Enable SAI Clock output generated form System PLL . */
  29262. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29263. 800ca74: 4b8e ldr r3, [pc, #568] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29264. 800ca76: 6adb ldr r3, [r3, #44] @ 0x2c
  29265. 800ca78: 4a8d ldr r2, [pc, #564] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29266. 800ca7a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29267. 800ca7e: 62d3 str r3, [r2, #44] @ 0x2c
  29268. /* SAI1 clock source configuration done later after clock selection check */
  29269. break;
  29270. 800ca80: e01a b.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29271. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  29272. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29273. 800ca82: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29274. 800ca86: 3308 adds r3, #8
  29275. 800ca88: 2100 movs r1, #0
  29276. 800ca8a: 4618 mov r0, r3
  29277. 800ca8c: f002 faf2 bl 800f074 <RCCEx_PLL2_Config>
  29278. 800ca90: 4603 mov r3, r0
  29279. 800ca92: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29280. /* SAI1 clock source configuration done later after clock selection check */
  29281. break;
  29282. 800ca96: e00f b.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29283. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  29284. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29285. 800ca98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29286. 800ca9c: 3328 adds r3, #40 @ 0x28
  29287. 800ca9e: 2100 movs r1, #0
  29288. 800caa0: 4618 mov r0, r3
  29289. 800caa2: f002 fb99 bl 800f1d8 <RCCEx_PLL3_Config>
  29290. 800caa6: 4603 mov r3, r0
  29291. 800caa8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29292. /* SAI1 clock source configuration done later after clock selection check */
  29293. break;
  29294. 800caac: e004 b.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29295. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  29296. /* SAI1 clock source configuration done later after clock selection check */
  29297. break;
  29298. default:
  29299. ret = HAL_ERROR;
  29300. 800caae: 2301 movs r3, #1
  29301. 800cab0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29302. break;
  29303. 800cab4: e000 b.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29304. break;
  29305. 800cab6: bf00 nop
  29306. }
  29307. if (ret == HAL_OK)
  29308. 800cab8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29309. 800cabc: 2b00 cmp r3, #0
  29310. 800cabe: d10a bne.n 800cad6 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  29311. {
  29312. /* Set the source of SAI1 clock*/
  29313. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  29314. 800cac0: 4b7b ldr r3, [pc, #492] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29315. 800cac2: 6d1b ldr r3, [r3, #80] @ 0x50
  29316. 800cac4: f023 0107 bic.w r1, r3, #7
  29317. 800cac8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29318. 800cacc: 6d9b ldr r3, [r3, #88] @ 0x58
  29319. 800cace: 4a78 ldr r2, [pc, #480] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29320. 800cad0: 430b orrs r3, r1
  29321. 800cad2: 6513 str r3, [r2, #80] @ 0x50
  29322. 800cad4: e003 b.n 800cade <HAL_RCCEx_PeriphCLKConfig+0x166>
  29323. }
  29324. else
  29325. {
  29326. /* set overall return value */
  29327. status = ret;
  29328. 800cad6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29329. 800cada: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29330. }
  29331. }
  29332. #if defined(SAI3)
  29333. /*---------------------------- SAI2/3 configuration -------------------------------*/
  29334. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  29335. 800cade: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29336. 800cae2: e9d3 2300 ldrd r2, r3, [r3]
  29337. 800cae6: f402 7a00 and.w sl, r2, #512 @ 0x200
  29338. 800caea: f04f 0b00 mov.w fp, #0
  29339. 800caee: ea5a 030b orrs.w r3, sl, fp
  29340. 800caf2: d04c beq.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x216>
  29341. {
  29342. switch (PeriphClkInit->Sai23ClockSelection)
  29343. 800caf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29344. 800caf8: 6ddb ldr r3, [r3, #92] @ 0x5c
  29345. 800cafa: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29346. 800cafe: d030 beq.n 800cb62 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  29347. 800cb00: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29348. 800cb04: d829 bhi.n 800cb5a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29349. 800cb06: 2bc0 cmp r3, #192 @ 0xc0
  29350. 800cb08: d02d beq.n 800cb66 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  29351. 800cb0a: 2bc0 cmp r3, #192 @ 0xc0
  29352. 800cb0c: d825 bhi.n 800cb5a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29353. 800cb0e: 2b80 cmp r3, #128 @ 0x80
  29354. 800cb10: d018 beq.n 800cb44 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  29355. 800cb12: 2b80 cmp r3, #128 @ 0x80
  29356. 800cb14: d821 bhi.n 800cb5a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29357. 800cb16: 2b00 cmp r3, #0
  29358. 800cb18: d002 beq.n 800cb20 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  29359. 800cb1a: 2b40 cmp r3, #64 @ 0x40
  29360. 800cb1c: d007 beq.n 800cb2e <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  29361. 800cb1e: e01c b.n 800cb5a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29362. {
  29363. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  29364. /* Enable SAI Clock output generated form System PLL . */
  29365. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29366. 800cb20: 4b63 ldr r3, [pc, #396] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29367. 800cb22: 6adb ldr r3, [r3, #44] @ 0x2c
  29368. 800cb24: 4a62 ldr r2, [pc, #392] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29369. 800cb26: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29370. 800cb2a: 62d3 str r3, [r2, #44] @ 0x2c
  29371. /* SAI2/3 clock source configuration done later after clock selection check */
  29372. break;
  29373. 800cb2c: e01c b.n 800cb68 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29374. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  29375. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29376. 800cb2e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29377. 800cb32: 3308 adds r3, #8
  29378. 800cb34: 2100 movs r1, #0
  29379. 800cb36: 4618 mov r0, r3
  29380. 800cb38: f002 fa9c bl 800f074 <RCCEx_PLL2_Config>
  29381. 800cb3c: 4603 mov r3, r0
  29382. 800cb3e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29383. /* SAI2/3 clock source configuration done later after clock selection check */
  29384. break;
  29385. 800cb42: e011 b.n 800cb68 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29386. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  29387. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29388. 800cb44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29389. 800cb48: 3328 adds r3, #40 @ 0x28
  29390. 800cb4a: 2100 movs r1, #0
  29391. 800cb4c: 4618 mov r0, r3
  29392. 800cb4e: f002 fb43 bl 800f1d8 <RCCEx_PLL3_Config>
  29393. 800cb52: 4603 mov r3, r0
  29394. 800cb54: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29395. /* SAI2/3 clock source configuration done later after clock selection check */
  29396. break;
  29397. 800cb58: e006 b.n 800cb68 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29398. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  29399. /* SAI2/3 clock source configuration done later after clock selection check */
  29400. break;
  29401. default:
  29402. ret = HAL_ERROR;
  29403. 800cb5a: 2301 movs r3, #1
  29404. 800cb5c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29405. break;
  29406. 800cb60: e002 b.n 800cb68 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29407. break;
  29408. 800cb62: bf00 nop
  29409. 800cb64: e000 b.n 800cb68 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29410. break;
  29411. 800cb66: bf00 nop
  29412. }
  29413. if (ret == HAL_OK)
  29414. 800cb68: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29415. 800cb6c: 2b00 cmp r3, #0
  29416. 800cb6e: d10a bne.n 800cb86 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  29417. {
  29418. /* Set the source of SAI2/3 clock*/
  29419. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  29420. 800cb70: 4b4f ldr r3, [pc, #316] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29421. 800cb72: 6d1b ldr r3, [r3, #80] @ 0x50
  29422. 800cb74: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  29423. 800cb78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29424. 800cb7c: 6ddb ldr r3, [r3, #92] @ 0x5c
  29425. 800cb7e: 4a4c ldr r2, [pc, #304] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29426. 800cb80: 430b orrs r3, r1
  29427. 800cb82: 6513 str r3, [r2, #80] @ 0x50
  29428. 800cb84: e003 b.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x216>
  29429. }
  29430. else
  29431. {
  29432. /* set overall return value */
  29433. status = ret;
  29434. 800cb86: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29435. 800cb8a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29436. }
  29437. #endif /*SAI2B*/
  29438. #if defined(SAI4)
  29439. /*---------------------------- SAI4A configuration -------------------------------*/
  29440. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  29441. 800cb8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29442. 800cb92: e9d3 2300 ldrd r2, r3, [r3]
  29443. 800cb96: f402 6380 and.w r3, r2, #1024 @ 0x400
  29444. 800cb9a: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  29445. 800cb9e: 2300 movs r3, #0
  29446. 800cba0: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  29447. 800cba4: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  29448. 800cba8: 460b mov r3, r1
  29449. 800cbaa: 4313 orrs r3, r2
  29450. 800cbac: d053 beq.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29451. {
  29452. switch (PeriphClkInit->Sai4AClockSelection)
  29453. 800cbae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29454. 800cbb2: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29455. 800cbb6: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29456. 800cbba: d035 beq.n 800cc28 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  29457. 800cbbc: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29458. 800cbc0: d82e bhi.n 800cc20 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29459. 800cbc2: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29460. 800cbc6: d031 beq.n 800cc2c <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  29461. 800cbc8: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29462. 800cbcc: d828 bhi.n 800cc20 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29463. 800cbce: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29464. 800cbd2: d01a beq.n 800cc0a <HAL_RCCEx_PeriphCLKConfig+0x292>
  29465. 800cbd4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29466. 800cbd8: d822 bhi.n 800cc20 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29467. 800cbda: 2b00 cmp r3, #0
  29468. 800cbdc: d003 beq.n 800cbe6 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  29469. 800cbde: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29470. 800cbe2: d007 beq.n 800cbf4 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  29471. 800cbe4: e01c b.n 800cc20 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29472. {
  29473. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29474. /* Enable SAI Clock output generated form System PLL . */
  29475. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29476. 800cbe6: 4b32 ldr r3, [pc, #200] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29477. 800cbe8: 6adb ldr r3, [r3, #44] @ 0x2c
  29478. 800cbea: 4a31 ldr r2, [pc, #196] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29479. 800cbec: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29480. 800cbf0: 62d3 str r3, [r2, #44] @ 0x2c
  29481. /* SAI1 clock source configuration done later after clock selection check */
  29482. break;
  29483. 800cbf2: e01c b.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29484. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29485. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29486. 800cbf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29487. 800cbf8: 3308 adds r3, #8
  29488. 800cbfa: 2100 movs r1, #0
  29489. 800cbfc: 4618 mov r0, r3
  29490. 800cbfe: f002 fa39 bl 800f074 <RCCEx_PLL2_Config>
  29491. 800cc02: 4603 mov r3, r0
  29492. 800cc04: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29493. /* SAI2 clock source configuration done later after clock selection check */
  29494. break;
  29495. 800cc08: e011 b.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29496. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29497. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29498. 800cc0a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29499. 800cc0e: 3328 adds r3, #40 @ 0x28
  29500. 800cc10: 2100 movs r1, #0
  29501. 800cc12: 4618 mov r0, r3
  29502. 800cc14: f002 fae0 bl 800f1d8 <RCCEx_PLL3_Config>
  29503. 800cc18: 4603 mov r3, r0
  29504. 800cc1a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29505. /* SAI1 clock source configuration done later after clock selection check */
  29506. break;
  29507. 800cc1e: e006 b.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29508. /* SAI4A clock source configuration done later after clock selection check */
  29509. break;
  29510. #endif /* RCC_VER_3_0 */
  29511. default:
  29512. ret = HAL_ERROR;
  29513. 800cc20: 2301 movs r3, #1
  29514. 800cc22: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29515. break;
  29516. 800cc26: e002 b.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29517. break;
  29518. 800cc28: bf00 nop
  29519. 800cc2a: e000 b.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29520. break;
  29521. 800cc2c: bf00 nop
  29522. }
  29523. if (ret == HAL_OK)
  29524. 800cc2e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29525. 800cc32: 2b00 cmp r3, #0
  29526. 800cc34: d10b bne.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  29527. {
  29528. /* Set the source of SAI4A clock*/
  29529. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  29530. 800cc36: 4b1e ldr r3, [pc, #120] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29531. 800cc38: 6d9b ldr r3, [r3, #88] @ 0x58
  29532. 800cc3a: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  29533. 800cc3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29534. 800cc42: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29535. 800cc46: 4a1a ldr r2, [pc, #104] @ (800ccb0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29536. 800cc48: 430b orrs r3, r1
  29537. 800cc4a: 6593 str r3, [r2, #88] @ 0x58
  29538. 800cc4c: e003 b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29539. }
  29540. else
  29541. {
  29542. /* set overall return value */
  29543. status = ret;
  29544. 800cc4e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29545. 800cc52: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29546. }
  29547. }
  29548. /*---------------------------- SAI4B configuration -------------------------------*/
  29549. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  29550. 800cc56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29551. 800cc5a: e9d3 2300 ldrd r2, r3, [r3]
  29552. 800cc5e: f402 6300 and.w r3, r2, #2048 @ 0x800
  29553. 800cc62: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  29554. 800cc66: 2300 movs r3, #0
  29555. 800cc68: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  29556. 800cc6c: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  29557. 800cc70: 460b mov r3, r1
  29558. 800cc72: 4313 orrs r3, r2
  29559. 800cc74: d056 beq.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29560. {
  29561. switch (PeriphClkInit->Sai4BClockSelection)
  29562. 800cc76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29563. 800cc7a: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29564. 800cc7e: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29565. 800cc82: d038 beq.n 800ccf6 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  29566. 800cc84: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29567. 800cc88: d831 bhi.n 800ccee <HAL_RCCEx_PeriphCLKConfig+0x376>
  29568. 800cc8a: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29569. 800cc8e: d034 beq.n 800ccfa <HAL_RCCEx_PeriphCLKConfig+0x382>
  29570. 800cc90: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29571. 800cc94: d82b bhi.n 800ccee <HAL_RCCEx_PeriphCLKConfig+0x376>
  29572. 800cc96: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29573. 800cc9a: d01d beq.n 800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x360>
  29574. 800cc9c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29575. 800cca0: d825 bhi.n 800ccee <HAL_RCCEx_PeriphCLKConfig+0x376>
  29576. 800cca2: 2b00 cmp r3, #0
  29577. 800cca4: d006 beq.n 800ccb4 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  29578. 800cca6: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  29579. 800ccaa: d00a beq.n 800ccc2 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  29580. 800ccac: e01f b.n 800ccee <HAL_RCCEx_PeriphCLKConfig+0x376>
  29581. 800ccae: bf00 nop
  29582. 800ccb0: 58024400 .word 0x58024400
  29583. {
  29584. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29585. /* Enable SAI Clock output generated form System PLL . */
  29586. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29587. 800ccb4: 4ba2 ldr r3, [pc, #648] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29588. 800ccb6: 6adb ldr r3, [r3, #44] @ 0x2c
  29589. 800ccb8: 4aa1 ldr r2, [pc, #644] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29590. 800ccba: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29591. 800ccbe: 62d3 str r3, [r2, #44] @ 0x2c
  29592. /* SAI1 clock source configuration done later after clock selection check */
  29593. break;
  29594. 800ccc0: e01c b.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x384>
  29595. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29596. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29597. 800ccc2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29598. 800ccc6: 3308 adds r3, #8
  29599. 800ccc8: 2100 movs r1, #0
  29600. 800ccca: 4618 mov r0, r3
  29601. 800cccc: f002 f9d2 bl 800f074 <RCCEx_PLL2_Config>
  29602. 800ccd0: 4603 mov r3, r0
  29603. 800ccd2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29604. /* SAI2 clock source configuration done later after clock selection check */
  29605. break;
  29606. 800ccd6: e011 b.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x384>
  29607. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29608. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29609. 800ccd8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29610. 800ccdc: 3328 adds r3, #40 @ 0x28
  29611. 800ccde: 2100 movs r1, #0
  29612. 800cce0: 4618 mov r0, r3
  29613. 800cce2: f002 fa79 bl 800f1d8 <RCCEx_PLL3_Config>
  29614. 800cce6: 4603 mov r3, r0
  29615. 800cce8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29616. /* SAI1 clock source configuration done later after clock selection check */
  29617. break;
  29618. 800ccec: e006 b.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x384>
  29619. /* SAI4B clock source configuration done later after clock selection check */
  29620. break;
  29621. #endif /* RCC_VER_3_0 */
  29622. default:
  29623. ret = HAL_ERROR;
  29624. 800ccee: 2301 movs r3, #1
  29625. 800ccf0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29626. break;
  29627. 800ccf4: e002 b.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x384>
  29628. break;
  29629. 800ccf6: bf00 nop
  29630. 800ccf8: e000 b.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x384>
  29631. break;
  29632. 800ccfa: bf00 nop
  29633. }
  29634. if (ret == HAL_OK)
  29635. 800ccfc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29636. 800cd00: 2b00 cmp r3, #0
  29637. 800cd02: d10b bne.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  29638. {
  29639. /* Set the source of SAI4B clock*/
  29640. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  29641. 800cd04: 4b8e ldr r3, [pc, #568] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29642. 800cd06: 6d9b ldr r3, [r3, #88] @ 0x58
  29643. 800cd08: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  29644. 800cd0c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29645. 800cd10: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29646. 800cd14: 4a8a ldr r2, [pc, #552] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29647. 800cd16: 430b orrs r3, r1
  29648. 800cd18: 6593 str r3, [r2, #88] @ 0x58
  29649. 800cd1a: e003 b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29650. }
  29651. else
  29652. {
  29653. /* set overall return value */
  29654. status = ret;
  29655. 800cd1c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29656. 800cd20: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29657. }
  29658. #endif /*SAI4*/
  29659. #if defined(QUADSPI)
  29660. /*---------------------------- QSPI configuration -------------------------------*/
  29661. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  29662. 800cd24: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29663. 800cd28: e9d3 2300 ldrd r2, r3, [r3]
  29664. 800cd2c: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  29665. 800cd30: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  29666. 800cd34: 2300 movs r3, #0
  29667. 800cd36: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  29668. 800cd3a: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  29669. 800cd3e: 460b mov r3, r1
  29670. 800cd40: 4313 orrs r3, r2
  29671. 800cd42: d03a beq.n 800cdba <HAL_RCCEx_PeriphCLKConfig+0x442>
  29672. {
  29673. switch (PeriphClkInit->QspiClockSelection)
  29674. 800cd44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29675. 800cd48: 6cdb ldr r3, [r3, #76] @ 0x4c
  29676. 800cd4a: 2b30 cmp r3, #48 @ 0x30
  29677. 800cd4c: d01f beq.n 800cd8e <HAL_RCCEx_PeriphCLKConfig+0x416>
  29678. 800cd4e: 2b30 cmp r3, #48 @ 0x30
  29679. 800cd50: d819 bhi.n 800cd86 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29680. 800cd52: 2b20 cmp r3, #32
  29681. 800cd54: d00c beq.n 800cd70 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  29682. 800cd56: 2b20 cmp r3, #32
  29683. 800cd58: d815 bhi.n 800cd86 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29684. 800cd5a: 2b00 cmp r3, #0
  29685. 800cd5c: d019 beq.n 800cd92 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  29686. 800cd5e: 2b10 cmp r3, #16
  29687. 800cd60: d111 bne.n 800cd86 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29688. {
  29689. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  29690. /* Enable QSPI Clock output generated form System PLL . */
  29691. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29692. 800cd62: 4b77 ldr r3, [pc, #476] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29693. 800cd64: 6adb ldr r3, [r3, #44] @ 0x2c
  29694. 800cd66: 4a76 ldr r2, [pc, #472] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29695. 800cd68: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29696. 800cd6c: 62d3 str r3, [r2, #44] @ 0x2c
  29697. /* QSPI clock source configuration done later after clock selection check */
  29698. break;
  29699. 800cd6e: e011 b.n 800cd94 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29700. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  29701. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29702. 800cd70: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29703. 800cd74: 3308 adds r3, #8
  29704. 800cd76: 2102 movs r1, #2
  29705. 800cd78: 4618 mov r0, r3
  29706. 800cd7a: f002 f97b bl 800f074 <RCCEx_PLL2_Config>
  29707. 800cd7e: 4603 mov r3, r0
  29708. 800cd80: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29709. /* QSPI clock source configuration done later after clock selection check */
  29710. break;
  29711. 800cd84: e006 b.n 800cd94 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29712. case RCC_QSPICLKSOURCE_D1HCLK:
  29713. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  29714. break;
  29715. default:
  29716. ret = HAL_ERROR;
  29717. 800cd86: 2301 movs r3, #1
  29718. 800cd88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29719. break;
  29720. 800cd8c: e002 b.n 800cd94 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29721. break;
  29722. 800cd8e: bf00 nop
  29723. 800cd90: e000 b.n 800cd94 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29724. break;
  29725. 800cd92: bf00 nop
  29726. }
  29727. if (ret == HAL_OK)
  29728. 800cd94: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29729. 800cd98: 2b00 cmp r3, #0
  29730. 800cd9a: d10a bne.n 800cdb2 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  29731. {
  29732. /* Set the source of QSPI clock*/
  29733. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  29734. 800cd9c: 4b68 ldr r3, [pc, #416] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29735. 800cd9e: 6cdb ldr r3, [r3, #76] @ 0x4c
  29736. 800cda0: f023 0130 bic.w r1, r3, #48 @ 0x30
  29737. 800cda4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29738. 800cda8: 6cdb ldr r3, [r3, #76] @ 0x4c
  29739. 800cdaa: 4a65 ldr r2, [pc, #404] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29740. 800cdac: 430b orrs r3, r1
  29741. 800cdae: 64d3 str r3, [r2, #76] @ 0x4c
  29742. 800cdb0: e003 b.n 800cdba <HAL_RCCEx_PeriphCLKConfig+0x442>
  29743. }
  29744. else
  29745. {
  29746. /* set overall return value */
  29747. status = ret;
  29748. 800cdb2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29749. 800cdb6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29750. }
  29751. }
  29752. #endif /*OCTOSPI*/
  29753. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  29754. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  29755. 800cdba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29756. 800cdbe: e9d3 2300 ldrd r2, r3, [r3]
  29757. 800cdc2: f402 5380 and.w r3, r2, #4096 @ 0x1000
  29758. 800cdc6: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  29759. 800cdca: 2300 movs r3, #0
  29760. 800cdcc: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  29761. 800cdd0: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  29762. 800cdd4: 460b mov r3, r1
  29763. 800cdd6: 4313 orrs r3, r2
  29764. 800cdd8: d051 beq.n 800ce7e <HAL_RCCEx_PeriphCLKConfig+0x506>
  29765. {
  29766. switch (PeriphClkInit->Spi123ClockSelection)
  29767. 800cdda: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29768. 800cdde: 6e1b ldr r3, [r3, #96] @ 0x60
  29769. 800cde0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29770. 800cde4: d035 beq.n 800ce52 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  29771. 800cde6: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29772. 800cdea: d82e bhi.n 800ce4a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29773. 800cdec: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29774. 800cdf0: d031 beq.n 800ce56 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  29775. 800cdf2: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29776. 800cdf6: d828 bhi.n 800ce4a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29777. 800cdf8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29778. 800cdfc: d01a beq.n 800ce34 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  29779. 800cdfe: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29780. 800ce02: d822 bhi.n 800ce4a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29781. 800ce04: 2b00 cmp r3, #0
  29782. 800ce06: d003 beq.n 800ce10 <HAL_RCCEx_PeriphCLKConfig+0x498>
  29783. 800ce08: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29784. 800ce0c: d007 beq.n 800ce1e <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  29785. 800ce0e: e01c b.n 800ce4a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29786. {
  29787. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  29788. /* Enable SPI Clock output generated form System PLL . */
  29789. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29790. 800ce10: 4b4b ldr r3, [pc, #300] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29791. 800ce12: 6adb ldr r3, [r3, #44] @ 0x2c
  29792. 800ce14: 4a4a ldr r2, [pc, #296] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29793. 800ce16: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29794. 800ce1a: 62d3 str r3, [r2, #44] @ 0x2c
  29795. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29796. break;
  29797. 800ce1c: e01c b.n 800ce58 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29798. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  29799. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29800. 800ce1e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29801. 800ce22: 3308 adds r3, #8
  29802. 800ce24: 2100 movs r1, #0
  29803. 800ce26: 4618 mov r0, r3
  29804. 800ce28: f002 f924 bl 800f074 <RCCEx_PLL2_Config>
  29805. 800ce2c: 4603 mov r3, r0
  29806. 800ce2e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29807. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29808. break;
  29809. 800ce32: e011 b.n 800ce58 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29810. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  29811. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29812. 800ce34: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29813. 800ce38: 3328 adds r3, #40 @ 0x28
  29814. 800ce3a: 2100 movs r1, #0
  29815. 800ce3c: 4618 mov r0, r3
  29816. 800ce3e: f002 f9cb bl 800f1d8 <RCCEx_PLL3_Config>
  29817. 800ce42: 4603 mov r3, r0
  29818. 800ce44: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29819. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29820. break;
  29821. 800ce48: e006 b.n 800ce58 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29822. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  29823. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29824. break;
  29825. default:
  29826. ret = HAL_ERROR;
  29827. 800ce4a: 2301 movs r3, #1
  29828. 800ce4c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29829. break;
  29830. 800ce50: e002 b.n 800ce58 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29831. break;
  29832. 800ce52: bf00 nop
  29833. 800ce54: e000 b.n 800ce58 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29834. break;
  29835. 800ce56: bf00 nop
  29836. }
  29837. if (ret == HAL_OK)
  29838. 800ce58: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29839. 800ce5c: 2b00 cmp r3, #0
  29840. 800ce5e: d10a bne.n 800ce76 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  29841. {
  29842. /* Set the source of SPI1/2/3 clock*/
  29843. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  29844. 800ce60: 4b37 ldr r3, [pc, #220] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29845. 800ce62: 6d1b ldr r3, [r3, #80] @ 0x50
  29846. 800ce64: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  29847. 800ce68: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29848. 800ce6c: 6e1b ldr r3, [r3, #96] @ 0x60
  29849. 800ce6e: 4a34 ldr r2, [pc, #208] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29850. 800ce70: 430b orrs r3, r1
  29851. 800ce72: 6513 str r3, [r2, #80] @ 0x50
  29852. 800ce74: e003 b.n 800ce7e <HAL_RCCEx_PeriphCLKConfig+0x506>
  29853. }
  29854. else
  29855. {
  29856. /* set overall return value */
  29857. status = ret;
  29858. 800ce76: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29859. 800ce7a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29860. }
  29861. }
  29862. /*---------------------------- SPI4/5 configuration -------------------------------*/
  29863. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  29864. 800ce7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29865. 800ce82: e9d3 2300 ldrd r2, r3, [r3]
  29866. 800ce86: f402 5300 and.w r3, r2, #8192 @ 0x2000
  29867. 800ce8a: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29868. 800ce8e: 2300 movs r3, #0
  29869. 800ce90: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29870. 800ce94: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  29871. 800ce98: 460b mov r3, r1
  29872. 800ce9a: 4313 orrs r3, r2
  29873. 800ce9c: d056 beq.n 800cf4c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29874. {
  29875. switch (PeriphClkInit->Spi45ClockSelection)
  29876. 800ce9e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29877. 800cea2: 6e5b ldr r3, [r3, #100] @ 0x64
  29878. 800cea4: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29879. 800cea8: d033 beq.n 800cf12 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  29880. 800ceaa: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29881. 800ceae: d82c bhi.n 800cf0a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29882. 800ceb0: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29883. 800ceb4: d02f beq.n 800cf16 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  29884. 800ceb6: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29885. 800ceba: d826 bhi.n 800cf0a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29886. 800cebc: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29887. 800cec0: d02b beq.n 800cf1a <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  29888. 800cec2: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29889. 800cec6: d820 bhi.n 800cf0a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29890. 800cec8: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29891. 800cecc: d012 beq.n 800cef4 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  29892. 800cece: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29893. 800ced2: d81a bhi.n 800cf0a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29894. 800ced4: 2b00 cmp r3, #0
  29895. 800ced6: d022 beq.n 800cf1e <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  29896. 800ced8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29897. 800cedc: d115 bne.n 800cf0a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29898. /* SPI4/5 clock source configuration done later after clock selection check */
  29899. break;
  29900. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  29901. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29902. 800cede: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29903. 800cee2: 3308 adds r3, #8
  29904. 800cee4: 2101 movs r1, #1
  29905. 800cee6: 4618 mov r0, r3
  29906. 800cee8: f002 f8c4 bl 800f074 <RCCEx_PLL2_Config>
  29907. 800ceec: 4603 mov r3, r0
  29908. 800ceee: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29909. /* SPI4/5 clock source configuration done later after clock selection check */
  29910. break;
  29911. 800cef2: e015 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29912. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  29913. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29914. 800cef4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29915. 800cef8: 3328 adds r3, #40 @ 0x28
  29916. 800cefa: 2101 movs r1, #1
  29917. 800cefc: 4618 mov r0, r3
  29918. 800cefe: f002 f96b bl 800f1d8 <RCCEx_PLL3_Config>
  29919. 800cf02: 4603 mov r3, r0
  29920. 800cf04: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29921. /* SPI4/5 clock source configuration done later after clock selection check */
  29922. break;
  29923. 800cf08: e00a b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29924. /* HSE, oscillator is used as source of SPI4/5 clock */
  29925. /* SPI4/5 clock source configuration done later after clock selection check */
  29926. break;
  29927. default:
  29928. ret = HAL_ERROR;
  29929. 800cf0a: 2301 movs r3, #1
  29930. 800cf0c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29931. break;
  29932. 800cf10: e006 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29933. break;
  29934. 800cf12: bf00 nop
  29935. 800cf14: e004 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29936. break;
  29937. 800cf16: bf00 nop
  29938. 800cf18: e002 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29939. break;
  29940. 800cf1a: bf00 nop
  29941. 800cf1c: e000 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29942. break;
  29943. 800cf1e: bf00 nop
  29944. }
  29945. if (ret == HAL_OK)
  29946. 800cf20: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29947. 800cf24: 2b00 cmp r3, #0
  29948. 800cf26: d10d bne.n 800cf44 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  29949. {
  29950. /* Set the source of SPI4/5 clock*/
  29951. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  29952. 800cf28: 4b05 ldr r3, [pc, #20] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29953. 800cf2a: 6d1b ldr r3, [r3, #80] @ 0x50
  29954. 800cf2c: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  29955. 800cf30: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29956. 800cf34: 6e5b ldr r3, [r3, #100] @ 0x64
  29957. 800cf36: 4a02 ldr r2, [pc, #8] @ (800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29958. 800cf38: 430b orrs r3, r1
  29959. 800cf3a: 6513 str r3, [r2, #80] @ 0x50
  29960. 800cf3c: e006 b.n 800cf4c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29961. 800cf3e: bf00 nop
  29962. 800cf40: 58024400 .word 0x58024400
  29963. }
  29964. else
  29965. {
  29966. /* set overall return value */
  29967. status = ret;
  29968. 800cf44: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29969. 800cf48: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29970. }
  29971. }
  29972. /*---------------------------- SPI6 configuration -------------------------------*/
  29973. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  29974. 800cf4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29975. 800cf50: e9d3 2300 ldrd r2, r3, [r3]
  29976. 800cf54: f402 4380 and.w r3, r2, #16384 @ 0x4000
  29977. 800cf58: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  29978. 800cf5c: 2300 movs r3, #0
  29979. 800cf5e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  29980. 800cf62: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  29981. 800cf66: 460b mov r3, r1
  29982. 800cf68: 4313 orrs r3, r2
  29983. 800cf6a: d055 beq.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29984. {
  29985. switch (PeriphClkInit->Spi6ClockSelection)
  29986. 800cf6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29987. 800cf70: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29988. 800cf74: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29989. 800cf78: d033 beq.n 800cfe2 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  29990. 800cf7a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29991. 800cf7e: d82c bhi.n 800cfda <HAL_RCCEx_PeriphCLKConfig+0x662>
  29992. 800cf80: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29993. 800cf84: d02f beq.n 800cfe6 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  29994. 800cf86: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29995. 800cf8a: d826 bhi.n 800cfda <HAL_RCCEx_PeriphCLKConfig+0x662>
  29996. 800cf8c: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29997. 800cf90: d02b beq.n 800cfea <HAL_RCCEx_PeriphCLKConfig+0x672>
  29998. 800cf92: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29999. 800cf96: d820 bhi.n 800cfda <HAL_RCCEx_PeriphCLKConfig+0x662>
  30000. 800cf98: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30001. 800cf9c: d012 beq.n 800cfc4 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  30002. 800cf9e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30003. 800cfa2: d81a bhi.n 800cfda <HAL_RCCEx_PeriphCLKConfig+0x662>
  30004. 800cfa4: 2b00 cmp r3, #0
  30005. 800cfa6: d022 beq.n 800cfee <HAL_RCCEx_PeriphCLKConfig+0x676>
  30006. 800cfa8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30007. 800cfac: d115 bne.n 800cfda <HAL_RCCEx_PeriphCLKConfig+0x662>
  30008. /* SPI6 clock source configuration done later after clock selection check */
  30009. break;
  30010. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  30011. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30012. 800cfae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30013. 800cfb2: 3308 adds r3, #8
  30014. 800cfb4: 2101 movs r1, #1
  30015. 800cfb6: 4618 mov r0, r3
  30016. 800cfb8: f002 f85c bl 800f074 <RCCEx_PLL2_Config>
  30017. 800cfbc: 4603 mov r3, r0
  30018. 800cfbe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30019. /* SPI6 clock source configuration done later after clock selection check */
  30020. break;
  30021. 800cfc2: e015 b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30022. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  30023. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30024. 800cfc4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30025. 800cfc8: 3328 adds r3, #40 @ 0x28
  30026. 800cfca: 2101 movs r1, #1
  30027. 800cfcc: 4618 mov r0, r3
  30028. 800cfce: f002 f903 bl 800f1d8 <RCCEx_PLL3_Config>
  30029. 800cfd2: 4603 mov r3, r0
  30030. 800cfd4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30031. /* SPI6 clock source configuration done later after clock selection check */
  30032. break;
  30033. 800cfd8: e00a b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30034. /* SPI6 clock source configuration done later after clock selection check */
  30035. break;
  30036. #endif
  30037. default:
  30038. ret = HAL_ERROR;
  30039. 800cfda: 2301 movs r3, #1
  30040. 800cfdc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30041. break;
  30042. 800cfe0: e006 b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30043. break;
  30044. 800cfe2: bf00 nop
  30045. 800cfe4: e004 b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30046. break;
  30047. 800cfe6: bf00 nop
  30048. 800cfe8: e002 b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30049. break;
  30050. 800cfea: bf00 nop
  30051. 800cfec: e000 b.n 800cff0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30052. break;
  30053. 800cfee: bf00 nop
  30054. }
  30055. if (ret == HAL_OK)
  30056. 800cff0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30057. 800cff4: 2b00 cmp r3, #0
  30058. 800cff6: d10b bne.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x698>
  30059. {
  30060. /* Set the source of SPI6 clock*/
  30061. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  30062. 800cff8: 4ba3 ldr r3, [pc, #652] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30063. 800cffa: 6d9b ldr r3, [r3, #88] @ 0x58
  30064. 800cffc: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30065. 800d000: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30066. 800d004: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30067. 800d008: 4a9f ldr r2, [pc, #636] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30068. 800d00a: 430b orrs r3, r1
  30069. 800d00c: 6593 str r3, [r2, #88] @ 0x58
  30070. 800d00e: e003 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  30071. }
  30072. else
  30073. {
  30074. /* set overall return value */
  30075. status = ret;
  30076. 800d010: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30077. 800d014: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30078. }
  30079. #endif /*DSI*/
  30080. #if defined(FDCAN1) || defined(FDCAN2)
  30081. /*---------------------------- FDCAN configuration -------------------------------*/
  30082. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  30083. 800d018: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30084. 800d01c: e9d3 2300 ldrd r2, r3, [r3]
  30085. 800d020: f402 4300 and.w r3, r2, #32768 @ 0x8000
  30086. 800d024: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  30087. 800d028: 2300 movs r3, #0
  30088. 800d02a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  30089. 800d02e: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  30090. 800d032: 460b mov r3, r1
  30091. 800d034: 4313 orrs r3, r2
  30092. 800d036: d037 beq.n 800d0a8 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30093. {
  30094. switch (PeriphClkInit->FdcanClockSelection)
  30095. 800d038: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30096. 800d03c: 6f1b ldr r3, [r3, #112] @ 0x70
  30097. 800d03e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30098. 800d042: d00e beq.n 800d062 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  30099. 800d044: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30100. 800d048: d816 bhi.n 800d078 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30101. 800d04a: 2b00 cmp r3, #0
  30102. 800d04c: d018 beq.n 800d080 <HAL_RCCEx_PeriphCLKConfig+0x708>
  30103. 800d04e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30104. 800d052: d111 bne.n 800d078 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30105. {
  30106. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  30107. /* Enable FDCAN Clock output generated form System PLL . */
  30108. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30109. 800d054: 4b8c ldr r3, [pc, #560] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30110. 800d056: 6adb ldr r3, [r3, #44] @ 0x2c
  30111. 800d058: 4a8b ldr r2, [pc, #556] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30112. 800d05a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30113. 800d05e: 62d3 str r3, [r2, #44] @ 0x2c
  30114. /* FDCAN clock source configuration done later after clock selection check */
  30115. break;
  30116. 800d060: e00f b.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30117. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  30118. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30119. 800d062: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30120. 800d066: 3308 adds r3, #8
  30121. 800d068: 2101 movs r1, #1
  30122. 800d06a: 4618 mov r0, r3
  30123. 800d06c: f002 f802 bl 800f074 <RCCEx_PLL2_Config>
  30124. 800d070: 4603 mov r3, r0
  30125. 800d072: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30126. /* FDCAN clock source configuration done later after clock selection check */
  30127. break;
  30128. 800d076: e004 b.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30129. /* HSE is used as clock source for FDCAN*/
  30130. /* FDCAN clock source configuration done later after clock selection check */
  30131. break;
  30132. default:
  30133. ret = HAL_ERROR;
  30134. 800d078: 2301 movs r3, #1
  30135. 800d07a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30136. break;
  30137. 800d07e: e000 b.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30138. break;
  30139. 800d080: bf00 nop
  30140. }
  30141. if (ret == HAL_OK)
  30142. 800d082: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30143. 800d086: 2b00 cmp r3, #0
  30144. 800d088: d10a bne.n 800d0a0 <HAL_RCCEx_PeriphCLKConfig+0x728>
  30145. {
  30146. /* Set the source of FDCAN clock*/
  30147. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  30148. 800d08a: 4b7f ldr r3, [pc, #508] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30149. 800d08c: 6d1b ldr r3, [r3, #80] @ 0x50
  30150. 800d08e: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30151. 800d092: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30152. 800d096: 6f1b ldr r3, [r3, #112] @ 0x70
  30153. 800d098: 4a7b ldr r2, [pc, #492] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30154. 800d09a: 430b orrs r3, r1
  30155. 800d09c: 6513 str r3, [r2, #80] @ 0x50
  30156. 800d09e: e003 b.n 800d0a8 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30157. }
  30158. else
  30159. {
  30160. /* set overall return value */
  30161. status = ret;
  30162. 800d0a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30163. 800d0a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30164. }
  30165. }
  30166. #endif /*FDCAN1 || FDCAN2*/
  30167. /*---------------------------- FMC configuration -------------------------------*/
  30168. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  30169. 800d0a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30170. 800d0ac: e9d3 2300 ldrd r2, r3, [r3]
  30171. 800d0b0: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  30172. 800d0b4: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  30173. 800d0b8: 2300 movs r3, #0
  30174. 800d0ba: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  30175. 800d0be: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  30176. 800d0c2: 460b mov r3, r1
  30177. 800d0c4: 4313 orrs r3, r2
  30178. 800d0c6: d039 beq.n 800d13c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30179. {
  30180. switch (PeriphClkInit->FmcClockSelection)
  30181. 800d0c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30182. 800d0cc: 6c9b ldr r3, [r3, #72] @ 0x48
  30183. 800d0ce: 2b03 cmp r3, #3
  30184. 800d0d0: d81c bhi.n 800d10c <HAL_RCCEx_PeriphCLKConfig+0x794>
  30185. 800d0d2: a201 add r2, pc, #4 @ (adr r2, 800d0d8 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  30186. 800d0d4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30187. 800d0d8: 0800d115 .word 0x0800d115
  30188. 800d0dc: 0800d0e9 .word 0x0800d0e9
  30189. 800d0e0: 0800d0f7 .word 0x0800d0f7
  30190. 800d0e4: 0800d115 .word 0x0800d115
  30191. {
  30192. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  30193. /* Enable FMC Clock output generated form System PLL . */
  30194. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30195. 800d0e8: 4b67 ldr r3, [pc, #412] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30196. 800d0ea: 6adb ldr r3, [r3, #44] @ 0x2c
  30197. 800d0ec: 4a66 ldr r2, [pc, #408] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30198. 800d0ee: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30199. 800d0f2: 62d3 str r3, [r2, #44] @ 0x2c
  30200. /* FMC clock source configuration done later after clock selection check */
  30201. break;
  30202. 800d0f4: e00f b.n 800d116 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30203. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  30204. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30205. 800d0f6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30206. 800d0fa: 3308 adds r3, #8
  30207. 800d0fc: 2102 movs r1, #2
  30208. 800d0fe: 4618 mov r0, r3
  30209. 800d100: f001 ffb8 bl 800f074 <RCCEx_PLL2_Config>
  30210. 800d104: 4603 mov r3, r0
  30211. 800d106: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30212. /* FMC clock source configuration done later after clock selection check */
  30213. break;
  30214. 800d10a: e004 b.n 800d116 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30215. case RCC_FMCCLKSOURCE_HCLK:
  30216. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  30217. break;
  30218. default:
  30219. ret = HAL_ERROR;
  30220. 800d10c: 2301 movs r3, #1
  30221. 800d10e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30222. break;
  30223. 800d112: e000 b.n 800d116 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30224. break;
  30225. 800d114: bf00 nop
  30226. }
  30227. if (ret == HAL_OK)
  30228. 800d116: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30229. 800d11a: 2b00 cmp r3, #0
  30230. 800d11c: d10a bne.n 800d134 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  30231. {
  30232. /* Set the source of FMC clock*/
  30233. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  30234. 800d11e: 4b5a ldr r3, [pc, #360] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30235. 800d120: 6cdb ldr r3, [r3, #76] @ 0x4c
  30236. 800d122: f023 0103 bic.w r1, r3, #3
  30237. 800d126: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30238. 800d12a: 6c9b ldr r3, [r3, #72] @ 0x48
  30239. 800d12c: 4a56 ldr r2, [pc, #344] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30240. 800d12e: 430b orrs r3, r1
  30241. 800d130: 64d3 str r3, [r2, #76] @ 0x4c
  30242. 800d132: e003 b.n 800d13c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30243. }
  30244. else
  30245. {
  30246. /* set overall return value */
  30247. status = ret;
  30248. 800d134: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30249. 800d138: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30250. }
  30251. }
  30252. /*---------------------------- RTC configuration -------------------------------*/
  30253. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  30254. 800d13c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30255. 800d140: e9d3 2300 ldrd r2, r3, [r3]
  30256. 800d144: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  30257. 800d148: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30258. 800d14c: 2300 movs r3, #0
  30259. 800d14e: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30260. 800d152: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  30261. 800d156: 460b mov r3, r1
  30262. 800d158: 4313 orrs r3, r2
  30263. 800d15a: f000 809f beq.w 800d29c <HAL_RCCEx_PeriphCLKConfig+0x924>
  30264. {
  30265. /* check for RTC Parameters used to output RTCCLK */
  30266. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  30267. /* Enable write access to Backup domain */
  30268. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  30269. 800d15e: 4b4b ldr r3, [pc, #300] @ (800d28c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30270. 800d160: 681b ldr r3, [r3, #0]
  30271. 800d162: 4a4a ldr r2, [pc, #296] @ (800d28c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30272. 800d164: f443 7380 orr.w r3, r3, #256 @ 0x100
  30273. 800d168: 6013 str r3, [r2, #0]
  30274. /* Wait for Backup domain Write protection disable */
  30275. tickstart = HAL_GetTick();
  30276. 800d16a: f7f8 fe47 bl 8005dfc <HAL_GetTick>
  30277. 800d16e: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30278. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30279. 800d172: e00b b.n 800d18c <HAL_RCCEx_PeriphCLKConfig+0x814>
  30280. {
  30281. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  30282. 800d174: f7f8 fe42 bl 8005dfc <HAL_GetTick>
  30283. 800d178: 4602 mov r2, r0
  30284. 800d17a: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30285. 800d17e: 1ad3 subs r3, r2, r3
  30286. 800d180: 2b64 cmp r3, #100 @ 0x64
  30287. 800d182: d903 bls.n 800d18c <HAL_RCCEx_PeriphCLKConfig+0x814>
  30288. {
  30289. ret = HAL_TIMEOUT;
  30290. 800d184: 2303 movs r3, #3
  30291. 800d186: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30292. break;
  30293. 800d18a: e005 b.n 800d198 <HAL_RCCEx_PeriphCLKConfig+0x820>
  30294. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30295. 800d18c: 4b3f ldr r3, [pc, #252] @ (800d28c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30296. 800d18e: 681b ldr r3, [r3, #0]
  30297. 800d190: f403 7380 and.w r3, r3, #256 @ 0x100
  30298. 800d194: 2b00 cmp r3, #0
  30299. 800d196: d0ed beq.n 800d174 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  30300. }
  30301. }
  30302. if (ret == HAL_OK)
  30303. 800d198: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30304. 800d19c: 2b00 cmp r3, #0
  30305. 800d19e: d179 bne.n 800d294 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  30306. {
  30307. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  30308. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  30309. 800d1a0: 4b39 ldr r3, [pc, #228] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30310. 800d1a2: 6f1a ldr r2, [r3, #112] @ 0x70
  30311. 800d1a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30312. 800d1a8: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30313. 800d1ac: 4053 eors r3, r2
  30314. 800d1ae: f403 7340 and.w r3, r3, #768 @ 0x300
  30315. 800d1b2: 2b00 cmp r3, #0
  30316. 800d1b4: d015 beq.n 800d1e2 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  30317. {
  30318. /* Store the content of BDCR register before the reset of Backup Domain */
  30319. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  30320. 800d1b6: 4b34 ldr r3, [pc, #208] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30321. 800d1b8: 6f1b ldr r3, [r3, #112] @ 0x70
  30322. 800d1ba: f423 7340 bic.w r3, r3, #768 @ 0x300
  30323. 800d1be: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  30324. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  30325. __HAL_RCC_BACKUPRESET_FORCE();
  30326. 800d1c2: 4b31 ldr r3, [pc, #196] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30327. 800d1c4: 6f1b ldr r3, [r3, #112] @ 0x70
  30328. 800d1c6: 4a30 ldr r2, [pc, #192] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30329. 800d1c8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  30330. 800d1cc: 6713 str r3, [r2, #112] @ 0x70
  30331. __HAL_RCC_BACKUPRESET_RELEASE();
  30332. 800d1ce: 4b2e ldr r3, [pc, #184] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30333. 800d1d0: 6f1b ldr r3, [r3, #112] @ 0x70
  30334. 800d1d2: 4a2d ldr r2, [pc, #180] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30335. 800d1d4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  30336. 800d1d8: 6713 str r3, [r2, #112] @ 0x70
  30337. /* Restore the Content of BDCR register */
  30338. RCC->BDCR = tmpreg;
  30339. 800d1da: 4a2b ldr r2, [pc, #172] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30340. 800d1dc: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  30341. 800d1e0: 6713 str r3, [r2, #112] @ 0x70
  30342. }
  30343. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  30344. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  30345. 800d1e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30346. 800d1e6: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30347. 800d1ea: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30348. 800d1ee: d118 bne.n 800d222 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30349. {
  30350. /* Get Start Tick*/
  30351. tickstart = HAL_GetTick();
  30352. 800d1f0: f7f8 fe04 bl 8005dfc <HAL_GetTick>
  30353. 800d1f4: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30354. /* Wait till LSE is ready */
  30355. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30356. 800d1f8: e00d b.n 800d216 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30357. {
  30358. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  30359. 800d1fa: f7f8 fdff bl 8005dfc <HAL_GetTick>
  30360. 800d1fe: 4602 mov r2, r0
  30361. 800d200: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30362. 800d204: 1ad2 subs r2, r2, r3
  30363. 800d206: f241 3388 movw r3, #5000 @ 0x1388
  30364. 800d20a: 429a cmp r2, r3
  30365. 800d20c: d903 bls.n 800d216 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30366. {
  30367. ret = HAL_TIMEOUT;
  30368. 800d20e: 2303 movs r3, #3
  30369. 800d210: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30370. break;
  30371. 800d214: e005 b.n 800d222 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30372. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30373. 800d216: 4b1c ldr r3, [pc, #112] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30374. 800d218: 6f1b ldr r3, [r3, #112] @ 0x70
  30375. 800d21a: f003 0302 and.w r3, r3, #2
  30376. 800d21e: 2b00 cmp r3, #0
  30377. 800d220: d0eb beq.n 800d1fa <HAL_RCCEx_PeriphCLKConfig+0x882>
  30378. }
  30379. }
  30380. }
  30381. if (ret == HAL_OK)
  30382. 800d222: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30383. 800d226: 2b00 cmp r3, #0
  30384. 800d228: d129 bne.n 800d27e <HAL_RCCEx_PeriphCLKConfig+0x906>
  30385. {
  30386. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  30387. 800d22a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30388. 800d22e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30389. 800d232: f403 7340 and.w r3, r3, #768 @ 0x300
  30390. 800d236: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30391. 800d23a: d10e bne.n 800d25a <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  30392. 800d23c: 4b12 ldr r3, [pc, #72] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30393. 800d23e: 691b ldr r3, [r3, #16]
  30394. 800d240: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  30395. 800d244: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30396. 800d248: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30397. 800d24c: 091a lsrs r2, r3, #4
  30398. 800d24e: 4b10 ldr r3, [pc, #64] @ (800d290 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  30399. 800d250: 4013 ands r3, r2
  30400. 800d252: 4a0d ldr r2, [pc, #52] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30401. 800d254: 430b orrs r3, r1
  30402. 800d256: 6113 str r3, [r2, #16]
  30403. 800d258: e005 b.n 800d266 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  30404. 800d25a: 4b0b ldr r3, [pc, #44] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30405. 800d25c: 691b ldr r3, [r3, #16]
  30406. 800d25e: 4a0a ldr r2, [pc, #40] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30407. 800d260: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  30408. 800d264: 6113 str r3, [r2, #16]
  30409. 800d266: 4b08 ldr r3, [pc, #32] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30410. 800d268: 6f19 ldr r1, [r3, #112] @ 0x70
  30411. 800d26a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30412. 800d26e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30413. 800d272: f3c3 030b ubfx r3, r3, #0, #12
  30414. 800d276: 4a04 ldr r2, [pc, #16] @ (800d288 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30415. 800d278: 430b orrs r3, r1
  30416. 800d27a: 6713 str r3, [r2, #112] @ 0x70
  30417. 800d27c: e00e b.n 800d29c <HAL_RCCEx_PeriphCLKConfig+0x924>
  30418. }
  30419. else
  30420. {
  30421. /* set overall return value */
  30422. status = ret;
  30423. 800d27e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30424. 800d282: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30425. 800d286: e009 b.n 800d29c <HAL_RCCEx_PeriphCLKConfig+0x924>
  30426. 800d288: 58024400 .word 0x58024400
  30427. 800d28c: 58024800 .word 0x58024800
  30428. 800d290: 00ffffcf .word 0x00ffffcf
  30429. }
  30430. }
  30431. else
  30432. {
  30433. /* set overall return value */
  30434. status = ret;
  30435. 800d294: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30436. 800d298: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30437. }
  30438. }
  30439. /*-------------------------- USART1/6 configuration --------------------------*/
  30440. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  30441. 800d29c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30442. 800d2a0: e9d3 2300 ldrd r2, r3, [r3]
  30443. 800d2a4: f002 0301 and.w r3, r2, #1
  30444. 800d2a8: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30445. 800d2ac: 2300 movs r3, #0
  30446. 800d2ae: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  30447. 800d2b2: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  30448. 800d2b6: 460b mov r3, r1
  30449. 800d2b8: 4313 orrs r3, r2
  30450. 800d2ba: f000 8089 beq.w 800d3d0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30451. {
  30452. switch (PeriphClkInit->Usart16ClockSelection)
  30453. 800d2be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30454. 800d2c2: 6fdb ldr r3, [r3, #124] @ 0x7c
  30455. 800d2c4: 2b28 cmp r3, #40 @ 0x28
  30456. 800d2c6: d86b bhi.n 800d3a0 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  30457. 800d2c8: a201 add r2, pc, #4 @ (adr r2, 800d2d0 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  30458. 800d2ca: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30459. 800d2ce: bf00 nop
  30460. 800d2d0: 0800d3a9 .word 0x0800d3a9
  30461. 800d2d4: 0800d3a1 .word 0x0800d3a1
  30462. 800d2d8: 0800d3a1 .word 0x0800d3a1
  30463. 800d2dc: 0800d3a1 .word 0x0800d3a1
  30464. 800d2e0: 0800d3a1 .word 0x0800d3a1
  30465. 800d2e4: 0800d3a1 .word 0x0800d3a1
  30466. 800d2e8: 0800d3a1 .word 0x0800d3a1
  30467. 800d2ec: 0800d3a1 .word 0x0800d3a1
  30468. 800d2f0: 0800d375 .word 0x0800d375
  30469. 800d2f4: 0800d3a1 .word 0x0800d3a1
  30470. 800d2f8: 0800d3a1 .word 0x0800d3a1
  30471. 800d2fc: 0800d3a1 .word 0x0800d3a1
  30472. 800d300: 0800d3a1 .word 0x0800d3a1
  30473. 800d304: 0800d3a1 .word 0x0800d3a1
  30474. 800d308: 0800d3a1 .word 0x0800d3a1
  30475. 800d30c: 0800d3a1 .word 0x0800d3a1
  30476. 800d310: 0800d38b .word 0x0800d38b
  30477. 800d314: 0800d3a1 .word 0x0800d3a1
  30478. 800d318: 0800d3a1 .word 0x0800d3a1
  30479. 800d31c: 0800d3a1 .word 0x0800d3a1
  30480. 800d320: 0800d3a1 .word 0x0800d3a1
  30481. 800d324: 0800d3a1 .word 0x0800d3a1
  30482. 800d328: 0800d3a1 .word 0x0800d3a1
  30483. 800d32c: 0800d3a1 .word 0x0800d3a1
  30484. 800d330: 0800d3a9 .word 0x0800d3a9
  30485. 800d334: 0800d3a1 .word 0x0800d3a1
  30486. 800d338: 0800d3a1 .word 0x0800d3a1
  30487. 800d33c: 0800d3a1 .word 0x0800d3a1
  30488. 800d340: 0800d3a1 .word 0x0800d3a1
  30489. 800d344: 0800d3a1 .word 0x0800d3a1
  30490. 800d348: 0800d3a1 .word 0x0800d3a1
  30491. 800d34c: 0800d3a1 .word 0x0800d3a1
  30492. 800d350: 0800d3a9 .word 0x0800d3a9
  30493. 800d354: 0800d3a1 .word 0x0800d3a1
  30494. 800d358: 0800d3a1 .word 0x0800d3a1
  30495. 800d35c: 0800d3a1 .word 0x0800d3a1
  30496. 800d360: 0800d3a1 .word 0x0800d3a1
  30497. 800d364: 0800d3a1 .word 0x0800d3a1
  30498. 800d368: 0800d3a1 .word 0x0800d3a1
  30499. 800d36c: 0800d3a1 .word 0x0800d3a1
  30500. 800d370: 0800d3a9 .word 0x0800d3a9
  30501. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  30502. /* USART1/6 clock source configuration done later after clock selection check */
  30503. break;
  30504. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  30505. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30506. 800d374: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30507. 800d378: 3308 adds r3, #8
  30508. 800d37a: 2101 movs r1, #1
  30509. 800d37c: 4618 mov r0, r3
  30510. 800d37e: f001 fe79 bl 800f074 <RCCEx_PLL2_Config>
  30511. 800d382: 4603 mov r3, r0
  30512. 800d384: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30513. /* USART1/6 clock source configuration done later after clock selection check */
  30514. break;
  30515. 800d388: e00f b.n 800d3aa <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30516. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  30517. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30518. 800d38a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30519. 800d38e: 3328 adds r3, #40 @ 0x28
  30520. 800d390: 2101 movs r1, #1
  30521. 800d392: 4618 mov r0, r3
  30522. 800d394: f001 ff20 bl 800f1d8 <RCCEx_PLL3_Config>
  30523. 800d398: 4603 mov r3, r0
  30524. 800d39a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30525. /* USART1/6 clock source configuration done later after clock selection check */
  30526. break;
  30527. 800d39e: e004 b.n 800d3aa <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30528. /* LSE, oscillator is used as source of USART1/6 clock */
  30529. /* USART1/6 clock source configuration done later after clock selection check */
  30530. break;
  30531. default:
  30532. ret = HAL_ERROR;
  30533. 800d3a0: 2301 movs r3, #1
  30534. 800d3a2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30535. break;
  30536. 800d3a6: e000 b.n 800d3aa <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30537. break;
  30538. 800d3a8: bf00 nop
  30539. }
  30540. if (ret == HAL_OK)
  30541. 800d3aa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30542. 800d3ae: 2b00 cmp r3, #0
  30543. 800d3b0: d10a bne.n 800d3c8 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  30544. {
  30545. /* Set the source of USART1/6 clock */
  30546. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  30547. 800d3b2: 4bbf ldr r3, [pc, #764] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30548. 800d3b4: 6d5b ldr r3, [r3, #84] @ 0x54
  30549. 800d3b6: f023 0138 bic.w r1, r3, #56 @ 0x38
  30550. 800d3ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30551. 800d3be: 6fdb ldr r3, [r3, #124] @ 0x7c
  30552. 800d3c0: 4abb ldr r2, [pc, #748] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30553. 800d3c2: 430b orrs r3, r1
  30554. 800d3c4: 6553 str r3, [r2, #84] @ 0x54
  30555. 800d3c6: e003 b.n 800d3d0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30556. }
  30557. else
  30558. {
  30559. /* set overall return value */
  30560. status = ret;
  30561. 800d3c8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30562. 800d3cc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30563. }
  30564. }
  30565. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  30566. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  30567. 800d3d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30568. 800d3d4: e9d3 2300 ldrd r2, r3, [r3]
  30569. 800d3d8: f002 0302 and.w r3, r2, #2
  30570. 800d3dc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30571. 800d3e0: 2300 movs r3, #0
  30572. 800d3e2: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30573. 800d3e6: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  30574. 800d3ea: 460b mov r3, r1
  30575. 800d3ec: 4313 orrs r3, r2
  30576. 800d3ee: d041 beq.n 800d474 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30577. {
  30578. switch (PeriphClkInit->Usart234578ClockSelection)
  30579. 800d3f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30580. 800d3f4: 6f9b ldr r3, [r3, #120] @ 0x78
  30581. 800d3f6: 2b05 cmp r3, #5
  30582. 800d3f8: d824 bhi.n 800d444 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  30583. 800d3fa: a201 add r2, pc, #4 @ (adr r2, 800d400 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  30584. 800d3fc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30585. 800d400: 0800d44d .word 0x0800d44d
  30586. 800d404: 0800d419 .word 0x0800d419
  30587. 800d408: 0800d42f .word 0x0800d42f
  30588. 800d40c: 0800d44d .word 0x0800d44d
  30589. 800d410: 0800d44d .word 0x0800d44d
  30590. 800d414: 0800d44d .word 0x0800d44d
  30591. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  30592. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30593. break;
  30594. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  30595. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30596. 800d418: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30597. 800d41c: 3308 adds r3, #8
  30598. 800d41e: 2101 movs r1, #1
  30599. 800d420: 4618 mov r0, r3
  30600. 800d422: f001 fe27 bl 800f074 <RCCEx_PLL2_Config>
  30601. 800d426: 4603 mov r3, r0
  30602. 800d428: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30603. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30604. break;
  30605. 800d42c: e00f b.n 800d44e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30606. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  30607. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30608. 800d42e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30609. 800d432: 3328 adds r3, #40 @ 0x28
  30610. 800d434: 2101 movs r1, #1
  30611. 800d436: 4618 mov r0, r3
  30612. 800d438: f001 fece bl 800f1d8 <RCCEx_PLL3_Config>
  30613. 800d43c: 4603 mov r3, r0
  30614. 800d43e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30615. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30616. break;
  30617. 800d442: e004 b.n 800d44e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30618. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  30619. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30620. break;
  30621. default:
  30622. ret = HAL_ERROR;
  30623. 800d444: 2301 movs r3, #1
  30624. 800d446: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30625. break;
  30626. 800d44a: e000 b.n 800d44e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30627. break;
  30628. 800d44c: bf00 nop
  30629. }
  30630. if (ret == HAL_OK)
  30631. 800d44e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30632. 800d452: 2b00 cmp r3, #0
  30633. 800d454: d10a bne.n 800d46c <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  30634. {
  30635. /* Set the source of USART2/3/4/5/7/8 clock */
  30636. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  30637. 800d456: 4b96 ldr r3, [pc, #600] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30638. 800d458: 6d5b ldr r3, [r3, #84] @ 0x54
  30639. 800d45a: f023 0107 bic.w r1, r3, #7
  30640. 800d45e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30641. 800d462: 6f9b ldr r3, [r3, #120] @ 0x78
  30642. 800d464: 4a92 ldr r2, [pc, #584] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30643. 800d466: 430b orrs r3, r1
  30644. 800d468: 6553 str r3, [r2, #84] @ 0x54
  30645. 800d46a: e003 b.n 800d474 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30646. }
  30647. else
  30648. {
  30649. /* set overall return value */
  30650. status = ret;
  30651. 800d46c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30652. 800d470: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30653. }
  30654. }
  30655. /*-------------------------- LPUART1 Configuration -------------------------*/
  30656. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  30657. 800d474: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30658. 800d478: e9d3 2300 ldrd r2, r3, [r3]
  30659. 800d47c: f002 0304 and.w r3, r2, #4
  30660. 800d480: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  30661. 800d484: 2300 movs r3, #0
  30662. 800d486: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30663. 800d48a: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  30664. 800d48e: 460b mov r3, r1
  30665. 800d490: 4313 orrs r3, r2
  30666. 800d492: d044 beq.n 800d51e <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30667. {
  30668. switch (PeriphClkInit->Lpuart1ClockSelection)
  30669. 800d494: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30670. 800d498: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30671. 800d49c: 2b05 cmp r3, #5
  30672. 800d49e: d825 bhi.n 800d4ec <HAL_RCCEx_PeriphCLKConfig+0xb74>
  30673. 800d4a0: a201 add r2, pc, #4 @ (adr r2, 800d4a8 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  30674. 800d4a2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30675. 800d4a6: bf00 nop
  30676. 800d4a8: 0800d4f5 .word 0x0800d4f5
  30677. 800d4ac: 0800d4c1 .word 0x0800d4c1
  30678. 800d4b0: 0800d4d7 .word 0x0800d4d7
  30679. 800d4b4: 0800d4f5 .word 0x0800d4f5
  30680. 800d4b8: 0800d4f5 .word 0x0800d4f5
  30681. 800d4bc: 0800d4f5 .word 0x0800d4f5
  30682. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  30683. /* LPUART1 clock source configuration done later after clock selection check */
  30684. break;
  30685. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  30686. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30687. 800d4c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30688. 800d4c4: 3308 adds r3, #8
  30689. 800d4c6: 2101 movs r1, #1
  30690. 800d4c8: 4618 mov r0, r3
  30691. 800d4ca: f001 fdd3 bl 800f074 <RCCEx_PLL2_Config>
  30692. 800d4ce: 4603 mov r3, r0
  30693. 800d4d0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30694. /* LPUART1 clock source configuration done later after clock selection check */
  30695. break;
  30696. 800d4d4: e00f b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30697. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  30698. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30699. 800d4d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30700. 800d4da: 3328 adds r3, #40 @ 0x28
  30701. 800d4dc: 2101 movs r1, #1
  30702. 800d4de: 4618 mov r0, r3
  30703. 800d4e0: f001 fe7a bl 800f1d8 <RCCEx_PLL3_Config>
  30704. 800d4e4: 4603 mov r3, r0
  30705. 800d4e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30706. /* LPUART1 clock source configuration done later after clock selection check */
  30707. break;
  30708. 800d4ea: e004 b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30709. /* LSE, oscillator is used as source of LPUART1 clock */
  30710. /* LPUART1 clock source configuration done later after clock selection check */
  30711. break;
  30712. default:
  30713. ret = HAL_ERROR;
  30714. 800d4ec: 2301 movs r3, #1
  30715. 800d4ee: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30716. break;
  30717. 800d4f2: e000 b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30718. break;
  30719. 800d4f4: bf00 nop
  30720. }
  30721. if (ret == HAL_OK)
  30722. 800d4f6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30723. 800d4fa: 2b00 cmp r3, #0
  30724. 800d4fc: d10b bne.n 800d516 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  30725. {
  30726. /* Set the source of LPUART1 clock */
  30727. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  30728. 800d4fe: 4b6c ldr r3, [pc, #432] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30729. 800d500: 6d9b ldr r3, [r3, #88] @ 0x58
  30730. 800d502: f023 0107 bic.w r1, r3, #7
  30731. 800d506: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30732. 800d50a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30733. 800d50e: 4a68 ldr r2, [pc, #416] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30734. 800d510: 430b orrs r3, r1
  30735. 800d512: 6593 str r3, [r2, #88] @ 0x58
  30736. 800d514: e003 b.n 800d51e <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30737. }
  30738. else
  30739. {
  30740. /* set overall return value */
  30741. status = ret;
  30742. 800d516: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30743. 800d51a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30744. }
  30745. }
  30746. /*---------------------------- LPTIM1 configuration -------------------------------*/
  30747. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  30748. 800d51e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30749. 800d522: e9d3 2300 ldrd r2, r3, [r3]
  30750. 800d526: f002 0320 and.w r3, r2, #32
  30751. 800d52a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30752. 800d52e: 2300 movs r3, #0
  30753. 800d530: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30754. 800d534: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  30755. 800d538: 460b mov r3, r1
  30756. 800d53a: 4313 orrs r3, r2
  30757. 800d53c: d055 beq.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30758. {
  30759. switch (PeriphClkInit->Lptim1ClockSelection)
  30760. 800d53e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30761. 800d542: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30762. 800d546: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30763. 800d54a: d033 beq.n 800d5b4 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  30764. 800d54c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30765. 800d550: d82c bhi.n 800d5ac <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30766. 800d552: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30767. 800d556: d02f beq.n 800d5b8 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  30768. 800d558: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30769. 800d55c: d826 bhi.n 800d5ac <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30770. 800d55e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30771. 800d562: d02b beq.n 800d5bc <HAL_RCCEx_PeriphCLKConfig+0xc44>
  30772. 800d564: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30773. 800d568: d820 bhi.n 800d5ac <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30774. 800d56a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30775. 800d56e: d012 beq.n 800d596 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  30776. 800d570: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30777. 800d574: d81a bhi.n 800d5ac <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30778. 800d576: 2b00 cmp r3, #0
  30779. 800d578: d022 beq.n 800d5c0 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  30780. 800d57a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30781. 800d57e: d115 bne.n 800d5ac <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30782. /* LPTIM1 clock source configuration done later after clock selection check */
  30783. break;
  30784. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  30785. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30786. 800d580: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30787. 800d584: 3308 adds r3, #8
  30788. 800d586: 2100 movs r1, #0
  30789. 800d588: 4618 mov r0, r3
  30790. 800d58a: f001 fd73 bl 800f074 <RCCEx_PLL2_Config>
  30791. 800d58e: 4603 mov r3, r0
  30792. 800d590: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30793. /* LPTIM1 clock source configuration done later after clock selection check */
  30794. break;
  30795. 800d594: e015 b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30796. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  30797. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30798. 800d596: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30799. 800d59a: 3328 adds r3, #40 @ 0x28
  30800. 800d59c: 2102 movs r1, #2
  30801. 800d59e: 4618 mov r0, r3
  30802. 800d5a0: f001 fe1a bl 800f1d8 <RCCEx_PLL3_Config>
  30803. 800d5a4: 4603 mov r3, r0
  30804. 800d5a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30805. /* LPTIM1 clock source configuration done later after clock selection check */
  30806. break;
  30807. 800d5aa: e00a b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30808. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  30809. /* LPTIM1 clock source configuration done later after clock selection check */
  30810. break;
  30811. default:
  30812. ret = HAL_ERROR;
  30813. 800d5ac: 2301 movs r3, #1
  30814. 800d5ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30815. break;
  30816. 800d5b2: e006 b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30817. break;
  30818. 800d5b4: bf00 nop
  30819. 800d5b6: e004 b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30820. break;
  30821. 800d5b8: bf00 nop
  30822. 800d5ba: e002 b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30823. break;
  30824. 800d5bc: bf00 nop
  30825. 800d5be: e000 b.n 800d5c2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30826. break;
  30827. 800d5c0: bf00 nop
  30828. }
  30829. if (ret == HAL_OK)
  30830. 800d5c2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30831. 800d5c6: 2b00 cmp r3, #0
  30832. 800d5c8: d10b bne.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  30833. {
  30834. /* Set the source of LPTIM1 clock*/
  30835. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  30836. 800d5ca: 4b39 ldr r3, [pc, #228] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30837. 800d5cc: 6d5b ldr r3, [r3, #84] @ 0x54
  30838. 800d5ce: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30839. 800d5d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30840. 800d5d6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30841. 800d5da: 4a35 ldr r2, [pc, #212] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30842. 800d5dc: 430b orrs r3, r1
  30843. 800d5de: 6553 str r3, [r2, #84] @ 0x54
  30844. 800d5e0: e003 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30845. }
  30846. else
  30847. {
  30848. /* set overall return value */
  30849. status = ret;
  30850. 800d5e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30851. 800d5e6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30852. }
  30853. }
  30854. /*---------------------------- LPTIM2 configuration -------------------------------*/
  30855. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  30856. 800d5ea: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30857. 800d5ee: e9d3 2300 ldrd r2, r3, [r3]
  30858. 800d5f2: f002 0340 and.w r3, r2, #64 @ 0x40
  30859. 800d5f6: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30860. 800d5fa: 2300 movs r3, #0
  30861. 800d5fc: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30862. 800d600: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  30863. 800d604: 460b mov r3, r1
  30864. 800d606: 4313 orrs r3, r2
  30865. 800d608: d058 beq.n 800d6bc <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30866. {
  30867. switch (PeriphClkInit->Lptim2ClockSelection)
  30868. 800d60a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30869. 800d60e: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30870. 800d612: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30871. 800d616: d033 beq.n 800d680 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  30872. 800d618: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30873. 800d61c: d82c bhi.n 800d678 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30874. 800d61e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30875. 800d622: d02f beq.n 800d684 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  30876. 800d624: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30877. 800d628: d826 bhi.n 800d678 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30878. 800d62a: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30879. 800d62e: d02b beq.n 800d688 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  30880. 800d630: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30881. 800d634: d820 bhi.n 800d678 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30882. 800d636: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30883. 800d63a: d012 beq.n 800d662 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  30884. 800d63c: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30885. 800d640: d81a bhi.n 800d678 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30886. 800d642: 2b00 cmp r3, #0
  30887. 800d644: d022 beq.n 800d68c <HAL_RCCEx_PeriphCLKConfig+0xd14>
  30888. 800d646: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  30889. 800d64a: d115 bne.n 800d678 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30890. /* LPTIM2 clock source configuration done later after clock selection check */
  30891. break;
  30892. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  30893. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30894. 800d64c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30895. 800d650: 3308 adds r3, #8
  30896. 800d652: 2100 movs r1, #0
  30897. 800d654: 4618 mov r0, r3
  30898. 800d656: f001 fd0d bl 800f074 <RCCEx_PLL2_Config>
  30899. 800d65a: 4603 mov r3, r0
  30900. 800d65c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30901. /* LPTIM2 clock source configuration done later after clock selection check */
  30902. break;
  30903. 800d660: e015 b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30904. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  30905. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30906. 800d662: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30907. 800d666: 3328 adds r3, #40 @ 0x28
  30908. 800d668: 2102 movs r1, #2
  30909. 800d66a: 4618 mov r0, r3
  30910. 800d66c: f001 fdb4 bl 800f1d8 <RCCEx_PLL3_Config>
  30911. 800d670: 4603 mov r3, r0
  30912. 800d672: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30913. /* LPTIM2 clock source configuration done later after clock selection check */
  30914. break;
  30915. 800d676: e00a b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30916. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  30917. /* LPTIM2 clock source configuration done later after clock selection check */
  30918. break;
  30919. default:
  30920. ret = HAL_ERROR;
  30921. 800d678: 2301 movs r3, #1
  30922. 800d67a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30923. break;
  30924. 800d67e: e006 b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30925. break;
  30926. 800d680: bf00 nop
  30927. 800d682: e004 b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30928. break;
  30929. 800d684: bf00 nop
  30930. 800d686: e002 b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30931. break;
  30932. 800d688: bf00 nop
  30933. 800d68a: e000 b.n 800d68e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30934. break;
  30935. 800d68c: bf00 nop
  30936. }
  30937. if (ret == HAL_OK)
  30938. 800d68e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30939. 800d692: 2b00 cmp r3, #0
  30940. 800d694: d10e bne.n 800d6b4 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  30941. {
  30942. /* Set the source of LPTIM2 clock*/
  30943. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  30944. 800d696: 4b06 ldr r3, [pc, #24] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30945. 800d698: 6d9b ldr r3, [r3, #88] @ 0x58
  30946. 800d69a: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  30947. 800d69e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30948. 800d6a2: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30949. 800d6a6: 4a02 ldr r2, [pc, #8] @ (800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30950. 800d6a8: 430b orrs r3, r1
  30951. 800d6aa: 6593 str r3, [r2, #88] @ 0x58
  30952. 800d6ac: e006 b.n 800d6bc <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30953. 800d6ae: bf00 nop
  30954. 800d6b0: 58024400 .word 0x58024400
  30955. }
  30956. else
  30957. {
  30958. /* set overall return value */
  30959. status = ret;
  30960. 800d6b4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30961. 800d6b8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30962. }
  30963. }
  30964. /*---------------------------- LPTIM345 configuration -------------------------------*/
  30965. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  30966. 800d6bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30967. 800d6c0: e9d3 2300 ldrd r2, r3, [r3]
  30968. 800d6c4: f002 0380 and.w r3, r2, #128 @ 0x80
  30969. 800d6c8: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  30970. 800d6cc: 2300 movs r3, #0
  30971. 800d6ce: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  30972. 800d6d2: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  30973. 800d6d6: 460b mov r3, r1
  30974. 800d6d8: 4313 orrs r3, r2
  30975. 800d6da: d055 beq.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30976. {
  30977. switch (PeriphClkInit->Lptim345ClockSelection)
  30978. 800d6dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30979. 800d6e0: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30980. 800d6e4: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30981. 800d6e8: d033 beq.n 800d752 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  30982. 800d6ea: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30983. 800d6ee: d82c bhi.n 800d74a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30984. 800d6f0: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30985. 800d6f4: d02f beq.n 800d756 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  30986. 800d6f6: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30987. 800d6fa: d826 bhi.n 800d74a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30988. 800d6fc: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  30989. 800d700: d02b beq.n 800d75a <HAL_RCCEx_PeriphCLKConfig+0xde2>
  30990. 800d702: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  30991. 800d706: d820 bhi.n 800d74a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30992. 800d708: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  30993. 800d70c: d012 beq.n 800d734 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  30994. 800d70e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  30995. 800d712: d81a bhi.n 800d74a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30996. 800d714: 2b00 cmp r3, #0
  30997. 800d716: d022 beq.n 800d75e <HAL_RCCEx_PeriphCLKConfig+0xde6>
  30998. 800d718: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  30999. 800d71c: d115 bne.n 800d74a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31000. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  31001. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31002. break;
  31003. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  31004. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31005. 800d71e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31006. 800d722: 3308 adds r3, #8
  31007. 800d724: 2100 movs r1, #0
  31008. 800d726: 4618 mov r0, r3
  31009. 800d728: f001 fca4 bl 800f074 <RCCEx_PLL2_Config>
  31010. 800d72c: 4603 mov r3, r0
  31011. 800d72e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31012. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31013. break;
  31014. 800d732: e015 b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31015. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  31016. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31017. 800d734: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31018. 800d738: 3328 adds r3, #40 @ 0x28
  31019. 800d73a: 2102 movs r1, #2
  31020. 800d73c: 4618 mov r0, r3
  31021. 800d73e: f001 fd4b bl 800f1d8 <RCCEx_PLL3_Config>
  31022. 800d742: 4603 mov r3, r0
  31023. 800d744: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31024. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31025. break;
  31026. 800d748: e00a b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31027. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  31028. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31029. break;
  31030. default:
  31031. ret = HAL_ERROR;
  31032. 800d74a: 2301 movs r3, #1
  31033. 800d74c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31034. break;
  31035. 800d750: e006 b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31036. break;
  31037. 800d752: bf00 nop
  31038. 800d754: e004 b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31039. break;
  31040. 800d756: bf00 nop
  31041. 800d758: e002 b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31042. break;
  31043. 800d75a: bf00 nop
  31044. 800d75c: e000 b.n 800d760 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31045. break;
  31046. 800d75e: bf00 nop
  31047. }
  31048. if (ret == HAL_OK)
  31049. 800d760: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31050. 800d764: 2b00 cmp r3, #0
  31051. 800d766: d10b bne.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  31052. {
  31053. /* Set the source of LPTIM3/4/5 clock */
  31054. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  31055. 800d768: 4bbb ldr r3, [pc, #748] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31056. 800d76a: 6d9b ldr r3, [r3, #88] @ 0x58
  31057. 800d76c: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  31058. 800d770: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31059. 800d774: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  31060. 800d778: 4ab7 ldr r2, [pc, #732] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31061. 800d77a: 430b orrs r3, r1
  31062. 800d77c: 6593 str r3, [r2, #88] @ 0x58
  31063. 800d77e: e003 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  31064. }
  31065. else
  31066. {
  31067. /* set overall return value */
  31068. status = ret;
  31069. 800d780: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31070. 800d784: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31071. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  31072. }
  31073. #else
  31074. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  31075. 800d788: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31076. 800d78c: e9d3 2300 ldrd r2, r3, [r3]
  31077. 800d790: f002 0308 and.w r3, r2, #8
  31078. 800d794: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31079. 800d798: 2300 movs r3, #0
  31080. 800d79a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31081. 800d79e: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  31082. 800d7a2: 460b mov r3, r1
  31083. 800d7a4: 4313 orrs r3, r2
  31084. 800d7a6: d01e beq.n 800d7e6 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  31085. {
  31086. /* Check the parameters */
  31087. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  31088. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  31089. 800d7a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31090. 800d7ac: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31091. 800d7b0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31092. 800d7b4: d10c bne.n 800d7d0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31093. {
  31094. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31095. 800d7b6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31096. 800d7ba: 3328 adds r3, #40 @ 0x28
  31097. 800d7bc: 2102 movs r1, #2
  31098. 800d7be: 4618 mov r0, r3
  31099. 800d7c0: f001 fd0a bl 800f1d8 <RCCEx_PLL3_Config>
  31100. 800d7c4: 4603 mov r3, r0
  31101. 800d7c6: 2b00 cmp r3, #0
  31102. 800d7c8: d002 beq.n 800d7d0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31103. {
  31104. status = HAL_ERROR;
  31105. 800d7ca: 2301 movs r3, #1
  31106. 800d7cc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31107. }
  31108. }
  31109. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  31110. 800d7d0: 4ba1 ldr r3, [pc, #644] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31111. 800d7d2: 6d5b ldr r3, [r3, #84] @ 0x54
  31112. 800d7d4: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31113. 800d7d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31114. 800d7dc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31115. 800d7e0: 4a9d ldr r2, [pc, #628] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31116. 800d7e2: 430b orrs r3, r1
  31117. 800d7e4: 6553 str r3, [r2, #84] @ 0x54
  31118. }
  31119. #endif /* I2C5 */
  31120. /*------------------------------ I2C4 Configuration ------------------------*/
  31121. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  31122. 800d7e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31123. 800d7ea: e9d3 2300 ldrd r2, r3, [r3]
  31124. 800d7ee: f002 0310 and.w r3, r2, #16
  31125. 800d7f2: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  31126. 800d7f6: 2300 movs r3, #0
  31127. 800d7f8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31128. 800d7fc: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  31129. 800d800: 460b mov r3, r1
  31130. 800d802: 4313 orrs r3, r2
  31131. 800d804: d01e beq.n 800d844 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  31132. {
  31133. /* Check the parameters */
  31134. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  31135. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  31136. 800d806: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31137. 800d80a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31138. 800d80e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31139. 800d812: d10c bne.n 800d82e <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31140. {
  31141. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31142. 800d814: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31143. 800d818: 3328 adds r3, #40 @ 0x28
  31144. 800d81a: 2102 movs r1, #2
  31145. 800d81c: 4618 mov r0, r3
  31146. 800d81e: f001 fcdb bl 800f1d8 <RCCEx_PLL3_Config>
  31147. 800d822: 4603 mov r3, r0
  31148. 800d824: 2b00 cmp r3, #0
  31149. 800d826: d002 beq.n 800d82e <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31150. {
  31151. status = HAL_ERROR;
  31152. 800d828: 2301 movs r3, #1
  31153. 800d82a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31154. }
  31155. }
  31156. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  31157. 800d82e: 4b8a ldr r3, [pc, #552] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31158. 800d830: 6d9b ldr r3, [r3, #88] @ 0x58
  31159. 800d832: f423 7140 bic.w r1, r3, #768 @ 0x300
  31160. 800d836: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31161. 800d83a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31162. 800d83e: 4a86 ldr r2, [pc, #536] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31163. 800d840: 430b orrs r3, r1
  31164. 800d842: 6593 str r3, [r2, #88] @ 0x58
  31165. }
  31166. /*---------------------------- ADC configuration -------------------------------*/
  31167. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  31168. 800d844: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31169. 800d848: e9d3 2300 ldrd r2, r3, [r3]
  31170. 800d84c: f402 2300 and.w r3, r2, #524288 @ 0x80000
  31171. 800d850: 67bb str r3, [r7, #120] @ 0x78
  31172. 800d852: 2300 movs r3, #0
  31173. 800d854: 67fb str r3, [r7, #124] @ 0x7c
  31174. 800d856: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  31175. 800d85a: 460b mov r3, r1
  31176. 800d85c: 4313 orrs r3, r2
  31177. 800d85e: d03e beq.n 800d8de <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31178. {
  31179. switch (PeriphClkInit->AdcClockSelection)
  31180. 800d860: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31181. 800d864: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31182. 800d868: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31183. 800d86c: d022 beq.n 800d8b4 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  31184. 800d86e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31185. 800d872: d81b bhi.n 800d8ac <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31186. 800d874: 2b00 cmp r3, #0
  31187. 800d876: d003 beq.n 800d880 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  31188. 800d878: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31189. 800d87c: d00b beq.n 800d896 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  31190. 800d87e: e015 b.n 800d8ac <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31191. {
  31192. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  31193. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31194. 800d880: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31195. 800d884: 3308 adds r3, #8
  31196. 800d886: 2100 movs r1, #0
  31197. 800d888: 4618 mov r0, r3
  31198. 800d88a: f001 fbf3 bl 800f074 <RCCEx_PLL2_Config>
  31199. 800d88e: 4603 mov r3, r0
  31200. 800d890: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31201. /* ADC clock source configuration done later after clock selection check */
  31202. break;
  31203. 800d894: e00f b.n 800d8b6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31204. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  31205. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31206. 800d896: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31207. 800d89a: 3328 adds r3, #40 @ 0x28
  31208. 800d89c: 2102 movs r1, #2
  31209. 800d89e: 4618 mov r0, r3
  31210. 800d8a0: f001 fc9a bl 800f1d8 <RCCEx_PLL3_Config>
  31211. 800d8a4: 4603 mov r3, r0
  31212. 800d8a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31213. /* ADC clock source configuration done later after clock selection check */
  31214. break;
  31215. 800d8aa: e004 b.n 800d8b6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31216. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  31217. /* ADC clock source configuration done later after clock selection check */
  31218. break;
  31219. default:
  31220. ret = HAL_ERROR;
  31221. 800d8ac: 2301 movs r3, #1
  31222. 800d8ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31223. break;
  31224. 800d8b2: e000 b.n 800d8b6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31225. break;
  31226. 800d8b4: bf00 nop
  31227. }
  31228. if (ret == HAL_OK)
  31229. 800d8b6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31230. 800d8ba: 2b00 cmp r3, #0
  31231. 800d8bc: d10b bne.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  31232. {
  31233. /* Set the source of ADC clock*/
  31234. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  31235. 800d8be: 4b66 ldr r3, [pc, #408] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31236. 800d8c0: 6d9b ldr r3, [r3, #88] @ 0x58
  31237. 800d8c2: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  31238. 800d8c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31239. 800d8ca: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31240. 800d8ce: 4a62 ldr r2, [pc, #392] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31241. 800d8d0: 430b orrs r3, r1
  31242. 800d8d2: 6593 str r3, [r2, #88] @ 0x58
  31243. 800d8d4: e003 b.n 800d8de <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31244. }
  31245. else
  31246. {
  31247. /* set overall return value */
  31248. status = ret;
  31249. 800d8d6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31250. 800d8da: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31251. }
  31252. }
  31253. /*------------------------------ USB Configuration -------------------------*/
  31254. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  31255. 800d8de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31256. 800d8e2: e9d3 2300 ldrd r2, r3, [r3]
  31257. 800d8e6: f402 2380 and.w r3, r2, #262144 @ 0x40000
  31258. 800d8ea: 673b str r3, [r7, #112] @ 0x70
  31259. 800d8ec: 2300 movs r3, #0
  31260. 800d8ee: 677b str r3, [r7, #116] @ 0x74
  31261. 800d8f0: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  31262. 800d8f4: 460b mov r3, r1
  31263. 800d8f6: 4313 orrs r3, r2
  31264. 800d8f8: d03b beq.n 800d972 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31265. {
  31266. switch (PeriphClkInit->UsbClockSelection)
  31267. 800d8fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31268. 800d8fe: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31269. 800d902: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31270. 800d906: d01f beq.n 800d948 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  31271. 800d908: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31272. 800d90c: d818 bhi.n 800d940 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31273. 800d90e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31274. 800d912: d003 beq.n 800d91c <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  31275. 800d914: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31276. 800d918: d007 beq.n 800d92a <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  31277. 800d91a: e011 b.n 800d940 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31278. {
  31279. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  31280. /* Enable USB Clock output generated form System USB . */
  31281. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31282. 800d91c: 4b4e ldr r3, [pc, #312] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31283. 800d91e: 6adb ldr r3, [r3, #44] @ 0x2c
  31284. 800d920: 4a4d ldr r2, [pc, #308] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31285. 800d922: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31286. 800d926: 62d3 str r3, [r2, #44] @ 0x2c
  31287. /* USB clock source configuration done later after clock selection check */
  31288. break;
  31289. 800d928: e00f b.n 800d94a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31290. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  31291. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31292. 800d92a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31293. 800d92e: 3328 adds r3, #40 @ 0x28
  31294. 800d930: 2101 movs r1, #1
  31295. 800d932: 4618 mov r0, r3
  31296. 800d934: f001 fc50 bl 800f1d8 <RCCEx_PLL3_Config>
  31297. 800d938: 4603 mov r3, r0
  31298. 800d93a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31299. /* USB clock source configuration done later after clock selection check */
  31300. break;
  31301. 800d93e: e004 b.n 800d94a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31302. /* HSI48 oscillator is used as source of USB clock */
  31303. /* USB clock source configuration done later after clock selection check */
  31304. break;
  31305. default:
  31306. ret = HAL_ERROR;
  31307. 800d940: 2301 movs r3, #1
  31308. 800d942: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31309. break;
  31310. 800d946: e000 b.n 800d94a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31311. break;
  31312. 800d948: bf00 nop
  31313. }
  31314. if (ret == HAL_OK)
  31315. 800d94a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31316. 800d94e: 2b00 cmp r3, #0
  31317. 800d950: d10b bne.n 800d96a <HAL_RCCEx_PeriphCLKConfig+0xff2>
  31318. {
  31319. /* Set the source of USB clock*/
  31320. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  31321. 800d952: 4b41 ldr r3, [pc, #260] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31322. 800d954: 6d5b ldr r3, [r3, #84] @ 0x54
  31323. 800d956: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  31324. 800d95a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31325. 800d95e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31326. 800d962: 4a3d ldr r2, [pc, #244] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31327. 800d964: 430b orrs r3, r1
  31328. 800d966: 6553 str r3, [r2, #84] @ 0x54
  31329. 800d968: e003 b.n 800d972 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31330. }
  31331. else
  31332. {
  31333. /* set overall return value */
  31334. status = ret;
  31335. 800d96a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31336. 800d96e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31337. }
  31338. }
  31339. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  31340. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  31341. 800d972: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31342. 800d976: e9d3 2300 ldrd r2, r3, [r3]
  31343. 800d97a: f402 3380 and.w r3, r2, #65536 @ 0x10000
  31344. 800d97e: 66bb str r3, [r7, #104] @ 0x68
  31345. 800d980: 2300 movs r3, #0
  31346. 800d982: 66fb str r3, [r7, #108] @ 0x6c
  31347. 800d984: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  31348. 800d988: 460b mov r3, r1
  31349. 800d98a: 4313 orrs r3, r2
  31350. 800d98c: d031 beq.n 800d9f2 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31351. {
  31352. /* Check the parameters */
  31353. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  31354. switch (PeriphClkInit->SdmmcClockSelection)
  31355. 800d98e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31356. 800d992: 6d1b ldr r3, [r3, #80] @ 0x50
  31357. 800d994: 2b00 cmp r3, #0
  31358. 800d996: d003 beq.n 800d9a0 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  31359. 800d998: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31360. 800d99c: d007 beq.n 800d9ae <HAL_RCCEx_PeriphCLKConfig+0x1036>
  31361. 800d99e: e011 b.n 800d9c4 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  31362. {
  31363. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  31364. /* Enable SDMMC Clock output generated form System PLL . */
  31365. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31366. 800d9a0: 4b2d ldr r3, [pc, #180] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31367. 800d9a2: 6adb ldr r3, [r3, #44] @ 0x2c
  31368. 800d9a4: 4a2c ldr r2, [pc, #176] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31369. 800d9a6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31370. 800d9aa: 62d3 str r3, [r2, #44] @ 0x2c
  31371. /* SDMMC clock source configuration done later after clock selection check */
  31372. break;
  31373. 800d9ac: e00e b.n 800d9cc <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31374. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  31375. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31376. 800d9ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31377. 800d9b2: 3308 adds r3, #8
  31378. 800d9b4: 2102 movs r1, #2
  31379. 800d9b6: 4618 mov r0, r3
  31380. 800d9b8: f001 fb5c bl 800f074 <RCCEx_PLL2_Config>
  31381. 800d9bc: 4603 mov r3, r0
  31382. 800d9be: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31383. /* SDMMC clock source configuration done later after clock selection check */
  31384. break;
  31385. 800d9c2: e003 b.n 800d9cc <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31386. default:
  31387. ret = HAL_ERROR;
  31388. 800d9c4: 2301 movs r3, #1
  31389. 800d9c6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31390. break;
  31391. 800d9ca: bf00 nop
  31392. }
  31393. if (ret == HAL_OK)
  31394. 800d9cc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31395. 800d9d0: 2b00 cmp r3, #0
  31396. 800d9d2: d10a bne.n 800d9ea <HAL_RCCEx_PeriphCLKConfig+0x1072>
  31397. {
  31398. /* Set the source of SDMMC clock*/
  31399. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  31400. 800d9d4: 4b20 ldr r3, [pc, #128] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31401. 800d9d6: 6cdb ldr r3, [r3, #76] @ 0x4c
  31402. 800d9d8: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31403. 800d9dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31404. 800d9e0: 6d1b ldr r3, [r3, #80] @ 0x50
  31405. 800d9e2: 4a1d ldr r2, [pc, #116] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31406. 800d9e4: 430b orrs r3, r1
  31407. 800d9e6: 64d3 str r3, [r2, #76] @ 0x4c
  31408. 800d9e8: e003 b.n 800d9f2 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31409. }
  31410. else
  31411. {
  31412. /* set overall return value */
  31413. status = ret;
  31414. 800d9ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31415. 800d9ee: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31416. }
  31417. }
  31418. #endif /* LTDC */
  31419. /*------------------------------ RNG Configuration -------------------------*/
  31420. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  31421. 800d9f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31422. 800d9f6: e9d3 2300 ldrd r2, r3, [r3]
  31423. 800d9fa: f402 3300 and.w r3, r2, #131072 @ 0x20000
  31424. 800d9fe: 663b str r3, [r7, #96] @ 0x60
  31425. 800da00: 2300 movs r3, #0
  31426. 800da02: 667b str r3, [r7, #100] @ 0x64
  31427. 800da04: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  31428. 800da08: 460b mov r3, r1
  31429. 800da0a: 4313 orrs r3, r2
  31430. 800da0c: d03b beq.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31431. {
  31432. switch (PeriphClkInit->RngClockSelection)
  31433. 800da0e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31434. 800da12: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31435. 800da16: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31436. 800da1a: d018 beq.n 800da4e <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  31437. 800da1c: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31438. 800da20: d811 bhi.n 800da46 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31439. 800da22: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31440. 800da26: d014 beq.n 800da52 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  31441. 800da28: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31442. 800da2c: d80b bhi.n 800da46 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31443. 800da2e: 2b00 cmp r3, #0
  31444. 800da30: d014 beq.n 800da5c <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  31445. 800da32: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31446. 800da36: d106 bne.n 800da46 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31447. {
  31448. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  31449. /* Enable RNG Clock output generated form System RNG . */
  31450. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31451. 800da38: 4b07 ldr r3, [pc, #28] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31452. 800da3a: 6adb ldr r3, [r3, #44] @ 0x2c
  31453. 800da3c: 4a06 ldr r2, [pc, #24] @ (800da58 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31454. 800da3e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31455. 800da42: 62d3 str r3, [r2, #44] @ 0x2c
  31456. /* RNG clock source configuration done later after clock selection check */
  31457. break;
  31458. 800da44: e00b b.n 800da5e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31459. /* HSI48 oscillator is used as source of RNG clock */
  31460. /* RNG clock source configuration done later after clock selection check */
  31461. break;
  31462. default:
  31463. ret = HAL_ERROR;
  31464. 800da46: 2301 movs r3, #1
  31465. 800da48: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31466. break;
  31467. 800da4c: e007 b.n 800da5e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31468. break;
  31469. 800da4e: bf00 nop
  31470. 800da50: e005 b.n 800da5e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31471. break;
  31472. 800da52: bf00 nop
  31473. 800da54: e003 b.n 800da5e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31474. 800da56: bf00 nop
  31475. 800da58: 58024400 .word 0x58024400
  31476. break;
  31477. 800da5c: bf00 nop
  31478. }
  31479. if (ret == HAL_OK)
  31480. 800da5e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31481. 800da62: 2b00 cmp r3, #0
  31482. 800da64: d10b bne.n 800da7e <HAL_RCCEx_PeriphCLKConfig+0x1106>
  31483. {
  31484. /* Set the source of RNG clock*/
  31485. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  31486. 800da66: 4bba ldr r3, [pc, #744] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31487. 800da68: 6d5b ldr r3, [r3, #84] @ 0x54
  31488. 800da6a: f423 7140 bic.w r1, r3, #768 @ 0x300
  31489. 800da6e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31490. 800da72: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31491. 800da76: 4ab6 ldr r2, [pc, #728] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31492. 800da78: 430b orrs r3, r1
  31493. 800da7a: 6553 str r3, [r2, #84] @ 0x54
  31494. 800da7c: e003 b.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31495. }
  31496. else
  31497. {
  31498. /* set overall return value */
  31499. status = ret;
  31500. 800da7e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31501. 800da82: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31502. }
  31503. }
  31504. /*------------------------------ SWPMI1 Configuration ------------------------*/
  31505. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  31506. 800da86: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31507. 800da8a: e9d3 2300 ldrd r2, r3, [r3]
  31508. 800da8e: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  31509. 800da92: 65bb str r3, [r7, #88] @ 0x58
  31510. 800da94: 2300 movs r3, #0
  31511. 800da96: 65fb str r3, [r7, #92] @ 0x5c
  31512. 800da98: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  31513. 800da9c: 460b mov r3, r1
  31514. 800da9e: 4313 orrs r3, r2
  31515. 800daa0: d009 beq.n 800dab6 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  31516. {
  31517. /* Check the parameters */
  31518. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  31519. /* Configure the SWPMI1 interface clock source */
  31520. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  31521. 800daa2: 4bab ldr r3, [pc, #684] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31522. 800daa4: 6d1b ldr r3, [r3, #80] @ 0x50
  31523. 800daa6: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  31524. 800daaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31525. 800daae: 6f5b ldr r3, [r3, #116] @ 0x74
  31526. 800dab0: 4aa7 ldr r2, [pc, #668] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31527. 800dab2: 430b orrs r3, r1
  31528. 800dab4: 6513 str r3, [r2, #80] @ 0x50
  31529. }
  31530. #if defined(HRTIM1)
  31531. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  31532. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  31533. 800dab6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31534. 800daba: e9d3 2300 ldrd r2, r3, [r3]
  31535. 800dabe: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  31536. 800dac2: 653b str r3, [r7, #80] @ 0x50
  31537. 800dac4: 2300 movs r3, #0
  31538. 800dac6: 657b str r3, [r7, #84] @ 0x54
  31539. 800dac8: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  31540. 800dacc: 460b mov r3, r1
  31541. 800dace: 4313 orrs r3, r2
  31542. 800dad0: d00a beq.n 800dae8 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  31543. {
  31544. /* Check the parameters */
  31545. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  31546. /* Configure the HRTIM1 clock source */
  31547. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  31548. 800dad2: 4b9f ldr r3, [pc, #636] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31549. 800dad4: 691b ldr r3, [r3, #16]
  31550. 800dad6: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  31551. 800dada: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31552. 800dade: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  31553. 800dae2: 4a9b ldr r2, [pc, #620] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31554. 800dae4: 430b orrs r3, r1
  31555. 800dae6: 6113 str r3, [r2, #16]
  31556. }
  31557. #endif /*HRTIM1*/
  31558. /*------------------------------ DFSDM1 Configuration ------------------------*/
  31559. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  31560. 800dae8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31561. 800daec: e9d3 2300 ldrd r2, r3, [r3]
  31562. 800daf0: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  31563. 800daf4: 64bb str r3, [r7, #72] @ 0x48
  31564. 800daf6: 2300 movs r3, #0
  31565. 800daf8: 64fb str r3, [r7, #76] @ 0x4c
  31566. 800dafa: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  31567. 800dafe: 460b mov r3, r1
  31568. 800db00: 4313 orrs r3, r2
  31569. 800db02: d009 beq.n 800db18 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  31570. {
  31571. /* Check the parameters */
  31572. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  31573. /* Configure the DFSDM1 interface clock source */
  31574. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  31575. 800db04: 4b92 ldr r3, [pc, #584] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31576. 800db06: 6d1b ldr r3, [r3, #80] @ 0x50
  31577. 800db08: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  31578. 800db0c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31579. 800db10: 6edb ldr r3, [r3, #108] @ 0x6c
  31580. 800db12: 4a8f ldr r2, [pc, #572] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31581. 800db14: 430b orrs r3, r1
  31582. 800db16: 6513 str r3, [r2, #80] @ 0x50
  31583. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  31584. }
  31585. #endif /* DFSDM2 */
  31586. /*------------------------------------ TIM configuration --------------------------------------*/
  31587. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  31588. 800db18: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31589. 800db1c: e9d3 2300 ldrd r2, r3, [r3]
  31590. 800db20: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  31591. 800db24: 643b str r3, [r7, #64] @ 0x40
  31592. 800db26: 2300 movs r3, #0
  31593. 800db28: 647b str r3, [r7, #68] @ 0x44
  31594. 800db2a: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  31595. 800db2e: 460b mov r3, r1
  31596. 800db30: 4313 orrs r3, r2
  31597. 800db32: d00e beq.n 800db52 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  31598. {
  31599. /* Check the parameters */
  31600. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  31601. /* Configure Timer Prescaler */
  31602. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  31603. 800db34: 4b86 ldr r3, [pc, #536] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31604. 800db36: 691b ldr r3, [r3, #16]
  31605. 800db38: 4a85 ldr r2, [pc, #532] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31606. 800db3a: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  31607. 800db3e: 6113 str r3, [r2, #16]
  31608. 800db40: 4b83 ldr r3, [pc, #524] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31609. 800db42: 6919 ldr r1, [r3, #16]
  31610. 800db44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31611. 800db48: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  31612. 800db4c: 4a80 ldr r2, [pc, #512] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31613. 800db4e: 430b orrs r3, r1
  31614. 800db50: 6113 str r3, [r2, #16]
  31615. }
  31616. /*------------------------------------ CKPER configuration --------------------------------------*/
  31617. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  31618. 800db52: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31619. 800db56: e9d3 2300 ldrd r2, r3, [r3]
  31620. 800db5a: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  31621. 800db5e: 63bb str r3, [r7, #56] @ 0x38
  31622. 800db60: 2300 movs r3, #0
  31623. 800db62: 63fb str r3, [r7, #60] @ 0x3c
  31624. 800db64: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  31625. 800db68: 460b mov r3, r1
  31626. 800db6a: 4313 orrs r3, r2
  31627. 800db6c: d009 beq.n 800db82 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  31628. {
  31629. /* Check the parameters */
  31630. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  31631. /* Configure the CKPER clock source */
  31632. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  31633. 800db6e: 4b78 ldr r3, [pc, #480] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31634. 800db70: 6cdb ldr r3, [r3, #76] @ 0x4c
  31635. 800db72: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  31636. 800db76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31637. 800db7a: 6d5b ldr r3, [r3, #84] @ 0x54
  31638. 800db7c: 4a74 ldr r2, [pc, #464] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31639. 800db7e: 430b orrs r3, r1
  31640. 800db80: 64d3 str r3, [r2, #76] @ 0x4c
  31641. }
  31642. /*------------------------------ CEC Configuration ------------------------*/
  31643. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  31644. 800db82: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31645. 800db86: e9d3 2300 ldrd r2, r3, [r3]
  31646. 800db8a: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  31647. 800db8e: 633b str r3, [r7, #48] @ 0x30
  31648. 800db90: 2300 movs r3, #0
  31649. 800db92: 637b str r3, [r7, #52] @ 0x34
  31650. 800db94: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  31651. 800db98: 460b mov r3, r1
  31652. 800db9a: 4313 orrs r3, r2
  31653. 800db9c: d00a beq.n 800dbb4 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  31654. {
  31655. /* Check the parameters */
  31656. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  31657. /* Configure the CEC interface clock source */
  31658. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  31659. 800db9e: 4b6c ldr r3, [pc, #432] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31660. 800dba0: 6d5b ldr r3, [r3, #84] @ 0x54
  31661. 800dba2: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  31662. 800dba6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31663. 800dbaa: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  31664. 800dbae: 4a68 ldr r2, [pc, #416] @ (800dd50 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31665. 800dbb0: 430b orrs r3, r1
  31666. 800dbb2: 6553 str r3, [r2, #84] @ 0x54
  31667. }
  31668. /*---------------------------- PLL2 configuration -------------------------------*/
  31669. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  31670. 800dbb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31671. 800dbb8: e9d3 2300 ldrd r2, r3, [r3]
  31672. 800dbbc: 2100 movs r1, #0
  31673. 800dbbe: 62b9 str r1, [r7, #40] @ 0x28
  31674. 800dbc0: f003 0301 and.w r3, r3, #1
  31675. 800dbc4: 62fb str r3, [r7, #44] @ 0x2c
  31676. 800dbc6: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  31677. 800dbca: 460b mov r3, r1
  31678. 800dbcc: 4313 orrs r3, r2
  31679. 800dbce: d011 beq.n 800dbf4 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31680. {
  31681. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31682. 800dbd0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31683. 800dbd4: 3308 adds r3, #8
  31684. 800dbd6: 2100 movs r1, #0
  31685. 800dbd8: 4618 mov r0, r3
  31686. 800dbda: f001 fa4b bl 800f074 <RCCEx_PLL2_Config>
  31687. 800dbde: 4603 mov r3, r0
  31688. 800dbe0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31689. if (ret == HAL_OK)
  31690. 800dbe4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31691. 800dbe8: 2b00 cmp r3, #0
  31692. 800dbea: d003 beq.n 800dbf4 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31693. /*Nothing to do*/
  31694. }
  31695. else
  31696. {
  31697. /* set overall return value */
  31698. status = ret;
  31699. 800dbec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31700. 800dbf0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31701. }
  31702. }
  31703. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  31704. 800dbf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31705. 800dbf8: e9d3 2300 ldrd r2, r3, [r3]
  31706. 800dbfc: 2100 movs r1, #0
  31707. 800dbfe: 6239 str r1, [r7, #32]
  31708. 800dc00: f003 0302 and.w r3, r3, #2
  31709. 800dc04: 627b str r3, [r7, #36] @ 0x24
  31710. 800dc06: e9d7 1208 ldrd r1, r2, [r7, #32]
  31711. 800dc0a: 460b mov r3, r1
  31712. 800dc0c: 4313 orrs r3, r2
  31713. 800dc0e: d011 beq.n 800dc34 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31714. {
  31715. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  31716. 800dc10: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31717. 800dc14: 3308 adds r3, #8
  31718. 800dc16: 2101 movs r1, #1
  31719. 800dc18: 4618 mov r0, r3
  31720. 800dc1a: f001 fa2b bl 800f074 <RCCEx_PLL2_Config>
  31721. 800dc1e: 4603 mov r3, r0
  31722. 800dc20: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31723. if (ret == HAL_OK)
  31724. 800dc24: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31725. 800dc28: 2b00 cmp r3, #0
  31726. 800dc2a: d003 beq.n 800dc34 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31727. /*Nothing to do*/
  31728. }
  31729. else
  31730. {
  31731. /* set overall return value */
  31732. status = ret;
  31733. 800dc2c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31734. 800dc30: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31735. }
  31736. }
  31737. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  31738. 800dc34: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31739. 800dc38: e9d3 2300 ldrd r2, r3, [r3]
  31740. 800dc3c: 2100 movs r1, #0
  31741. 800dc3e: 61b9 str r1, [r7, #24]
  31742. 800dc40: f003 0304 and.w r3, r3, #4
  31743. 800dc44: 61fb str r3, [r7, #28]
  31744. 800dc46: e9d7 1206 ldrd r1, r2, [r7, #24]
  31745. 800dc4a: 460b mov r3, r1
  31746. 800dc4c: 4313 orrs r3, r2
  31747. 800dc4e: d011 beq.n 800dc74 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31748. {
  31749. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31750. 800dc50: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31751. 800dc54: 3308 adds r3, #8
  31752. 800dc56: 2102 movs r1, #2
  31753. 800dc58: 4618 mov r0, r3
  31754. 800dc5a: f001 fa0b bl 800f074 <RCCEx_PLL2_Config>
  31755. 800dc5e: 4603 mov r3, r0
  31756. 800dc60: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31757. if (ret == HAL_OK)
  31758. 800dc64: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31759. 800dc68: 2b00 cmp r3, #0
  31760. 800dc6a: d003 beq.n 800dc74 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31761. /*Nothing to do*/
  31762. }
  31763. else
  31764. {
  31765. /* set overall return value */
  31766. status = ret;
  31767. 800dc6c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31768. 800dc70: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31769. }
  31770. }
  31771. /*---------------------------- PLL3 configuration -------------------------------*/
  31772. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  31773. 800dc74: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31774. 800dc78: e9d3 2300 ldrd r2, r3, [r3]
  31775. 800dc7c: 2100 movs r1, #0
  31776. 800dc7e: 6139 str r1, [r7, #16]
  31777. 800dc80: f003 0308 and.w r3, r3, #8
  31778. 800dc84: 617b str r3, [r7, #20]
  31779. 800dc86: e9d7 1204 ldrd r1, r2, [r7, #16]
  31780. 800dc8a: 460b mov r3, r1
  31781. 800dc8c: 4313 orrs r3, r2
  31782. 800dc8e: d011 beq.n 800dcb4 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31783. {
  31784. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  31785. 800dc90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31786. 800dc94: 3328 adds r3, #40 @ 0x28
  31787. 800dc96: 2100 movs r1, #0
  31788. 800dc98: 4618 mov r0, r3
  31789. 800dc9a: f001 fa9d bl 800f1d8 <RCCEx_PLL3_Config>
  31790. 800dc9e: 4603 mov r3, r0
  31791. 800dca0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31792. if (ret == HAL_OK)
  31793. 800dca4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31794. 800dca8: 2b00 cmp r3, #0
  31795. 800dcaa: d003 beq.n 800dcb4 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31796. /*Nothing to do*/
  31797. }
  31798. else
  31799. {
  31800. /* set overall return value */
  31801. status = ret;
  31802. 800dcac: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31803. 800dcb0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31804. }
  31805. }
  31806. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  31807. 800dcb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31808. 800dcb8: e9d3 2300 ldrd r2, r3, [r3]
  31809. 800dcbc: 2100 movs r1, #0
  31810. 800dcbe: 60b9 str r1, [r7, #8]
  31811. 800dcc0: f003 0310 and.w r3, r3, #16
  31812. 800dcc4: 60fb str r3, [r7, #12]
  31813. 800dcc6: e9d7 1202 ldrd r1, r2, [r7, #8]
  31814. 800dcca: 460b mov r3, r1
  31815. 800dccc: 4313 orrs r3, r2
  31816. 800dcce: d011 beq.n 800dcf4 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31817. {
  31818. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31819. 800dcd0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31820. 800dcd4: 3328 adds r3, #40 @ 0x28
  31821. 800dcd6: 2101 movs r1, #1
  31822. 800dcd8: 4618 mov r0, r3
  31823. 800dcda: f001 fa7d bl 800f1d8 <RCCEx_PLL3_Config>
  31824. 800dcde: 4603 mov r3, r0
  31825. 800dce0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31826. if (ret == HAL_OK)
  31827. 800dce4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31828. 800dce8: 2b00 cmp r3, #0
  31829. 800dcea: d003 beq.n 800dcf4 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31830. /*Nothing to do*/
  31831. }
  31832. else
  31833. {
  31834. /* set overall return value */
  31835. status = ret;
  31836. 800dcec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31837. 800dcf0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31838. }
  31839. }
  31840. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  31841. 800dcf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31842. 800dcf8: e9d3 2300 ldrd r2, r3, [r3]
  31843. 800dcfc: 2100 movs r1, #0
  31844. 800dcfe: 6039 str r1, [r7, #0]
  31845. 800dd00: f003 0320 and.w r3, r3, #32
  31846. 800dd04: 607b str r3, [r7, #4]
  31847. 800dd06: e9d7 1200 ldrd r1, r2, [r7]
  31848. 800dd0a: 460b mov r3, r1
  31849. 800dd0c: 4313 orrs r3, r2
  31850. 800dd0e: d011 beq.n 800dd34 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31851. {
  31852. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31853. 800dd10: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31854. 800dd14: 3328 adds r3, #40 @ 0x28
  31855. 800dd16: 2102 movs r1, #2
  31856. 800dd18: 4618 mov r0, r3
  31857. 800dd1a: f001 fa5d bl 800f1d8 <RCCEx_PLL3_Config>
  31858. 800dd1e: 4603 mov r3, r0
  31859. 800dd20: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31860. if (ret == HAL_OK)
  31861. 800dd24: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31862. 800dd28: 2b00 cmp r3, #0
  31863. 800dd2a: d003 beq.n 800dd34 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31864. /*Nothing to do*/
  31865. }
  31866. else
  31867. {
  31868. /* set overall return value */
  31869. status = ret;
  31870. 800dd2c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31871. 800dd30: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31872. }
  31873. }
  31874. if (status == HAL_OK)
  31875. 800dd34: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  31876. 800dd38: 2b00 cmp r3, #0
  31877. 800dd3a: d101 bne.n 800dd40 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  31878. {
  31879. return HAL_OK;
  31880. 800dd3c: 2300 movs r3, #0
  31881. 800dd3e: e000 b.n 800dd42 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  31882. }
  31883. return HAL_ERROR;
  31884. 800dd40: 2301 movs r3, #1
  31885. }
  31886. 800dd42: 4618 mov r0, r3
  31887. 800dd44: f507 7790 add.w r7, r7, #288 @ 0x120
  31888. 800dd48: 46bd mov sp, r7
  31889. 800dd4a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31890. 800dd4e: bf00 nop
  31891. 800dd50: 58024400 .word 0x58024400
  31892. 0800dd54 <HAL_RCCEx_GetPeriphCLKFreq>:
  31893. * @retval Frequency in KHz
  31894. *
  31895. * (*) : Available on some STM32H7 lines only.
  31896. */
  31897. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  31898. {
  31899. 800dd54: b580 push {r7, lr}
  31900. 800dd56: b090 sub sp, #64 @ 0x40
  31901. 800dd58: af00 add r7, sp, #0
  31902. 800dd5a: e9c7 0100 strd r0, r1, [r7]
  31903. /* This variable is used to store the SAI and CKP clock source */
  31904. uint32_t saiclocksource;
  31905. uint32_t ckpclocksource;
  31906. uint32_t srcclk;
  31907. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  31908. 800dd5e: e9d7 2300 ldrd r2, r3, [r7]
  31909. 800dd62: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  31910. 800dd66: 430b orrs r3, r1
  31911. 800dd68: f040 8094 bne.w 800de94 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  31912. {
  31913. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  31914. 800dd6c: 4b9e ldr r3, [pc, #632] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31915. 800dd6e: 6d1b ldr r3, [r3, #80] @ 0x50
  31916. 800dd70: f003 0307 and.w r3, r3, #7
  31917. 800dd74: 633b str r3, [r7, #48] @ 0x30
  31918. switch (saiclocksource)
  31919. 800dd76: 6b3b ldr r3, [r7, #48] @ 0x30
  31920. 800dd78: 2b04 cmp r3, #4
  31921. 800dd7a: f200 8087 bhi.w 800de8c <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  31922. 800dd7e: a201 add r2, pc, #4 @ (adr r2, 800dd84 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  31923. 800dd80: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31924. 800dd84: 0800dd99 .word 0x0800dd99
  31925. 800dd88: 0800ddc1 .word 0x0800ddc1
  31926. 800dd8c: 0800dde9 .word 0x0800dde9
  31927. 800dd90: 0800de85 .word 0x0800de85
  31928. 800dd94: 0800de11 .word 0x0800de11
  31929. {
  31930. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  31931. {
  31932. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31933. 800dd98: 4b93 ldr r3, [pc, #588] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31934. 800dd9a: 681b ldr r3, [r3, #0]
  31935. 800dd9c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31936. 800dda0: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31937. 800dda4: d108 bne.n 800ddb8 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  31938. {
  31939. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31940. 800dda6: f107 0324 add.w r3, r7, #36 @ 0x24
  31941. 800ddaa: 4618 mov r0, r3
  31942. 800ddac: f001 f810 bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  31943. frequency = pll1_clocks.PLL1_Q_Frequency;
  31944. 800ddb0: 6abb ldr r3, [r7, #40] @ 0x28
  31945. 800ddb2: 63fb str r3, [r7, #60] @ 0x3c
  31946. }
  31947. else
  31948. {
  31949. frequency = 0;
  31950. }
  31951. break;
  31952. 800ddb4: f000 bd45 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31953. frequency = 0;
  31954. 800ddb8: 2300 movs r3, #0
  31955. 800ddba: 63fb str r3, [r7, #60] @ 0x3c
  31956. break;
  31957. 800ddbc: f000 bd41 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31958. }
  31959. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  31960. {
  31961. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31962. 800ddc0: 4b89 ldr r3, [pc, #548] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31963. 800ddc2: 681b ldr r3, [r3, #0]
  31964. 800ddc4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31965. 800ddc8: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31966. 800ddcc: d108 bne.n 800dde0 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  31967. {
  31968. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31969. 800ddce: f107 0318 add.w r3, r7, #24
  31970. 800ddd2: 4618 mov r0, r3
  31971. 800ddd4: f000 fd54 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  31972. frequency = pll2_clocks.PLL2_P_Frequency;
  31973. 800ddd8: 69bb ldr r3, [r7, #24]
  31974. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  31975. }
  31976. else
  31977. {
  31978. frequency = 0;
  31979. }
  31980. break;
  31981. 800dddc: f000 bd31 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31982. frequency = 0;
  31983. 800dde0: 2300 movs r3, #0
  31984. 800dde2: 63fb str r3, [r7, #60] @ 0x3c
  31985. break;
  31986. 800dde4: f000 bd2d b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31987. }
  31988. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  31989. {
  31990. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31991. 800dde8: 4b7f ldr r3, [pc, #508] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31992. 800ddea: 681b ldr r3, [r3, #0]
  31993. 800ddec: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31994. 800ddf0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31995. 800ddf4: d108 bne.n 800de08 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  31996. {
  31997. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31998. 800ddf6: f107 030c add.w r3, r7, #12
  31999. 800ddfa: 4618 mov r0, r3
  32000. 800ddfc: f000 fe94 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  32001. frequency = pll3_clocks.PLL3_P_Frequency;
  32002. 800de00: 68fb ldr r3, [r7, #12]
  32003. 800de02: 63fb str r3, [r7, #60] @ 0x3c
  32004. }
  32005. else
  32006. {
  32007. frequency = 0;
  32008. }
  32009. break;
  32010. 800de04: f000 bd1d b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32011. frequency = 0;
  32012. 800de08: 2300 movs r3, #0
  32013. 800de0a: 63fb str r3, [r7, #60] @ 0x3c
  32014. break;
  32015. 800de0c: f000 bd19 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32016. }
  32017. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  32018. {
  32019. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32020. 800de10: 4b75 ldr r3, [pc, #468] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32021. 800de12: 6cdb ldr r3, [r3, #76] @ 0x4c
  32022. 800de14: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32023. 800de18: 637b str r3, [r7, #52] @ 0x34
  32024. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32025. 800de1a: 4b73 ldr r3, [pc, #460] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32026. 800de1c: 681b ldr r3, [r3, #0]
  32027. 800de1e: f003 0304 and.w r3, r3, #4
  32028. 800de22: 2b04 cmp r3, #4
  32029. 800de24: d10c bne.n 800de40 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32030. 800de26: 6b7b ldr r3, [r7, #52] @ 0x34
  32031. 800de28: 2b00 cmp r3, #0
  32032. 800de2a: d109 bne.n 800de40 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32033. {
  32034. /* In Case the CKPER Source is HSI */
  32035. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32036. 800de2c: 4b6e ldr r3, [pc, #440] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32037. 800de2e: 681b ldr r3, [r3, #0]
  32038. 800de30: 08db lsrs r3, r3, #3
  32039. 800de32: f003 0303 and.w r3, r3, #3
  32040. 800de36: 4a6d ldr r2, [pc, #436] @ (800dfec <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32041. 800de38: fa22 f303 lsr.w r3, r2, r3
  32042. 800de3c: 63fb str r3, [r7, #60] @ 0x3c
  32043. 800de3e: e01f b.n 800de80 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32044. }
  32045. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32046. 800de40: 4b69 ldr r3, [pc, #420] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32047. 800de42: 681b ldr r3, [r3, #0]
  32048. 800de44: f403 7380 and.w r3, r3, #256 @ 0x100
  32049. 800de48: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32050. 800de4c: d106 bne.n 800de5c <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32051. 800de4e: 6b7b ldr r3, [r7, #52] @ 0x34
  32052. 800de50: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32053. 800de54: d102 bne.n 800de5c <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32054. {
  32055. /* In Case the CKPER Source is CSI */
  32056. frequency = CSI_VALUE;
  32057. 800de56: 4b66 ldr r3, [pc, #408] @ (800dff0 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32058. 800de58: 63fb str r3, [r7, #60] @ 0x3c
  32059. 800de5a: e011 b.n 800de80 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32060. }
  32061. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32062. 800de5c: 4b62 ldr r3, [pc, #392] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32063. 800de5e: 681b ldr r3, [r3, #0]
  32064. 800de60: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32065. 800de64: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32066. 800de68: d106 bne.n 800de78 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32067. 800de6a: 6b7b ldr r3, [r7, #52] @ 0x34
  32068. 800de6c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32069. 800de70: d102 bne.n 800de78 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32070. {
  32071. /* In Case the CKPER Source is HSE */
  32072. frequency = HSE_VALUE;
  32073. 800de72: 4b60 ldr r3, [pc, #384] @ (800dff4 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32074. 800de74: 63fb str r3, [r7, #60] @ 0x3c
  32075. 800de76: e003 b.n 800de80 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32076. }
  32077. else
  32078. {
  32079. /* In Case the CKPER is disabled*/
  32080. frequency = 0;
  32081. 800de78: 2300 movs r3, #0
  32082. 800de7a: 63fb str r3, [r7, #60] @ 0x3c
  32083. }
  32084. break;
  32085. 800de7c: f000 bce1 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32086. 800de80: f000 bcdf b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32087. }
  32088. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  32089. {
  32090. frequency = EXTERNAL_CLOCK_VALUE;
  32091. 800de84: 4b5c ldr r3, [pc, #368] @ (800dff8 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32092. 800de86: 63fb str r3, [r7, #60] @ 0x3c
  32093. break;
  32094. 800de88: f000 bcdb b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32095. }
  32096. default :
  32097. {
  32098. frequency = 0;
  32099. 800de8c: 2300 movs r3, #0
  32100. 800de8e: 63fb str r3, [r7, #60] @ 0x3c
  32101. break;
  32102. 800de90: f000 bcd7 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32103. }
  32104. }
  32105. }
  32106. #if defined(SAI3)
  32107. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  32108. 800de94: e9d7 2300 ldrd r2, r3, [r7]
  32109. 800de98: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  32110. 800de9c: 430b orrs r3, r1
  32111. 800de9e: f040 80ad bne.w 800dffc <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  32112. {
  32113. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  32114. 800dea2: 4b51 ldr r3, [pc, #324] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32115. 800dea4: 6d1b ldr r3, [r3, #80] @ 0x50
  32116. 800dea6: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  32117. 800deaa: 633b str r3, [r7, #48] @ 0x30
  32118. switch (saiclocksource)
  32119. 800deac: 6b3b ldr r3, [r7, #48] @ 0x30
  32120. 800deae: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32121. 800deb2: d056 beq.n 800df62 <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  32122. 800deb4: 6b3b ldr r3, [r7, #48] @ 0x30
  32123. 800deb6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32124. 800deba: f200 8090 bhi.w 800dfde <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32125. 800debe: 6b3b ldr r3, [r7, #48] @ 0x30
  32126. 800dec0: 2bc0 cmp r3, #192 @ 0xc0
  32127. 800dec2: f000 8088 beq.w 800dfd6 <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  32128. 800dec6: 6b3b ldr r3, [r7, #48] @ 0x30
  32129. 800dec8: 2bc0 cmp r3, #192 @ 0xc0
  32130. 800deca: f200 8088 bhi.w 800dfde <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32131. 800dece: 6b3b ldr r3, [r7, #48] @ 0x30
  32132. 800ded0: 2b80 cmp r3, #128 @ 0x80
  32133. 800ded2: d032 beq.n 800df3a <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  32134. 800ded4: 6b3b ldr r3, [r7, #48] @ 0x30
  32135. 800ded6: 2b80 cmp r3, #128 @ 0x80
  32136. 800ded8: f200 8081 bhi.w 800dfde <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32137. 800dedc: 6b3b ldr r3, [r7, #48] @ 0x30
  32138. 800dede: 2b00 cmp r3, #0
  32139. 800dee0: d003 beq.n 800deea <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  32140. 800dee2: 6b3b ldr r3, [r7, #48] @ 0x30
  32141. 800dee4: 2b40 cmp r3, #64 @ 0x40
  32142. 800dee6: d014 beq.n 800df12 <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  32143. 800dee8: e079 b.n 800dfde <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32144. {
  32145. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  32146. {
  32147. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32148. 800deea: 4b3f ldr r3, [pc, #252] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32149. 800deec: 681b ldr r3, [r3, #0]
  32150. 800deee: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32151. 800def2: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32152. 800def6: d108 bne.n 800df0a <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  32153. {
  32154. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32155. 800def8: f107 0324 add.w r3, r7, #36 @ 0x24
  32156. 800defc: 4618 mov r0, r3
  32157. 800defe: f000 ff67 bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  32158. frequency = pll1_clocks.PLL1_Q_Frequency;
  32159. 800df02: 6abb ldr r3, [r7, #40] @ 0x28
  32160. 800df04: 63fb str r3, [r7, #60] @ 0x3c
  32161. }
  32162. else
  32163. {
  32164. frequency = 0;
  32165. }
  32166. break;
  32167. 800df06: f000 bc9c b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32168. frequency = 0;
  32169. 800df0a: 2300 movs r3, #0
  32170. 800df0c: 63fb str r3, [r7, #60] @ 0x3c
  32171. break;
  32172. 800df0e: f000 bc98 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32173. }
  32174. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  32175. {
  32176. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32177. 800df12: 4b35 ldr r3, [pc, #212] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32178. 800df14: 681b ldr r3, [r3, #0]
  32179. 800df16: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32180. 800df1a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32181. 800df1e: d108 bne.n 800df32 <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  32182. {
  32183. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32184. 800df20: f107 0318 add.w r3, r7, #24
  32185. 800df24: 4618 mov r0, r3
  32186. 800df26: f000 fcab bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  32187. frequency = pll2_clocks.PLL2_P_Frequency;
  32188. 800df2a: 69bb ldr r3, [r7, #24]
  32189. 800df2c: 63fb str r3, [r7, #60] @ 0x3c
  32190. }
  32191. else
  32192. {
  32193. frequency = 0;
  32194. }
  32195. break;
  32196. 800df2e: f000 bc88 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32197. frequency = 0;
  32198. 800df32: 2300 movs r3, #0
  32199. 800df34: 63fb str r3, [r7, #60] @ 0x3c
  32200. break;
  32201. 800df36: f000 bc84 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32202. }
  32203. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  32204. {
  32205. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32206. 800df3a: 4b2b ldr r3, [pc, #172] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32207. 800df3c: 681b ldr r3, [r3, #0]
  32208. 800df3e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32209. 800df42: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32210. 800df46: d108 bne.n 800df5a <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  32211. {
  32212. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32213. 800df48: f107 030c add.w r3, r7, #12
  32214. 800df4c: 4618 mov r0, r3
  32215. 800df4e: f000 fdeb bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  32216. frequency = pll3_clocks.PLL3_P_Frequency;
  32217. 800df52: 68fb ldr r3, [r7, #12]
  32218. 800df54: 63fb str r3, [r7, #60] @ 0x3c
  32219. }
  32220. else
  32221. {
  32222. frequency = 0;
  32223. }
  32224. break;
  32225. 800df56: f000 bc74 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32226. frequency = 0;
  32227. 800df5a: 2300 movs r3, #0
  32228. 800df5c: 63fb str r3, [r7, #60] @ 0x3c
  32229. break;
  32230. 800df5e: f000 bc70 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32231. }
  32232. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  32233. {
  32234. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32235. 800df62: 4b21 ldr r3, [pc, #132] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32236. 800df64: 6cdb ldr r3, [r3, #76] @ 0x4c
  32237. 800df66: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32238. 800df6a: 637b str r3, [r7, #52] @ 0x34
  32239. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32240. 800df6c: 4b1e ldr r3, [pc, #120] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32241. 800df6e: 681b ldr r3, [r3, #0]
  32242. 800df70: f003 0304 and.w r3, r3, #4
  32243. 800df74: 2b04 cmp r3, #4
  32244. 800df76: d10c bne.n 800df92 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32245. 800df78: 6b7b ldr r3, [r7, #52] @ 0x34
  32246. 800df7a: 2b00 cmp r3, #0
  32247. 800df7c: d109 bne.n 800df92 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32248. {
  32249. /* In Case the CKPER Source is HSI */
  32250. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32251. 800df7e: 4b1a ldr r3, [pc, #104] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32252. 800df80: 681b ldr r3, [r3, #0]
  32253. 800df82: 08db lsrs r3, r3, #3
  32254. 800df84: f003 0303 and.w r3, r3, #3
  32255. 800df88: 4a18 ldr r2, [pc, #96] @ (800dfec <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32256. 800df8a: fa22 f303 lsr.w r3, r2, r3
  32257. 800df8e: 63fb str r3, [r7, #60] @ 0x3c
  32258. 800df90: e01f b.n 800dfd2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32259. }
  32260. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32261. 800df92: 4b15 ldr r3, [pc, #84] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32262. 800df94: 681b ldr r3, [r3, #0]
  32263. 800df96: f403 7380 and.w r3, r3, #256 @ 0x100
  32264. 800df9a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32265. 800df9e: d106 bne.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32266. 800dfa0: 6b7b ldr r3, [r7, #52] @ 0x34
  32267. 800dfa2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32268. 800dfa6: d102 bne.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32269. {
  32270. /* In Case the CKPER Source is CSI */
  32271. frequency = CSI_VALUE;
  32272. 800dfa8: 4b11 ldr r3, [pc, #68] @ (800dff0 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32273. 800dfaa: 63fb str r3, [r7, #60] @ 0x3c
  32274. 800dfac: e011 b.n 800dfd2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32275. }
  32276. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32277. 800dfae: 4b0e ldr r3, [pc, #56] @ (800dfe8 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32278. 800dfb0: 681b ldr r3, [r3, #0]
  32279. 800dfb2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32280. 800dfb6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32281. 800dfba: d106 bne.n 800dfca <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32282. 800dfbc: 6b7b ldr r3, [r7, #52] @ 0x34
  32283. 800dfbe: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32284. 800dfc2: d102 bne.n 800dfca <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32285. {
  32286. /* In Case the CKPER Source is HSE */
  32287. frequency = HSE_VALUE;
  32288. 800dfc4: 4b0b ldr r3, [pc, #44] @ (800dff4 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32289. 800dfc6: 63fb str r3, [r7, #60] @ 0x3c
  32290. 800dfc8: e003 b.n 800dfd2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32291. }
  32292. else
  32293. {
  32294. /* In Case the CKPER is disabled*/
  32295. frequency = 0;
  32296. 800dfca: 2300 movs r3, #0
  32297. 800dfcc: 63fb str r3, [r7, #60] @ 0x3c
  32298. }
  32299. break;
  32300. 800dfce: f000 bc38 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32301. 800dfd2: f000 bc36 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32302. }
  32303. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  32304. {
  32305. frequency = EXTERNAL_CLOCK_VALUE;
  32306. 800dfd6: 4b08 ldr r3, [pc, #32] @ (800dff8 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32307. 800dfd8: 63fb str r3, [r7, #60] @ 0x3c
  32308. break;
  32309. 800dfda: f000 bc32 b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32310. }
  32311. default :
  32312. {
  32313. frequency = 0;
  32314. 800dfde: 2300 movs r3, #0
  32315. 800dfe0: 63fb str r3, [r7, #60] @ 0x3c
  32316. break;
  32317. 800dfe2: f000 bc2e b.w 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32318. 800dfe6: bf00 nop
  32319. 800dfe8: 58024400 .word 0x58024400
  32320. 800dfec: 03d09000 .word 0x03d09000
  32321. 800dff0: 003d0900 .word 0x003d0900
  32322. 800dff4: 017d7840 .word 0x017d7840
  32323. 800dff8: 00bb8000 .word 0x00bb8000
  32324. }
  32325. }
  32326. #endif
  32327. #if defined(SAI4)
  32328. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  32329. 800dffc: e9d7 2300 ldrd r2, r3, [r7]
  32330. 800e000: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  32331. 800e004: 430b orrs r3, r1
  32332. 800e006: f040 809c bne.w 800e142 <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  32333. {
  32334. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  32335. 800e00a: 4b9e ldr r3, [pc, #632] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32336. 800e00c: 6d9b ldr r3, [r3, #88] @ 0x58
  32337. 800e00e: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  32338. 800e012: 633b str r3, [r7, #48] @ 0x30
  32339. switch (saiclocksource)
  32340. 800e014: 6b3b ldr r3, [r7, #48] @ 0x30
  32341. 800e016: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32342. 800e01a: d054 beq.n 800e0c6 <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  32343. 800e01c: 6b3b ldr r3, [r7, #48] @ 0x30
  32344. 800e01e: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32345. 800e022: f200 808b bhi.w 800e13c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32346. 800e026: 6b3b ldr r3, [r7, #48] @ 0x30
  32347. 800e028: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32348. 800e02c: f000 8083 beq.w 800e136 <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  32349. 800e030: 6b3b ldr r3, [r7, #48] @ 0x30
  32350. 800e032: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32351. 800e036: f200 8081 bhi.w 800e13c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32352. 800e03a: 6b3b ldr r3, [r7, #48] @ 0x30
  32353. 800e03c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32354. 800e040: d02f beq.n 800e0a2 <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  32355. 800e042: 6b3b ldr r3, [r7, #48] @ 0x30
  32356. 800e044: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32357. 800e048: d878 bhi.n 800e13c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32358. 800e04a: 6b3b ldr r3, [r7, #48] @ 0x30
  32359. 800e04c: 2b00 cmp r3, #0
  32360. 800e04e: d004 beq.n 800e05a <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  32361. 800e050: 6b3b ldr r3, [r7, #48] @ 0x30
  32362. 800e052: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  32363. 800e056: d012 beq.n 800e07e <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  32364. 800e058: e070 b.n 800e13c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32365. {
  32366. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  32367. {
  32368. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32369. 800e05a: 4b8a ldr r3, [pc, #552] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32370. 800e05c: 681b ldr r3, [r3, #0]
  32371. 800e05e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32372. 800e062: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32373. 800e066: d107 bne.n 800e078 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  32374. {
  32375. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32376. 800e068: f107 0324 add.w r3, r7, #36 @ 0x24
  32377. 800e06c: 4618 mov r0, r3
  32378. 800e06e: f000 feaf bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  32379. frequency = pll1_clocks.PLL1_Q_Frequency;
  32380. 800e072: 6abb ldr r3, [r7, #40] @ 0x28
  32381. 800e074: 63fb str r3, [r7, #60] @ 0x3c
  32382. }
  32383. else
  32384. {
  32385. frequency = 0;
  32386. }
  32387. break;
  32388. 800e076: e3e4 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32389. frequency = 0;
  32390. 800e078: 2300 movs r3, #0
  32391. 800e07a: 63fb str r3, [r7, #60] @ 0x3c
  32392. break;
  32393. 800e07c: e3e1 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32394. }
  32395. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  32396. {
  32397. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32398. 800e07e: 4b81 ldr r3, [pc, #516] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32399. 800e080: 681b ldr r3, [r3, #0]
  32400. 800e082: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32401. 800e086: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32402. 800e08a: d107 bne.n 800e09c <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  32403. {
  32404. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32405. 800e08c: f107 0318 add.w r3, r7, #24
  32406. 800e090: 4618 mov r0, r3
  32407. 800e092: f000 fbf5 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  32408. frequency = pll2_clocks.PLL2_P_Frequency;
  32409. 800e096: 69bb ldr r3, [r7, #24]
  32410. 800e098: 63fb str r3, [r7, #60] @ 0x3c
  32411. }
  32412. else
  32413. {
  32414. frequency = 0;
  32415. }
  32416. break;
  32417. 800e09a: e3d2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32418. frequency = 0;
  32419. 800e09c: 2300 movs r3, #0
  32420. 800e09e: 63fb str r3, [r7, #60] @ 0x3c
  32421. break;
  32422. 800e0a0: e3cf b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32423. }
  32424. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  32425. {
  32426. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32427. 800e0a2: 4b78 ldr r3, [pc, #480] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32428. 800e0a4: 681b ldr r3, [r3, #0]
  32429. 800e0a6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32430. 800e0aa: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32431. 800e0ae: d107 bne.n 800e0c0 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  32432. {
  32433. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32434. 800e0b0: f107 030c add.w r3, r7, #12
  32435. 800e0b4: 4618 mov r0, r3
  32436. 800e0b6: f000 fd37 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  32437. frequency = pll3_clocks.PLL3_P_Frequency;
  32438. 800e0ba: 68fb ldr r3, [r7, #12]
  32439. 800e0bc: 63fb str r3, [r7, #60] @ 0x3c
  32440. }
  32441. else
  32442. {
  32443. frequency = 0;
  32444. }
  32445. break;
  32446. 800e0be: e3c0 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32447. frequency = 0;
  32448. 800e0c0: 2300 movs r3, #0
  32449. 800e0c2: 63fb str r3, [r7, #60] @ 0x3c
  32450. break;
  32451. 800e0c4: e3bd b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32452. }
  32453. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  32454. {
  32455. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32456. 800e0c6: 4b6f ldr r3, [pc, #444] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32457. 800e0c8: 6cdb ldr r3, [r3, #76] @ 0x4c
  32458. 800e0ca: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32459. 800e0ce: 637b str r3, [r7, #52] @ 0x34
  32460. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32461. 800e0d0: 4b6c ldr r3, [pc, #432] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32462. 800e0d2: 681b ldr r3, [r3, #0]
  32463. 800e0d4: f003 0304 and.w r3, r3, #4
  32464. 800e0d8: 2b04 cmp r3, #4
  32465. 800e0da: d10c bne.n 800e0f6 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32466. 800e0dc: 6b7b ldr r3, [r7, #52] @ 0x34
  32467. 800e0de: 2b00 cmp r3, #0
  32468. 800e0e0: d109 bne.n 800e0f6 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32469. {
  32470. /* In Case the CKPER Source is HSI */
  32471. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32472. 800e0e2: 4b68 ldr r3, [pc, #416] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32473. 800e0e4: 681b ldr r3, [r3, #0]
  32474. 800e0e6: 08db lsrs r3, r3, #3
  32475. 800e0e8: f003 0303 and.w r3, r3, #3
  32476. 800e0ec: 4a66 ldr r2, [pc, #408] @ (800e288 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32477. 800e0ee: fa22 f303 lsr.w r3, r2, r3
  32478. 800e0f2: 63fb str r3, [r7, #60] @ 0x3c
  32479. 800e0f4: e01e b.n 800e134 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32480. }
  32481. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32482. 800e0f6: 4b63 ldr r3, [pc, #396] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32483. 800e0f8: 681b ldr r3, [r3, #0]
  32484. 800e0fa: f403 7380 and.w r3, r3, #256 @ 0x100
  32485. 800e0fe: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32486. 800e102: d106 bne.n 800e112 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32487. 800e104: 6b7b ldr r3, [r7, #52] @ 0x34
  32488. 800e106: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32489. 800e10a: d102 bne.n 800e112 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32490. {
  32491. /* In Case the CKPER Source is CSI */
  32492. frequency = CSI_VALUE;
  32493. 800e10c: 4b5f ldr r3, [pc, #380] @ (800e28c <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32494. 800e10e: 63fb str r3, [r7, #60] @ 0x3c
  32495. 800e110: e010 b.n 800e134 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32496. }
  32497. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32498. 800e112: 4b5c ldr r3, [pc, #368] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32499. 800e114: 681b ldr r3, [r3, #0]
  32500. 800e116: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32501. 800e11a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32502. 800e11e: d106 bne.n 800e12e <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32503. 800e120: 6b7b ldr r3, [r7, #52] @ 0x34
  32504. 800e122: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32505. 800e126: d102 bne.n 800e12e <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32506. {
  32507. /* In Case the CKPER Source is HSE */
  32508. frequency = HSE_VALUE;
  32509. 800e128: 4b59 ldr r3, [pc, #356] @ (800e290 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32510. 800e12a: 63fb str r3, [r7, #60] @ 0x3c
  32511. 800e12c: e002 b.n 800e134 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32512. }
  32513. else
  32514. {
  32515. /* In Case the CKPER is disabled*/
  32516. frequency = 0;
  32517. 800e12e: 2300 movs r3, #0
  32518. 800e130: 63fb str r3, [r7, #60] @ 0x3c
  32519. }
  32520. break;
  32521. 800e132: e386 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32522. 800e134: e385 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32523. }
  32524. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  32525. {
  32526. frequency = EXTERNAL_CLOCK_VALUE;
  32527. 800e136: 4b57 ldr r3, [pc, #348] @ (800e294 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32528. 800e138: 63fb str r3, [r7, #60] @ 0x3c
  32529. break;
  32530. 800e13a: e382 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32531. }
  32532. default :
  32533. {
  32534. frequency = 0;
  32535. 800e13c: 2300 movs r3, #0
  32536. 800e13e: 63fb str r3, [r7, #60] @ 0x3c
  32537. break;
  32538. 800e140: e37f b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32539. }
  32540. }
  32541. }
  32542. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  32543. 800e142: e9d7 2300 ldrd r2, r3, [r7]
  32544. 800e146: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  32545. 800e14a: 430b orrs r3, r1
  32546. 800e14c: f040 80a7 bne.w 800e29e <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  32547. {
  32548. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  32549. 800e150: 4b4c ldr r3, [pc, #304] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32550. 800e152: 6d9b ldr r3, [r3, #88] @ 0x58
  32551. 800e154: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  32552. 800e158: 633b str r3, [r7, #48] @ 0x30
  32553. switch (saiclocksource)
  32554. 800e15a: 6b3b ldr r3, [r7, #48] @ 0x30
  32555. 800e15c: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32556. 800e160: d055 beq.n 800e20e <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  32557. 800e162: 6b3b ldr r3, [r7, #48] @ 0x30
  32558. 800e164: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32559. 800e168: f200 8096 bhi.w 800e298 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32560. 800e16c: 6b3b ldr r3, [r7, #48] @ 0x30
  32561. 800e16e: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32562. 800e172: f000 8084 beq.w 800e27e <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  32563. 800e176: 6b3b ldr r3, [r7, #48] @ 0x30
  32564. 800e178: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32565. 800e17c: f200 808c bhi.w 800e298 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32566. 800e180: 6b3b ldr r3, [r7, #48] @ 0x30
  32567. 800e182: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32568. 800e186: d030 beq.n 800e1ea <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  32569. 800e188: 6b3b ldr r3, [r7, #48] @ 0x30
  32570. 800e18a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32571. 800e18e: f200 8083 bhi.w 800e298 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32572. 800e192: 6b3b ldr r3, [r7, #48] @ 0x30
  32573. 800e194: 2b00 cmp r3, #0
  32574. 800e196: d004 beq.n 800e1a2 <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  32575. 800e198: 6b3b ldr r3, [r7, #48] @ 0x30
  32576. 800e19a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  32577. 800e19e: d012 beq.n 800e1c6 <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  32578. 800e1a0: e07a b.n 800e298 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32579. {
  32580. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  32581. {
  32582. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32583. 800e1a2: 4b38 ldr r3, [pc, #224] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32584. 800e1a4: 681b ldr r3, [r3, #0]
  32585. 800e1a6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32586. 800e1aa: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32587. 800e1ae: d107 bne.n 800e1c0 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  32588. {
  32589. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32590. 800e1b0: f107 0324 add.w r3, r7, #36 @ 0x24
  32591. 800e1b4: 4618 mov r0, r3
  32592. 800e1b6: f000 fe0b bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  32593. frequency = pll1_clocks.PLL1_Q_Frequency;
  32594. 800e1ba: 6abb ldr r3, [r7, #40] @ 0x28
  32595. 800e1bc: 63fb str r3, [r7, #60] @ 0x3c
  32596. }
  32597. else
  32598. {
  32599. frequency = 0;
  32600. }
  32601. break;
  32602. 800e1be: e340 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32603. frequency = 0;
  32604. 800e1c0: 2300 movs r3, #0
  32605. 800e1c2: 63fb str r3, [r7, #60] @ 0x3c
  32606. break;
  32607. 800e1c4: e33d b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32608. }
  32609. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  32610. {
  32611. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32612. 800e1c6: 4b2f ldr r3, [pc, #188] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32613. 800e1c8: 681b ldr r3, [r3, #0]
  32614. 800e1ca: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32615. 800e1ce: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32616. 800e1d2: d107 bne.n 800e1e4 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  32617. {
  32618. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32619. 800e1d4: f107 0318 add.w r3, r7, #24
  32620. 800e1d8: 4618 mov r0, r3
  32621. 800e1da: f000 fb51 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  32622. frequency = pll2_clocks.PLL2_P_Frequency;
  32623. 800e1de: 69bb ldr r3, [r7, #24]
  32624. 800e1e0: 63fb str r3, [r7, #60] @ 0x3c
  32625. }
  32626. else
  32627. {
  32628. frequency = 0;
  32629. }
  32630. break;
  32631. 800e1e2: e32e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32632. frequency = 0;
  32633. 800e1e4: 2300 movs r3, #0
  32634. 800e1e6: 63fb str r3, [r7, #60] @ 0x3c
  32635. break;
  32636. 800e1e8: e32b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32637. }
  32638. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  32639. {
  32640. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32641. 800e1ea: 4b26 ldr r3, [pc, #152] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32642. 800e1ec: 681b ldr r3, [r3, #0]
  32643. 800e1ee: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32644. 800e1f2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32645. 800e1f6: d107 bne.n 800e208 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  32646. {
  32647. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32648. 800e1f8: f107 030c add.w r3, r7, #12
  32649. 800e1fc: 4618 mov r0, r3
  32650. 800e1fe: f000 fc93 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  32651. frequency = pll3_clocks.PLL3_P_Frequency;
  32652. 800e202: 68fb ldr r3, [r7, #12]
  32653. 800e204: 63fb str r3, [r7, #60] @ 0x3c
  32654. }
  32655. else
  32656. {
  32657. frequency = 0;
  32658. }
  32659. break;
  32660. 800e206: e31c b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32661. frequency = 0;
  32662. 800e208: 2300 movs r3, #0
  32663. 800e20a: 63fb str r3, [r7, #60] @ 0x3c
  32664. break;
  32665. 800e20c: e319 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32666. }
  32667. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  32668. {
  32669. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32670. 800e20e: 4b1d ldr r3, [pc, #116] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32671. 800e210: 6cdb ldr r3, [r3, #76] @ 0x4c
  32672. 800e212: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32673. 800e216: 637b str r3, [r7, #52] @ 0x34
  32674. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32675. 800e218: 4b1a ldr r3, [pc, #104] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32676. 800e21a: 681b ldr r3, [r3, #0]
  32677. 800e21c: f003 0304 and.w r3, r3, #4
  32678. 800e220: 2b04 cmp r3, #4
  32679. 800e222: d10c bne.n 800e23e <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32680. 800e224: 6b7b ldr r3, [r7, #52] @ 0x34
  32681. 800e226: 2b00 cmp r3, #0
  32682. 800e228: d109 bne.n 800e23e <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32683. {
  32684. /* In Case the CKPER Source is HSI */
  32685. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32686. 800e22a: 4b16 ldr r3, [pc, #88] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32687. 800e22c: 681b ldr r3, [r3, #0]
  32688. 800e22e: 08db lsrs r3, r3, #3
  32689. 800e230: f003 0303 and.w r3, r3, #3
  32690. 800e234: 4a14 ldr r2, [pc, #80] @ (800e288 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32691. 800e236: fa22 f303 lsr.w r3, r2, r3
  32692. 800e23a: 63fb str r3, [r7, #60] @ 0x3c
  32693. 800e23c: e01e b.n 800e27c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32694. }
  32695. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32696. 800e23e: 4b11 ldr r3, [pc, #68] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32697. 800e240: 681b ldr r3, [r3, #0]
  32698. 800e242: f403 7380 and.w r3, r3, #256 @ 0x100
  32699. 800e246: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32700. 800e24a: d106 bne.n 800e25a <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32701. 800e24c: 6b7b ldr r3, [r7, #52] @ 0x34
  32702. 800e24e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32703. 800e252: d102 bne.n 800e25a <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32704. {
  32705. /* In Case the CKPER Source is CSI */
  32706. frequency = CSI_VALUE;
  32707. 800e254: 4b0d ldr r3, [pc, #52] @ (800e28c <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32708. 800e256: 63fb str r3, [r7, #60] @ 0x3c
  32709. 800e258: e010 b.n 800e27c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32710. }
  32711. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32712. 800e25a: 4b0a ldr r3, [pc, #40] @ (800e284 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32713. 800e25c: 681b ldr r3, [r3, #0]
  32714. 800e25e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32715. 800e262: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32716. 800e266: d106 bne.n 800e276 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32717. 800e268: 6b7b ldr r3, [r7, #52] @ 0x34
  32718. 800e26a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32719. 800e26e: d102 bne.n 800e276 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32720. {
  32721. /* In Case the CKPER Source is HSE */
  32722. frequency = HSE_VALUE;
  32723. 800e270: 4b07 ldr r3, [pc, #28] @ (800e290 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32724. 800e272: 63fb str r3, [r7, #60] @ 0x3c
  32725. 800e274: e002 b.n 800e27c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32726. }
  32727. else
  32728. {
  32729. /* In Case the CKPER is disabled*/
  32730. frequency = 0;
  32731. 800e276: 2300 movs r3, #0
  32732. 800e278: 63fb str r3, [r7, #60] @ 0x3c
  32733. }
  32734. break;
  32735. 800e27a: e2e2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32736. 800e27c: e2e1 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32737. }
  32738. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  32739. {
  32740. frequency = EXTERNAL_CLOCK_VALUE;
  32741. 800e27e: 4b05 ldr r3, [pc, #20] @ (800e294 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32742. 800e280: 63fb str r3, [r7, #60] @ 0x3c
  32743. break;
  32744. 800e282: e2de b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32745. 800e284: 58024400 .word 0x58024400
  32746. 800e288: 03d09000 .word 0x03d09000
  32747. 800e28c: 003d0900 .word 0x003d0900
  32748. 800e290: 017d7840 .word 0x017d7840
  32749. 800e294: 00bb8000 .word 0x00bb8000
  32750. }
  32751. default :
  32752. {
  32753. frequency = 0;
  32754. 800e298: 2300 movs r3, #0
  32755. 800e29a: 63fb str r3, [r7, #60] @ 0x3c
  32756. break;
  32757. 800e29c: e2d1 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32758. }
  32759. }
  32760. }
  32761. #endif /*SAI4*/
  32762. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  32763. 800e29e: e9d7 2300 ldrd r2, r3, [r7]
  32764. 800e2a2: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  32765. 800e2a6: 430b orrs r3, r1
  32766. 800e2a8: f040 809c bne.w 800e3e4 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  32767. {
  32768. /* Get SPI1/2/3 clock source */
  32769. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  32770. 800e2ac: 4b93 ldr r3, [pc, #588] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32771. 800e2ae: 6d1b ldr r3, [r3, #80] @ 0x50
  32772. 800e2b0: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  32773. 800e2b4: 63bb str r3, [r7, #56] @ 0x38
  32774. switch (srcclk)
  32775. 800e2b6: 6bbb ldr r3, [r7, #56] @ 0x38
  32776. 800e2b8: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32777. 800e2bc: d054 beq.n 800e368 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  32778. 800e2be: 6bbb ldr r3, [r7, #56] @ 0x38
  32779. 800e2c0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32780. 800e2c4: f200 808b bhi.w 800e3de <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32781. 800e2c8: 6bbb ldr r3, [r7, #56] @ 0x38
  32782. 800e2ca: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32783. 800e2ce: f000 8083 beq.w 800e3d8 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  32784. 800e2d2: 6bbb ldr r3, [r7, #56] @ 0x38
  32785. 800e2d4: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32786. 800e2d8: f200 8081 bhi.w 800e3de <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32787. 800e2dc: 6bbb ldr r3, [r7, #56] @ 0x38
  32788. 800e2de: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32789. 800e2e2: d02f beq.n 800e344 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  32790. 800e2e4: 6bbb ldr r3, [r7, #56] @ 0x38
  32791. 800e2e6: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32792. 800e2ea: d878 bhi.n 800e3de <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32793. 800e2ec: 6bbb ldr r3, [r7, #56] @ 0x38
  32794. 800e2ee: 2b00 cmp r3, #0
  32795. 800e2f0: d004 beq.n 800e2fc <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  32796. 800e2f2: 6bbb ldr r3, [r7, #56] @ 0x38
  32797. 800e2f4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32798. 800e2f8: d012 beq.n 800e320 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  32799. 800e2fa: e070 b.n 800e3de <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32800. {
  32801. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  32802. {
  32803. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32804. 800e2fc: 4b7f ldr r3, [pc, #508] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32805. 800e2fe: 681b ldr r3, [r3, #0]
  32806. 800e300: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32807. 800e304: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32808. 800e308: d107 bne.n 800e31a <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  32809. {
  32810. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32811. 800e30a: f107 0324 add.w r3, r7, #36 @ 0x24
  32812. 800e30e: 4618 mov r0, r3
  32813. 800e310: f000 fd5e bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  32814. frequency = pll1_clocks.PLL1_Q_Frequency;
  32815. 800e314: 6abb ldr r3, [r7, #40] @ 0x28
  32816. 800e316: 63fb str r3, [r7, #60] @ 0x3c
  32817. }
  32818. else
  32819. {
  32820. frequency = 0;
  32821. }
  32822. break;
  32823. 800e318: e293 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32824. frequency = 0;
  32825. 800e31a: 2300 movs r3, #0
  32826. 800e31c: 63fb str r3, [r7, #60] @ 0x3c
  32827. break;
  32828. 800e31e: e290 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32829. }
  32830. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  32831. {
  32832. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32833. 800e320: 4b76 ldr r3, [pc, #472] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32834. 800e322: 681b ldr r3, [r3, #0]
  32835. 800e324: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32836. 800e328: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32837. 800e32c: d107 bne.n 800e33e <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  32838. {
  32839. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32840. 800e32e: f107 0318 add.w r3, r7, #24
  32841. 800e332: 4618 mov r0, r3
  32842. 800e334: f000 faa4 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  32843. frequency = pll2_clocks.PLL2_P_Frequency;
  32844. 800e338: 69bb ldr r3, [r7, #24]
  32845. 800e33a: 63fb str r3, [r7, #60] @ 0x3c
  32846. }
  32847. else
  32848. {
  32849. frequency = 0;
  32850. }
  32851. break;
  32852. 800e33c: e281 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32853. frequency = 0;
  32854. 800e33e: 2300 movs r3, #0
  32855. 800e340: 63fb str r3, [r7, #60] @ 0x3c
  32856. break;
  32857. 800e342: e27e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32858. }
  32859. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  32860. {
  32861. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32862. 800e344: 4b6d ldr r3, [pc, #436] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32863. 800e346: 681b ldr r3, [r3, #0]
  32864. 800e348: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32865. 800e34c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32866. 800e350: d107 bne.n 800e362 <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  32867. {
  32868. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32869. 800e352: f107 030c add.w r3, r7, #12
  32870. 800e356: 4618 mov r0, r3
  32871. 800e358: f000 fbe6 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  32872. frequency = pll3_clocks.PLL3_P_Frequency;
  32873. 800e35c: 68fb ldr r3, [r7, #12]
  32874. 800e35e: 63fb str r3, [r7, #60] @ 0x3c
  32875. }
  32876. else
  32877. {
  32878. frequency = 0;
  32879. }
  32880. break;
  32881. 800e360: e26f b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32882. frequency = 0;
  32883. 800e362: 2300 movs r3, #0
  32884. 800e364: 63fb str r3, [r7, #60] @ 0x3c
  32885. break;
  32886. 800e366: e26c b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32887. }
  32888. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  32889. {
  32890. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32891. 800e368: 4b64 ldr r3, [pc, #400] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32892. 800e36a: 6cdb ldr r3, [r3, #76] @ 0x4c
  32893. 800e36c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32894. 800e370: 637b str r3, [r7, #52] @ 0x34
  32895. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32896. 800e372: 4b62 ldr r3, [pc, #392] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32897. 800e374: 681b ldr r3, [r3, #0]
  32898. 800e376: f003 0304 and.w r3, r3, #4
  32899. 800e37a: 2b04 cmp r3, #4
  32900. 800e37c: d10c bne.n 800e398 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32901. 800e37e: 6b7b ldr r3, [r7, #52] @ 0x34
  32902. 800e380: 2b00 cmp r3, #0
  32903. 800e382: d109 bne.n 800e398 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32904. {
  32905. /* In Case the CKPER Source is HSI */
  32906. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32907. 800e384: 4b5d ldr r3, [pc, #372] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32908. 800e386: 681b ldr r3, [r3, #0]
  32909. 800e388: 08db lsrs r3, r3, #3
  32910. 800e38a: f003 0303 and.w r3, r3, #3
  32911. 800e38e: 4a5c ldr r2, [pc, #368] @ (800e500 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32912. 800e390: fa22 f303 lsr.w r3, r2, r3
  32913. 800e394: 63fb str r3, [r7, #60] @ 0x3c
  32914. 800e396: e01e b.n 800e3d6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32915. }
  32916. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32917. 800e398: 4b58 ldr r3, [pc, #352] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32918. 800e39a: 681b ldr r3, [r3, #0]
  32919. 800e39c: f403 7380 and.w r3, r3, #256 @ 0x100
  32920. 800e3a0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32921. 800e3a4: d106 bne.n 800e3b4 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32922. 800e3a6: 6b7b ldr r3, [r7, #52] @ 0x34
  32923. 800e3a8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32924. 800e3ac: d102 bne.n 800e3b4 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32925. {
  32926. /* In Case the CKPER Source is CSI */
  32927. frequency = CSI_VALUE;
  32928. 800e3ae: 4b55 ldr r3, [pc, #340] @ (800e504 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32929. 800e3b0: 63fb str r3, [r7, #60] @ 0x3c
  32930. 800e3b2: e010 b.n 800e3d6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32931. }
  32932. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32933. 800e3b4: 4b51 ldr r3, [pc, #324] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32934. 800e3b6: 681b ldr r3, [r3, #0]
  32935. 800e3b8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32936. 800e3bc: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32937. 800e3c0: d106 bne.n 800e3d0 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32938. 800e3c2: 6b7b ldr r3, [r7, #52] @ 0x34
  32939. 800e3c4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32940. 800e3c8: d102 bne.n 800e3d0 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32941. {
  32942. /* In Case the CKPER Source is HSE */
  32943. frequency = HSE_VALUE;
  32944. 800e3ca: 4b4f ldr r3, [pc, #316] @ (800e508 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32945. 800e3cc: 63fb str r3, [r7, #60] @ 0x3c
  32946. 800e3ce: e002 b.n 800e3d6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32947. }
  32948. else
  32949. {
  32950. /* In Case the CKPER is disabled*/
  32951. frequency = 0;
  32952. 800e3d0: 2300 movs r3, #0
  32953. 800e3d2: 63fb str r3, [r7, #60] @ 0x3c
  32954. }
  32955. break;
  32956. 800e3d4: e235 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32957. 800e3d6: e234 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32958. }
  32959. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  32960. {
  32961. frequency = EXTERNAL_CLOCK_VALUE;
  32962. 800e3d8: 4b4c ldr r3, [pc, #304] @ (800e50c <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  32963. 800e3da: 63fb str r3, [r7, #60] @ 0x3c
  32964. break;
  32965. 800e3dc: e231 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32966. }
  32967. default :
  32968. {
  32969. frequency = 0;
  32970. 800e3de: 2300 movs r3, #0
  32971. 800e3e0: 63fb str r3, [r7, #60] @ 0x3c
  32972. break;
  32973. 800e3e2: e22e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32974. }
  32975. }
  32976. }
  32977. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  32978. 800e3e4: e9d7 2300 ldrd r2, r3, [r7]
  32979. 800e3e8: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  32980. 800e3ec: 430b orrs r3, r1
  32981. 800e3ee: f040 808f bne.w 800e510 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  32982. {
  32983. /* Get SPI45 clock source */
  32984. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  32985. 800e3f2: 4b42 ldr r3, [pc, #264] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32986. 800e3f4: 6d1b ldr r3, [r3, #80] @ 0x50
  32987. 800e3f6: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  32988. 800e3fa: 63bb str r3, [r7, #56] @ 0x38
  32989. switch (srcclk)
  32990. 800e3fc: 6bbb ldr r3, [r7, #56] @ 0x38
  32991. 800e3fe: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  32992. 800e402: d06b beq.n 800e4dc <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  32993. 800e404: 6bbb ldr r3, [r7, #56] @ 0x38
  32994. 800e406: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  32995. 800e40a: d874 bhi.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32996. 800e40c: 6bbb ldr r3, [r7, #56] @ 0x38
  32997. 800e40e: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  32998. 800e412: d056 beq.n 800e4c2 <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  32999. 800e414: 6bbb ldr r3, [r7, #56] @ 0x38
  33000. 800e416: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33001. 800e41a: d86c bhi.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33002. 800e41c: 6bbb ldr r3, [r7, #56] @ 0x38
  33003. 800e41e: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33004. 800e422: d03b beq.n 800e49c <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  33005. 800e424: 6bbb ldr r3, [r7, #56] @ 0x38
  33006. 800e426: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33007. 800e42a: d864 bhi.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33008. 800e42c: 6bbb ldr r3, [r7, #56] @ 0x38
  33009. 800e42e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33010. 800e432: d021 beq.n 800e478 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  33011. 800e434: 6bbb ldr r3, [r7, #56] @ 0x38
  33012. 800e436: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33013. 800e43a: d85c bhi.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33014. 800e43c: 6bbb ldr r3, [r7, #56] @ 0x38
  33015. 800e43e: 2b00 cmp r3, #0
  33016. 800e440: d004 beq.n 800e44c <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  33017. 800e442: 6bbb ldr r3, [r7, #56] @ 0x38
  33018. 800e444: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33019. 800e448: d004 beq.n 800e454 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  33020. 800e44a: e054 b.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33021. {
  33022. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  33023. {
  33024. frequency = HAL_RCC_GetPCLK1Freq();
  33025. 800e44c: f7fe fa26 bl 800c89c <HAL_RCC_GetPCLK1Freq>
  33026. 800e450: 63f8 str r0, [r7, #60] @ 0x3c
  33027. break;
  33028. 800e452: e1f6 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33029. }
  33030. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  33031. {
  33032. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33033. 800e454: 4b29 ldr r3, [pc, #164] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33034. 800e456: 681b ldr r3, [r3, #0]
  33035. 800e458: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33036. 800e45c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33037. 800e460: d107 bne.n 800e472 <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  33038. {
  33039. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33040. 800e462: f107 0318 add.w r3, r7, #24
  33041. 800e466: 4618 mov r0, r3
  33042. 800e468: f000 fa0a bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  33043. frequency = pll2_clocks.PLL2_Q_Frequency;
  33044. 800e46c: 69fb ldr r3, [r7, #28]
  33045. 800e46e: 63fb str r3, [r7, #60] @ 0x3c
  33046. }
  33047. else
  33048. {
  33049. frequency = 0;
  33050. }
  33051. break;
  33052. 800e470: e1e7 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33053. frequency = 0;
  33054. 800e472: 2300 movs r3, #0
  33055. 800e474: 63fb str r3, [r7, #60] @ 0x3c
  33056. break;
  33057. 800e476: e1e4 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33058. }
  33059. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  33060. {
  33061. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33062. 800e478: 4b20 ldr r3, [pc, #128] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33063. 800e47a: 681b ldr r3, [r3, #0]
  33064. 800e47c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33065. 800e480: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33066. 800e484: d107 bne.n 800e496 <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  33067. {
  33068. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33069. 800e486: f107 030c add.w r3, r7, #12
  33070. 800e48a: 4618 mov r0, r3
  33071. 800e48c: f000 fb4c bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  33072. frequency = pll3_clocks.PLL3_Q_Frequency;
  33073. 800e490: 693b ldr r3, [r7, #16]
  33074. 800e492: 63fb str r3, [r7, #60] @ 0x3c
  33075. }
  33076. else
  33077. {
  33078. frequency = 0;
  33079. }
  33080. break;
  33081. 800e494: e1d5 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33082. frequency = 0;
  33083. 800e496: 2300 movs r3, #0
  33084. 800e498: 63fb str r3, [r7, #60] @ 0x3c
  33085. break;
  33086. 800e49a: e1d2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33087. }
  33088. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  33089. {
  33090. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33091. 800e49c: 4b17 ldr r3, [pc, #92] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33092. 800e49e: 681b ldr r3, [r3, #0]
  33093. 800e4a0: f003 0304 and.w r3, r3, #4
  33094. 800e4a4: 2b04 cmp r3, #4
  33095. 800e4a6: d109 bne.n 800e4bc <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  33096. {
  33097. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33098. 800e4a8: 4b14 ldr r3, [pc, #80] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33099. 800e4aa: 681b ldr r3, [r3, #0]
  33100. 800e4ac: 08db lsrs r3, r3, #3
  33101. 800e4ae: f003 0303 and.w r3, r3, #3
  33102. 800e4b2: 4a13 ldr r2, [pc, #76] @ (800e500 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  33103. 800e4b4: fa22 f303 lsr.w r3, r2, r3
  33104. 800e4b8: 63fb str r3, [r7, #60] @ 0x3c
  33105. }
  33106. else
  33107. {
  33108. frequency = 0;
  33109. }
  33110. break;
  33111. 800e4ba: e1c2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33112. frequency = 0;
  33113. 800e4bc: 2300 movs r3, #0
  33114. 800e4be: 63fb str r3, [r7, #60] @ 0x3c
  33115. break;
  33116. 800e4c0: e1bf b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33117. }
  33118. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  33119. {
  33120. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33121. 800e4c2: 4b0e ldr r3, [pc, #56] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33122. 800e4c4: 681b ldr r3, [r3, #0]
  33123. 800e4c6: f403 7380 and.w r3, r3, #256 @ 0x100
  33124. 800e4ca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33125. 800e4ce: d102 bne.n 800e4d6 <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  33126. {
  33127. frequency = CSI_VALUE;
  33128. 800e4d0: 4b0c ldr r3, [pc, #48] @ (800e504 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  33129. 800e4d2: 63fb str r3, [r7, #60] @ 0x3c
  33130. }
  33131. else
  33132. {
  33133. frequency = 0;
  33134. }
  33135. break;
  33136. 800e4d4: e1b5 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33137. frequency = 0;
  33138. 800e4d6: 2300 movs r3, #0
  33139. 800e4d8: 63fb str r3, [r7, #60] @ 0x3c
  33140. break;
  33141. 800e4da: e1b2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33142. }
  33143. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  33144. {
  33145. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33146. 800e4dc: 4b07 ldr r3, [pc, #28] @ (800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33147. 800e4de: 681b ldr r3, [r3, #0]
  33148. 800e4e0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33149. 800e4e4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33150. 800e4e8: d102 bne.n 800e4f0 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  33151. {
  33152. frequency = HSE_VALUE;
  33153. 800e4ea: 4b07 ldr r3, [pc, #28] @ (800e508 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  33154. 800e4ec: 63fb str r3, [r7, #60] @ 0x3c
  33155. }
  33156. else
  33157. {
  33158. frequency = 0;
  33159. }
  33160. break;
  33161. 800e4ee: e1a8 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33162. frequency = 0;
  33163. 800e4f0: 2300 movs r3, #0
  33164. 800e4f2: 63fb str r3, [r7, #60] @ 0x3c
  33165. break;
  33166. 800e4f4: e1a5 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33167. }
  33168. default :
  33169. {
  33170. frequency = 0;
  33171. 800e4f6: 2300 movs r3, #0
  33172. 800e4f8: 63fb str r3, [r7, #60] @ 0x3c
  33173. break;
  33174. 800e4fa: e1a2 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33175. 800e4fc: 58024400 .word 0x58024400
  33176. 800e500: 03d09000 .word 0x03d09000
  33177. 800e504: 003d0900 .word 0x003d0900
  33178. 800e508: 017d7840 .word 0x017d7840
  33179. 800e50c: 00bb8000 .word 0x00bb8000
  33180. }
  33181. }
  33182. }
  33183. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  33184. 800e510: e9d7 2300 ldrd r2, r3, [r7]
  33185. 800e514: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  33186. 800e518: 430b orrs r3, r1
  33187. 800e51a: d173 bne.n 800e604 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  33188. {
  33189. /* Get ADC clock source */
  33190. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  33191. 800e51c: 4b9c ldr r3, [pc, #624] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33192. 800e51e: 6d9b ldr r3, [r3, #88] @ 0x58
  33193. 800e520: f403 3340 and.w r3, r3, #196608 @ 0x30000
  33194. 800e524: 63bb str r3, [r7, #56] @ 0x38
  33195. switch (srcclk)
  33196. 800e526: 6bbb ldr r3, [r7, #56] @ 0x38
  33197. 800e528: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33198. 800e52c: d02f beq.n 800e58e <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  33199. 800e52e: 6bbb ldr r3, [r7, #56] @ 0x38
  33200. 800e530: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33201. 800e534: d863 bhi.n 800e5fe <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33202. 800e536: 6bbb ldr r3, [r7, #56] @ 0x38
  33203. 800e538: 2b00 cmp r3, #0
  33204. 800e53a: d004 beq.n 800e546 <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  33205. 800e53c: 6bbb ldr r3, [r7, #56] @ 0x38
  33206. 800e53e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33207. 800e542: d012 beq.n 800e56a <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  33208. 800e544: e05b b.n 800e5fe <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33209. {
  33210. case RCC_ADCCLKSOURCE_PLL2:
  33211. {
  33212. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33213. 800e546: 4b92 ldr r3, [pc, #584] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33214. 800e548: 681b ldr r3, [r3, #0]
  33215. 800e54a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33216. 800e54e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33217. 800e552: d107 bne.n 800e564 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  33218. {
  33219. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33220. 800e554: f107 0318 add.w r3, r7, #24
  33221. 800e558: 4618 mov r0, r3
  33222. 800e55a: f000 f991 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  33223. frequency = pll2_clocks.PLL2_P_Frequency;
  33224. 800e55e: 69bb ldr r3, [r7, #24]
  33225. 800e560: 63fb str r3, [r7, #60] @ 0x3c
  33226. }
  33227. else
  33228. {
  33229. frequency = 0;
  33230. }
  33231. break;
  33232. 800e562: e16e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33233. frequency = 0;
  33234. 800e564: 2300 movs r3, #0
  33235. 800e566: 63fb str r3, [r7, #60] @ 0x3c
  33236. break;
  33237. 800e568: e16b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33238. }
  33239. case RCC_ADCCLKSOURCE_PLL3:
  33240. {
  33241. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33242. 800e56a: 4b89 ldr r3, [pc, #548] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33243. 800e56c: 681b ldr r3, [r3, #0]
  33244. 800e56e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33245. 800e572: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33246. 800e576: d107 bne.n 800e588 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  33247. {
  33248. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33249. 800e578: f107 030c add.w r3, r7, #12
  33250. 800e57c: 4618 mov r0, r3
  33251. 800e57e: f000 fad3 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  33252. frequency = pll3_clocks.PLL3_R_Frequency;
  33253. 800e582: 697b ldr r3, [r7, #20]
  33254. 800e584: 63fb str r3, [r7, #60] @ 0x3c
  33255. }
  33256. else
  33257. {
  33258. frequency = 0;
  33259. }
  33260. break;
  33261. 800e586: e15c b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33262. frequency = 0;
  33263. 800e588: 2300 movs r3, #0
  33264. 800e58a: 63fb str r3, [r7, #60] @ 0x3c
  33265. break;
  33266. 800e58c: e159 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33267. }
  33268. case RCC_ADCCLKSOURCE_CLKP:
  33269. {
  33270. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  33271. 800e58e: 4b80 ldr r3, [pc, #512] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33272. 800e590: 6cdb ldr r3, [r3, #76] @ 0x4c
  33273. 800e592: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33274. 800e596: 637b str r3, [r7, #52] @ 0x34
  33275. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  33276. 800e598: 4b7d ldr r3, [pc, #500] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33277. 800e59a: 681b ldr r3, [r3, #0]
  33278. 800e59c: f003 0304 and.w r3, r3, #4
  33279. 800e5a0: 2b04 cmp r3, #4
  33280. 800e5a2: d10c bne.n 800e5be <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33281. 800e5a4: 6b7b ldr r3, [r7, #52] @ 0x34
  33282. 800e5a6: 2b00 cmp r3, #0
  33283. 800e5a8: d109 bne.n 800e5be <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33284. {
  33285. /* In Case the CKPER Source is HSI */
  33286. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33287. 800e5aa: 4b79 ldr r3, [pc, #484] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33288. 800e5ac: 681b ldr r3, [r3, #0]
  33289. 800e5ae: 08db lsrs r3, r3, #3
  33290. 800e5b0: f003 0303 and.w r3, r3, #3
  33291. 800e5b4: 4a77 ldr r2, [pc, #476] @ (800e794 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33292. 800e5b6: fa22 f303 lsr.w r3, r2, r3
  33293. 800e5ba: 63fb str r3, [r7, #60] @ 0x3c
  33294. 800e5bc: e01e b.n 800e5fc <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33295. }
  33296. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  33297. 800e5be: 4b74 ldr r3, [pc, #464] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33298. 800e5c0: 681b ldr r3, [r3, #0]
  33299. 800e5c2: f403 7380 and.w r3, r3, #256 @ 0x100
  33300. 800e5c6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33301. 800e5ca: d106 bne.n 800e5da <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33302. 800e5cc: 6b7b ldr r3, [r7, #52] @ 0x34
  33303. 800e5ce: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33304. 800e5d2: d102 bne.n 800e5da <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33305. {
  33306. /* In Case the CKPER Source is CSI */
  33307. frequency = CSI_VALUE;
  33308. 800e5d4: 4b70 ldr r3, [pc, #448] @ (800e798 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33309. 800e5d6: 63fb str r3, [r7, #60] @ 0x3c
  33310. 800e5d8: e010 b.n 800e5fc <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33311. }
  33312. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  33313. 800e5da: 4b6d ldr r3, [pc, #436] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33314. 800e5dc: 681b ldr r3, [r3, #0]
  33315. 800e5de: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33316. 800e5e2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33317. 800e5e6: d106 bne.n 800e5f6 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33318. 800e5e8: 6b7b ldr r3, [r7, #52] @ 0x34
  33319. 800e5ea: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33320. 800e5ee: d102 bne.n 800e5f6 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33321. {
  33322. /* In Case the CKPER Source is HSE */
  33323. frequency = HSE_VALUE;
  33324. 800e5f0: 4b6a ldr r3, [pc, #424] @ (800e79c <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33325. 800e5f2: 63fb str r3, [r7, #60] @ 0x3c
  33326. 800e5f4: e002 b.n 800e5fc <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33327. }
  33328. else
  33329. {
  33330. /* In Case the CKPER is disabled*/
  33331. frequency = 0;
  33332. 800e5f6: 2300 movs r3, #0
  33333. 800e5f8: 63fb str r3, [r7, #60] @ 0x3c
  33334. }
  33335. break;
  33336. 800e5fa: e122 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33337. 800e5fc: e121 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33338. }
  33339. default :
  33340. {
  33341. frequency = 0;
  33342. 800e5fe: 2300 movs r3, #0
  33343. 800e600: 63fb str r3, [r7, #60] @ 0x3c
  33344. break;
  33345. 800e602: e11e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33346. }
  33347. }
  33348. }
  33349. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  33350. 800e604: e9d7 2300 ldrd r2, r3, [r7]
  33351. 800e608: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  33352. 800e60c: 430b orrs r3, r1
  33353. 800e60e: d133 bne.n 800e678 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  33354. {
  33355. /* Get SDMMC clock source */
  33356. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  33357. 800e610: 4b5f ldr r3, [pc, #380] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33358. 800e612: 6cdb ldr r3, [r3, #76] @ 0x4c
  33359. 800e614: f403 3380 and.w r3, r3, #65536 @ 0x10000
  33360. 800e618: 63bb str r3, [r7, #56] @ 0x38
  33361. switch (srcclk)
  33362. 800e61a: 6bbb ldr r3, [r7, #56] @ 0x38
  33363. 800e61c: 2b00 cmp r3, #0
  33364. 800e61e: d004 beq.n 800e62a <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  33365. 800e620: 6bbb ldr r3, [r7, #56] @ 0x38
  33366. 800e622: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33367. 800e626: d012 beq.n 800e64e <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  33368. 800e628: e023 b.n 800e672 <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  33369. {
  33370. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  33371. {
  33372. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33373. 800e62a: 4b59 ldr r3, [pc, #356] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33374. 800e62c: 681b ldr r3, [r3, #0]
  33375. 800e62e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33376. 800e632: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33377. 800e636: d107 bne.n 800e648 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  33378. {
  33379. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33380. 800e638: f107 0324 add.w r3, r7, #36 @ 0x24
  33381. 800e63c: 4618 mov r0, r3
  33382. 800e63e: f000 fbc7 bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  33383. frequency = pll1_clocks.PLL1_Q_Frequency;
  33384. 800e642: 6abb ldr r3, [r7, #40] @ 0x28
  33385. 800e644: 63fb str r3, [r7, #60] @ 0x3c
  33386. }
  33387. else
  33388. {
  33389. frequency = 0;
  33390. }
  33391. break;
  33392. 800e646: e0fc b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33393. frequency = 0;
  33394. 800e648: 2300 movs r3, #0
  33395. 800e64a: 63fb str r3, [r7, #60] @ 0x3c
  33396. break;
  33397. 800e64c: e0f9 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33398. }
  33399. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  33400. {
  33401. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33402. 800e64e: 4b50 ldr r3, [pc, #320] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33403. 800e650: 681b ldr r3, [r3, #0]
  33404. 800e652: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33405. 800e656: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33406. 800e65a: d107 bne.n 800e66c <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  33407. {
  33408. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33409. 800e65c: f107 0318 add.w r3, r7, #24
  33410. 800e660: 4618 mov r0, r3
  33411. 800e662: f000 f90d bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  33412. frequency = pll2_clocks.PLL2_R_Frequency;
  33413. 800e666: 6a3b ldr r3, [r7, #32]
  33414. 800e668: 63fb str r3, [r7, #60] @ 0x3c
  33415. }
  33416. else
  33417. {
  33418. frequency = 0;
  33419. }
  33420. break;
  33421. 800e66a: e0ea b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33422. frequency = 0;
  33423. 800e66c: 2300 movs r3, #0
  33424. 800e66e: 63fb str r3, [r7, #60] @ 0x3c
  33425. break;
  33426. 800e670: e0e7 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33427. }
  33428. default :
  33429. {
  33430. frequency = 0;
  33431. 800e672: 2300 movs r3, #0
  33432. 800e674: 63fb str r3, [r7, #60] @ 0x3c
  33433. break;
  33434. 800e676: e0e4 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33435. }
  33436. }
  33437. }
  33438. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  33439. 800e678: e9d7 2300 ldrd r2, r3, [r7]
  33440. 800e67c: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  33441. 800e680: 430b orrs r3, r1
  33442. 800e682: f040 808d bne.w 800e7a0 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  33443. {
  33444. /* Get SPI6 clock source */
  33445. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  33446. 800e686: 4b42 ldr r3, [pc, #264] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33447. 800e688: 6d9b ldr r3, [r3, #88] @ 0x58
  33448. 800e68a: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  33449. 800e68e: 63bb str r3, [r7, #56] @ 0x38
  33450. switch (srcclk)
  33451. 800e690: 6bbb ldr r3, [r7, #56] @ 0x38
  33452. 800e692: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33453. 800e696: d06b beq.n 800e770 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  33454. 800e698: 6bbb ldr r3, [r7, #56] @ 0x38
  33455. 800e69a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33456. 800e69e: d874 bhi.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33457. 800e6a0: 6bbb ldr r3, [r7, #56] @ 0x38
  33458. 800e6a2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33459. 800e6a6: d056 beq.n 800e756 <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  33460. 800e6a8: 6bbb ldr r3, [r7, #56] @ 0x38
  33461. 800e6aa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33462. 800e6ae: d86c bhi.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33463. 800e6b0: 6bbb ldr r3, [r7, #56] @ 0x38
  33464. 800e6b2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33465. 800e6b6: d03b beq.n 800e730 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  33466. 800e6b8: 6bbb ldr r3, [r7, #56] @ 0x38
  33467. 800e6ba: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33468. 800e6be: d864 bhi.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33469. 800e6c0: 6bbb ldr r3, [r7, #56] @ 0x38
  33470. 800e6c2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33471. 800e6c6: d021 beq.n 800e70c <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  33472. 800e6c8: 6bbb ldr r3, [r7, #56] @ 0x38
  33473. 800e6ca: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33474. 800e6ce: d85c bhi.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33475. 800e6d0: 6bbb ldr r3, [r7, #56] @ 0x38
  33476. 800e6d2: 2b00 cmp r3, #0
  33477. 800e6d4: d004 beq.n 800e6e0 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  33478. 800e6d6: 6bbb ldr r3, [r7, #56] @ 0x38
  33479. 800e6d8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33480. 800e6dc: d004 beq.n 800e6e8 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  33481. 800e6de: e054 b.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33482. {
  33483. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  33484. {
  33485. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  33486. 800e6e0: f000 f8b8 bl 800e854 <HAL_RCCEx_GetD3PCLK1Freq>
  33487. 800e6e4: 63f8 str r0, [r7, #60] @ 0x3c
  33488. break;
  33489. 800e6e6: e0ac b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33490. }
  33491. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  33492. {
  33493. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33494. 800e6e8: 4b29 ldr r3, [pc, #164] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33495. 800e6ea: 681b ldr r3, [r3, #0]
  33496. 800e6ec: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33497. 800e6f0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33498. 800e6f4: d107 bne.n 800e706 <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  33499. {
  33500. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33501. 800e6f6: f107 0318 add.w r3, r7, #24
  33502. 800e6fa: 4618 mov r0, r3
  33503. 800e6fc: f000 f8c0 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  33504. frequency = pll2_clocks.PLL2_Q_Frequency;
  33505. 800e700: 69fb ldr r3, [r7, #28]
  33506. 800e702: 63fb str r3, [r7, #60] @ 0x3c
  33507. }
  33508. else
  33509. {
  33510. frequency = 0;
  33511. }
  33512. break;
  33513. 800e704: e09d b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33514. frequency = 0;
  33515. 800e706: 2300 movs r3, #0
  33516. 800e708: 63fb str r3, [r7, #60] @ 0x3c
  33517. break;
  33518. 800e70a: e09a b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33519. }
  33520. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  33521. {
  33522. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33523. 800e70c: 4b20 ldr r3, [pc, #128] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33524. 800e70e: 681b ldr r3, [r3, #0]
  33525. 800e710: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33526. 800e714: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33527. 800e718: d107 bne.n 800e72a <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  33528. {
  33529. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33530. 800e71a: f107 030c add.w r3, r7, #12
  33531. 800e71e: 4618 mov r0, r3
  33532. 800e720: f000 fa02 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  33533. frequency = pll3_clocks.PLL3_Q_Frequency;
  33534. 800e724: 693b ldr r3, [r7, #16]
  33535. 800e726: 63fb str r3, [r7, #60] @ 0x3c
  33536. }
  33537. else
  33538. {
  33539. frequency = 0;
  33540. }
  33541. break;
  33542. 800e728: e08b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33543. frequency = 0;
  33544. 800e72a: 2300 movs r3, #0
  33545. 800e72c: 63fb str r3, [r7, #60] @ 0x3c
  33546. break;
  33547. 800e72e: e088 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33548. }
  33549. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  33550. {
  33551. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33552. 800e730: 4b17 ldr r3, [pc, #92] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33553. 800e732: 681b ldr r3, [r3, #0]
  33554. 800e734: f003 0304 and.w r3, r3, #4
  33555. 800e738: 2b04 cmp r3, #4
  33556. 800e73a: d109 bne.n 800e750 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  33557. {
  33558. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33559. 800e73c: 4b14 ldr r3, [pc, #80] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33560. 800e73e: 681b ldr r3, [r3, #0]
  33561. 800e740: 08db lsrs r3, r3, #3
  33562. 800e742: f003 0303 and.w r3, r3, #3
  33563. 800e746: 4a13 ldr r2, [pc, #76] @ (800e794 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33564. 800e748: fa22 f303 lsr.w r3, r2, r3
  33565. 800e74c: 63fb str r3, [r7, #60] @ 0x3c
  33566. }
  33567. else
  33568. {
  33569. frequency = 0;
  33570. }
  33571. break;
  33572. 800e74e: e078 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33573. frequency = 0;
  33574. 800e750: 2300 movs r3, #0
  33575. 800e752: 63fb str r3, [r7, #60] @ 0x3c
  33576. break;
  33577. 800e754: e075 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33578. }
  33579. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  33580. {
  33581. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33582. 800e756: 4b0e ldr r3, [pc, #56] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33583. 800e758: 681b ldr r3, [r3, #0]
  33584. 800e75a: f403 7380 and.w r3, r3, #256 @ 0x100
  33585. 800e75e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33586. 800e762: d102 bne.n 800e76a <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  33587. {
  33588. frequency = CSI_VALUE;
  33589. 800e764: 4b0c ldr r3, [pc, #48] @ (800e798 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33590. 800e766: 63fb str r3, [r7, #60] @ 0x3c
  33591. }
  33592. else
  33593. {
  33594. frequency = 0;
  33595. }
  33596. break;
  33597. 800e768: e06b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33598. frequency = 0;
  33599. 800e76a: 2300 movs r3, #0
  33600. 800e76c: 63fb str r3, [r7, #60] @ 0x3c
  33601. break;
  33602. 800e76e: e068 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33603. }
  33604. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  33605. {
  33606. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33607. 800e770: 4b07 ldr r3, [pc, #28] @ (800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33608. 800e772: 681b ldr r3, [r3, #0]
  33609. 800e774: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33610. 800e778: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33611. 800e77c: d102 bne.n 800e784 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  33612. {
  33613. frequency = HSE_VALUE;
  33614. 800e77e: 4b07 ldr r3, [pc, #28] @ (800e79c <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33615. 800e780: 63fb str r3, [r7, #60] @ 0x3c
  33616. }
  33617. else
  33618. {
  33619. frequency = 0;
  33620. }
  33621. break;
  33622. 800e782: e05e b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33623. frequency = 0;
  33624. 800e784: 2300 movs r3, #0
  33625. 800e786: 63fb str r3, [r7, #60] @ 0x3c
  33626. break;
  33627. 800e788: e05b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33628. break;
  33629. }
  33630. #endif /* RCC_SPI6CLKSOURCE_PIN */
  33631. default :
  33632. {
  33633. frequency = 0;
  33634. 800e78a: 2300 movs r3, #0
  33635. 800e78c: 63fb str r3, [r7, #60] @ 0x3c
  33636. break;
  33637. 800e78e: e058 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33638. 800e790: 58024400 .word 0x58024400
  33639. 800e794: 03d09000 .word 0x03d09000
  33640. 800e798: 003d0900 .word 0x003d0900
  33641. 800e79c: 017d7840 .word 0x017d7840
  33642. }
  33643. }
  33644. }
  33645. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  33646. 800e7a0: e9d7 2300 ldrd r2, r3, [r7]
  33647. 800e7a4: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  33648. 800e7a8: 430b orrs r3, r1
  33649. 800e7aa: d148 bne.n 800e83e <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  33650. {
  33651. /* Get FDCAN clock source */
  33652. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  33653. 800e7ac: 4b27 ldr r3, [pc, #156] @ (800e84c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33654. 800e7ae: 6d1b ldr r3, [r3, #80] @ 0x50
  33655. 800e7b0: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33656. 800e7b4: 63bb str r3, [r7, #56] @ 0x38
  33657. switch (srcclk)
  33658. 800e7b6: 6bbb ldr r3, [r7, #56] @ 0x38
  33659. 800e7b8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33660. 800e7bc: d02a beq.n 800e814 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  33661. 800e7be: 6bbb ldr r3, [r7, #56] @ 0x38
  33662. 800e7c0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33663. 800e7c4: d838 bhi.n 800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33664. 800e7c6: 6bbb ldr r3, [r7, #56] @ 0x38
  33665. 800e7c8: 2b00 cmp r3, #0
  33666. 800e7ca: d004 beq.n 800e7d6 <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  33667. 800e7cc: 6bbb ldr r3, [r7, #56] @ 0x38
  33668. 800e7ce: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33669. 800e7d2: d00d beq.n 800e7f0 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  33670. 800e7d4: e030 b.n 800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33671. {
  33672. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  33673. {
  33674. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33675. 800e7d6: 4b1d ldr r3, [pc, #116] @ (800e84c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33676. 800e7d8: 681b ldr r3, [r3, #0]
  33677. 800e7da: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33678. 800e7de: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33679. 800e7e2: d102 bne.n 800e7ea <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  33680. {
  33681. frequency = HSE_VALUE;
  33682. 800e7e4: 4b1a ldr r3, [pc, #104] @ (800e850 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  33683. 800e7e6: 63fb str r3, [r7, #60] @ 0x3c
  33684. }
  33685. else
  33686. {
  33687. frequency = 0;
  33688. }
  33689. break;
  33690. 800e7e8: e02b b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33691. frequency = 0;
  33692. 800e7ea: 2300 movs r3, #0
  33693. 800e7ec: 63fb str r3, [r7, #60] @ 0x3c
  33694. break;
  33695. 800e7ee: e028 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33696. }
  33697. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  33698. {
  33699. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33700. 800e7f0: 4b16 ldr r3, [pc, #88] @ (800e84c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33701. 800e7f2: 681b ldr r3, [r3, #0]
  33702. 800e7f4: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33703. 800e7f8: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33704. 800e7fc: d107 bne.n 800e80e <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  33705. {
  33706. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33707. 800e7fe: f107 0324 add.w r3, r7, #36 @ 0x24
  33708. 800e802: 4618 mov r0, r3
  33709. 800e804: f000 fae4 bl 800edd0 <HAL_RCCEx_GetPLL1ClockFreq>
  33710. frequency = pll1_clocks.PLL1_Q_Frequency;
  33711. 800e808: 6abb ldr r3, [r7, #40] @ 0x28
  33712. 800e80a: 63fb str r3, [r7, #60] @ 0x3c
  33713. }
  33714. else
  33715. {
  33716. frequency = 0;
  33717. }
  33718. break;
  33719. 800e80c: e019 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33720. frequency = 0;
  33721. 800e80e: 2300 movs r3, #0
  33722. 800e810: 63fb str r3, [r7, #60] @ 0x3c
  33723. break;
  33724. 800e812: e016 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33725. }
  33726. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  33727. {
  33728. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33729. 800e814: 4b0d ldr r3, [pc, #52] @ (800e84c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33730. 800e816: 681b ldr r3, [r3, #0]
  33731. 800e818: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33732. 800e81c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33733. 800e820: d107 bne.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  33734. {
  33735. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33736. 800e822: f107 0318 add.w r3, r7, #24
  33737. 800e826: 4618 mov r0, r3
  33738. 800e828: f000 f82a bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  33739. frequency = pll2_clocks.PLL2_Q_Frequency;
  33740. 800e82c: 69fb ldr r3, [r7, #28]
  33741. 800e82e: 63fb str r3, [r7, #60] @ 0x3c
  33742. }
  33743. else
  33744. {
  33745. frequency = 0;
  33746. }
  33747. break;
  33748. 800e830: e007 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33749. frequency = 0;
  33750. 800e832: 2300 movs r3, #0
  33751. 800e834: 63fb str r3, [r7, #60] @ 0x3c
  33752. break;
  33753. 800e836: e004 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33754. }
  33755. default :
  33756. {
  33757. frequency = 0;
  33758. 800e838: 2300 movs r3, #0
  33759. 800e83a: 63fb str r3, [r7, #60] @ 0x3c
  33760. break;
  33761. 800e83c: e001 b.n 800e842 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33762. }
  33763. }
  33764. }
  33765. else
  33766. {
  33767. frequency = 0;
  33768. 800e83e: 2300 movs r3, #0
  33769. 800e840: 63fb str r3, [r7, #60] @ 0x3c
  33770. }
  33771. return frequency;
  33772. 800e842: 6bfb ldr r3, [r7, #60] @ 0x3c
  33773. }
  33774. 800e844: 4618 mov r0, r3
  33775. 800e846: 3740 adds r7, #64 @ 0x40
  33776. 800e848: 46bd mov sp, r7
  33777. 800e84a: bd80 pop {r7, pc}
  33778. 800e84c: 58024400 .word 0x58024400
  33779. 800e850: 017d7840 .word 0x017d7840
  33780. 0800e854 <HAL_RCCEx_GetD3PCLK1Freq>:
  33781. * @note Each time D3PCLK1 changes, this function must be called to update the
  33782. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  33783. * @retval D3PCLK1 frequency
  33784. */
  33785. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  33786. {
  33787. 800e854: b580 push {r7, lr}
  33788. 800e856: af00 add r7, sp, #0
  33789. #if defined(RCC_D3CFGR_D3PPRE)
  33790. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33791. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  33792. 800e858: f7fd fff0 bl 800c83c <HAL_RCC_GetHCLKFreq>
  33793. 800e85c: 4602 mov r2, r0
  33794. 800e85e: 4b06 ldr r3, [pc, #24] @ (800e878 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  33795. 800e860: 6a1b ldr r3, [r3, #32]
  33796. 800e862: 091b lsrs r3, r3, #4
  33797. 800e864: f003 0307 and.w r3, r3, #7
  33798. 800e868: 4904 ldr r1, [pc, #16] @ (800e87c <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  33799. 800e86a: 5ccb ldrb r3, [r1, r3]
  33800. 800e86c: f003 031f and.w r3, r3, #31
  33801. 800e870: fa22 f303 lsr.w r3, r2, r3
  33802. #else
  33803. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33804. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  33805. #endif
  33806. }
  33807. 800e874: 4618 mov r0, r3
  33808. 800e876: bd80 pop {r7, pc}
  33809. 800e878: 58024400 .word 0x58024400
  33810. 800e87c: 080186dc .word 0x080186dc
  33811. 0800e880 <HAL_RCCEx_GetPLL2ClockFreq>:
  33812. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  33813. * @param PLL2_Clocks structure.
  33814. * @retval None
  33815. */
  33816. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  33817. {
  33818. 800e880: b480 push {r7}
  33819. 800e882: b089 sub sp, #36 @ 0x24
  33820. 800e884: af00 add r7, sp, #0
  33821. 800e886: 6078 str r0, [r7, #4]
  33822. float_t fracn2, pll2vco;
  33823. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  33824. PLL2xCLK = PLL2_VCO / PLL2x
  33825. */
  33826. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33827. 800e888: 4ba1 ldr r3, [pc, #644] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33828. 800e88a: 6a9b ldr r3, [r3, #40] @ 0x28
  33829. 800e88c: f003 0303 and.w r3, r3, #3
  33830. 800e890: 61bb str r3, [r7, #24]
  33831. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  33832. 800e892: 4b9f ldr r3, [pc, #636] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33833. 800e894: 6a9b ldr r3, [r3, #40] @ 0x28
  33834. 800e896: 0b1b lsrs r3, r3, #12
  33835. 800e898: f003 033f and.w r3, r3, #63 @ 0x3f
  33836. 800e89c: 617b str r3, [r7, #20]
  33837. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  33838. 800e89e: 4b9c ldr r3, [pc, #624] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33839. 800e8a0: 6adb ldr r3, [r3, #44] @ 0x2c
  33840. 800e8a2: 091b lsrs r3, r3, #4
  33841. 800e8a4: f003 0301 and.w r3, r3, #1
  33842. 800e8a8: 613b str r3, [r7, #16]
  33843. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  33844. 800e8aa: 4b99 ldr r3, [pc, #612] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33845. 800e8ac: 6bdb ldr r3, [r3, #60] @ 0x3c
  33846. 800e8ae: 08db lsrs r3, r3, #3
  33847. 800e8b0: f3c3 030c ubfx r3, r3, #0, #13
  33848. 800e8b4: 693a ldr r2, [r7, #16]
  33849. 800e8b6: fb02 f303 mul.w r3, r2, r3
  33850. 800e8ba: ee07 3a90 vmov s15, r3
  33851. 800e8be: eef8 7a67 vcvt.f32.u32 s15, s15
  33852. 800e8c2: edc7 7a03 vstr s15, [r7, #12]
  33853. if (pll2m != 0U)
  33854. 800e8c6: 697b ldr r3, [r7, #20]
  33855. 800e8c8: 2b00 cmp r3, #0
  33856. 800e8ca: f000 8111 beq.w 800eaf0 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  33857. {
  33858. switch (pllsource)
  33859. 800e8ce: 69bb ldr r3, [r7, #24]
  33860. 800e8d0: 2b02 cmp r3, #2
  33861. 800e8d2: f000 8083 beq.w 800e9dc <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  33862. 800e8d6: 69bb ldr r3, [r7, #24]
  33863. 800e8d8: 2b02 cmp r3, #2
  33864. 800e8da: f200 80a1 bhi.w 800ea20 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33865. 800e8de: 69bb ldr r3, [r7, #24]
  33866. 800e8e0: 2b00 cmp r3, #0
  33867. 800e8e2: d003 beq.n 800e8ec <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  33868. 800e8e4: 69bb ldr r3, [r7, #24]
  33869. 800e8e6: 2b01 cmp r3, #1
  33870. 800e8e8: d056 beq.n 800e998 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  33871. 800e8ea: e099 b.n 800ea20 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33872. {
  33873. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33874. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33875. 800e8ec: 4b88 ldr r3, [pc, #544] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33876. 800e8ee: 681b ldr r3, [r3, #0]
  33877. 800e8f0: f003 0320 and.w r3, r3, #32
  33878. 800e8f4: 2b00 cmp r3, #0
  33879. 800e8f6: d02d beq.n 800e954 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  33880. {
  33881. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33882. 800e8f8: 4b85 ldr r3, [pc, #532] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33883. 800e8fa: 681b ldr r3, [r3, #0]
  33884. 800e8fc: 08db lsrs r3, r3, #3
  33885. 800e8fe: f003 0303 and.w r3, r3, #3
  33886. 800e902: 4a84 ldr r2, [pc, #528] @ (800eb14 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  33887. 800e904: fa22 f303 lsr.w r3, r2, r3
  33888. 800e908: 60bb str r3, [r7, #8]
  33889. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33890. 800e90a: 68bb ldr r3, [r7, #8]
  33891. 800e90c: ee07 3a90 vmov s15, r3
  33892. 800e910: eef8 6a67 vcvt.f32.u32 s13, s15
  33893. 800e914: 697b ldr r3, [r7, #20]
  33894. 800e916: ee07 3a90 vmov s15, r3
  33895. 800e91a: eef8 7a67 vcvt.f32.u32 s15, s15
  33896. 800e91e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33897. 800e922: 4b7b ldr r3, [pc, #492] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33898. 800e924: 6b9b ldr r3, [r3, #56] @ 0x38
  33899. 800e926: f3c3 0308 ubfx r3, r3, #0, #9
  33900. 800e92a: ee07 3a90 vmov s15, r3
  33901. 800e92e: eef8 6a67 vcvt.f32.u32 s13, s15
  33902. 800e932: ed97 6a03 vldr s12, [r7, #12]
  33903. 800e936: eddf 5a78 vldr s11, [pc, #480] @ 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33904. 800e93a: eec6 7a25 vdiv.f32 s15, s12, s11
  33905. 800e93e: ee76 7aa7 vadd.f32 s15, s13, s15
  33906. 800e942: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33907. 800e946: ee77 7aa6 vadd.f32 s15, s15, s13
  33908. 800e94a: ee67 7a27 vmul.f32 s15, s14, s15
  33909. 800e94e: edc7 7a07 vstr s15, [r7, #28]
  33910. }
  33911. else
  33912. {
  33913. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33914. }
  33915. break;
  33916. 800e952: e087 b.n 800ea64 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33917. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33918. 800e954: 697b ldr r3, [r7, #20]
  33919. 800e956: ee07 3a90 vmov s15, r3
  33920. 800e95a: eef8 7a67 vcvt.f32.u32 s15, s15
  33921. 800e95e: eddf 6a6f vldr s13, [pc, #444] @ 800eb1c <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  33922. 800e962: ee86 7aa7 vdiv.f32 s14, s13, s15
  33923. 800e966: 4b6a ldr r3, [pc, #424] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33924. 800e968: 6b9b ldr r3, [r3, #56] @ 0x38
  33925. 800e96a: f3c3 0308 ubfx r3, r3, #0, #9
  33926. 800e96e: ee07 3a90 vmov s15, r3
  33927. 800e972: eef8 6a67 vcvt.f32.u32 s13, s15
  33928. 800e976: ed97 6a03 vldr s12, [r7, #12]
  33929. 800e97a: eddf 5a67 vldr s11, [pc, #412] @ 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33930. 800e97e: eec6 7a25 vdiv.f32 s15, s12, s11
  33931. 800e982: ee76 7aa7 vadd.f32 s15, s13, s15
  33932. 800e986: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33933. 800e98a: ee77 7aa6 vadd.f32 s15, s15, s13
  33934. 800e98e: ee67 7a27 vmul.f32 s15, s14, s15
  33935. 800e992: edc7 7a07 vstr s15, [r7, #28]
  33936. break;
  33937. 800e996: e065 b.n 800ea64 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33938. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33939. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33940. 800e998: 697b ldr r3, [r7, #20]
  33941. 800e99a: ee07 3a90 vmov s15, r3
  33942. 800e99e: eef8 7a67 vcvt.f32.u32 s15, s15
  33943. 800e9a2: eddf 6a5f vldr s13, [pc, #380] @ 800eb20 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33944. 800e9a6: ee86 7aa7 vdiv.f32 s14, s13, s15
  33945. 800e9aa: 4b59 ldr r3, [pc, #356] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33946. 800e9ac: 6b9b ldr r3, [r3, #56] @ 0x38
  33947. 800e9ae: f3c3 0308 ubfx r3, r3, #0, #9
  33948. 800e9b2: ee07 3a90 vmov s15, r3
  33949. 800e9b6: eef8 6a67 vcvt.f32.u32 s13, s15
  33950. 800e9ba: ed97 6a03 vldr s12, [r7, #12]
  33951. 800e9be: eddf 5a56 vldr s11, [pc, #344] @ 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33952. 800e9c2: eec6 7a25 vdiv.f32 s15, s12, s11
  33953. 800e9c6: ee76 7aa7 vadd.f32 s15, s13, s15
  33954. 800e9ca: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33955. 800e9ce: ee77 7aa6 vadd.f32 s15, s15, s13
  33956. 800e9d2: ee67 7a27 vmul.f32 s15, s14, s15
  33957. 800e9d6: edc7 7a07 vstr s15, [r7, #28]
  33958. break;
  33959. 800e9da: e043 b.n 800ea64 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33960. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33961. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33962. 800e9dc: 697b ldr r3, [r7, #20]
  33963. 800e9de: ee07 3a90 vmov s15, r3
  33964. 800e9e2: eef8 7a67 vcvt.f32.u32 s15, s15
  33965. 800e9e6: eddf 6a4f vldr s13, [pc, #316] @ 800eb24 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  33966. 800e9ea: ee86 7aa7 vdiv.f32 s14, s13, s15
  33967. 800e9ee: 4b48 ldr r3, [pc, #288] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33968. 800e9f0: 6b9b ldr r3, [r3, #56] @ 0x38
  33969. 800e9f2: f3c3 0308 ubfx r3, r3, #0, #9
  33970. 800e9f6: ee07 3a90 vmov s15, r3
  33971. 800e9fa: eef8 6a67 vcvt.f32.u32 s13, s15
  33972. 800e9fe: ed97 6a03 vldr s12, [r7, #12]
  33973. 800ea02: eddf 5a45 vldr s11, [pc, #276] @ 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33974. 800ea06: eec6 7a25 vdiv.f32 s15, s12, s11
  33975. 800ea0a: ee76 7aa7 vadd.f32 s15, s13, s15
  33976. 800ea0e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33977. 800ea12: ee77 7aa6 vadd.f32 s15, s15, s13
  33978. 800ea16: ee67 7a27 vmul.f32 s15, s14, s15
  33979. 800ea1a: edc7 7a07 vstr s15, [r7, #28]
  33980. break;
  33981. 800ea1e: e021 b.n 800ea64 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33982. default:
  33983. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33984. 800ea20: 697b ldr r3, [r7, #20]
  33985. 800ea22: ee07 3a90 vmov s15, r3
  33986. 800ea26: eef8 7a67 vcvt.f32.u32 s15, s15
  33987. 800ea2a: eddf 6a3d vldr s13, [pc, #244] @ 800eb20 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33988. 800ea2e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33989. 800ea32: 4b37 ldr r3, [pc, #220] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33990. 800ea34: 6b9b ldr r3, [r3, #56] @ 0x38
  33991. 800ea36: f3c3 0308 ubfx r3, r3, #0, #9
  33992. 800ea3a: ee07 3a90 vmov s15, r3
  33993. 800ea3e: eef8 6a67 vcvt.f32.u32 s13, s15
  33994. 800ea42: ed97 6a03 vldr s12, [r7, #12]
  33995. 800ea46: eddf 5a34 vldr s11, [pc, #208] @ 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33996. 800ea4a: eec6 7a25 vdiv.f32 s15, s12, s11
  33997. 800ea4e: ee76 7aa7 vadd.f32 s15, s13, s15
  33998. 800ea52: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33999. 800ea56: ee77 7aa6 vadd.f32 s15, s15, s13
  34000. 800ea5a: ee67 7a27 vmul.f32 s15, s14, s15
  34001. 800ea5e: edc7 7a07 vstr s15, [r7, #28]
  34002. break;
  34003. 800ea62: bf00 nop
  34004. }
  34005. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  34006. 800ea64: 4b2a ldr r3, [pc, #168] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34007. 800ea66: 6b9b ldr r3, [r3, #56] @ 0x38
  34008. 800ea68: 0a5b lsrs r3, r3, #9
  34009. 800ea6a: f003 037f and.w r3, r3, #127 @ 0x7f
  34010. 800ea6e: ee07 3a90 vmov s15, r3
  34011. 800ea72: eef8 7a67 vcvt.f32.u32 s15, s15
  34012. 800ea76: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34013. 800ea7a: ee37 7a87 vadd.f32 s14, s15, s14
  34014. 800ea7e: edd7 6a07 vldr s13, [r7, #28]
  34015. 800ea82: eec6 7a87 vdiv.f32 s15, s13, s14
  34016. 800ea86: eefc 7ae7 vcvt.u32.f32 s15, s15
  34017. 800ea8a: ee17 2a90 vmov r2, s15
  34018. 800ea8e: 687b ldr r3, [r7, #4]
  34019. 800ea90: 601a str r2, [r3, #0]
  34020. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  34021. 800ea92: 4b1f ldr r3, [pc, #124] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34022. 800ea94: 6b9b ldr r3, [r3, #56] @ 0x38
  34023. 800ea96: 0c1b lsrs r3, r3, #16
  34024. 800ea98: f003 037f and.w r3, r3, #127 @ 0x7f
  34025. 800ea9c: ee07 3a90 vmov s15, r3
  34026. 800eaa0: eef8 7a67 vcvt.f32.u32 s15, s15
  34027. 800eaa4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34028. 800eaa8: ee37 7a87 vadd.f32 s14, s15, s14
  34029. 800eaac: edd7 6a07 vldr s13, [r7, #28]
  34030. 800eab0: eec6 7a87 vdiv.f32 s15, s13, s14
  34031. 800eab4: eefc 7ae7 vcvt.u32.f32 s15, s15
  34032. 800eab8: ee17 2a90 vmov r2, s15
  34033. 800eabc: 687b ldr r3, [r7, #4]
  34034. 800eabe: 605a str r2, [r3, #4]
  34035. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  34036. 800eac0: 4b13 ldr r3, [pc, #76] @ (800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34037. 800eac2: 6b9b ldr r3, [r3, #56] @ 0x38
  34038. 800eac4: 0e1b lsrs r3, r3, #24
  34039. 800eac6: f003 037f and.w r3, r3, #127 @ 0x7f
  34040. 800eaca: ee07 3a90 vmov s15, r3
  34041. 800eace: eef8 7a67 vcvt.f32.u32 s15, s15
  34042. 800ead2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34043. 800ead6: ee37 7a87 vadd.f32 s14, s15, s14
  34044. 800eada: edd7 6a07 vldr s13, [r7, #28]
  34045. 800eade: eec6 7a87 vdiv.f32 s15, s13, s14
  34046. 800eae2: eefc 7ae7 vcvt.u32.f32 s15, s15
  34047. 800eae6: ee17 2a90 vmov r2, s15
  34048. 800eaea: 687b ldr r3, [r7, #4]
  34049. 800eaec: 609a str r2, [r3, #8]
  34050. {
  34051. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34052. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34053. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34054. }
  34055. }
  34056. 800eaee: e008 b.n 800eb02 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  34057. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34058. 800eaf0: 687b ldr r3, [r7, #4]
  34059. 800eaf2: 2200 movs r2, #0
  34060. 800eaf4: 601a str r2, [r3, #0]
  34061. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34062. 800eaf6: 687b ldr r3, [r7, #4]
  34063. 800eaf8: 2200 movs r2, #0
  34064. 800eafa: 605a str r2, [r3, #4]
  34065. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34066. 800eafc: 687b ldr r3, [r7, #4]
  34067. 800eafe: 2200 movs r2, #0
  34068. 800eb00: 609a str r2, [r3, #8]
  34069. }
  34070. 800eb02: bf00 nop
  34071. 800eb04: 3724 adds r7, #36 @ 0x24
  34072. 800eb06: 46bd mov sp, r7
  34073. 800eb08: f85d 7b04 ldr.w r7, [sp], #4
  34074. 800eb0c: 4770 bx lr
  34075. 800eb0e: bf00 nop
  34076. 800eb10: 58024400 .word 0x58024400
  34077. 800eb14: 03d09000 .word 0x03d09000
  34078. 800eb18: 46000000 .word 0x46000000
  34079. 800eb1c: 4c742400 .word 0x4c742400
  34080. 800eb20: 4a742400 .word 0x4a742400
  34081. 800eb24: 4bbebc20 .word 0x4bbebc20
  34082. 0800eb28 <HAL_RCCEx_GetPLL3ClockFreq>:
  34083. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  34084. * @param PLL3_Clocks structure.
  34085. * @retval None
  34086. */
  34087. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  34088. {
  34089. 800eb28: b480 push {r7}
  34090. 800eb2a: b089 sub sp, #36 @ 0x24
  34091. 800eb2c: af00 add r7, sp, #0
  34092. 800eb2e: 6078 str r0, [r7, #4]
  34093. float_t fracn3, pll3vco;
  34094. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  34095. PLL3xCLK = PLL3_VCO / PLLxR
  34096. */
  34097. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34098. 800eb30: 4ba1 ldr r3, [pc, #644] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34099. 800eb32: 6a9b ldr r3, [r3, #40] @ 0x28
  34100. 800eb34: f003 0303 and.w r3, r3, #3
  34101. 800eb38: 61bb str r3, [r7, #24]
  34102. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  34103. 800eb3a: 4b9f ldr r3, [pc, #636] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34104. 800eb3c: 6a9b ldr r3, [r3, #40] @ 0x28
  34105. 800eb3e: 0d1b lsrs r3, r3, #20
  34106. 800eb40: f003 033f and.w r3, r3, #63 @ 0x3f
  34107. 800eb44: 617b str r3, [r7, #20]
  34108. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  34109. 800eb46: 4b9c ldr r3, [pc, #624] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34110. 800eb48: 6adb ldr r3, [r3, #44] @ 0x2c
  34111. 800eb4a: 0a1b lsrs r3, r3, #8
  34112. 800eb4c: f003 0301 and.w r3, r3, #1
  34113. 800eb50: 613b str r3, [r7, #16]
  34114. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  34115. 800eb52: 4b99 ldr r3, [pc, #612] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34116. 800eb54: 6c5b ldr r3, [r3, #68] @ 0x44
  34117. 800eb56: 08db lsrs r3, r3, #3
  34118. 800eb58: f3c3 030c ubfx r3, r3, #0, #13
  34119. 800eb5c: 693a ldr r2, [r7, #16]
  34120. 800eb5e: fb02 f303 mul.w r3, r2, r3
  34121. 800eb62: ee07 3a90 vmov s15, r3
  34122. 800eb66: eef8 7a67 vcvt.f32.u32 s15, s15
  34123. 800eb6a: edc7 7a03 vstr s15, [r7, #12]
  34124. if (pll3m != 0U)
  34125. 800eb6e: 697b ldr r3, [r7, #20]
  34126. 800eb70: 2b00 cmp r3, #0
  34127. 800eb72: f000 8111 beq.w 800ed98 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  34128. {
  34129. switch (pllsource)
  34130. 800eb76: 69bb ldr r3, [r7, #24]
  34131. 800eb78: 2b02 cmp r3, #2
  34132. 800eb7a: f000 8083 beq.w 800ec84 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  34133. 800eb7e: 69bb ldr r3, [r7, #24]
  34134. 800eb80: 2b02 cmp r3, #2
  34135. 800eb82: f200 80a1 bhi.w 800ecc8 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34136. 800eb86: 69bb ldr r3, [r7, #24]
  34137. 800eb88: 2b00 cmp r3, #0
  34138. 800eb8a: d003 beq.n 800eb94 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  34139. 800eb8c: 69bb ldr r3, [r7, #24]
  34140. 800eb8e: 2b01 cmp r3, #1
  34141. 800eb90: d056 beq.n 800ec40 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  34142. 800eb92: e099 b.n 800ecc8 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34143. {
  34144. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34145. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34146. 800eb94: 4b88 ldr r3, [pc, #544] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34147. 800eb96: 681b ldr r3, [r3, #0]
  34148. 800eb98: f003 0320 and.w r3, r3, #32
  34149. 800eb9c: 2b00 cmp r3, #0
  34150. 800eb9e: d02d beq.n 800ebfc <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  34151. {
  34152. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34153. 800eba0: 4b85 ldr r3, [pc, #532] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34154. 800eba2: 681b ldr r3, [r3, #0]
  34155. 800eba4: 08db lsrs r3, r3, #3
  34156. 800eba6: f003 0303 and.w r3, r3, #3
  34157. 800ebaa: 4a84 ldr r2, [pc, #528] @ (800edbc <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  34158. 800ebac: fa22 f303 lsr.w r3, r2, r3
  34159. 800ebb0: 60bb str r3, [r7, #8]
  34160. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34161. 800ebb2: 68bb ldr r3, [r7, #8]
  34162. 800ebb4: ee07 3a90 vmov s15, r3
  34163. 800ebb8: eef8 6a67 vcvt.f32.u32 s13, s15
  34164. 800ebbc: 697b ldr r3, [r7, #20]
  34165. 800ebbe: ee07 3a90 vmov s15, r3
  34166. 800ebc2: eef8 7a67 vcvt.f32.u32 s15, s15
  34167. 800ebc6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34168. 800ebca: 4b7b ldr r3, [pc, #492] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34169. 800ebcc: 6c1b ldr r3, [r3, #64] @ 0x40
  34170. 800ebce: f3c3 0308 ubfx r3, r3, #0, #9
  34171. 800ebd2: ee07 3a90 vmov s15, r3
  34172. 800ebd6: eef8 6a67 vcvt.f32.u32 s13, s15
  34173. 800ebda: ed97 6a03 vldr s12, [r7, #12]
  34174. 800ebde: eddf 5a78 vldr s11, [pc, #480] @ 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34175. 800ebe2: eec6 7a25 vdiv.f32 s15, s12, s11
  34176. 800ebe6: ee76 7aa7 vadd.f32 s15, s13, s15
  34177. 800ebea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34178. 800ebee: ee77 7aa6 vadd.f32 s15, s15, s13
  34179. 800ebf2: ee67 7a27 vmul.f32 s15, s14, s15
  34180. 800ebf6: edc7 7a07 vstr s15, [r7, #28]
  34181. }
  34182. else
  34183. {
  34184. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34185. }
  34186. break;
  34187. 800ebfa: e087 b.n 800ed0c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34188. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34189. 800ebfc: 697b ldr r3, [r7, #20]
  34190. 800ebfe: ee07 3a90 vmov s15, r3
  34191. 800ec02: eef8 7a67 vcvt.f32.u32 s15, s15
  34192. 800ec06: eddf 6a6f vldr s13, [pc, #444] @ 800edc4 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  34193. 800ec0a: ee86 7aa7 vdiv.f32 s14, s13, s15
  34194. 800ec0e: 4b6a ldr r3, [pc, #424] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34195. 800ec10: 6c1b ldr r3, [r3, #64] @ 0x40
  34196. 800ec12: f3c3 0308 ubfx r3, r3, #0, #9
  34197. 800ec16: ee07 3a90 vmov s15, r3
  34198. 800ec1a: eef8 6a67 vcvt.f32.u32 s13, s15
  34199. 800ec1e: ed97 6a03 vldr s12, [r7, #12]
  34200. 800ec22: eddf 5a67 vldr s11, [pc, #412] @ 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34201. 800ec26: eec6 7a25 vdiv.f32 s15, s12, s11
  34202. 800ec2a: ee76 7aa7 vadd.f32 s15, s13, s15
  34203. 800ec2e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34204. 800ec32: ee77 7aa6 vadd.f32 s15, s15, s13
  34205. 800ec36: ee67 7a27 vmul.f32 s15, s14, s15
  34206. 800ec3a: edc7 7a07 vstr s15, [r7, #28]
  34207. break;
  34208. 800ec3e: e065 b.n 800ed0c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34209. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34210. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34211. 800ec40: 697b ldr r3, [r7, #20]
  34212. 800ec42: ee07 3a90 vmov s15, r3
  34213. 800ec46: eef8 7a67 vcvt.f32.u32 s15, s15
  34214. 800ec4a: eddf 6a5f vldr s13, [pc, #380] @ 800edc8 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34215. 800ec4e: ee86 7aa7 vdiv.f32 s14, s13, s15
  34216. 800ec52: 4b59 ldr r3, [pc, #356] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34217. 800ec54: 6c1b ldr r3, [r3, #64] @ 0x40
  34218. 800ec56: f3c3 0308 ubfx r3, r3, #0, #9
  34219. 800ec5a: ee07 3a90 vmov s15, r3
  34220. 800ec5e: eef8 6a67 vcvt.f32.u32 s13, s15
  34221. 800ec62: ed97 6a03 vldr s12, [r7, #12]
  34222. 800ec66: eddf 5a56 vldr s11, [pc, #344] @ 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34223. 800ec6a: eec6 7a25 vdiv.f32 s15, s12, s11
  34224. 800ec6e: ee76 7aa7 vadd.f32 s15, s13, s15
  34225. 800ec72: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34226. 800ec76: ee77 7aa6 vadd.f32 s15, s15, s13
  34227. 800ec7a: ee67 7a27 vmul.f32 s15, s14, s15
  34228. 800ec7e: edc7 7a07 vstr s15, [r7, #28]
  34229. break;
  34230. 800ec82: e043 b.n 800ed0c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34231. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34232. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34233. 800ec84: 697b ldr r3, [r7, #20]
  34234. 800ec86: ee07 3a90 vmov s15, r3
  34235. 800ec8a: eef8 7a67 vcvt.f32.u32 s15, s15
  34236. 800ec8e: eddf 6a4f vldr s13, [pc, #316] @ 800edcc <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  34237. 800ec92: ee86 7aa7 vdiv.f32 s14, s13, s15
  34238. 800ec96: 4b48 ldr r3, [pc, #288] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34239. 800ec98: 6c1b ldr r3, [r3, #64] @ 0x40
  34240. 800ec9a: f3c3 0308 ubfx r3, r3, #0, #9
  34241. 800ec9e: ee07 3a90 vmov s15, r3
  34242. 800eca2: eef8 6a67 vcvt.f32.u32 s13, s15
  34243. 800eca6: ed97 6a03 vldr s12, [r7, #12]
  34244. 800ecaa: eddf 5a45 vldr s11, [pc, #276] @ 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34245. 800ecae: eec6 7a25 vdiv.f32 s15, s12, s11
  34246. 800ecb2: ee76 7aa7 vadd.f32 s15, s13, s15
  34247. 800ecb6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34248. 800ecba: ee77 7aa6 vadd.f32 s15, s15, s13
  34249. 800ecbe: ee67 7a27 vmul.f32 s15, s14, s15
  34250. 800ecc2: edc7 7a07 vstr s15, [r7, #28]
  34251. break;
  34252. 800ecc6: e021 b.n 800ed0c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34253. default:
  34254. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34255. 800ecc8: 697b ldr r3, [r7, #20]
  34256. 800ecca: ee07 3a90 vmov s15, r3
  34257. 800ecce: eef8 7a67 vcvt.f32.u32 s15, s15
  34258. 800ecd2: eddf 6a3d vldr s13, [pc, #244] @ 800edc8 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34259. 800ecd6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34260. 800ecda: 4b37 ldr r3, [pc, #220] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34261. 800ecdc: 6c1b ldr r3, [r3, #64] @ 0x40
  34262. 800ecde: f3c3 0308 ubfx r3, r3, #0, #9
  34263. 800ece2: ee07 3a90 vmov s15, r3
  34264. 800ece6: eef8 6a67 vcvt.f32.u32 s13, s15
  34265. 800ecea: ed97 6a03 vldr s12, [r7, #12]
  34266. 800ecee: eddf 5a34 vldr s11, [pc, #208] @ 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34267. 800ecf2: eec6 7a25 vdiv.f32 s15, s12, s11
  34268. 800ecf6: ee76 7aa7 vadd.f32 s15, s13, s15
  34269. 800ecfa: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34270. 800ecfe: ee77 7aa6 vadd.f32 s15, s15, s13
  34271. 800ed02: ee67 7a27 vmul.f32 s15, s14, s15
  34272. 800ed06: edc7 7a07 vstr s15, [r7, #28]
  34273. break;
  34274. 800ed0a: bf00 nop
  34275. }
  34276. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  34277. 800ed0c: 4b2a ldr r3, [pc, #168] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34278. 800ed0e: 6c1b ldr r3, [r3, #64] @ 0x40
  34279. 800ed10: 0a5b lsrs r3, r3, #9
  34280. 800ed12: f003 037f and.w r3, r3, #127 @ 0x7f
  34281. 800ed16: ee07 3a90 vmov s15, r3
  34282. 800ed1a: eef8 7a67 vcvt.f32.u32 s15, s15
  34283. 800ed1e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34284. 800ed22: ee37 7a87 vadd.f32 s14, s15, s14
  34285. 800ed26: edd7 6a07 vldr s13, [r7, #28]
  34286. 800ed2a: eec6 7a87 vdiv.f32 s15, s13, s14
  34287. 800ed2e: eefc 7ae7 vcvt.u32.f32 s15, s15
  34288. 800ed32: ee17 2a90 vmov r2, s15
  34289. 800ed36: 687b ldr r3, [r7, #4]
  34290. 800ed38: 601a str r2, [r3, #0]
  34291. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  34292. 800ed3a: 4b1f ldr r3, [pc, #124] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34293. 800ed3c: 6c1b ldr r3, [r3, #64] @ 0x40
  34294. 800ed3e: 0c1b lsrs r3, r3, #16
  34295. 800ed40: f003 037f and.w r3, r3, #127 @ 0x7f
  34296. 800ed44: ee07 3a90 vmov s15, r3
  34297. 800ed48: eef8 7a67 vcvt.f32.u32 s15, s15
  34298. 800ed4c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34299. 800ed50: ee37 7a87 vadd.f32 s14, s15, s14
  34300. 800ed54: edd7 6a07 vldr s13, [r7, #28]
  34301. 800ed58: eec6 7a87 vdiv.f32 s15, s13, s14
  34302. 800ed5c: eefc 7ae7 vcvt.u32.f32 s15, s15
  34303. 800ed60: ee17 2a90 vmov r2, s15
  34304. 800ed64: 687b ldr r3, [r7, #4]
  34305. 800ed66: 605a str r2, [r3, #4]
  34306. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  34307. 800ed68: 4b13 ldr r3, [pc, #76] @ (800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34308. 800ed6a: 6c1b ldr r3, [r3, #64] @ 0x40
  34309. 800ed6c: 0e1b lsrs r3, r3, #24
  34310. 800ed6e: f003 037f and.w r3, r3, #127 @ 0x7f
  34311. 800ed72: ee07 3a90 vmov s15, r3
  34312. 800ed76: eef8 7a67 vcvt.f32.u32 s15, s15
  34313. 800ed7a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34314. 800ed7e: ee37 7a87 vadd.f32 s14, s15, s14
  34315. 800ed82: edd7 6a07 vldr s13, [r7, #28]
  34316. 800ed86: eec6 7a87 vdiv.f32 s15, s13, s14
  34317. 800ed8a: eefc 7ae7 vcvt.u32.f32 s15, s15
  34318. 800ed8e: ee17 2a90 vmov r2, s15
  34319. 800ed92: 687b ldr r3, [r7, #4]
  34320. 800ed94: 609a str r2, [r3, #8]
  34321. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34322. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34323. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34324. }
  34325. }
  34326. 800ed96: e008 b.n 800edaa <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  34327. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34328. 800ed98: 687b ldr r3, [r7, #4]
  34329. 800ed9a: 2200 movs r2, #0
  34330. 800ed9c: 601a str r2, [r3, #0]
  34331. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34332. 800ed9e: 687b ldr r3, [r7, #4]
  34333. 800eda0: 2200 movs r2, #0
  34334. 800eda2: 605a str r2, [r3, #4]
  34335. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34336. 800eda4: 687b ldr r3, [r7, #4]
  34337. 800eda6: 2200 movs r2, #0
  34338. 800eda8: 609a str r2, [r3, #8]
  34339. }
  34340. 800edaa: bf00 nop
  34341. 800edac: 3724 adds r7, #36 @ 0x24
  34342. 800edae: 46bd mov sp, r7
  34343. 800edb0: f85d 7b04 ldr.w r7, [sp], #4
  34344. 800edb4: 4770 bx lr
  34345. 800edb6: bf00 nop
  34346. 800edb8: 58024400 .word 0x58024400
  34347. 800edbc: 03d09000 .word 0x03d09000
  34348. 800edc0: 46000000 .word 0x46000000
  34349. 800edc4: 4c742400 .word 0x4c742400
  34350. 800edc8: 4a742400 .word 0x4a742400
  34351. 800edcc: 4bbebc20 .word 0x4bbebc20
  34352. 0800edd0 <HAL_RCCEx_GetPLL1ClockFreq>:
  34353. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  34354. * @param PLL1_Clocks structure.
  34355. * @retval None
  34356. */
  34357. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  34358. {
  34359. 800edd0: b480 push {r7}
  34360. 800edd2: b089 sub sp, #36 @ 0x24
  34361. 800edd4: af00 add r7, sp, #0
  34362. 800edd6: 6078 str r0, [r7, #4]
  34363. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  34364. float_t fracn1, pll1vco;
  34365. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34366. 800edd8: 4ba0 ldr r3, [pc, #640] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34367. 800edda: 6a9b ldr r3, [r3, #40] @ 0x28
  34368. 800eddc: f003 0303 and.w r3, r3, #3
  34369. 800ede0: 61bb str r3, [r7, #24]
  34370. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  34371. 800ede2: 4b9e ldr r3, [pc, #632] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34372. 800ede4: 6a9b ldr r3, [r3, #40] @ 0x28
  34373. 800ede6: 091b lsrs r3, r3, #4
  34374. 800ede8: f003 033f and.w r3, r3, #63 @ 0x3f
  34375. 800edec: 617b str r3, [r7, #20]
  34376. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  34377. 800edee: 4b9b ldr r3, [pc, #620] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34378. 800edf0: 6adb ldr r3, [r3, #44] @ 0x2c
  34379. 800edf2: f003 0301 and.w r3, r3, #1
  34380. 800edf6: 613b str r3, [r7, #16]
  34381. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  34382. 800edf8: 4b98 ldr r3, [pc, #608] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34383. 800edfa: 6b5b ldr r3, [r3, #52] @ 0x34
  34384. 800edfc: 08db lsrs r3, r3, #3
  34385. 800edfe: f3c3 030c ubfx r3, r3, #0, #13
  34386. 800ee02: 693a ldr r2, [r7, #16]
  34387. 800ee04: fb02 f303 mul.w r3, r2, r3
  34388. 800ee08: ee07 3a90 vmov s15, r3
  34389. 800ee0c: eef8 7a67 vcvt.f32.u32 s15, s15
  34390. 800ee10: edc7 7a03 vstr s15, [r7, #12]
  34391. if (pll1m != 0U)
  34392. 800ee14: 697b ldr r3, [r7, #20]
  34393. 800ee16: 2b00 cmp r3, #0
  34394. 800ee18: f000 8111 beq.w 800f03e <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  34395. {
  34396. switch (pllsource)
  34397. 800ee1c: 69bb ldr r3, [r7, #24]
  34398. 800ee1e: 2b02 cmp r3, #2
  34399. 800ee20: f000 8083 beq.w 800ef2a <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  34400. 800ee24: 69bb ldr r3, [r7, #24]
  34401. 800ee26: 2b02 cmp r3, #2
  34402. 800ee28: f200 80a1 bhi.w 800ef6e <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34403. 800ee2c: 69bb ldr r3, [r7, #24]
  34404. 800ee2e: 2b00 cmp r3, #0
  34405. 800ee30: d003 beq.n 800ee3a <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  34406. 800ee32: 69bb ldr r3, [r7, #24]
  34407. 800ee34: 2b01 cmp r3, #1
  34408. 800ee36: d056 beq.n 800eee6 <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  34409. 800ee38: e099 b.n 800ef6e <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34410. {
  34411. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34412. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34413. 800ee3a: 4b88 ldr r3, [pc, #544] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34414. 800ee3c: 681b ldr r3, [r3, #0]
  34415. 800ee3e: f003 0320 and.w r3, r3, #32
  34416. 800ee42: 2b00 cmp r3, #0
  34417. 800ee44: d02d beq.n 800eea2 <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  34418. {
  34419. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34420. 800ee46: 4b85 ldr r3, [pc, #532] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34421. 800ee48: 681b ldr r3, [r3, #0]
  34422. 800ee4a: 08db lsrs r3, r3, #3
  34423. 800ee4c: f003 0303 and.w r3, r3, #3
  34424. 800ee50: 4a83 ldr r2, [pc, #524] @ (800f060 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  34425. 800ee52: fa22 f303 lsr.w r3, r2, r3
  34426. 800ee56: 60bb str r3, [r7, #8]
  34427. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34428. 800ee58: 68bb ldr r3, [r7, #8]
  34429. 800ee5a: ee07 3a90 vmov s15, r3
  34430. 800ee5e: eef8 6a67 vcvt.f32.u32 s13, s15
  34431. 800ee62: 697b ldr r3, [r7, #20]
  34432. 800ee64: ee07 3a90 vmov s15, r3
  34433. 800ee68: eef8 7a67 vcvt.f32.u32 s15, s15
  34434. 800ee6c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34435. 800ee70: 4b7a ldr r3, [pc, #488] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34436. 800ee72: 6b1b ldr r3, [r3, #48] @ 0x30
  34437. 800ee74: f3c3 0308 ubfx r3, r3, #0, #9
  34438. 800ee78: ee07 3a90 vmov s15, r3
  34439. 800ee7c: eef8 6a67 vcvt.f32.u32 s13, s15
  34440. 800ee80: ed97 6a03 vldr s12, [r7, #12]
  34441. 800ee84: eddf 5a77 vldr s11, [pc, #476] @ 800f064 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34442. 800ee88: eec6 7a25 vdiv.f32 s15, s12, s11
  34443. 800ee8c: ee76 7aa7 vadd.f32 s15, s13, s15
  34444. 800ee90: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34445. 800ee94: ee77 7aa6 vadd.f32 s15, s15, s13
  34446. 800ee98: ee67 7a27 vmul.f32 s15, s14, s15
  34447. 800ee9c: edc7 7a07 vstr s15, [r7, #28]
  34448. }
  34449. else
  34450. {
  34451. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34452. }
  34453. break;
  34454. 800eea0: e087 b.n 800efb2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34455. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34456. 800eea2: 697b ldr r3, [r7, #20]
  34457. 800eea4: ee07 3a90 vmov s15, r3
  34458. 800eea8: eef8 7a67 vcvt.f32.u32 s15, s15
  34459. 800eeac: eddf 6a6e vldr s13, [pc, #440] @ 800f068 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34460. 800eeb0: ee86 7aa7 vdiv.f32 s14, s13, s15
  34461. 800eeb4: 4b69 ldr r3, [pc, #420] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34462. 800eeb6: 6b1b ldr r3, [r3, #48] @ 0x30
  34463. 800eeb8: f3c3 0308 ubfx r3, r3, #0, #9
  34464. 800eebc: ee07 3a90 vmov s15, r3
  34465. 800eec0: eef8 6a67 vcvt.f32.u32 s13, s15
  34466. 800eec4: ed97 6a03 vldr s12, [r7, #12]
  34467. 800eec8: eddf 5a66 vldr s11, [pc, #408] @ 800f064 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34468. 800eecc: eec6 7a25 vdiv.f32 s15, s12, s11
  34469. 800eed0: ee76 7aa7 vadd.f32 s15, s13, s15
  34470. 800eed4: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34471. 800eed8: ee77 7aa6 vadd.f32 s15, s15, s13
  34472. 800eedc: ee67 7a27 vmul.f32 s15, s14, s15
  34473. 800eee0: edc7 7a07 vstr s15, [r7, #28]
  34474. break;
  34475. 800eee4: e065 b.n 800efb2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34476. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34477. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34478. 800eee6: 697b ldr r3, [r7, #20]
  34479. 800eee8: ee07 3a90 vmov s15, r3
  34480. 800eeec: eef8 7a67 vcvt.f32.u32 s15, s15
  34481. 800eef0: eddf 6a5e vldr s13, [pc, #376] @ 800f06c <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  34482. 800eef4: ee86 7aa7 vdiv.f32 s14, s13, s15
  34483. 800eef8: 4b58 ldr r3, [pc, #352] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34484. 800eefa: 6b1b ldr r3, [r3, #48] @ 0x30
  34485. 800eefc: f3c3 0308 ubfx r3, r3, #0, #9
  34486. 800ef00: ee07 3a90 vmov s15, r3
  34487. 800ef04: eef8 6a67 vcvt.f32.u32 s13, s15
  34488. 800ef08: ed97 6a03 vldr s12, [r7, #12]
  34489. 800ef0c: eddf 5a55 vldr s11, [pc, #340] @ 800f064 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34490. 800ef10: eec6 7a25 vdiv.f32 s15, s12, s11
  34491. 800ef14: ee76 7aa7 vadd.f32 s15, s13, s15
  34492. 800ef18: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34493. 800ef1c: ee77 7aa6 vadd.f32 s15, s15, s13
  34494. 800ef20: ee67 7a27 vmul.f32 s15, s14, s15
  34495. 800ef24: edc7 7a07 vstr s15, [r7, #28]
  34496. break;
  34497. 800ef28: e043 b.n 800efb2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34498. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34499. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34500. 800ef2a: 697b ldr r3, [r7, #20]
  34501. 800ef2c: ee07 3a90 vmov s15, r3
  34502. 800ef30: eef8 7a67 vcvt.f32.u32 s15, s15
  34503. 800ef34: eddf 6a4e vldr s13, [pc, #312] @ 800f070 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  34504. 800ef38: ee86 7aa7 vdiv.f32 s14, s13, s15
  34505. 800ef3c: 4b47 ldr r3, [pc, #284] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34506. 800ef3e: 6b1b ldr r3, [r3, #48] @ 0x30
  34507. 800ef40: f3c3 0308 ubfx r3, r3, #0, #9
  34508. 800ef44: ee07 3a90 vmov s15, r3
  34509. 800ef48: eef8 6a67 vcvt.f32.u32 s13, s15
  34510. 800ef4c: ed97 6a03 vldr s12, [r7, #12]
  34511. 800ef50: eddf 5a44 vldr s11, [pc, #272] @ 800f064 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34512. 800ef54: eec6 7a25 vdiv.f32 s15, s12, s11
  34513. 800ef58: ee76 7aa7 vadd.f32 s15, s13, s15
  34514. 800ef5c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34515. 800ef60: ee77 7aa6 vadd.f32 s15, s15, s13
  34516. 800ef64: ee67 7a27 vmul.f32 s15, s14, s15
  34517. 800ef68: edc7 7a07 vstr s15, [r7, #28]
  34518. break;
  34519. 800ef6c: e021 b.n 800efb2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34520. default:
  34521. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34522. 800ef6e: 697b ldr r3, [r7, #20]
  34523. 800ef70: ee07 3a90 vmov s15, r3
  34524. 800ef74: eef8 7a67 vcvt.f32.u32 s15, s15
  34525. 800ef78: eddf 6a3b vldr s13, [pc, #236] @ 800f068 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34526. 800ef7c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34527. 800ef80: 4b36 ldr r3, [pc, #216] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34528. 800ef82: 6b1b ldr r3, [r3, #48] @ 0x30
  34529. 800ef84: f3c3 0308 ubfx r3, r3, #0, #9
  34530. 800ef88: ee07 3a90 vmov s15, r3
  34531. 800ef8c: eef8 6a67 vcvt.f32.u32 s13, s15
  34532. 800ef90: ed97 6a03 vldr s12, [r7, #12]
  34533. 800ef94: eddf 5a33 vldr s11, [pc, #204] @ 800f064 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34534. 800ef98: eec6 7a25 vdiv.f32 s15, s12, s11
  34535. 800ef9c: ee76 7aa7 vadd.f32 s15, s13, s15
  34536. 800efa0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34537. 800efa4: ee77 7aa6 vadd.f32 s15, s15, s13
  34538. 800efa8: ee67 7a27 vmul.f32 s15, s14, s15
  34539. 800efac: edc7 7a07 vstr s15, [r7, #28]
  34540. break;
  34541. 800efb0: bf00 nop
  34542. }
  34543. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  34544. 800efb2: 4b2a ldr r3, [pc, #168] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34545. 800efb4: 6b1b ldr r3, [r3, #48] @ 0x30
  34546. 800efb6: 0a5b lsrs r3, r3, #9
  34547. 800efb8: f003 037f and.w r3, r3, #127 @ 0x7f
  34548. 800efbc: ee07 3a90 vmov s15, r3
  34549. 800efc0: eef8 7a67 vcvt.f32.u32 s15, s15
  34550. 800efc4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34551. 800efc8: ee37 7a87 vadd.f32 s14, s15, s14
  34552. 800efcc: edd7 6a07 vldr s13, [r7, #28]
  34553. 800efd0: eec6 7a87 vdiv.f32 s15, s13, s14
  34554. 800efd4: eefc 7ae7 vcvt.u32.f32 s15, s15
  34555. 800efd8: ee17 2a90 vmov r2, s15
  34556. 800efdc: 687b ldr r3, [r7, #4]
  34557. 800efde: 601a str r2, [r3, #0]
  34558. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  34559. 800efe0: 4b1e ldr r3, [pc, #120] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34560. 800efe2: 6b1b ldr r3, [r3, #48] @ 0x30
  34561. 800efe4: 0c1b lsrs r3, r3, #16
  34562. 800efe6: f003 037f and.w r3, r3, #127 @ 0x7f
  34563. 800efea: ee07 3a90 vmov s15, r3
  34564. 800efee: eef8 7a67 vcvt.f32.u32 s15, s15
  34565. 800eff2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34566. 800eff6: ee37 7a87 vadd.f32 s14, s15, s14
  34567. 800effa: edd7 6a07 vldr s13, [r7, #28]
  34568. 800effe: eec6 7a87 vdiv.f32 s15, s13, s14
  34569. 800f002: eefc 7ae7 vcvt.u32.f32 s15, s15
  34570. 800f006: ee17 2a90 vmov r2, s15
  34571. 800f00a: 687b ldr r3, [r7, #4]
  34572. 800f00c: 605a str r2, [r3, #4]
  34573. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  34574. 800f00e: 4b13 ldr r3, [pc, #76] @ (800f05c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34575. 800f010: 6b1b ldr r3, [r3, #48] @ 0x30
  34576. 800f012: 0e1b lsrs r3, r3, #24
  34577. 800f014: f003 037f and.w r3, r3, #127 @ 0x7f
  34578. 800f018: ee07 3a90 vmov s15, r3
  34579. 800f01c: eef8 7a67 vcvt.f32.u32 s15, s15
  34580. 800f020: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34581. 800f024: ee37 7a87 vadd.f32 s14, s15, s14
  34582. 800f028: edd7 6a07 vldr s13, [r7, #28]
  34583. 800f02c: eec6 7a87 vdiv.f32 s15, s13, s14
  34584. 800f030: eefc 7ae7 vcvt.u32.f32 s15, s15
  34585. 800f034: ee17 2a90 vmov r2, s15
  34586. 800f038: 687b ldr r3, [r7, #4]
  34587. 800f03a: 609a str r2, [r3, #8]
  34588. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34589. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34590. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34591. }
  34592. }
  34593. 800f03c: e008 b.n 800f050 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  34594. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34595. 800f03e: 687b ldr r3, [r7, #4]
  34596. 800f040: 2200 movs r2, #0
  34597. 800f042: 601a str r2, [r3, #0]
  34598. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34599. 800f044: 687b ldr r3, [r7, #4]
  34600. 800f046: 2200 movs r2, #0
  34601. 800f048: 605a str r2, [r3, #4]
  34602. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34603. 800f04a: 687b ldr r3, [r7, #4]
  34604. 800f04c: 2200 movs r2, #0
  34605. 800f04e: 609a str r2, [r3, #8]
  34606. }
  34607. 800f050: bf00 nop
  34608. 800f052: 3724 adds r7, #36 @ 0x24
  34609. 800f054: 46bd mov sp, r7
  34610. 800f056: f85d 7b04 ldr.w r7, [sp], #4
  34611. 800f05a: 4770 bx lr
  34612. 800f05c: 58024400 .word 0x58024400
  34613. 800f060: 03d09000 .word 0x03d09000
  34614. 800f064: 46000000 .word 0x46000000
  34615. 800f068: 4c742400 .word 0x4c742400
  34616. 800f06c: 4a742400 .word 0x4a742400
  34617. 800f070: 4bbebc20 .word 0x4bbebc20
  34618. 0800f074 <RCCEx_PLL2_Config>:
  34619. * @note PLL2 is temporary disabled to apply new parameters
  34620. *
  34621. * @retval HAL status
  34622. */
  34623. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  34624. {
  34625. 800f074: b580 push {r7, lr}
  34626. 800f076: b084 sub sp, #16
  34627. 800f078: af00 add r7, sp, #0
  34628. 800f07a: 6078 str r0, [r7, #4]
  34629. 800f07c: 6039 str r1, [r7, #0]
  34630. uint32_t tickstart;
  34631. HAL_StatusTypeDef status = HAL_OK;
  34632. 800f07e: 2300 movs r3, #0
  34633. 800f080: 73fb strb r3, [r7, #15]
  34634. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  34635. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  34636. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  34637. /* Check that PLL2 OSC clock source is already set */
  34638. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34639. 800f082: 4b53 ldr r3, [pc, #332] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34640. 800f084: 6a9b ldr r3, [r3, #40] @ 0x28
  34641. 800f086: f003 0303 and.w r3, r3, #3
  34642. 800f08a: 2b03 cmp r3, #3
  34643. 800f08c: d101 bne.n 800f092 <RCCEx_PLL2_Config+0x1e>
  34644. {
  34645. return HAL_ERROR;
  34646. 800f08e: 2301 movs r3, #1
  34647. 800f090: e099 b.n 800f1c6 <RCCEx_PLL2_Config+0x152>
  34648. else
  34649. {
  34650. /* Disable PLL2. */
  34651. __HAL_RCC_PLL2_DISABLE();
  34652. 800f092: 4b4f ldr r3, [pc, #316] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34653. 800f094: 681b ldr r3, [r3, #0]
  34654. 800f096: 4a4e ldr r2, [pc, #312] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34655. 800f098: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34656. 800f09c: 6013 str r3, [r2, #0]
  34657. /* Get Start Tick*/
  34658. tickstart = HAL_GetTick();
  34659. 800f09e: f7f6 fead bl 8005dfc <HAL_GetTick>
  34660. 800f0a2: 60b8 str r0, [r7, #8]
  34661. /* Wait till PLL is disabled */
  34662. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34663. 800f0a4: e008 b.n 800f0b8 <RCCEx_PLL2_Config+0x44>
  34664. {
  34665. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34666. 800f0a6: f7f6 fea9 bl 8005dfc <HAL_GetTick>
  34667. 800f0aa: 4602 mov r2, r0
  34668. 800f0ac: 68bb ldr r3, [r7, #8]
  34669. 800f0ae: 1ad3 subs r3, r2, r3
  34670. 800f0b0: 2b02 cmp r3, #2
  34671. 800f0b2: d901 bls.n 800f0b8 <RCCEx_PLL2_Config+0x44>
  34672. {
  34673. return HAL_TIMEOUT;
  34674. 800f0b4: 2303 movs r3, #3
  34675. 800f0b6: e086 b.n 800f1c6 <RCCEx_PLL2_Config+0x152>
  34676. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34677. 800f0b8: 4b45 ldr r3, [pc, #276] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34678. 800f0ba: 681b ldr r3, [r3, #0]
  34679. 800f0bc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34680. 800f0c0: 2b00 cmp r3, #0
  34681. 800f0c2: d1f0 bne.n 800f0a6 <RCCEx_PLL2_Config+0x32>
  34682. }
  34683. }
  34684. /* Configure PLL2 multiplication and division factors. */
  34685. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  34686. 800f0c4: 4b42 ldr r3, [pc, #264] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34687. 800f0c6: 6a9b ldr r3, [r3, #40] @ 0x28
  34688. 800f0c8: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  34689. 800f0cc: 687b ldr r3, [r7, #4]
  34690. 800f0ce: 681b ldr r3, [r3, #0]
  34691. 800f0d0: 031b lsls r3, r3, #12
  34692. 800f0d2: 493f ldr r1, [pc, #252] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34693. 800f0d4: 4313 orrs r3, r2
  34694. 800f0d6: 628b str r3, [r1, #40] @ 0x28
  34695. 800f0d8: 687b ldr r3, [r7, #4]
  34696. 800f0da: 685b ldr r3, [r3, #4]
  34697. 800f0dc: 3b01 subs r3, #1
  34698. 800f0de: f3c3 0208 ubfx r2, r3, #0, #9
  34699. 800f0e2: 687b ldr r3, [r7, #4]
  34700. 800f0e4: 689b ldr r3, [r3, #8]
  34701. 800f0e6: 3b01 subs r3, #1
  34702. 800f0e8: 025b lsls r3, r3, #9
  34703. 800f0ea: b29b uxth r3, r3
  34704. 800f0ec: 431a orrs r2, r3
  34705. 800f0ee: 687b ldr r3, [r7, #4]
  34706. 800f0f0: 68db ldr r3, [r3, #12]
  34707. 800f0f2: 3b01 subs r3, #1
  34708. 800f0f4: 041b lsls r3, r3, #16
  34709. 800f0f6: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34710. 800f0fa: 431a orrs r2, r3
  34711. 800f0fc: 687b ldr r3, [r7, #4]
  34712. 800f0fe: 691b ldr r3, [r3, #16]
  34713. 800f100: 3b01 subs r3, #1
  34714. 800f102: 061b lsls r3, r3, #24
  34715. 800f104: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34716. 800f108: 4931 ldr r1, [pc, #196] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34717. 800f10a: 4313 orrs r3, r2
  34718. 800f10c: 638b str r3, [r1, #56] @ 0x38
  34719. pll2->PLL2P,
  34720. pll2->PLL2Q,
  34721. pll2->PLL2R);
  34722. /* Select PLL2 input reference frequency range: VCI */
  34723. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  34724. 800f10e: 4b30 ldr r3, [pc, #192] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34725. 800f110: 6adb ldr r3, [r3, #44] @ 0x2c
  34726. 800f112: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  34727. 800f116: 687b ldr r3, [r7, #4]
  34728. 800f118: 695b ldr r3, [r3, #20]
  34729. 800f11a: 492d ldr r1, [pc, #180] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34730. 800f11c: 4313 orrs r3, r2
  34731. 800f11e: 62cb str r3, [r1, #44] @ 0x2c
  34732. /* Select PLL2 output frequency range : VCO */
  34733. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  34734. 800f120: 4b2b ldr r3, [pc, #172] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34735. 800f122: 6adb ldr r3, [r3, #44] @ 0x2c
  34736. 800f124: f023 0220 bic.w r2, r3, #32
  34737. 800f128: 687b ldr r3, [r7, #4]
  34738. 800f12a: 699b ldr r3, [r3, #24]
  34739. 800f12c: 4928 ldr r1, [pc, #160] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34740. 800f12e: 4313 orrs r3, r2
  34741. 800f130: 62cb str r3, [r1, #44] @ 0x2c
  34742. /* Disable PLL2FRACN . */
  34743. __HAL_RCC_PLL2FRACN_DISABLE();
  34744. 800f132: 4b27 ldr r3, [pc, #156] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34745. 800f134: 6adb ldr r3, [r3, #44] @ 0x2c
  34746. 800f136: 4a26 ldr r2, [pc, #152] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34747. 800f138: f023 0310 bic.w r3, r3, #16
  34748. 800f13c: 62d3 str r3, [r2, #44] @ 0x2c
  34749. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  34750. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  34751. 800f13e: 4b24 ldr r3, [pc, #144] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34752. 800f140: 6bda ldr r2, [r3, #60] @ 0x3c
  34753. 800f142: 4b24 ldr r3, [pc, #144] @ (800f1d4 <RCCEx_PLL2_Config+0x160>)
  34754. 800f144: 4013 ands r3, r2
  34755. 800f146: 687a ldr r2, [r7, #4]
  34756. 800f148: 69d2 ldr r2, [r2, #28]
  34757. 800f14a: 00d2 lsls r2, r2, #3
  34758. 800f14c: 4920 ldr r1, [pc, #128] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34759. 800f14e: 4313 orrs r3, r2
  34760. 800f150: 63cb str r3, [r1, #60] @ 0x3c
  34761. /* Enable PLL2FRACN . */
  34762. __HAL_RCC_PLL2FRACN_ENABLE();
  34763. 800f152: 4b1f ldr r3, [pc, #124] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34764. 800f154: 6adb ldr r3, [r3, #44] @ 0x2c
  34765. 800f156: 4a1e ldr r2, [pc, #120] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34766. 800f158: f043 0310 orr.w r3, r3, #16
  34767. 800f15c: 62d3 str r3, [r2, #44] @ 0x2c
  34768. /* Enable the PLL2 clock output */
  34769. if (Divider == DIVIDER_P_UPDATE)
  34770. 800f15e: 683b ldr r3, [r7, #0]
  34771. 800f160: 2b00 cmp r3, #0
  34772. 800f162: d106 bne.n 800f172 <RCCEx_PLL2_Config+0xfe>
  34773. {
  34774. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  34775. 800f164: 4b1a ldr r3, [pc, #104] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34776. 800f166: 6adb ldr r3, [r3, #44] @ 0x2c
  34777. 800f168: 4a19 ldr r2, [pc, #100] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34778. 800f16a: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  34779. 800f16e: 62d3 str r3, [r2, #44] @ 0x2c
  34780. 800f170: e00f b.n 800f192 <RCCEx_PLL2_Config+0x11e>
  34781. }
  34782. else if (Divider == DIVIDER_Q_UPDATE)
  34783. 800f172: 683b ldr r3, [r7, #0]
  34784. 800f174: 2b01 cmp r3, #1
  34785. 800f176: d106 bne.n 800f186 <RCCEx_PLL2_Config+0x112>
  34786. {
  34787. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  34788. 800f178: 4b15 ldr r3, [pc, #84] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34789. 800f17a: 6adb ldr r3, [r3, #44] @ 0x2c
  34790. 800f17c: 4a14 ldr r2, [pc, #80] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34791. 800f17e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  34792. 800f182: 62d3 str r3, [r2, #44] @ 0x2c
  34793. 800f184: e005 b.n 800f192 <RCCEx_PLL2_Config+0x11e>
  34794. }
  34795. else
  34796. {
  34797. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  34798. 800f186: 4b12 ldr r3, [pc, #72] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34799. 800f188: 6adb ldr r3, [r3, #44] @ 0x2c
  34800. 800f18a: 4a11 ldr r2, [pc, #68] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34801. 800f18c: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  34802. 800f190: 62d3 str r3, [r2, #44] @ 0x2c
  34803. }
  34804. /* Enable PLL2. */
  34805. __HAL_RCC_PLL2_ENABLE();
  34806. 800f192: 4b0f ldr r3, [pc, #60] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34807. 800f194: 681b ldr r3, [r3, #0]
  34808. 800f196: 4a0e ldr r2, [pc, #56] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34809. 800f198: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  34810. 800f19c: 6013 str r3, [r2, #0]
  34811. /* Get Start Tick*/
  34812. tickstart = HAL_GetTick();
  34813. 800f19e: f7f6 fe2d bl 8005dfc <HAL_GetTick>
  34814. 800f1a2: 60b8 str r0, [r7, #8]
  34815. /* Wait till PLL2 is ready */
  34816. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34817. 800f1a4: e008 b.n 800f1b8 <RCCEx_PLL2_Config+0x144>
  34818. {
  34819. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34820. 800f1a6: f7f6 fe29 bl 8005dfc <HAL_GetTick>
  34821. 800f1aa: 4602 mov r2, r0
  34822. 800f1ac: 68bb ldr r3, [r7, #8]
  34823. 800f1ae: 1ad3 subs r3, r2, r3
  34824. 800f1b0: 2b02 cmp r3, #2
  34825. 800f1b2: d901 bls.n 800f1b8 <RCCEx_PLL2_Config+0x144>
  34826. {
  34827. return HAL_TIMEOUT;
  34828. 800f1b4: 2303 movs r3, #3
  34829. 800f1b6: e006 b.n 800f1c6 <RCCEx_PLL2_Config+0x152>
  34830. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34831. 800f1b8: 4b05 ldr r3, [pc, #20] @ (800f1d0 <RCCEx_PLL2_Config+0x15c>)
  34832. 800f1ba: 681b ldr r3, [r3, #0]
  34833. 800f1bc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34834. 800f1c0: 2b00 cmp r3, #0
  34835. 800f1c2: d0f0 beq.n 800f1a6 <RCCEx_PLL2_Config+0x132>
  34836. }
  34837. }
  34838. return status;
  34839. 800f1c4: 7bfb ldrb r3, [r7, #15]
  34840. }
  34841. 800f1c6: 4618 mov r0, r3
  34842. 800f1c8: 3710 adds r7, #16
  34843. 800f1ca: 46bd mov sp, r7
  34844. 800f1cc: bd80 pop {r7, pc}
  34845. 800f1ce: bf00 nop
  34846. 800f1d0: 58024400 .word 0x58024400
  34847. 800f1d4: ffff0007 .word 0xffff0007
  34848. 0800f1d8 <RCCEx_PLL3_Config>:
  34849. * @note PLL3 is temporary disabled to apply new parameters
  34850. *
  34851. * @retval HAL status
  34852. */
  34853. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  34854. {
  34855. 800f1d8: b580 push {r7, lr}
  34856. 800f1da: b084 sub sp, #16
  34857. 800f1dc: af00 add r7, sp, #0
  34858. 800f1de: 6078 str r0, [r7, #4]
  34859. 800f1e0: 6039 str r1, [r7, #0]
  34860. uint32_t tickstart;
  34861. HAL_StatusTypeDef status = HAL_OK;
  34862. 800f1e2: 2300 movs r3, #0
  34863. 800f1e4: 73fb strb r3, [r7, #15]
  34864. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  34865. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  34866. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  34867. /* Check that PLL3 OSC clock source is already set */
  34868. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34869. 800f1e6: 4b53 ldr r3, [pc, #332] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34870. 800f1e8: 6a9b ldr r3, [r3, #40] @ 0x28
  34871. 800f1ea: f003 0303 and.w r3, r3, #3
  34872. 800f1ee: 2b03 cmp r3, #3
  34873. 800f1f0: d101 bne.n 800f1f6 <RCCEx_PLL3_Config+0x1e>
  34874. {
  34875. return HAL_ERROR;
  34876. 800f1f2: 2301 movs r3, #1
  34877. 800f1f4: e099 b.n 800f32a <RCCEx_PLL3_Config+0x152>
  34878. else
  34879. {
  34880. /* Disable PLL3. */
  34881. __HAL_RCC_PLL3_DISABLE();
  34882. 800f1f6: 4b4f ldr r3, [pc, #316] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34883. 800f1f8: 681b ldr r3, [r3, #0]
  34884. 800f1fa: 4a4e ldr r2, [pc, #312] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34885. 800f1fc: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34886. 800f200: 6013 str r3, [r2, #0]
  34887. /* Get Start Tick*/
  34888. tickstart = HAL_GetTick();
  34889. 800f202: f7f6 fdfb bl 8005dfc <HAL_GetTick>
  34890. 800f206: 60b8 str r0, [r7, #8]
  34891. /* Wait till PLL3 is ready */
  34892. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34893. 800f208: e008 b.n 800f21c <RCCEx_PLL3_Config+0x44>
  34894. {
  34895. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34896. 800f20a: f7f6 fdf7 bl 8005dfc <HAL_GetTick>
  34897. 800f20e: 4602 mov r2, r0
  34898. 800f210: 68bb ldr r3, [r7, #8]
  34899. 800f212: 1ad3 subs r3, r2, r3
  34900. 800f214: 2b02 cmp r3, #2
  34901. 800f216: d901 bls.n 800f21c <RCCEx_PLL3_Config+0x44>
  34902. {
  34903. return HAL_TIMEOUT;
  34904. 800f218: 2303 movs r3, #3
  34905. 800f21a: e086 b.n 800f32a <RCCEx_PLL3_Config+0x152>
  34906. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34907. 800f21c: 4b45 ldr r3, [pc, #276] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34908. 800f21e: 681b ldr r3, [r3, #0]
  34909. 800f220: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34910. 800f224: 2b00 cmp r3, #0
  34911. 800f226: d1f0 bne.n 800f20a <RCCEx_PLL3_Config+0x32>
  34912. }
  34913. }
  34914. /* Configure the PLL3 multiplication and division factors. */
  34915. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  34916. 800f228: 4b42 ldr r3, [pc, #264] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34917. 800f22a: 6a9b ldr r3, [r3, #40] @ 0x28
  34918. 800f22c: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  34919. 800f230: 687b ldr r3, [r7, #4]
  34920. 800f232: 681b ldr r3, [r3, #0]
  34921. 800f234: 051b lsls r3, r3, #20
  34922. 800f236: 493f ldr r1, [pc, #252] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34923. 800f238: 4313 orrs r3, r2
  34924. 800f23a: 628b str r3, [r1, #40] @ 0x28
  34925. 800f23c: 687b ldr r3, [r7, #4]
  34926. 800f23e: 685b ldr r3, [r3, #4]
  34927. 800f240: 3b01 subs r3, #1
  34928. 800f242: f3c3 0208 ubfx r2, r3, #0, #9
  34929. 800f246: 687b ldr r3, [r7, #4]
  34930. 800f248: 689b ldr r3, [r3, #8]
  34931. 800f24a: 3b01 subs r3, #1
  34932. 800f24c: 025b lsls r3, r3, #9
  34933. 800f24e: b29b uxth r3, r3
  34934. 800f250: 431a orrs r2, r3
  34935. 800f252: 687b ldr r3, [r7, #4]
  34936. 800f254: 68db ldr r3, [r3, #12]
  34937. 800f256: 3b01 subs r3, #1
  34938. 800f258: 041b lsls r3, r3, #16
  34939. 800f25a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34940. 800f25e: 431a orrs r2, r3
  34941. 800f260: 687b ldr r3, [r7, #4]
  34942. 800f262: 691b ldr r3, [r3, #16]
  34943. 800f264: 3b01 subs r3, #1
  34944. 800f266: 061b lsls r3, r3, #24
  34945. 800f268: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34946. 800f26c: 4931 ldr r1, [pc, #196] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34947. 800f26e: 4313 orrs r3, r2
  34948. 800f270: 640b str r3, [r1, #64] @ 0x40
  34949. pll3->PLL3P,
  34950. pll3->PLL3Q,
  34951. pll3->PLL3R);
  34952. /* Select PLL3 input reference frequency range: VCI */
  34953. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  34954. 800f272: 4b30 ldr r3, [pc, #192] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34955. 800f274: 6adb ldr r3, [r3, #44] @ 0x2c
  34956. 800f276: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  34957. 800f27a: 687b ldr r3, [r7, #4]
  34958. 800f27c: 695b ldr r3, [r3, #20]
  34959. 800f27e: 492d ldr r1, [pc, #180] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34960. 800f280: 4313 orrs r3, r2
  34961. 800f282: 62cb str r3, [r1, #44] @ 0x2c
  34962. /* Select PLL3 output frequency range : VCO */
  34963. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  34964. 800f284: 4b2b ldr r3, [pc, #172] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34965. 800f286: 6adb ldr r3, [r3, #44] @ 0x2c
  34966. 800f288: f423 7200 bic.w r2, r3, #512 @ 0x200
  34967. 800f28c: 687b ldr r3, [r7, #4]
  34968. 800f28e: 699b ldr r3, [r3, #24]
  34969. 800f290: 4928 ldr r1, [pc, #160] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34970. 800f292: 4313 orrs r3, r2
  34971. 800f294: 62cb str r3, [r1, #44] @ 0x2c
  34972. /* Disable PLL3FRACN . */
  34973. __HAL_RCC_PLL3FRACN_DISABLE();
  34974. 800f296: 4b27 ldr r3, [pc, #156] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34975. 800f298: 6adb ldr r3, [r3, #44] @ 0x2c
  34976. 800f29a: 4a26 ldr r2, [pc, #152] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34977. 800f29c: f423 7380 bic.w r3, r3, #256 @ 0x100
  34978. 800f2a0: 62d3 str r3, [r2, #44] @ 0x2c
  34979. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  34980. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  34981. 800f2a2: 4b24 ldr r3, [pc, #144] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34982. 800f2a4: 6c5a ldr r2, [r3, #68] @ 0x44
  34983. 800f2a6: 4b24 ldr r3, [pc, #144] @ (800f338 <RCCEx_PLL3_Config+0x160>)
  34984. 800f2a8: 4013 ands r3, r2
  34985. 800f2aa: 687a ldr r2, [r7, #4]
  34986. 800f2ac: 69d2 ldr r2, [r2, #28]
  34987. 800f2ae: 00d2 lsls r2, r2, #3
  34988. 800f2b0: 4920 ldr r1, [pc, #128] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34989. 800f2b2: 4313 orrs r3, r2
  34990. 800f2b4: 644b str r3, [r1, #68] @ 0x44
  34991. /* Enable PLL3FRACN . */
  34992. __HAL_RCC_PLL3FRACN_ENABLE();
  34993. 800f2b6: 4b1f ldr r3, [pc, #124] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34994. 800f2b8: 6adb ldr r3, [r3, #44] @ 0x2c
  34995. 800f2ba: 4a1e ldr r2, [pc, #120] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  34996. 800f2bc: f443 7380 orr.w r3, r3, #256 @ 0x100
  34997. 800f2c0: 62d3 str r3, [r2, #44] @ 0x2c
  34998. /* Enable the PLL3 clock output */
  34999. if (Divider == DIVIDER_P_UPDATE)
  35000. 800f2c2: 683b ldr r3, [r7, #0]
  35001. 800f2c4: 2b00 cmp r3, #0
  35002. 800f2c6: d106 bne.n 800f2d6 <RCCEx_PLL3_Config+0xfe>
  35003. {
  35004. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  35005. 800f2c8: 4b1a ldr r3, [pc, #104] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35006. 800f2ca: 6adb ldr r3, [r3, #44] @ 0x2c
  35007. 800f2cc: 4a19 ldr r2, [pc, #100] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35008. 800f2ce: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  35009. 800f2d2: 62d3 str r3, [r2, #44] @ 0x2c
  35010. 800f2d4: e00f b.n 800f2f6 <RCCEx_PLL3_Config+0x11e>
  35011. }
  35012. else if (Divider == DIVIDER_Q_UPDATE)
  35013. 800f2d6: 683b ldr r3, [r7, #0]
  35014. 800f2d8: 2b01 cmp r3, #1
  35015. 800f2da: d106 bne.n 800f2ea <RCCEx_PLL3_Config+0x112>
  35016. {
  35017. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  35018. 800f2dc: 4b15 ldr r3, [pc, #84] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35019. 800f2de: 6adb ldr r3, [r3, #44] @ 0x2c
  35020. 800f2e0: 4a14 ldr r2, [pc, #80] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35021. 800f2e2: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  35022. 800f2e6: 62d3 str r3, [r2, #44] @ 0x2c
  35023. 800f2e8: e005 b.n 800f2f6 <RCCEx_PLL3_Config+0x11e>
  35024. }
  35025. else
  35026. {
  35027. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  35028. 800f2ea: 4b12 ldr r3, [pc, #72] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35029. 800f2ec: 6adb ldr r3, [r3, #44] @ 0x2c
  35030. 800f2ee: 4a11 ldr r2, [pc, #68] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35031. 800f2f0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  35032. 800f2f4: 62d3 str r3, [r2, #44] @ 0x2c
  35033. }
  35034. /* Enable PLL3. */
  35035. __HAL_RCC_PLL3_ENABLE();
  35036. 800f2f6: 4b0f ldr r3, [pc, #60] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35037. 800f2f8: 681b ldr r3, [r3, #0]
  35038. 800f2fa: 4a0e ldr r2, [pc, #56] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35039. 800f2fc: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  35040. 800f300: 6013 str r3, [r2, #0]
  35041. /* Get Start Tick*/
  35042. tickstart = HAL_GetTick();
  35043. 800f302: f7f6 fd7b bl 8005dfc <HAL_GetTick>
  35044. 800f306: 60b8 str r0, [r7, #8]
  35045. /* Wait till PLL3 is ready */
  35046. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35047. 800f308: e008 b.n 800f31c <RCCEx_PLL3_Config+0x144>
  35048. {
  35049. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  35050. 800f30a: f7f6 fd77 bl 8005dfc <HAL_GetTick>
  35051. 800f30e: 4602 mov r2, r0
  35052. 800f310: 68bb ldr r3, [r7, #8]
  35053. 800f312: 1ad3 subs r3, r2, r3
  35054. 800f314: 2b02 cmp r3, #2
  35055. 800f316: d901 bls.n 800f31c <RCCEx_PLL3_Config+0x144>
  35056. {
  35057. return HAL_TIMEOUT;
  35058. 800f318: 2303 movs r3, #3
  35059. 800f31a: e006 b.n 800f32a <RCCEx_PLL3_Config+0x152>
  35060. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35061. 800f31c: 4b05 ldr r3, [pc, #20] @ (800f334 <RCCEx_PLL3_Config+0x15c>)
  35062. 800f31e: 681b ldr r3, [r3, #0]
  35063. 800f320: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  35064. 800f324: 2b00 cmp r3, #0
  35065. 800f326: d0f0 beq.n 800f30a <RCCEx_PLL3_Config+0x132>
  35066. }
  35067. }
  35068. return status;
  35069. 800f328: 7bfb ldrb r3, [r7, #15]
  35070. }
  35071. 800f32a: 4618 mov r0, r3
  35072. 800f32c: 3710 adds r7, #16
  35073. 800f32e: 46bd mov sp, r7
  35074. 800f330: bd80 pop {r7, pc}
  35075. 800f332: bf00 nop
  35076. 800f334: 58024400 .word 0x58024400
  35077. 800f338: ffff0007 .word 0xffff0007
  35078. 0800f33c <HAL_RNG_Init>:
  35079. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  35080. * the configuration information for RNG.
  35081. * @retval HAL status
  35082. */
  35083. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  35084. {
  35085. 800f33c: b580 push {r7, lr}
  35086. 800f33e: b084 sub sp, #16
  35087. 800f340: af00 add r7, sp, #0
  35088. 800f342: 6078 str r0, [r7, #4]
  35089. uint32_t tickstart;
  35090. /* Check the RNG handle allocation */
  35091. if (hrng == NULL)
  35092. 800f344: 687b ldr r3, [r7, #4]
  35093. 800f346: 2b00 cmp r3, #0
  35094. 800f348: d101 bne.n 800f34e <HAL_RNG_Init+0x12>
  35095. {
  35096. return HAL_ERROR;
  35097. 800f34a: 2301 movs r3, #1
  35098. 800f34c: e054 b.n 800f3f8 <HAL_RNG_Init+0xbc>
  35099. /* Init the low level hardware */
  35100. hrng->MspInitCallback(hrng);
  35101. }
  35102. #else
  35103. if (hrng->State == HAL_RNG_STATE_RESET)
  35104. 800f34e: 687b ldr r3, [r7, #4]
  35105. 800f350: 7a5b ldrb r3, [r3, #9]
  35106. 800f352: b2db uxtb r3, r3
  35107. 800f354: 2b00 cmp r3, #0
  35108. 800f356: d105 bne.n 800f364 <HAL_RNG_Init+0x28>
  35109. {
  35110. /* Allocate lock resource and initialize it */
  35111. hrng->Lock = HAL_UNLOCKED;
  35112. 800f358: 687b ldr r3, [r7, #4]
  35113. 800f35a: 2200 movs r2, #0
  35114. 800f35c: 721a strb r2, [r3, #8]
  35115. /* Init the low level hardware */
  35116. HAL_RNG_MspInit(hrng);
  35117. 800f35e: 6878 ldr r0, [r7, #4]
  35118. 800f360: f7f4 ff30 bl 80041c4 <HAL_RNG_MspInit>
  35119. }
  35120. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  35121. /* Change RNG peripheral state */
  35122. hrng->State = HAL_RNG_STATE_BUSY;
  35123. 800f364: 687b ldr r3, [r7, #4]
  35124. 800f366: 2202 movs r2, #2
  35125. 800f368: 725a strb r2, [r3, #9]
  35126. }
  35127. }
  35128. }
  35129. #else
  35130. /* Clock Error Detection Configuration */
  35131. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  35132. 800f36a: 687b ldr r3, [r7, #4]
  35133. 800f36c: 681b ldr r3, [r3, #0]
  35134. 800f36e: 681b ldr r3, [r3, #0]
  35135. 800f370: f023 0120 bic.w r1, r3, #32
  35136. 800f374: 687b ldr r3, [r7, #4]
  35137. 800f376: 685a ldr r2, [r3, #4]
  35138. 800f378: 687b ldr r3, [r7, #4]
  35139. 800f37a: 681b ldr r3, [r3, #0]
  35140. 800f37c: 430a orrs r2, r1
  35141. 800f37e: 601a str r2, [r3, #0]
  35142. #endif /* RNG_CR_CONDRST */
  35143. /* Enable the RNG Peripheral */
  35144. __HAL_RNG_ENABLE(hrng);
  35145. 800f380: 687b ldr r3, [r7, #4]
  35146. 800f382: 681b ldr r3, [r3, #0]
  35147. 800f384: 681a ldr r2, [r3, #0]
  35148. 800f386: 687b ldr r3, [r7, #4]
  35149. 800f388: 681b ldr r3, [r3, #0]
  35150. 800f38a: f042 0204 orr.w r2, r2, #4
  35151. 800f38e: 601a str r2, [r3, #0]
  35152. /* verify that no seed error */
  35153. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  35154. 800f390: 687b ldr r3, [r7, #4]
  35155. 800f392: 681b ldr r3, [r3, #0]
  35156. 800f394: 685b ldr r3, [r3, #4]
  35157. 800f396: f003 0340 and.w r3, r3, #64 @ 0x40
  35158. 800f39a: 2b40 cmp r3, #64 @ 0x40
  35159. 800f39c: d104 bne.n 800f3a8 <HAL_RNG_Init+0x6c>
  35160. {
  35161. hrng->State = HAL_RNG_STATE_ERROR;
  35162. 800f39e: 687b ldr r3, [r7, #4]
  35163. 800f3a0: 2204 movs r2, #4
  35164. 800f3a2: 725a strb r2, [r3, #9]
  35165. return HAL_ERROR;
  35166. 800f3a4: 2301 movs r3, #1
  35167. 800f3a6: e027 b.n 800f3f8 <HAL_RNG_Init+0xbc>
  35168. }
  35169. /* Get tick */
  35170. tickstart = HAL_GetTick();
  35171. 800f3a8: f7f6 fd28 bl 8005dfc <HAL_GetTick>
  35172. 800f3ac: 60f8 str r0, [r7, #12]
  35173. /* Check if data register contains valid random data */
  35174. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35175. 800f3ae: e015 b.n 800f3dc <HAL_RNG_Init+0xa0>
  35176. {
  35177. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  35178. 800f3b0: f7f6 fd24 bl 8005dfc <HAL_GetTick>
  35179. 800f3b4: 4602 mov r2, r0
  35180. 800f3b6: 68fb ldr r3, [r7, #12]
  35181. 800f3b8: 1ad3 subs r3, r2, r3
  35182. 800f3ba: 2b02 cmp r3, #2
  35183. 800f3bc: d90e bls.n 800f3dc <HAL_RNG_Init+0xa0>
  35184. {
  35185. /* New check to avoid false timeout detection in case of preemption */
  35186. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35187. 800f3be: 687b ldr r3, [r7, #4]
  35188. 800f3c0: 681b ldr r3, [r3, #0]
  35189. 800f3c2: 685b ldr r3, [r3, #4]
  35190. 800f3c4: f003 0304 and.w r3, r3, #4
  35191. 800f3c8: 2b04 cmp r3, #4
  35192. 800f3ca: d107 bne.n 800f3dc <HAL_RNG_Init+0xa0>
  35193. {
  35194. hrng->State = HAL_RNG_STATE_ERROR;
  35195. 800f3cc: 687b ldr r3, [r7, #4]
  35196. 800f3ce: 2204 movs r2, #4
  35197. 800f3d0: 725a strb r2, [r3, #9]
  35198. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  35199. 800f3d2: 687b ldr r3, [r7, #4]
  35200. 800f3d4: 2202 movs r2, #2
  35201. 800f3d6: 60da str r2, [r3, #12]
  35202. return HAL_ERROR;
  35203. 800f3d8: 2301 movs r3, #1
  35204. 800f3da: e00d b.n 800f3f8 <HAL_RNG_Init+0xbc>
  35205. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35206. 800f3dc: 687b ldr r3, [r7, #4]
  35207. 800f3de: 681b ldr r3, [r3, #0]
  35208. 800f3e0: 685b ldr r3, [r3, #4]
  35209. 800f3e2: f003 0304 and.w r3, r3, #4
  35210. 800f3e6: 2b04 cmp r3, #4
  35211. 800f3e8: d0e2 beq.n 800f3b0 <HAL_RNG_Init+0x74>
  35212. }
  35213. }
  35214. }
  35215. /* Initialize the RNG state */
  35216. hrng->State = HAL_RNG_STATE_READY;
  35217. 800f3ea: 687b ldr r3, [r7, #4]
  35218. 800f3ec: 2201 movs r2, #1
  35219. 800f3ee: 725a strb r2, [r3, #9]
  35220. /* Initialise the error code */
  35221. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  35222. 800f3f0: 687b ldr r3, [r7, #4]
  35223. 800f3f2: 2200 movs r2, #0
  35224. 800f3f4: 60da str r2, [r3, #12]
  35225. /* Return function status */
  35226. return HAL_OK;
  35227. 800f3f6: 2300 movs r3, #0
  35228. }
  35229. 800f3f8: 4618 mov r0, r3
  35230. 800f3fa: 3710 adds r7, #16
  35231. 800f3fc: 46bd mov sp, r7
  35232. 800f3fe: bd80 pop {r7, pc}
  35233. 0800f400 <HAL_TIM_Base_Init>:
  35234. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  35235. * @param htim TIM Base handle
  35236. * @retval HAL status
  35237. */
  35238. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  35239. {
  35240. 800f400: b580 push {r7, lr}
  35241. 800f402: b082 sub sp, #8
  35242. 800f404: af00 add r7, sp, #0
  35243. 800f406: 6078 str r0, [r7, #4]
  35244. /* Check the TIM handle allocation */
  35245. if (htim == NULL)
  35246. 800f408: 687b ldr r3, [r7, #4]
  35247. 800f40a: 2b00 cmp r3, #0
  35248. 800f40c: d101 bne.n 800f412 <HAL_TIM_Base_Init+0x12>
  35249. {
  35250. return HAL_ERROR;
  35251. 800f40e: 2301 movs r3, #1
  35252. 800f410: e049 b.n 800f4a6 <HAL_TIM_Base_Init+0xa6>
  35253. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35254. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35255. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35256. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35257. if (htim->State == HAL_TIM_STATE_RESET)
  35258. 800f412: 687b ldr r3, [r7, #4]
  35259. 800f414: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35260. 800f418: b2db uxtb r3, r3
  35261. 800f41a: 2b00 cmp r3, #0
  35262. 800f41c: d106 bne.n 800f42c <HAL_TIM_Base_Init+0x2c>
  35263. {
  35264. /* Allocate lock resource and initialize it */
  35265. htim->Lock = HAL_UNLOCKED;
  35266. 800f41e: 687b ldr r3, [r7, #4]
  35267. 800f420: 2200 movs r2, #0
  35268. 800f422: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35269. }
  35270. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35271. htim->Base_MspInitCallback(htim);
  35272. #else
  35273. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35274. HAL_TIM_Base_MspInit(htim);
  35275. 800f426: 6878 ldr r0, [r7, #4]
  35276. 800f428: f7f4 ff40 bl 80042ac <HAL_TIM_Base_MspInit>
  35277. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35278. }
  35279. /* Set the TIM state */
  35280. htim->State = HAL_TIM_STATE_BUSY;
  35281. 800f42c: 687b ldr r3, [r7, #4]
  35282. 800f42e: 2202 movs r2, #2
  35283. 800f430: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35284. /* Set the Time Base configuration */
  35285. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35286. 800f434: 687b ldr r3, [r7, #4]
  35287. 800f436: 681a ldr r2, [r3, #0]
  35288. 800f438: 687b ldr r3, [r7, #4]
  35289. 800f43a: 3304 adds r3, #4
  35290. 800f43c: 4619 mov r1, r3
  35291. 800f43e: 4610 mov r0, r2
  35292. 800f440: f001 f918 bl 8010674 <TIM_Base_SetConfig>
  35293. /* Initialize the DMA burst operation state */
  35294. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35295. 800f444: 687b ldr r3, [r7, #4]
  35296. 800f446: 2201 movs r2, #1
  35297. 800f448: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35298. /* Initialize the TIM channels state */
  35299. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35300. 800f44c: 687b ldr r3, [r7, #4]
  35301. 800f44e: 2201 movs r2, #1
  35302. 800f450: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35303. 800f454: 687b ldr r3, [r7, #4]
  35304. 800f456: 2201 movs r2, #1
  35305. 800f458: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35306. 800f45c: 687b ldr r3, [r7, #4]
  35307. 800f45e: 2201 movs r2, #1
  35308. 800f460: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35309. 800f464: 687b ldr r3, [r7, #4]
  35310. 800f466: 2201 movs r2, #1
  35311. 800f468: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35312. 800f46c: 687b ldr r3, [r7, #4]
  35313. 800f46e: 2201 movs r2, #1
  35314. 800f470: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35315. 800f474: 687b ldr r3, [r7, #4]
  35316. 800f476: 2201 movs r2, #1
  35317. 800f478: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35318. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35319. 800f47c: 687b ldr r3, [r7, #4]
  35320. 800f47e: 2201 movs r2, #1
  35321. 800f480: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35322. 800f484: 687b ldr r3, [r7, #4]
  35323. 800f486: 2201 movs r2, #1
  35324. 800f488: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35325. 800f48c: 687b ldr r3, [r7, #4]
  35326. 800f48e: 2201 movs r2, #1
  35327. 800f490: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35328. 800f494: 687b ldr r3, [r7, #4]
  35329. 800f496: 2201 movs r2, #1
  35330. 800f498: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35331. /* Initialize the TIM state*/
  35332. htim->State = HAL_TIM_STATE_READY;
  35333. 800f49c: 687b ldr r3, [r7, #4]
  35334. 800f49e: 2201 movs r2, #1
  35335. 800f4a0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35336. return HAL_OK;
  35337. 800f4a4: 2300 movs r3, #0
  35338. }
  35339. 800f4a6: 4618 mov r0, r3
  35340. 800f4a8: 3708 adds r7, #8
  35341. 800f4aa: 46bd mov sp, r7
  35342. 800f4ac: bd80 pop {r7, pc}
  35343. ...
  35344. 0800f4b0 <HAL_TIM_Base_Start>:
  35345. * @brief Starts the TIM Base generation.
  35346. * @param htim TIM Base handle
  35347. * @retval HAL status
  35348. */
  35349. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  35350. {
  35351. 800f4b0: b480 push {r7}
  35352. 800f4b2: b085 sub sp, #20
  35353. 800f4b4: af00 add r7, sp, #0
  35354. 800f4b6: 6078 str r0, [r7, #4]
  35355. /* Check the parameters */
  35356. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35357. /* Check the TIM state */
  35358. if (htim->State != HAL_TIM_STATE_READY)
  35359. 800f4b8: 687b ldr r3, [r7, #4]
  35360. 800f4ba: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35361. 800f4be: b2db uxtb r3, r3
  35362. 800f4c0: 2b01 cmp r3, #1
  35363. 800f4c2: d001 beq.n 800f4c8 <HAL_TIM_Base_Start+0x18>
  35364. {
  35365. return HAL_ERROR;
  35366. 800f4c4: 2301 movs r3, #1
  35367. 800f4c6: e04c b.n 800f562 <HAL_TIM_Base_Start+0xb2>
  35368. }
  35369. /* Set the TIM state */
  35370. htim->State = HAL_TIM_STATE_BUSY;
  35371. 800f4c8: 687b ldr r3, [r7, #4]
  35372. 800f4ca: 2202 movs r2, #2
  35373. 800f4cc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35374. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35375. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35376. 800f4d0: 687b ldr r3, [r7, #4]
  35377. 800f4d2: 681b ldr r3, [r3, #0]
  35378. 800f4d4: 4a26 ldr r2, [pc, #152] @ (800f570 <HAL_TIM_Base_Start+0xc0>)
  35379. 800f4d6: 4293 cmp r3, r2
  35380. 800f4d8: d022 beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35381. 800f4da: 687b ldr r3, [r7, #4]
  35382. 800f4dc: 681b ldr r3, [r3, #0]
  35383. 800f4de: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35384. 800f4e2: d01d beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35385. 800f4e4: 687b ldr r3, [r7, #4]
  35386. 800f4e6: 681b ldr r3, [r3, #0]
  35387. 800f4e8: 4a22 ldr r2, [pc, #136] @ (800f574 <HAL_TIM_Base_Start+0xc4>)
  35388. 800f4ea: 4293 cmp r3, r2
  35389. 800f4ec: d018 beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35390. 800f4ee: 687b ldr r3, [r7, #4]
  35391. 800f4f0: 681b ldr r3, [r3, #0]
  35392. 800f4f2: 4a21 ldr r2, [pc, #132] @ (800f578 <HAL_TIM_Base_Start+0xc8>)
  35393. 800f4f4: 4293 cmp r3, r2
  35394. 800f4f6: d013 beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35395. 800f4f8: 687b ldr r3, [r7, #4]
  35396. 800f4fa: 681b ldr r3, [r3, #0]
  35397. 800f4fc: 4a1f ldr r2, [pc, #124] @ (800f57c <HAL_TIM_Base_Start+0xcc>)
  35398. 800f4fe: 4293 cmp r3, r2
  35399. 800f500: d00e beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35400. 800f502: 687b ldr r3, [r7, #4]
  35401. 800f504: 681b ldr r3, [r3, #0]
  35402. 800f506: 4a1e ldr r2, [pc, #120] @ (800f580 <HAL_TIM_Base_Start+0xd0>)
  35403. 800f508: 4293 cmp r3, r2
  35404. 800f50a: d009 beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35405. 800f50c: 687b ldr r3, [r7, #4]
  35406. 800f50e: 681b ldr r3, [r3, #0]
  35407. 800f510: 4a1c ldr r2, [pc, #112] @ (800f584 <HAL_TIM_Base_Start+0xd4>)
  35408. 800f512: 4293 cmp r3, r2
  35409. 800f514: d004 beq.n 800f520 <HAL_TIM_Base_Start+0x70>
  35410. 800f516: 687b ldr r3, [r7, #4]
  35411. 800f518: 681b ldr r3, [r3, #0]
  35412. 800f51a: 4a1b ldr r2, [pc, #108] @ (800f588 <HAL_TIM_Base_Start+0xd8>)
  35413. 800f51c: 4293 cmp r3, r2
  35414. 800f51e: d115 bne.n 800f54c <HAL_TIM_Base_Start+0x9c>
  35415. {
  35416. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35417. 800f520: 687b ldr r3, [r7, #4]
  35418. 800f522: 681b ldr r3, [r3, #0]
  35419. 800f524: 689a ldr r2, [r3, #8]
  35420. 800f526: 4b19 ldr r3, [pc, #100] @ (800f58c <HAL_TIM_Base_Start+0xdc>)
  35421. 800f528: 4013 ands r3, r2
  35422. 800f52a: 60fb str r3, [r7, #12]
  35423. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35424. 800f52c: 68fb ldr r3, [r7, #12]
  35425. 800f52e: 2b06 cmp r3, #6
  35426. 800f530: d015 beq.n 800f55e <HAL_TIM_Base_Start+0xae>
  35427. 800f532: 68fb ldr r3, [r7, #12]
  35428. 800f534: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35429. 800f538: d011 beq.n 800f55e <HAL_TIM_Base_Start+0xae>
  35430. {
  35431. __HAL_TIM_ENABLE(htim);
  35432. 800f53a: 687b ldr r3, [r7, #4]
  35433. 800f53c: 681b ldr r3, [r3, #0]
  35434. 800f53e: 681a ldr r2, [r3, #0]
  35435. 800f540: 687b ldr r3, [r7, #4]
  35436. 800f542: 681b ldr r3, [r3, #0]
  35437. 800f544: f042 0201 orr.w r2, r2, #1
  35438. 800f548: 601a str r2, [r3, #0]
  35439. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35440. 800f54a: e008 b.n 800f55e <HAL_TIM_Base_Start+0xae>
  35441. }
  35442. }
  35443. else
  35444. {
  35445. __HAL_TIM_ENABLE(htim);
  35446. 800f54c: 687b ldr r3, [r7, #4]
  35447. 800f54e: 681b ldr r3, [r3, #0]
  35448. 800f550: 681a ldr r2, [r3, #0]
  35449. 800f552: 687b ldr r3, [r7, #4]
  35450. 800f554: 681b ldr r3, [r3, #0]
  35451. 800f556: f042 0201 orr.w r2, r2, #1
  35452. 800f55a: 601a str r2, [r3, #0]
  35453. 800f55c: e000 b.n 800f560 <HAL_TIM_Base_Start+0xb0>
  35454. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35455. 800f55e: bf00 nop
  35456. }
  35457. /* Return function status */
  35458. return HAL_OK;
  35459. 800f560: 2300 movs r3, #0
  35460. }
  35461. 800f562: 4618 mov r0, r3
  35462. 800f564: 3714 adds r7, #20
  35463. 800f566: 46bd mov sp, r7
  35464. 800f568: f85d 7b04 ldr.w r7, [sp], #4
  35465. 800f56c: 4770 bx lr
  35466. 800f56e: bf00 nop
  35467. 800f570: 40010000 .word 0x40010000
  35468. 800f574: 40000400 .word 0x40000400
  35469. 800f578: 40000800 .word 0x40000800
  35470. 800f57c: 40000c00 .word 0x40000c00
  35471. 800f580: 40010400 .word 0x40010400
  35472. 800f584: 40001800 .word 0x40001800
  35473. 800f588: 40014000 .word 0x40014000
  35474. 800f58c: 00010007 .word 0x00010007
  35475. 0800f590 <HAL_TIM_Base_Start_IT>:
  35476. * @brief Starts the TIM Base generation in interrupt mode.
  35477. * @param htim TIM Base handle
  35478. * @retval HAL status
  35479. */
  35480. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  35481. {
  35482. 800f590: b480 push {r7}
  35483. 800f592: b085 sub sp, #20
  35484. 800f594: af00 add r7, sp, #0
  35485. 800f596: 6078 str r0, [r7, #4]
  35486. /* Check the parameters */
  35487. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35488. /* Check the TIM state */
  35489. if (htim->State != HAL_TIM_STATE_READY)
  35490. 800f598: 687b ldr r3, [r7, #4]
  35491. 800f59a: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35492. 800f59e: b2db uxtb r3, r3
  35493. 800f5a0: 2b01 cmp r3, #1
  35494. 800f5a2: d001 beq.n 800f5a8 <HAL_TIM_Base_Start_IT+0x18>
  35495. {
  35496. return HAL_ERROR;
  35497. 800f5a4: 2301 movs r3, #1
  35498. 800f5a6: e054 b.n 800f652 <HAL_TIM_Base_Start_IT+0xc2>
  35499. }
  35500. /* Set the TIM state */
  35501. htim->State = HAL_TIM_STATE_BUSY;
  35502. 800f5a8: 687b ldr r3, [r7, #4]
  35503. 800f5aa: 2202 movs r2, #2
  35504. 800f5ac: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35505. /* Enable the TIM Update interrupt */
  35506. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  35507. 800f5b0: 687b ldr r3, [r7, #4]
  35508. 800f5b2: 681b ldr r3, [r3, #0]
  35509. 800f5b4: 68da ldr r2, [r3, #12]
  35510. 800f5b6: 687b ldr r3, [r7, #4]
  35511. 800f5b8: 681b ldr r3, [r3, #0]
  35512. 800f5ba: f042 0201 orr.w r2, r2, #1
  35513. 800f5be: 60da str r2, [r3, #12]
  35514. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35515. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35516. 800f5c0: 687b ldr r3, [r7, #4]
  35517. 800f5c2: 681b ldr r3, [r3, #0]
  35518. 800f5c4: 4a26 ldr r2, [pc, #152] @ (800f660 <HAL_TIM_Base_Start_IT+0xd0>)
  35519. 800f5c6: 4293 cmp r3, r2
  35520. 800f5c8: d022 beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35521. 800f5ca: 687b ldr r3, [r7, #4]
  35522. 800f5cc: 681b ldr r3, [r3, #0]
  35523. 800f5ce: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35524. 800f5d2: d01d beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35525. 800f5d4: 687b ldr r3, [r7, #4]
  35526. 800f5d6: 681b ldr r3, [r3, #0]
  35527. 800f5d8: 4a22 ldr r2, [pc, #136] @ (800f664 <HAL_TIM_Base_Start_IT+0xd4>)
  35528. 800f5da: 4293 cmp r3, r2
  35529. 800f5dc: d018 beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35530. 800f5de: 687b ldr r3, [r7, #4]
  35531. 800f5e0: 681b ldr r3, [r3, #0]
  35532. 800f5e2: 4a21 ldr r2, [pc, #132] @ (800f668 <HAL_TIM_Base_Start_IT+0xd8>)
  35533. 800f5e4: 4293 cmp r3, r2
  35534. 800f5e6: d013 beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35535. 800f5e8: 687b ldr r3, [r7, #4]
  35536. 800f5ea: 681b ldr r3, [r3, #0]
  35537. 800f5ec: 4a1f ldr r2, [pc, #124] @ (800f66c <HAL_TIM_Base_Start_IT+0xdc>)
  35538. 800f5ee: 4293 cmp r3, r2
  35539. 800f5f0: d00e beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35540. 800f5f2: 687b ldr r3, [r7, #4]
  35541. 800f5f4: 681b ldr r3, [r3, #0]
  35542. 800f5f6: 4a1e ldr r2, [pc, #120] @ (800f670 <HAL_TIM_Base_Start_IT+0xe0>)
  35543. 800f5f8: 4293 cmp r3, r2
  35544. 800f5fa: d009 beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35545. 800f5fc: 687b ldr r3, [r7, #4]
  35546. 800f5fe: 681b ldr r3, [r3, #0]
  35547. 800f600: 4a1c ldr r2, [pc, #112] @ (800f674 <HAL_TIM_Base_Start_IT+0xe4>)
  35548. 800f602: 4293 cmp r3, r2
  35549. 800f604: d004 beq.n 800f610 <HAL_TIM_Base_Start_IT+0x80>
  35550. 800f606: 687b ldr r3, [r7, #4]
  35551. 800f608: 681b ldr r3, [r3, #0]
  35552. 800f60a: 4a1b ldr r2, [pc, #108] @ (800f678 <HAL_TIM_Base_Start_IT+0xe8>)
  35553. 800f60c: 4293 cmp r3, r2
  35554. 800f60e: d115 bne.n 800f63c <HAL_TIM_Base_Start_IT+0xac>
  35555. {
  35556. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35557. 800f610: 687b ldr r3, [r7, #4]
  35558. 800f612: 681b ldr r3, [r3, #0]
  35559. 800f614: 689a ldr r2, [r3, #8]
  35560. 800f616: 4b19 ldr r3, [pc, #100] @ (800f67c <HAL_TIM_Base_Start_IT+0xec>)
  35561. 800f618: 4013 ands r3, r2
  35562. 800f61a: 60fb str r3, [r7, #12]
  35563. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35564. 800f61c: 68fb ldr r3, [r7, #12]
  35565. 800f61e: 2b06 cmp r3, #6
  35566. 800f620: d015 beq.n 800f64e <HAL_TIM_Base_Start_IT+0xbe>
  35567. 800f622: 68fb ldr r3, [r7, #12]
  35568. 800f624: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35569. 800f628: d011 beq.n 800f64e <HAL_TIM_Base_Start_IT+0xbe>
  35570. {
  35571. __HAL_TIM_ENABLE(htim);
  35572. 800f62a: 687b ldr r3, [r7, #4]
  35573. 800f62c: 681b ldr r3, [r3, #0]
  35574. 800f62e: 681a ldr r2, [r3, #0]
  35575. 800f630: 687b ldr r3, [r7, #4]
  35576. 800f632: 681b ldr r3, [r3, #0]
  35577. 800f634: f042 0201 orr.w r2, r2, #1
  35578. 800f638: 601a str r2, [r3, #0]
  35579. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35580. 800f63a: e008 b.n 800f64e <HAL_TIM_Base_Start_IT+0xbe>
  35581. }
  35582. }
  35583. else
  35584. {
  35585. __HAL_TIM_ENABLE(htim);
  35586. 800f63c: 687b ldr r3, [r7, #4]
  35587. 800f63e: 681b ldr r3, [r3, #0]
  35588. 800f640: 681a ldr r2, [r3, #0]
  35589. 800f642: 687b ldr r3, [r7, #4]
  35590. 800f644: 681b ldr r3, [r3, #0]
  35591. 800f646: f042 0201 orr.w r2, r2, #1
  35592. 800f64a: 601a str r2, [r3, #0]
  35593. 800f64c: e000 b.n 800f650 <HAL_TIM_Base_Start_IT+0xc0>
  35594. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35595. 800f64e: bf00 nop
  35596. }
  35597. /* Return function status */
  35598. return HAL_OK;
  35599. 800f650: 2300 movs r3, #0
  35600. }
  35601. 800f652: 4618 mov r0, r3
  35602. 800f654: 3714 adds r7, #20
  35603. 800f656: 46bd mov sp, r7
  35604. 800f658: f85d 7b04 ldr.w r7, [sp], #4
  35605. 800f65c: 4770 bx lr
  35606. 800f65e: bf00 nop
  35607. 800f660: 40010000 .word 0x40010000
  35608. 800f664: 40000400 .word 0x40000400
  35609. 800f668: 40000800 .word 0x40000800
  35610. 800f66c: 40000c00 .word 0x40000c00
  35611. 800f670: 40010400 .word 0x40010400
  35612. 800f674: 40001800 .word 0x40001800
  35613. 800f678: 40014000 .word 0x40014000
  35614. 800f67c: 00010007 .word 0x00010007
  35615. 0800f680 <HAL_TIM_PWM_Init>:
  35616. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  35617. * @param htim TIM PWM handle
  35618. * @retval HAL status
  35619. */
  35620. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  35621. {
  35622. 800f680: b580 push {r7, lr}
  35623. 800f682: b082 sub sp, #8
  35624. 800f684: af00 add r7, sp, #0
  35625. 800f686: 6078 str r0, [r7, #4]
  35626. /* Check the TIM handle allocation */
  35627. if (htim == NULL)
  35628. 800f688: 687b ldr r3, [r7, #4]
  35629. 800f68a: 2b00 cmp r3, #0
  35630. 800f68c: d101 bne.n 800f692 <HAL_TIM_PWM_Init+0x12>
  35631. {
  35632. return HAL_ERROR;
  35633. 800f68e: 2301 movs r3, #1
  35634. 800f690: e049 b.n 800f726 <HAL_TIM_PWM_Init+0xa6>
  35635. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35636. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35637. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35638. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35639. if (htim->State == HAL_TIM_STATE_RESET)
  35640. 800f692: 687b ldr r3, [r7, #4]
  35641. 800f694: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35642. 800f698: b2db uxtb r3, r3
  35643. 800f69a: 2b00 cmp r3, #0
  35644. 800f69c: d106 bne.n 800f6ac <HAL_TIM_PWM_Init+0x2c>
  35645. {
  35646. /* Allocate lock resource and initialize it */
  35647. htim->Lock = HAL_UNLOCKED;
  35648. 800f69e: 687b ldr r3, [r7, #4]
  35649. 800f6a0: 2200 movs r2, #0
  35650. 800f6a2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35651. }
  35652. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35653. htim->PWM_MspInitCallback(htim);
  35654. #else
  35655. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35656. HAL_TIM_PWM_MspInit(htim);
  35657. 800f6a6: 6878 ldr r0, [r7, #4]
  35658. 800f6a8: f7f4 fdc6 bl 8004238 <HAL_TIM_PWM_MspInit>
  35659. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35660. }
  35661. /* Set the TIM state */
  35662. htim->State = HAL_TIM_STATE_BUSY;
  35663. 800f6ac: 687b ldr r3, [r7, #4]
  35664. 800f6ae: 2202 movs r2, #2
  35665. 800f6b0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35666. /* Init the base time for the PWM */
  35667. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35668. 800f6b4: 687b ldr r3, [r7, #4]
  35669. 800f6b6: 681a ldr r2, [r3, #0]
  35670. 800f6b8: 687b ldr r3, [r7, #4]
  35671. 800f6ba: 3304 adds r3, #4
  35672. 800f6bc: 4619 mov r1, r3
  35673. 800f6be: 4610 mov r0, r2
  35674. 800f6c0: f000 ffd8 bl 8010674 <TIM_Base_SetConfig>
  35675. /* Initialize the DMA burst operation state */
  35676. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35677. 800f6c4: 687b ldr r3, [r7, #4]
  35678. 800f6c6: 2201 movs r2, #1
  35679. 800f6c8: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35680. /* Initialize the TIM channels state */
  35681. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35682. 800f6cc: 687b ldr r3, [r7, #4]
  35683. 800f6ce: 2201 movs r2, #1
  35684. 800f6d0: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35685. 800f6d4: 687b ldr r3, [r7, #4]
  35686. 800f6d6: 2201 movs r2, #1
  35687. 800f6d8: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35688. 800f6dc: 687b ldr r3, [r7, #4]
  35689. 800f6de: 2201 movs r2, #1
  35690. 800f6e0: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35691. 800f6e4: 687b ldr r3, [r7, #4]
  35692. 800f6e6: 2201 movs r2, #1
  35693. 800f6e8: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35694. 800f6ec: 687b ldr r3, [r7, #4]
  35695. 800f6ee: 2201 movs r2, #1
  35696. 800f6f0: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35697. 800f6f4: 687b ldr r3, [r7, #4]
  35698. 800f6f6: 2201 movs r2, #1
  35699. 800f6f8: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35700. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35701. 800f6fc: 687b ldr r3, [r7, #4]
  35702. 800f6fe: 2201 movs r2, #1
  35703. 800f700: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35704. 800f704: 687b ldr r3, [r7, #4]
  35705. 800f706: 2201 movs r2, #1
  35706. 800f708: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35707. 800f70c: 687b ldr r3, [r7, #4]
  35708. 800f70e: 2201 movs r2, #1
  35709. 800f710: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35710. 800f714: 687b ldr r3, [r7, #4]
  35711. 800f716: 2201 movs r2, #1
  35712. 800f718: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35713. /* Initialize the TIM state*/
  35714. htim->State = HAL_TIM_STATE_READY;
  35715. 800f71c: 687b ldr r3, [r7, #4]
  35716. 800f71e: 2201 movs r2, #1
  35717. 800f720: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35718. return HAL_OK;
  35719. 800f724: 2300 movs r3, #0
  35720. }
  35721. 800f726: 4618 mov r0, r3
  35722. 800f728: 3708 adds r7, #8
  35723. 800f72a: 46bd mov sp, r7
  35724. 800f72c: bd80 pop {r7, pc}
  35725. ...
  35726. 0800f730 <HAL_TIM_PWM_Start>:
  35727. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35728. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35729. * @retval HAL status
  35730. */
  35731. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  35732. {
  35733. 800f730: b580 push {r7, lr}
  35734. 800f732: b084 sub sp, #16
  35735. 800f734: af00 add r7, sp, #0
  35736. 800f736: 6078 str r0, [r7, #4]
  35737. 800f738: 6039 str r1, [r7, #0]
  35738. /* Check the parameters */
  35739. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35740. /* Check the TIM channel state */
  35741. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  35742. 800f73a: 683b ldr r3, [r7, #0]
  35743. 800f73c: 2b00 cmp r3, #0
  35744. 800f73e: d109 bne.n 800f754 <HAL_TIM_PWM_Start+0x24>
  35745. 800f740: 687b ldr r3, [r7, #4]
  35746. 800f742: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35747. 800f746: b2db uxtb r3, r3
  35748. 800f748: 2b01 cmp r3, #1
  35749. 800f74a: bf14 ite ne
  35750. 800f74c: 2301 movne r3, #1
  35751. 800f74e: 2300 moveq r3, #0
  35752. 800f750: b2db uxtb r3, r3
  35753. 800f752: e03c b.n 800f7ce <HAL_TIM_PWM_Start+0x9e>
  35754. 800f754: 683b ldr r3, [r7, #0]
  35755. 800f756: 2b04 cmp r3, #4
  35756. 800f758: d109 bne.n 800f76e <HAL_TIM_PWM_Start+0x3e>
  35757. 800f75a: 687b ldr r3, [r7, #4]
  35758. 800f75c: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35759. 800f760: b2db uxtb r3, r3
  35760. 800f762: 2b01 cmp r3, #1
  35761. 800f764: bf14 ite ne
  35762. 800f766: 2301 movne r3, #1
  35763. 800f768: 2300 moveq r3, #0
  35764. 800f76a: b2db uxtb r3, r3
  35765. 800f76c: e02f b.n 800f7ce <HAL_TIM_PWM_Start+0x9e>
  35766. 800f76e: 683b ldr r3, [r7, #0]
  35767. 800f770: 2b08 cmp r3, #8
  35768. 800f772: d109 bne.n 800f788 <HAL_TIM_PWM_Start+0x58>
  35769. 800f774: 687b ldr r3, [r7, #4]
  35770. 800f776: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35771. 800f77a: b2db uxtb r3, r3
  35772. 800f77c: 2b01 cmp r3, #1
  35773. 800f77e: bf14 ite ne
  35774. 800f780: 2301 movne r3, #1
  35775. 800f782: 2300 moveq r3, #0
  35776. 800f784: b2db uxtb r3, r3
  35777. 800f786: e022 b.n 800f7ce <HAL_TIM_PWM_Start+0x9e>
  35778. 800f788: 683b ldr r3, [r7, #0]
  35779. 800f78a: 2b0c cmp r3, #12
  35780. 800f78c: d109 bne.n 800f7a2 <HAL_TIM_PWM_Start+0x72>
  35781. 800f78e: 687b ldr r3, [r7, #4]
  35782. 800f790: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35783. 800f794: b2db uxtb r3, r3
  35784. 800f796: 2b01 cmp r3, #1
  35785. 800f798: bf14 ite ne
  35786. 800f79a: 2301 movne r3, #1
  35787. 800f79c: 2300 moveq r3, #0
  35788. 800f79e: b2db uxtb r3, r3
  35789. 800f7a0: e015 b.n 800f7ce <HAL_TIM_PWM_Start+0x9e>
  35790. 800f7a2: 683b ldr r3, [r7, #0]
  35791. 800f7a4: 2b10 cmp r3, #16
  35792. 800f7a6: d109 bne.n 800f7bc <HAL_TIM_PWM_Start+0x8c>
  35793. 800f7a8: 687b ldr r3, [r7, #4]
  35794. 800f7aa: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35795. 800f7ae: b2db uxtb r3, r3
  35796. 800f7b0: 2b01 cmp r3, #1
  35797. 800f7b2: bf14 ite ne
  35798. 800f7b4: 2301 movne r3, #1
  35799. 800f7b6: 2300 moveq r3, #0
  35800. 800f7b8: b2db uxtb r3, r3
  35801. 800f7ba: e008 b.n 800f7ce <HAL_TIM_PWM_Start+0x9e>
  35802. 800f7bc: 687b ldr r3, [r7, #4]
  35803. 800f7be: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35804. 800f7c2: b2db uxtb r3, r3
  35805. 800f7c4: 2b01 cmp r3, #1
  35806. 800f7c6: bf14 ite ne
  35807. 800f7c8: 2301 movne r3, #1
  35808. 800f7ca: 2300 moveq r3, #0
  35809. 800f7cc: b2db uxtb r3, r3
  35810. 800f7ce: 2b00 cmp r3, #0
  35811. 800f7d0: d001 beq.n 800f7d6 <HAL_TIM_PWM_Start+0xa6>
  35812. {
  35813. return HAL_ERROR;
  35814. 800f7d2: 2301 movs r3, #1
  35815. 800f7d4: e0a1 b.n 800f91a <HAL_TIM_PWM_Start+0x1ea>
  35816. }
  35817. /* Set the TIM channel state */
  35818. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35819. 800f7d6: 683b ldr r3, [r7, #0]
  35820. 800f7d8: 2b00 cmp r3, #0
  35821. 800f7da: d104 bne.n 800f7e6 <HAL_TIM_PWM_Start+0xb6>
  35822. 800f7dc: 687b ldr r3, [r7, #4]
  35823. 800f7de: 2202 movs r2, #2
  35824. 800f7e0: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35825. 800f7e4: e023 b.n 800f82e <HAL_TIM_PWM_Start+0xfe>
  35826. 800f7e6: 683b ldr r3, [r7, #0]
  35827. 800f7e8: 2b04 cmp r3, #4
  35828. 800f7ea: d104 bne.n 800f7f6 <HAL_TIM_PWM_Start+0xc6>
  35829. 800f7ec: 687b ldr r3, [r7, #4]
  35830. 800f7ee: 2202 movs r2, #2
  35831. 800f7f0: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35832. 800f7f4: e01b b.n 800f82e <HAL_TIM_PWM_Start+0xfe>
  35833. 800f7f6: 683b ldr r3, [r7, #0]
  35834. 800f7f8: 2b08 cmp r3, #8
  35835. 800f7fa: d104 bne.n 800f806 <HAL_TIM_PWM_Start+0xd6>
  35836. 800f7fc: 687b ldr r3, [r7, #4]
  35837. 800f7fe: 2202 movs r2, #2
  35838. 800f800: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35839. 800f804: e013 b.n 800f82e <HAL_TIM_PWM_Start+0xfe>
  35840. 800f806: 683b ldr r3, [r7, #0]
  35841. 800f808: 2b0c cmp r3, #12
  35842. 800f80a: d104 bne.n 800f816 <HAL_TIM_PWM_Start+0xe6>
  35843. 800f80c: 687b ldr r3, [r7, #4]
  35844. 800f80e: 2202 movs r2, #2
  35845. 800f810: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35846. 800f814: e00b b.n 800f82e <HAL_TIM_PWM_Start+0xfe>
  35847. 800f816: 683b ldr r3, [r7, #0]
  35848. 800f818: 2b10 cmp r3, #16
  35849. 800f81a: d104 bne.n 800f826 <HAL_TIM_PWM_Start+0xf6>
  35850. 800f81c: 687b ldr r3, [r7, #4]
  35851. 800f81e: 2202 movs r2, #2
  35852. 800f820: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35853. 800f824: e003 b.n 800f82e <HAL_TIM_PWM_Start+0xfe>
  35854. 800f826: 687b ldr r3, [r7, #4]
  35855. 800f828: 2202 movs r2, #2
  35856. 800f82a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35857. /* Enable the Capture compare channel */
  35858. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35859. 800f82e: 687b ldr r3, [r7, #4]
  35860. 800f830: 681b ldr r3, [r3, #0]
  35861. 800f832: 2201 movs r2, #1
  35862. 800f834: 6839 ldr r1, [r7, #0]
  35863. 800f836: 4618 mov r0, r3
  35864. 800f838: f001 fc60 bl 80110fc <TIM_CCxChannelCmd>
  35865. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35866. 800f83c: 687b ldr r3, [r7, #4]
  35867. 800f83e: 681b ldr r3, [r3, #0]
  35868. 800f840: 4a38 ldr r2, [pc, #224] @ (800f924 <HAL_TIM_PWM_Start+0x1f4>)
  35869. 800f842: 4293 cmp r3, r2
  35870. 800f844: d013 beq.n 800f86e <HAL_TIM_PWM_Start+0x13e>
  35871. 800f846: 687b ldr r3, [r7, #4]
  35872. 800f848: 681b ldr r3, [r3, #0]
  35873. 800f84a: 4a37 ldr r2, [pc, #220] @ (800f928 <HAL_TIM_PWM_Start+0x1f8>)
  35874. 800f84c: 4293 cmp r3, r2
  35875. 800f84e: d00e beq.n 800f86e <HAL_TIM_PWM_Start+0x13e>
  35876. 800f850: 687b ldr r3, [r7, #4]
  35877. 800f852: 681b ldr r3, [r3, #0]
  35878. 800f854: 4a35 ldr r2, [pc, #212] @ (800f92c <HAL_TIM_PWM_Start+0x1fc>)
  35879. 800f856: 4293 cmp r3, r2
  35880. 800f858: d009 beq.n 800f86e <HAL_TIM_PWM_Start+0x13e>
  35881. 800f85a: 687b ldr r3, [r7, #4]
  35882. 800f85c: 681b ldr r3, [r3, #0]
  35883. 800f85e: 4a34 ldr r2, [pc, #208] @ (800f930 <HAL_TIM_PWM_Start+0x200>)
  35884. 800f860: 4293 cmp r3, r2
  35885. 800f862: d004 beq.n 800f86e <HAL_TIM_PWM_Start+0x13e>
  35886. 800f864: 687b ldr r3, [r7, #4]
  35887. 800f866: 681b ldr r3, [r3, #0]
  35888. 800f868: 4a32 ldr r2, [pc, #200] @ (800f934 <HAL_TIM_PWM_Start+0x204>)
  35889. 800f86a: 4293 cmp r3, r2
  35890. 800f86c: d101 bne.n 800f872 <HAL_TIM_PWM_Start+0x142>
  35891. 800f86e: 2301 movs r3, #1
  35892. 800f870: e000 b.n 800f874 <HAL_TIM_PWM_Start+0x144>
  35893. 800f872: 2300 movs r3, #0
  35894. 800f874: 2b00 cmp r3, #0
  35895. 800f876: d007 beq.n 800f888 <HAL_TIM_PWM_Start+0x158>
  35896. {
  35897. /* Enable the main output */
  35898. __HAL_TIM_MOE_ENABLE(htim);
  35899. 800f878: 687b ldr r3, [r7, #4]
  35900. 800f87a: 681b ldr r3, [r3, #0]
  35901. 800f87c: 6c5a ldr r2, [r3, #68] @ 0x44
  35902. 800f87e: 687b ldr r3, [r7, #4]
  35903. 800f880: 681b ldr r3, [r3, #0]
  35904. 800f882: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  35905. 800f886: 645a str r2, [r3, #68] @ 0x44
  35906. }
  35907. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35908. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35909. 800f888: 687b ldr r3, [r7, #4]
  35910. 800f88a: 681b ldr r3, [r3, #0]
  35911. 800f88c: 4a25 ldr r2, [pc, #148] @ (800f924 <HAL_TIM_PWM_Start+0x1f4>)
  35912. 800f88e: 4293 cmp r3, r2
  35913. 800f890: d022 beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35914. 800f892: 687b ldr r3, [r7, #4]
  35915. 800f894: 681b ldr r3, [r3, #0]
  35916. 800f896: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35917. 800f89a: d01d beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35918. 800f89c: 687b ldr r3, [r7, #4]
  35919. 800f89e: 681b ldr r3, [r3, #0]
  35920. 800f8a0: 4a25 ldr r2, [pc, #148] @ (800f938 <HAL_TIM_PWM_Start+0x208>)
  35921. 800f8a2: 4293 cmp r3, r2
  35922. 800f8a4: d018 beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35923. 800f8a6: 687b ldr r3, [r7, #4]
  35924. 800f8a8: 681b ldr r3, [r3, #0]
  35925. 800f8aa: 4a24 ldr r2, [pc, #144] @ (800f93c <HAL_TIM_PWM_Start+0x20c>)
  35926. 800f8ac: 4293 cmp r3, r2
  35927. 800f8ae: d013 beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35928. 800f8b0: 687b ldr r3, [r7, #4]
  35929. 800f8b2: 681b ldr r3, [r3, #0]
  35930. 800f8b4: 4a22 ldr r2, [pc, #136] @ (800f940 <HAL_TIM_PWM_Start+0x210>)
  35931. 800f8b6: 4293 cmp r3, r2
  35932. 800f8b8: d00e beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35933. 800f8ba: 687b ldr r3, [r7, #4]
  35934. 800f8bc: 681b ldr r3, [r3, #0]
  35935. 800f8be: 4a1a ldr r2, [pc, #104] @ (800f928 <HAL_TIM_PWM_Start+0x1f8>)
  35936. 800f8c0: 4293 cmp r3, r2
  35937. 800f8c2: d009 beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35938. 800f8c4: 687b ldr r3, [r7, #4]
  35939. 800f8c6: 681b ldr r3, [r3, #0]
  35940. 800f8c8: 4a1e ldr r2, [pc, #120] @ (800f944 <HAL_TIM_PWM_Start+0x214>)
  35941. 800f8ca: 4293 cmp r3, r2
  35942. 800f8cc: d004 beq.n 800f8d8 <HAL_TIM_PWM_Start+0x1a8>
  35943. 800f8ce: 687b ldr r3, [r7, #4]
  35944. 800f8d0: 681b ldr r3, [r3, #0]
  35945. 800f8d2: 4a16 ldr r2, [pc, #88] @ (800f92c <HAL_TIM_PWM_Start+0x1fc>)
  35946. 800f8d4: 4293 cmp r3, r2
  35947. 800f8d6: d115 bne.n 800f904 <HAL_TIM_PWM_Start+0x1d4>
  35948. {
  35949. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35950. 800f8d8: 687b ldr r3, [r7, #4]
  35951. 800f8da: 681b ldr r3, [r3, #0]
  35952. 800f8dc: 689a ldr r2, [r3, #8]
  35953. 800f8de: 4b1a ldr r3, [pc, #104] @ (800f948 <HAL_TIM_PWM_Start+0x218>)
  35954. 800f8e0: 4013 ands r3, r2
  35955. 800f8e2: 60fb str r3, [r7, #12]
  35956. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35957. 800f8e4: 68fb ldr r3, [r7, #12]
  35958. 800f8e6: 2b06 cmp r3, #6
  35959. 800f8e8: d015 beq.n 800f916 <HAL_TIM_PWM_Start+0x1e6>
  35960. 800f8ea: 68fb ldr r3, [r7, #12]
  35961. 800f8ec: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35962. 800f8f0: d011 beq.n 800f916 <HAL_TIM_PWM_Start+0x1e6>
  35963. {
  35964. __HAL_TIM_ENABLE(htim);
  35965. 800f8f2: 687b ldr r3, [r7, #4]
  35966. 800f8f4: 681b ldr r3, [r3, #0]
  35967. 800f8f6: 681a ldr r2, [r3, #0]
  35968. 800f8f8: 687b ldr r3, [r7, #4]
  35969. 800f8fa: 681b ldr r3, [r3, #0]
  35970. 800f8fc: f042 0201 orr.w r2, r2, #1
  35971. 800f900: 601a str r2, [r3, #0]
  35972. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35973. 800f902: e008 b.n 800f916 <HAL_TIM_PWM_Start+0x1e6>
  35974. }
  35975. }
  35976. else
  35977. {
  35978. __HAL_TIM_ENABLE(htim);
  35979. 800f904: 687b ldr r3, [r7, #4]
  35980. 800f906: 681b ldr r3, [r3, #0]
  35981. 800f908: 681a ldr r2, [r3, #0]
  35982. 800f90a: 687b ldr r3, [r7, #4]
  35983. 800f90c: 681b ldr r3, [r3, #0]
  35984. 800f90e: f042 0201 orr.w r2, r2, #1
  35985. 800f912: 601a str r2, [r3, #0]
  35986. 800f914: e000 b.n 800f918 <HAL_TIM_PWM_Start+0x1e8>
  35987. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35988. 800f916: bf00 nop
  35989. }
  35990. /* Return function status */
  35991. return HAL_OK;
  35992. 800f918: 2300 movs r3, #0
  35993. }
  35994. 800f91a: 4618 mov r0, r3
  35995. 800f91c: 3710 adds r7, #16
  35996. 800f91e: 46bd mov sp, r7
  35997. 800f920: bd80 pop {r7, pc}
  35998. 800f922: bf00 nop
  35999. 800f924: 40010000 .word 0x40010000
  36000. 800f928: 40010400 .word 0x40010400
  36001. 800f92c: 40014000 .word 0x40014000
  36002. 800f930: 40014400 .word 0x40014400
  36003. 800f934: 40014800 .word 0x40014800
  36004. 800f938: 40000400 .word 0x40000400
  36005. 800f93c: 40000800 .word 0x40000800
  36006. 800f940: 40000c00 .word 0x40000c00
  36007. 800f944: 40001800 .word 0x40001800
  36008. 800f948: 00010007 .word 0x00010007
  36009. 0800f94c <HAL_TIM_PWM_Stop>:
  36010. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  36011. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  36012. * @retval HAL status
  36013. */
  36014. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  36015. {
  36016. 800f94c: b580 push {r7, lr}
  36017. 800f94e: b082 sub sp, #8
  36018. 800f950: af00 add r7, sp, #0
  36019. 800f952: 6078 str r0, [r7, #4]
  36020. 800f954: 6039 str r1, [r7, #0]
  36021. /* Check the parameters */
  36022. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36023. /* Disable the Capture compare channel */
  36024. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  36025. 800f956: 687b ldr r3, [r7, #4]
  36026. 800f958: 681b ldr r3, [r3, #0]
  36027. 800f95a: 2200 movs r2, #0
  36028. 800f95c: 6839 ldr r1, [r7, #0]
  36029. 800f95e: 4618 mov r0, r3
  36030. 800f960: f001 fbcc bl 80110fc <TIM_CCxChannelCmd>
  36031. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  36032. 800f964: 687b ldr r3, [r7, #4]
  36033. 800f966: 681b ldr r3, [r3, #0]
  36034. 800f968: 4a3e ldr r2, [pc, #248] @ (800fa64 <HAL_TIM_PWM_Stop+0x118>)
  36035. 800f96a: 4293 cmp r3, r2
  36036. 800f96c: d013 beq.n 800f996 <HAL_TIM_PWM_Stop+0x4a>
  36037. 800f96e: 687b ldr r3, [r7, #4]
  36038. 800f970: 681b ldr r3, [r3, #0]
  36039. 800f972: 4a3d ldr r2, [pc, #244] @ (800fa68 <HAL_TIM_PWM_Stop+0x11c>)
  36040. 800f974: 4293 cmp r3, r2
  36041. 800f976: d00e beq.n 800f996 <HAL_TIM_PWM_Stop+0x4a>
  36042. 800f978: 687b ldr r3, [r7, #4]
  36043. 800f97a: 681b ldr r3, [r3, #0]
  36044. 800f97c: 4a3b ldr r2, [pc, #236] @ (800fa6c <HAL_TIM_PWM_Stop+0x120>)
  36045. 800f97e: 4293 cmp r3, r2
  36046. 800f980: d009 beq.n 800f996 <HAL_TIM_PWM_Stop+0x4a>
  36047. 800f982: 687b ldr r3, [r7, #4]
  36048. 800f984: 681b ldr r3, [r3, #0]
  36049. 800f986: 4a3a ldr r2, [pc, #232] @ (800fa70 <HAL_TIM_PWM_Stop+0x124>)
  36050. 800f988: 4293 cmp r3, r2
  36051. 800f98a: d004 beq.n 800f996 <HAL_TIM_PWM_Stop+0x4a>
  36052. 800f98c: 687b ldr r3, [r7, #4]
  36053. 800f98e: 681b ldr r3, [r3, #0]
  36054. 800f990: 4a38 ldr r2, [pc, #224] @ (800fa74 <HAL_TIM_PWM_Stop+0x128>)
  36055. 800f992: 4293 cmp r3, r2
  36056. 800f994: d101 bne.n 800f99a <HAL_TIM_PWM_Stop+0x4e>
  36057. 800f996: 2301 movs r3, #1
  36058. 800f998: e000 b.n 800f99c <HAL_TIM_PWM_Stop+0x50>
  36059. 800f99a: 2300 movs r3, #0
  36060. 800f99c: 2b00 cmp r3, #0
  36061. 800f99e: d017 beq.n 800f9d0 <HAL_TIM_PWM_Stop+0x84>
  36062. {
  36063. /* Disable the Main Output */
  36064. __HAL_TIM_MOE_DISABLE(htim);
  36065. 800f9a0: 687b ldr r3, [r7, #4]
  36066. 800f9a2: 681b ldr r3, [r3, #0]
  36067. 800f9a4: 6a1a ldr r2, [r3, #32]
  36068. 800f9a6: f241 1311 movw r3, #4369 @ 0x1111
  36069. 800f9aa: 4013 ands r3, r2
  36070. 800f9ac: 2b00 cmp r3, #0
  36071. 800f9ae: d10f bne.n 800f9d0 <HAL_TIM_PWM_Stop+0x84>
  36072. 800f9b0: 687b ldr r3, [r7, #4]
  36073. 800f9b2: 681b ldr r3, [r3, #0]
  36074. 800f9b4: 6a1a ldr r2, [r3, #32]
  36075. 800f9b6: f240 4344 movw r3, #1092 @ 0x444
  36076. 800f9ba: 4013 ands r3, r2
  36077. 800f9bc: 2b00 cmp r3, #0
  36078. 800f9be: d107 bne.n 800f9d0 <HAL_TIM_PWM_Stop+0x84>
  36079. 800f9c0: 687b ldr r3, [r7, #4]
  36080. 800f9c2: 681b ldr r3, [r3, #0]
  36081. 800f9c4: 6c5a ldr r2, [r3, #68] @ 0x44
  36082. 800f9c6: 687b ldr r3, [r7, #4]
  36083. 800f9c8: 681b ldr r3, [r3, #0]
  36084. 800f9ca: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  36085. 800f9ce: 645a str r2, [r3, #68] @ 0x44
  36086. }
  36087. /* Disable the Peripheral */
  36088. __HAL_TIM_DISABLE(htim);
  36089. 800f9d0: 687b ldr r3, [r7, #4]
  36090. 800f9d2: 681b ldr r3, [r3, #0]
  36091. 800f9d4: 6a1a ldr r2, [r3, #32]
  36092. 800f9d6: f241 1311 movw r3, #4369 @ 0x1111
  36093. 800f9da: 4013 ands r3, r2
  36094. 800f9dc: 2b00 cmp r3, #0
  36095. 800f9de: d10f bne.n 800fa00 <HAL_TIM_PWM_Stop+0xb4>
  36096. 800f9e0: 687b ldr r3, [r7, #4]
  36097. 800f9e2: 681b ldr r3, [r3, #0]
  36098. 800f9e4: 6a1a ldr r2, [r3, #32]
  36099. 800f9e6: f240 4344 movw r3, #1092 @ 0x444
  36100. 800f9ea: 4013 ands r3, r2
  36101. 800f9ec: 2b00 cmp r3, #0
  36102. 800f9ee: d107 bne.n 800fa00 <HAL_TIM_PWM_Stop+0xb4>
  36103. 800f9f0: 687b ldr r3, [r7, #4]
  36104. 800f9f2: 681b ldr r3, [r3, #0]
  36105. 800f9f4: 681a ldr r2, [r3, #0]
  36106. 800f9f6: 687b ldr r3, [r7, #4]
  36107. 800f9f8: 681b ldr r3, [r3, #0]
  36108. 800f9fa: f022 0201 bic.w r2, r2, #1
  36109. 800f9fe: 601a str r2, [r3, #0]
  36110. /* Set the TIM channel state */
  36111. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  36112. 800fa00: 683b ldr r3, [r7, #0]
  36113. 800fa02: 2b00 cmp r3, #0
  36114. 800fa04: d104 bne.n 800fa10 <HAL_TIM_PWM_Stop+0xc4>
  36115. 800fa06: 687b ldr r3, [r7, #4]
  36116. 800fa08: 2201 movs r2, #1
  36117. 800fa0a: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36118. 800fa0e: e023 b.n 800fa58 <HAL_TIM_PWM_Stop+0x10c>
  36119. 800fa10: 683b ldr r3, [r7, #0]
  36120. 800fa12: 2b04 cmp r3, #4
  36121. 800fa14: d104 bne.n 800fa20 <HAL_TIM_PWM_Stop+0xd4>
  36122. 800fa16: 687b ldr r3, [r7, #4]
  36123. 800fa18: 2201 movs r2, #1
  36124. 800fa1a: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36125. 800fa1e: e01b b.n 800fa58 <HAL_TIM_PWM_Stop+0x10c>
  36126. 800fa20: 683b ldr r3, [r7, #0]
  36127. 800fa22: 2b08 cmp r3, #8
  36128. 800fa24: d104 bne.n 800fa30 <HAL_TIM_PWM_Stop+0xe4>
  36129. 800fa26: 687b ldr r3, [r7, #4]
  36130. 800fa28: 2201 movs r2, #1
  36131. 800fa2a: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36132. 800fa2e: e013 b.n 800fa58 <HAL_TIM_PWM_Stop+0x10c>
  36133. 800fa30: 683b ldr r3, [r7, #0]
  36134. 800fa32: 2b0c cmp r3, #12
  36135. 800fa34: d104 bne.n 800fa40 <HAL_TIM_PWM_Stop+0xf4>
  36136. 800fa36: 687b ldr r3, [r7, #4]
  36137. 800fa38: 2201 movs r2, #1
  36138. 800fa3a: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36139. 800fa3e: e00b b.n 800fa58 <HAL_TIM_PWM_Stop+0x10c>
  36140. 800fa40: 683b ldr r3, [r7, #0]
  36141. 800fa42: 2b10 cmp r3, #16
  36142. 800fa44: d104 bne.n 800fa50 <HAL_TIM_PWM_Stop+0x104>
  36143. 800fa46: 687b ldr r3, [r7, #4]
  36144. 800fa48: 2201 movs r2, #1
  36145. 800fa4a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36146. 800fa4e: e003 b.n 800fa58 <HAL_TIM_PWM_Stop+0x10c>
  36147. 800fa50: 687b ldr r3, [r7, #4]
  36148. 800fa52: 2201 movs r2, #1
  36149. 800fa54: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36150. /* Return function status */
  36151. return HAL_OK;
  36152. 800fa58: 2300 movs r3, #0
  36153. }
  36154. 800fa5a: 4618 mov r0, r3
  36155. 800fa5c: 3708 adds r7, #8
  36156. 800fa5e: 46bd mov sp, r7
  36157. 800fa60: bd80 pop {r7, pc}
  36158. 800fa62: bf00 nop
  36159. 800fa64: 40010000 .word 0x40010000
  36160. 800fa68: 40010400 .word 0x40010400
  36161. 800fa6c: 40014000 .word 0x40014000
  36162. 800fa70: 40014400 .word 0x40014400
  36163. 800fa74: 40014800 .word 0x40014800
  36164. 0800fa78 <HAL_TIM_IC_Init>:
  36165. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  36166. * @param htim TIM Input Capture handle
  36167. * @retval HAL status
  36168. */
  36169. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  36170. {
  36171. 800fa78: b580 push {r7, lr}
  36172. 800fa7a: b082 sub sp, #8
  36173. 800fa7c: af00 add r7, sp, #0
  36174. 800fa7e: 6078 str r0, [r7, #4]
  36175. /* Check the TIM handle allocation */
  36176. if (htim == NULL)
  36177. 800fa80: 687b ldr r3, [r7, #4]
  36178. 800fa82: 2b00 cmp r3, #0
  36179. 800fa84: d101 bne.n 800fa8a <HAL_TIM_IC_Init+0x12>
  36180. {
  36181. return HAL_ERROR;
  36182. 800fa86: 2301 movs r3, #1
  36183. 800fa88: e049 b.n 800fb1e <HAL_TIM_IC_Init+0xa6>
  36184. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  36185. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  36186. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  36187. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  36188. if (htim->State == HAL_TIM_STATE_RESET)
  36189. 800fa8a: 687b ldr r3, [r7, #4]
  36190. 800fa8c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  36191. 800fa90: b2db uxtb r3, r3
  36192. 800fa92: 2b00 cmp r3, #0
  36193. 800fa94: d106 bne.n 800faa4 <HAL_TIM_IC_Init+0x2c>
  36194. {
  36195. /* Allocate lock resource and initialize it */
  36196. htim->Lock = HAL_UNLOCKED;
  36197. 800fa96: 687b ldr r3, [r7, #4]
  36198. 800fa98: 2200 movs r2, #0
  36199. 800fa9a: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36200. }
  36201. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  36202. htim->IC_MspInitCallback(htim);
  36203. #else
  36204. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  36205. HAL_TIM_IC_MspInit(htim);
  36206. 800fa9e: 6878 ldr r0, [r7, #4]
  36207. 800faa0: f000 f841 bl 800fb26 <HAL_TIM_IC_MspInit>
  36208. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36209. }
  36210. /* Set the TIM state */
  36211. htim->State = HAL_TIM_STATE_BUSY;
  36212. 800faa4: 687b ldr r3, [r7, #4]
  36213. 800faa6: 2202 movs r2, #2
  36214. 800faa8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36215. /* Init the base time for the input capture */
  36216. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  36217. 800faac: 687b ldr r3, [r7, #4]
  36218. 800faae: 681a ldr r2, [r3, #0]
  36219. 800fab0: 687b ldr r3, [r7, #4]
  36220. 800fab2: 3304 adds r3, #4
  36221. 800fab4: 4619 mov r1, r3
  36222. 800fab6: 4610 mov r0, r2
  36223. 800fab8: f000 fddc bl 8010674 <TIM_Base_SetConfig>
  36224. /* Initialize the DMA burst operation state */
  36225. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  36226. 800fabc: 687b ldr r3, [r7, #4]
  36227. 800fabe: 2201 movs r2, #1
  36228. 800fac0: f883 2048 strb.w r2, [r3, #72] @ 0x48
  36229. /* Initialize the TIM channels state */
  36230. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36231. 800fac4: 687b ldr r3, [r7, #4]
  36232. 800fac6: 2201 movs r2, #1
  36233. 800fac8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36234. 800facc: 687b ldr r3, [r7, #4]
  36235. 800face: 2201 movs r2, #1
  36236. 800fad0: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36237. 800fad4: 687b ldr r3, [r7, #4]
  36238. 800fad6: 2201 movs r2, #1
  36239. 800fad8: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36240. 800fadc: 687b ldr r3, [r7, #4]
  36241. 800fade: 2201 movs r2, #1
  36242. 800fae0: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36243. 800fae4: 687b ldr r3, [r7, #4]
  36244. 800fae6: 2201 movs r2, #1
  36245. 800fae8: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36246. 800faec: 687b ldr r3, [r7, #4]
  36247. 800faee: 2201 movs r2, #1
  36248. 800faf0: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36249. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36250. 800faf4: 687b ldr r3, [r7, #4]
  36251. 800faf6: 2201 movs r2, #1
  36252. 800faf8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36253. 800fafc: 687b ldr r3, [r7, #4]
  36254. 800fafe: 2201 movs r2, #1
  36255. 800fb00: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36256. 800fb04: 687b ldr r3, [r7, #4]
  36257. 800fb06: 2201 movs r2, #1
  36258. 800fb08: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36259. 800fb0c: 687b ldr r3, [r7, #4]
  36260. 800fb0e: 2201 movs r2, #1
  36261. 800fb10: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36262. /* Initialize the TIM state*/
  36263. htim->State = HAL_TIM_STATE_READY;
  36264. 800fb14: 687b ldr r3, [r7, #4]
  36265. 800fb16: 2201 movs r2, #1
  36266. 800fb18: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36267. return HAL_OK;
  36268. 800fb1c: 2300 movs r3, #0
  36269. }
  36270. 800fb1e: 4618 mov r0, r3
  36271. 800fb20: 3708 adds r7, #8
  36272. 800fb22: 46bd mov sp, r7
  36273. 800fb24: bd80 pop {r7, pc}
  36274. 0800fb26 <HAL_TIM_IC_MspInit>:
  36275. * @brief Initializes the TIM Input Capture MSP.
  36276. * @param htim TIM Input Capture handle
  36277. * @retval None
  36278. */
  36279. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  36280. {
  36281. 800fb26: b480 push {r7}
  36282. 800fb28: b083 sub sp, #12
  36283. 800fb2a: af00 add r7, sp, #0
  36284. 800fb2c: 6078 str r0, [r7, #4]
  36285. UNUSED(htim);
  36286. /* NOTE : This function should not be modified, when the callback is needed,
  36287. the HAL_TIM_IC_MspInit could be implemented in the user file
  36288. */
  36289. }
  36290. 800fb2e: bf00 nop
  36291. 800fb30: 370c adds r7, #12
  36292. 800fb32: 46bd mov sp, r7
  36293. 800fb34: f85d 7b04 ldr.w r7, [sp], #4
  36294. 800fb38: 4770 bx lr
  36295. ...
  36296. 0800fb3c <HAL_TIM_IC_Start_IT>:
  36297. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36298. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36299. * @retval HAL status
  36300. */
  36301. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  36302. {
  36303. 800fb3c: b580 push {r7, lr}
  36304. 800fb3e: b084 sub sp, #16
  36305. 800fb40: af00 add r7, sp, #0
  36306. 800fb42: 6078 str r0, [r7, #4]
  36307. 800fb44: 6039 str r1, [r7, #0]
  36308. HAL_StatusTypeDef status = HAL_OK;
  36309. 800fb46: 2300 movs r3, #0
  36310. 800fb48: 73fb strb r3, [r7, #15]
  36311. uint32_t tmpsmcr;
  36312. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36313. 800fb4a: 683b ldr r3, [r7, #0]
  36314. 800fb4c: 2b00 cmp r3, #0
  36315. 800fb4e: d104 bne.n 800fb5a <HAL_TIM_IC_Start_IT+0x1e>
  36316. 800fb50: 687b ldr r3, [r7, #4]
  36317. 800fb52: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36318. 800fb56: b2db uxtb r3, r3
  36319. 800fb58: e023 b.n 800fba2 <HAL_TIM_IC_Start_IT+0x66>
  36320. 800fb5a: 683b ldr r3, [r7, #0]
  36321. 800fb5c: 2b04 cmp r3, #4
  36322. 800fb5e: d104 bne.n 800fb6a <HAL_TIM_IC_Start_IT+0x2e>
  36323. 800fb60: 687b ldr r3, [r7, #4]
  36324. 800fb62: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36325. 800fb66: b2db uxtb r3, r3
  36326. 800fb68: e01b b.n 800fba2 <HAL_TIM_IC_Start_IT+0x66>
  36327. 800fb6a: 683b ldr r3, [r7, #0]
  36328. 800fb6c: 2b08 cmp r3, #8
  36329. 800fb6e: d104 bne.n 800fb7a <HAL_TIM_IC_Start_IT+0x3e>
  36330. 800fb70: 687b ldr r3, [r7, #4]
  36331. 800fb72: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36332. 800fb76: b2db uxtb r3, r3
  36333. 800fb78: e013 b.n 800fba2 <HAL_TIM_IC_Start_IT+0x66>
  36334. 800fb7a: 683b ldr r3, [r7, #0]
  36335. 800fb7c: 2b0c cmp r3, #12
  36336. 800fb7e: d104 bne.n 800fb8a <HAL_TIM_IC_Start_IT+0x4e>
  36337. 800fb80: 687b ldr r3, [r7, #4]
  36338. 800fb82: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36339. 800fb86: b2db uxtb r3, r3
  36340. 800fb88: e00b b.n 800fba2 <HAL_TIM_IC_Start_IT+0x66>
  36341. 800fb8a: 683b ldr r3, [r7, #0]
  36342. 800fb8c: 2b10 cmp r3, #16
  36343. 800fb8e: d104 bne.n 800fb9a <HAL_TIM_IC_Start_IT+0x5e>
  36344. 800fb90: 687b ldr r3, [r7, #4]
  36345. 800fb92: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36346. 800fb96: b2db uxtb r3, r3
  36347. 800fb98: e003 b.n 800fba2 <HAL_TIM_IC_Start_IT+0x66>
  36348. 800fb9a: 687b ldr r3, [r7, #4]
  36349. 800fb9c: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36350. 800fba0: b2db uxtb r3, r3
  36351. 800fba2: 73bb strb r3, [r7, #14]
  36352. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  36353. 800fba4: 683b ldr r3, [r7, #0]
  36354. 800fba6: 2b00 cmp r3, #0
  36355. 800fba8: d104 bne.n 800fbb4 <HAL_TIM_IC_Start_IT+0x78>
  36356. 800fbaa: 687b ldr r3, [r7, #4]
  36357. 800fbac: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  36358. 800fbb0: b2db uxtb r3, r3
  36359. 800fbb2: e013 b.n 800fbdc <HAL_TIM_IC_Start_IT+0xa0>
  36360. 800fbb4: 683b ldr r3, [r7, #0]
  36361. 800fbb6: 2b04 cmp r3, #4
  36362. 800fbb8: d104 bne.n 800fbc4 <HAL_TIM_IC_Start_IT+0x88>
  36363. 800fbba: 687b ldr r3, [r7, #4]
  36364. 800fbbc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  36365. 800fbc0: b2db uxtb r3, r3
  36366. 800fbc2: e00b b.n 800fbdc <HAL_TIM_IC_Start_IT+0xa0>
  36367. 800fbc4: 683b ldr r3, [r7, #0]
  36368. 800fbc6: 2b08 cmp r3, #8
  36369. 800fbc8: d104 bne.n 800fbd4 <HAL_TIM_IC_Start_IT+0x98>
  36370. 800fbca: 687b ldr r3, [r7, #4]
  36371. 800fbcc: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  36372. 800fbd0: b2db uxtb r3, r3
  36373. 800fbd2: e003 b.n 800fbdc <HAL_TIM_IC_Start_IT+0xa0>
  36374. 800fbd4: 687b ldr r3, [r7, #4]
  36375. 800fbd6: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  36376. 800fbda: b2db uxtb r3, r3
  36377. 800fbdc: 737b strb r3, [r7, #13]
  36378. /* Check the parameters */
  36379. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  36380. /* Check the TIM channel state */
  36381. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  36382. 800fbde: 7bbb ldrb r3, [r7, #14]
  36383. 800fbe0: 2b01 cmp r3, #1
  36384. 800fbe2: d102 bne.n 800fbea <HAL_TIM_IC_Start_IT+0xae>
  36385. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  36386. 800fbe4: 7b7b ldrb r3, [r7, #13]
  36387. 800fbe6: 2b01 cmp r3, #1
  36388. 800fbe8: d001 beq.n 800fbee <HAL_TIM_IC_Start_IT+0xb2>
  36389. {
  36390. return HAL_ERROR;
  36391. 800fbea: 2301 movs r3, #1
  36392. 800fbec: e0e2 b.n 800fdb4 <HAL_TIM_IC_Start_IT+0x278>
  36393. }
  36394. /* Set the TIM channel state */
  36395. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36396. 800fbee: 683b ldr r3, [r7, #0]
  36397. 800fbf0: 2b00 cmp r3, #0
  36398. 800fbf2: d104 bne.n 800fbfe <HAL_TIM_IC_Start_IT+0xc2>
  36399. 800fbf4: 687b ldr r3, [r7, #4]
  36400. 800fbf6: 2202 movs r2, #2
  36401. 800fbf8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36402. 800fbfc: e023 b.n 800fc46 <HAL_TIM_IC_Start_IT+0x10a>
  36403. 800fbfe: 683b ldr r3, [r7, #0]
  36404. 800fc00: 2b04 cmp r3, #4
  36405. 800fc02: d104 bne.n 800fc0e <HAL_TIM_IC_Start_IT+0xd2>
  36406. 800fc04: 687b ldr r3, [r7, #4]
  36407. 800fc06: 2202 movs r2, #2
  36408. 800fc08: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36409. 800fc0c: e01b b.n 800fc46 <HAL_TIM_IC_Start_IT+0x10a>
  36410. 800fc0e: 683b ldr r3, [r7, #0]
  36411. 800fc10: 2b08 cmp r3, #8
  36412. 800fc12: d104 bne.n 800fc1e <HAL_TIM_IC_Start_IT+0xe2>
  36413. 800fc14: 687b ldr r3, [r7, #4]
  36414. 800fc16: 2202 movs r2, #2
  36415. 800fc18: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36416. 800fc1c: e013 b.n 800fc46 <HAL_TIM_IC_Start_IT+0x10a>
  36417. 800fc1e: 683b ldr r3, [r7, #0]
  36418. 800fc20: 2b0c cmp r3, #12
  36419. 800fc22: d104 bne.n 800fc2e <HAL_TIM_IC_Start_IT+0xf2>
  36420. 800fc24: 687b ldr r3, [r7, #4]
  36421. 800fc26: 2202 movs r2, #2
  36422. 800fc28: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36423. 800fc2c: e00b b.n 800fc46 <HAL_TIM_IC_Start_IT+0x10a>
  36424. 800fc2e: 683b ldr r3, [r7, #0]
  36425. 800fc30: 2b10 cmp r3, #16
  36426. 800fc32: d104 bne.n 800fc3e <HAL_TIM_IC_Start_IT+0x102>
  36427. 800fc34: 687b ldr r3, [r7, #4]
  36428. 800fc36: 2202 movs r2, #2
  36429. 800fc38: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36430. 800fc3c: e003 b.n 800fc46 <HAL_TIM_IC_Start_IT+0x10a>
  36431. 800fc3e: 687b ldr r3, [r7, #4]
  36432. 800fc40: 2202 movs r2, #2
  36433. 800fc42: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36434. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36435. 800fc46: 683b ldr r3, [r7, #0]
  36436. 800fc48: 2b00 cmp r3, #0
  36437. 800fc4a: d104 bne.n 800fc56 <HAL_TIM_IC_Start_IT+0x11a>
  36438. 800fc4c: 687b ldr r3, [r7, #4]
  36439. 800fc4e: 2202 movs r2, #2
  36440. 800fc50: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36441. 800fc54: e013 b.n 800fc7e <HAL_TIM_IC_Start_IT+0x142>
  36442. 800fc56: 683b ldr r3, [r7, #0]
  36443. 800fc58: 2b04 cmp r3, #4
  36444. 800fc5a: d104 bne.n 800fc66 <HAL_TIM_IC_Start_IT+0x12a>
  36445. 800fc5c: 687b ldr r3, [r7, #4]
  36446. 800fc5e: 2202 movs r2, #2
  36447. 800fc60: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36448. 800fc64: e00b b.n 800fc7e <HAL_TIM_IC_Start_IT+0x142>
  36449. 800fc66: 683b ldr r3, [r7, #0]
  36450. 800fc68: 2b08 cmp r3, #8
  36451. 800fc6a: d104 bne.n 800fc76 <HAL_TIM_IC_Start_IT+0x13a>
  36452. 800fc6c: 687b ldr r3, [r7, #4]
  36453. 800fc6e: 2202 movs r2, #2
  36454. 800fc70: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36455. 800fc74: e003 b.n 800fc7e <HAL_TIM_IC_Start_IT+0x142>
  36456. 800fc76: 687b ldr r3, [r7, #4]
  36457. 800fc78: 2202 movs r2, #2
  36458. 800fc7a: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36459. switch (Channel)
  36460. 800fc7e: 683b ldr r3, [r7, #0]
  36461. 800fc80: 2b0c cmp r3, #12
  36462. 800fc82: d841 bhi.n 800fd08 <HAL_TIM_IC_Start_IT+0x1cc>
  36463. 800fc84: a201 add r2, pc, #4 @ (adr r2, 800fc8c <HAL_TIM_IC_Start_IT+0x150>)
  36464. 800fc86: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36465. 800fc8a: bf00 nop
  36466. 800fc8c: 0800fcc1 .word 0x0800fcc1
  36467. 800fc90: 0800fd09 .word 0x0800fd09
  36468. 800fc94: 0800fd09 .word 0x0800fd09
  36469. 800fc98: 0800fd09 .word 0x0800fd09
  36470. 800fc9c: 0800fcd3 .word 0x0800fcd3
  36471. 800fca0: 0800fd09 .word 0x0800fd09
  36472. 800fca4: 0800fd09 .word 0x0800fd09
  36473. 800fca8: 0800fd09 .word 0x0800fd09
  36474. 800fcac: 0800fce5 .word 0x0800fce5
  36475. 800fcb0: 0800fd09 .word 0x0800fd09
  36476. 800fcb4: 0800fd09 .word 0x0800fd09
  36477. 800fcb8: 0800fd09 .word 0x0800fd09
  36478. 800fcbc: 0800fcf7 .word 0x0800fcf7
  36479. {
  36480. case TIM_CHANNEL_1:
  36481. {
  36482. /* Enable the TIM Capture/Compare 1 interrupt */
  36483. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  36484. 800fcc0: 687b ldr r3, [r7, #4]
  36485. 800fcc2: 681b ldr r3, [r3, #0]
  36486. 800fcc4: 68da ldr r2, [r3, #12]
  36487. 800fcc6: 687b ldr r3, [r7, #4]
  36488. 800fcc8: 681b ldr r3, [r3, #0]
  36489. 800fcca: f042 0202 orr.w r2, r2, #2
  36490. 800fcce: 60da str r2, [r3, #12]
  36491. break;
  36492. 800fcd0: e01d b.n 800fd0e <HAL_TIM_IC_Start_IT+0x1d2>
  36493. }
  36494. case TIM_CHANNEL_2:
  36495. {
  36496. /* Enable the TIM Capture/Compare 2 interrupt */
  36497. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  36498. 800fcd2: 687b ldr r3, [r7, #4]
  36499. 800fcd4: 681b ldr r3, [r3, #0]
  36500. 800fcd6: 68da ldr r2, [r3, #12]
  36501. 800fcd8: 687b ldr r3, [r7, #4]
  36502. 800fcda: 681b ldr r3, [r3, #0]
  36503. 800fcdc: f042 0204 orr.w r2, r2, #4
  36504. 800fce0: 60da str r2, [r3, #12]
  36505. break;
  36506. 800fce2: e014 b.n 800fd0e <HAL_TIM_IC_Start_IT+0x1d2>
  36507. }
  36508. case TIM_CHANNEL_3:
  36509. {
  36510. /* Enable the TIM Capture/Compare 3 interrupt */
  36511. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  36512. 800fce4: 687b ldr r3, [r7, #4]
  36513. 800fce6: 681b ldr r3, [r3, #0]
  36514. 800fce8: 68da ldr r2, [r3, #12]
  36515. 800fcea: 687b ldr r3, [r7, #4]
  36516. 800fcec: 681b ldr r3, [r3, #0]
  36517. 800fcee: f042 0208 orr.w r2, r2, #8
  36518. 800fcf2: 60da str r2, [r3, #12]
  36519. break;
  36520. 800fcf4: e00b b.n 800fd0e <HAL_TIM_IC_Start_IT+0x1d2>
  36521. }
  36522. case TIM_CHANNEL_4:
  36523. {
  36524. /* Enable the TIM Capture/Compare 4 interrupt */
  36525. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  36526. 800fcf6: 687b ldr r3, [r7, #4]
  36527. 800fcf8: 681b ldr r3, [r3, #0]
  36528. 800fcfa: 68da ldr r2, [r3, #12]
  36529. 800fcfc: 687b ldr r3, [r7, #4]
  36530. 800fcfe: 681b ldr r3, [r3, #0]
  36531. 800fd00: f042 0210 orr.w r2, r2, #16
  36532. 800fd04: 60da str r2, [r3, #12]
  36533. break;
  36534. 800fd06: e002 b.n 800fd0e <HAL_TIM_IC_Start_IT+0x1d2>
  36535. }
  36536. default:
  36537. status = HAL_ERROR;
  36538. 800fd08: 2301 movs r3, #1
  36539. 800fd0a: 73fb strb r3, [r7, #15]
  36540. break;
  36541. 800fd0c: bf00 nop
  36542. }
  36543. if (status == HAL_OK)
  36544. 800fd0e: 7bfb ldrb r3, [r7, #15]
  36545. 800fd10: 2b00 cmp r3, #0
  36546. 800fd12: d14e bne.n 800fdb2 <HAL_TIM_IC_Start_IT+0x276>
  36547. {
  36548. /* Enable the Input Capture channel */
  36549. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  36550. 800fd14: 687b ldr r3, [r7, #4]
  36551. 800fd16: 681b ldr r3, [r3, #0]
  36552. 800fd18: 2201 movs r2, #1
  36553. 800fd1a: 6839 ldr r1, [r7, #0]
  36554. 800fd1c: 4618 mov r0, r3
  36555. 800fd1e: f001 f9ed bl 80110fc <TIM_CCxChannelCmd>
  36556. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  36557. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  36558. 800fd22: 687b ldr r3, [r7, #4]
  36559. 800fd24: 681b ldr r3, [r3, #0]
  36560. 800fd26: 4a25 ldr r2, [pc, #148] @ (800fdbc <HAL_TIM_IC_Start_IT+0x280>)
  36561. 800fd28: 4293 cmp r3, r2
  36562. 800fd2a: d022 beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36563. 800fd2c: 687b ldr r3, [r7, #4]
  36564. 800fd2e: 681b ldr r3, [r3, #0]
  36565. 800fd30: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36566. 800fd34: d01d beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36567. 800fd36: 687b ldr r3, [r7, #4]
  36568. 800fd38: 681b ldr r3, [r3, #0]
  36569. 800fd3a: 4a21 ldr r2, [pc, #132] @ (800fdc0 <HAL_TIM_IC_Start_IT+0x284>)
  36570. 800fd3c: 4293 cmp r3, r2
  36571. 800fd3e: d018 beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36572. 800fd40: 687b ldr r3, [r7, #4]
  36573. 800fd42: 681b ldr r3, [r3, #0]
  36574. 800fd44: 4a1f ldr r2, [pc, #124] @ (800fdc4 <HAL_TIM_IC_Start_IT+0x288>)
  36575. 800fd46: 4293 cmp r3, r2
  36576. 800fd48: d013 beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36577. 800fd4a: 687b ldr r3, [r7, #4]
  36578. 800fd4c: 681b ldr r3, [r3, #0]
  36579. 800fd4e: 4a1e ldr r2, [pc, #120] @ (800fdc8 <HAL_TIM_IC_Start_IT+0x28c>)
  36580. 800fd50: 4293 cmp r3, r2
  36581. 800fd52: d00e beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36582. 800fd54: 687b ldr r3, [r7, #4]
  36583. 800fd56: 681b ldr r3, [r3, #0]
  36584. 800fd58: 4a1c ldr r2, [pc, #112] @ (800fdcc <HAL_TIM_IC_Start_IT+0x290>)
  36585. 800fd5a: 4293 cmp r3, r2
  36586. 800fd5c: d009 beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36587. 800fd5e: 687b ldr r3, [r7, #4]
  36588. 800fd60: 681b ldr r3, [r3, #0]
  36589. 800fd62: 4a1b ldr r2, [pc, #108] @ (800fdd0 <HAL_TIM_IC_Start_IT+0x294>)
  36590. 800fd64: 4293 cmp r3, r2
  36591. 800fd66: d004 beq.n 800fd72 <HAL_TIM_IC_Start_IT+0x236>
  36592. 800fd68: 687b ldr r3, [r7, #4]
  36593. 800fd6a: 681b ldr r3, [r3, #0]
  36594. 800fd6c: 4a19 ldr r2, [pc, #100] @ (800fdd4 <HAL_TIM_IC_Start_IT+0x298>)
  36595. 800fd6e: 4293 cmp r3, r2
  36596. 800fd70: d115 bne.n 800fd9e <HAL_TIM_IC_Start_IT+0x262>
  36597. {
  36598. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  36599. 800fd72: 687b ldr r3, [r7, #4]
  36600. 800fd74: 681b ldr r3, [r3, #0]
  36601. 800fd76: 689a ldr r2, [r3, #8]
  36602. 800fd78: 4b17 ldr r3, [pc, #92] @ (800fdd8 <HAL_TIM_IC_Start_IT+0x29c>)
  36603. 800fd7a: 4013 ands r3, r2
  36604. 800fd7c: 60bb str r3, [r7, #8]
  36605. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36606. 800fd7e: 68bb ldr r3, [r7, #8]
  36607. 800fd80: 2b06 cmp r3, #6
  36608. 800fd82: d015 beq.n 800fdb0 <HAL_TIM_IC_Start_IT+0x274>
  36609. 800fd84: 68bb ldr r3, [r7, #8]
  36610. 800fd86: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  36611. 800fd8a: d011 beq.n 800fdb0 <HAL_TIM_IC_Start_IT+0x274>
  36612. {
  36613. __HAL_TIM_ENABLE(htim);
  36614. 800fd8c: 687b ldr r3, [r7, #4]
  36615. 800fd8e: 681b ldr r3, [r3, #0]
  36616. 800fd90: 681a ldr r2, [r3, #0]
  36617. 800fd92: 687b ldr r3, [r7, #4]
  36618. 800fd94: 681b ldr r3, [r3, #0]
  36619. 800fd96: f042 0201 orr.w r2, r2, #1
  36620. 800fd9a: 601a str r2, [r3, #0]
  36621. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36622. 800fd9c: e008 b.n 800fdb0 <HAL_TIM_IC_Start_IT+0x274>
  36623. }
  36624. }
  36625. else
  36626. {
  36627. __HAL_TIM_ENABLE(htim);
  36628. 800fd9e: 687b ldr r3, [r7, #4]
  36629. 800fda0: 681b ldr r3, [r3, #0]
  36630. 800fda2: 681a ldr r2, [r3, #0]
  36631. 800fda4: 687b ldr r3, [r7, #4]
  36632. 800fda6: 681b ldr r3, [r3, #0]
  36633. 800fda8: f042 0201 orr.w r2, r2, #1
  36634. 800fdac: 601a str r2, [r3, #0]
  36635. 800fdae: e000 b.n 800fdb2 <HAL_TIM_IC_Start_IT+0x276>
  36636. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36637. 800fdb0: bf00 nop
  36638. }
  36639. }
  36640. /* Return function status */
  36641. return status;
  36642. 800fdb2: 7bfb ldrb r3, [r7, #15]
  36643. }
  36644. 800fdb4: 4618 mov r0, r3
  36645. 800fdb6: 3710 adds r7, #16
  36646. 800fdb8: 46bd mov sp, r7
  36647. 800fdba: bd80 pop {r7, pc}
  36648. 800fdbc: 40010000 .word 0x40010000
  36649. 800fdc0: 40000400 .word 0x40000400
  36650. 800fdc4: 40000800 .word 0x40000800
  36651. 800fdc8: 40000c00 .word 0x40000c00
  36652. 800fdcc: 40010400 .word 0x40010400
  36653. 800fdd0: 40001800 .word 0x40001800
  36654. 800fdd4: 40014000 .word 0x40014000
  36655. 800fdd8: 00010007 .word 0x00010007
  36656. 0800fddc <HAL_TIM_IRQHandler>:
  36657. * @brief This function handles TIM interrupts requests.
  36658. * @param htim TIM handle
  36659. * @retval None
  36660. */
  36661. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  36662. {
  36663. 800fddc: b580 push {r7, lr}
  36664. 800fdde: b084 sub sp, #16
  36665. 800fde0: af00 add r7, sp, #0
  36666. 800fde2: 6078 str r0, [r7, #4]
  36667. uint32_t itsource = htim->Instance->DIER;
  36668. 800fde4: 687b ldr r3, [r7, #4]
  36669. 800fde6: 681b ldr r3, [r3, #0]
  36670. 800fde8: 68db ldr r3, [r3, #12]
  36671. 800fdea: 60fb str r3, [r7, #12]
  36672. uint32_t itflag = htim->Instance->SR;
  36673. 800fdec: 687b ldr r3, [r7, #4]
  36674. 800fdee: 681b ldr r3, [r3, #0]
  36675. 800fdf0: 691b ldr r3, [r3, #16]
  36676. 800fdf2: 60bb str r3, [r7, #8]
  36677. /* Capture compare 1 event */
  36678. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  36679. 800fdf4: 68bb ldr r3, [r7, #8]
  36680. 800fdf6: f003 0302 and.w r3, r3, #2
  36681. 800fdfa: 2b00 cmp r3, #0
  36682. 800fdfc: d020 beq.n 800fe40 <HAL_TIM_IRQHandler+0x64>
  36683. {
  36684. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  36685. 800fdfe: 68fb ldr r3, [r7, #12]
  36686. 800fe00: f003 0302 and.w r3, r3, #2
  36687. 800fe04: 2b00 cmp r3, #0
  36688. 800fe06: d01b beq.n 800fe40 <HAL_TIM_IRQHandler+0x64>
  36689. {
  36690. {
  36691. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  36692. 800fe08: 687b ldr r3, [r7, #4]
  36693. 800fe0a: 681b ldr r3, [r3, #0]
  36694. 800fe0c: f06f 0202 mvn.w r2, #2
  36695. 800fe10: 611a str r2, [r3, #16]
  36696. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  36697. 800fe12: 687b ldr r3, [r7, #4]
  36698. 800fe14: 2201 movs r2, #1
  36699. 800fe16: 771a strb r2, [r3, #28]
  36700. /* Input capture event */
  36701. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  36702. 800fe18: 687b ldr r3, [r7, #4]
  36703. 800fe1a: 681b ldr r3, [r3, #0]
  36704. 800fe1c: 699b ldr r3, [r3, #24]
  36705. 800fe1e: f003 0303 and.w r3, r3, #3
  36706. 800fe22: 2b00 cmp r3, #0
  36707. 800fe24: d003 beq.n 800fe2e <HAL_TIM_IRQHandler+0x52>
  36708. {
  36709. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36710. htim->IC_CaptureCallback(htim);
  36711. #else
  36712. HAL_TIM_IC_CaptureCallback(htim);
  36713. 800fe26: 6878 ldr r0, [r7, #4]
  36714. 800fe28: f7f1 fdc0 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36715. 800fe2c: e005 b.n 800fe3a <HAL_TIM_IRQHandler+0x5e>
  36716. {
  36717. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36718. htim->OC_DelayElapsedCallback(htim);
  36719. htim->PWM_PulseFinishedCallback(htim);
  36720. #else
  36721. HAL_TIM_OC_DelayElapsedCallback(htim);
  36722. 800fe2e: 6878 ldr r0, [r7, #4]
  36723. 800fe30: f000 fbc8 bl 80105c4 <HAL_TIM_OC_DelayElapsedCallback>
  36724. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36725. 800fe34: 6878 ldr r0, [r7, #4]
  36726. 800fe36: f000 fbcf bl 80105d8 <HAL_TIM_PWM_PulseFinishedCallback>
  36727. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36728. }
  36729. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36730. 800fe3a: 687b ldr r3, [r7, #4]
  36731. 800fe3c: 2200 movs r2, #0
  36732. 800fe3e: 771a strb r2, [r3, #28]
  36733. }
  36734. }
  36735. }
  36736. /* Capture compare 2 event */
  36737. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  36738. 800fe40: 68bb ldr r3, [r7, #8]
  36739. 800fe42: f003 0304 and.w r3, r3, #4
  36740. 800fe46: 2b00 cmp r3, #0
  36741. 800fe48: d020 beq.n 800fe8c <HAL_TIM_IRQHandler+0xb0>
  36742. {
  36743. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  36744. 800fe4a: 68fb ldr r3, [r7, #12]
  36745. 800fe4c: f003 0304 and.w r3, r3, #4
  36746. 800fe50: 2b00 cmp r3, #0
  36747. 800fe52: d01b beq.n 800fe8c <HAL_TIM_IRQHandler+0xb0>
  36748. {
  36749. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  36750. 800fe54: 687b ldr r3, [r7, #4]
  36751. 800fe56: 681b ldr r3, [r3, #0]
  36752. 800fe58: f06f 0204 mvn.w r2, #4
  36753. 800fe5c: 611a str r2, [r3, #16]
  36754. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  36755. 800fe5e: 687b ldr r3, [r7, #4]
  36756. 800fe60: 2202 movs r2, #2
  36757. 800fe62: 771a strb r2, [r3, #28]
  36758. /* Input capture event */
  36759. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  36760. 800fe64: 687b ldr r3, [r7, #4]
  36761. 800fe66: 681b ldr r3, [r3, #0]
  36762. 800fe68: 699b ldr r3, [r3, #24]
  36763. 800fe6a: f403 7340 and.w r3, r3, #768 @ 0x300
  36764. 800fe6e: 2b00 cmp r3, #0
  36765. 800fe70: d003 beq.n 800fe7a <HAL_TIM_IRQHandler+0x9e>
  36766. {
  36767. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36768. htim->IC_CaptureCallback(htim);
  36769. #else
  36770. HAL_TIM_IC_CaptureCallback(htim);
  36771. 800fe72: 6878 ldr r0, [r7, #4]
  36772. 800fe74: f7f1 fd9a bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36773. 800fe78: e005 b.n 800fe86 <HAL_TIM_IRQHandler+0xaa>
  36774. {
  36775. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36776. htim->OC_DelayElapsedCallback(htim);
  36777. htim->PWM_PulseFinishedCallback(htim);
  36778. #else
  36779. HAL_TIM_OC_DelayElapsedCallback(htim);
  36780. 800fe7a: 6878 ldr r0, [r7, #4]
  36781. 800fe7c: f000 fba2 bl 80105c4 <HAL_TIM_OC_DelayElapsedCallback>
  36782. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36783. 800fe80: 6878 ldr r0, [r7, #4]
  36784. 800fe82: f000 fba9 bl 80105d8 <HAL_TIM_PWM_PulseFinishedCallback>
  36785. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36786. }
  36787. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36788. 800fe86: 687b ldr r3, [r7, #4]
  36789. 800fe88: 2200 movs r2, #0
  36790. 800fe8a: 771a strb r2, [r3, #28]
  36791. }
  36792. }
  36793. /* Capture compare 3 event */
  36794. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  36795. 800fe8c: 68bb ldr r3, [r7, #8]
  36796. 800fe8e: f003 0308 and.w r3, r3, #8
  36797. 800fe92: 2b00 cmp r3, #0
  36798. 800fe94: d020 beq.n 800fed8 <HAL_TIM_IRQHandler+0xfc>
  36799. {
  36800. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  36801. 800fe96: 68fb ldr r3, [r7, #12]
  36802. 800fe98: f003 0308 and.w r3, r3, #8
  36803. 800fe9c: 2b00 cmp r3, #0
  36804. 800fe9e: d01b beq.n 800fed8 <HAL_TIM_IRQHandler+0xfc>
  36805. {
  36806. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  36807. 800fea0: 687b ldr r3, [r7, #4]
  36808. 800fea2: 681b ldr r3, [r3, #0]
  36809. 800fea4: f06f 0208 mvn.w r2, #8
  36810. 800fea8: 611a str r2, [r3, #16]
  36811. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  36812. 800feaa: 687b ldr r3, [r7, #4]
  36813. 800feac: 2204 movs r2, #4
  36814. 800feae: 771a strb r2, [r3, #28]
  36815. /* Input capture event */
  36816. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  36817. 800feb0: 687b ldr r3, [r7, #4]
  36818. 800feb2: 681b ldr r3, [r3, #0]
  36819. 800feb4: 69db ldr r3, [r3, #28]
  36820. 800feb6: f003 0303 and.w r3, r3, #3
  36821. 800feba: 2b00 cmp r3, #0
  36822. 800febc: d003 beq.n 800fec6 <HAL_TIM_IRQHandler+0xea>
  36823. {
  36824. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36825. htim->IC_CaptureCallback(htim);
  36826. #else
  36827. HAL_TIM_IC_CaptureCallback(htim);
  36828. 800febe: 6878 ldr r0, [r7, #4]
  36829. 800fec0: f7f1 fd74 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36830. 800fec4: e005 b.n 800fed2 <HAL_TIM_IRQHandler+0xf6>
  36831. {
  36832. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36833. htim->OC_DelayElapsedCallback(htim);
  36834. htim->PWM_PulseFinishedCallback(htim);
  36835. #else
  36836. HAL_TIM_OC_DelayElapsedCallback(htim);
  36837. 800fec6: 6878 ldr r0, [r7, #4]
  36838. 800fec8: f000 fb7c bl 80105c4 <HAL_TIM_OC_DelayElapsedCallback>
  36839. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36840. 800fecc: 6878 ldr r0, [r7, #4]
  36841. 800fece: f000 fb83 bl 80105d8 <HAL_TIM_PWM_PulseFinishedCallback>
  36842. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36843. }
  36844. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36845. 800fed2: 687b ldr r3, [r7, #4]
  36846. 800fed4: 2200 movs r2, #0
  36847. 800fed6: 771a strb r2, [r3, #28]
  36848. }
  36849. }
  36850. /* Capture compare 4 event */
  36851. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  36852. 800fed8: 68bb ldr r3, [r7, #8]
  36853. 800feda: f003 0310 and.w r3, r3, #16
  36854. 800fede: 2b00 cmp r3, #0
  36855. 800fee0: d020 beq.n 800ff24 <HAL_TIM_IRQHandler+0x148>
  36856. {
  36857. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  36858. 800fee2: 68fb ldr r3, [r7, #12]
  36859. 800fee4: f003 0310 and.w r3, r3, #16
  36860. 800fee8: 2b00 cmp r3, #0
  36861. 800feea: d01b beq.n 800ff24 <HAL_TIM_IRQHandler+0x148>
  36862. {
  36863. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  36864. 800feec: 687b ldr r3, [r7, #4]
  36865. 800feee: 681b ldr r3, [r3, #0]
  36866. 800fef0: f06f 0210 mvn.w r2, #16
  36867. 800fef4: 611a str r2, [r3, #16]
  36868. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  36869. 800fef6: 687b ldr r3, [r7, #4]
  36870. 800fef8: 2208 movs r2, #8
  36871. 800fefa: 771a strb r2, [r3, #28]
  36872. /* Input capture event */
  36873. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  36874. 800fefc: 687b ldr r3, [r7, #4]
  36875. 800fefe: 681b ldr r3, [r3, #0]
  36876. 800ff00: 69db ldr r3, [r3, #28]
  36877. 800ff02: f403 7340 and.w r3, r3, #768 @ 0x300
  36878. 800ff06: 2b00 cmp r3, #0
  36879. 800ff08: d003 beq.n 800ff12 <HAL_TIM_IRQHandler+0x136>
  36880. {
  36881. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36882. htim->IC_CaptureCallback(htim);
  36883. #else
  36884. HAL_TIM_IC_CaptureCallback(htim);
  36885. 800ff0a: 6878 ldr r0, [r7, #4]
  36886. 800ff0c: f7f1 fd4e bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36887. 800ff10: e005 b.n 800ff1e <HAL_TIM_IRQHandler+0x142>
  36888. {
  36889. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36890. htim->OC_DelayElapsedCallback(htim);
  36891. htim->PWM_PulseFinishedCallback(htim);
  36892. #else
  36893. HAL_TIM_OC_DelayElapsedCallback(htim);
  36894. 800ff12: 6878 ldr r0, [r7, #4]
  36895. 800ff14: f000 fb56 bl 80105c4 <HAL_TIM_OC_DelayElapsedCallback>
  36896. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36897. 800ff18: 6878 ldr r0, [r7, #4]
  36898. 800ff1a: f000 fb5d bl 80105d8 <HAL_TIM_PWM_PulseFinishedCallback>
  36899. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36900. }
  36901. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36902. 800ff1e: 687b ldr r3, [r7, #4]
  36903. 800ff20: 2200 movs r2, #0
  36904. 800ff22: 771a strb r2, [r3, #28]
  36905. }
  36906. }
  36907. /* TIM Update event */
  36908. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  36909. 800ff24: 68bb ldr r3, [r7, #8]
  36910. 800ff26: f003 0301 and.w r3, r3, #1
  36911. 800ff2a: 2b00 cmp r3, #0
  36912. 800ff2c: d00c beq.n 800ff48 <HAL_TIM_IRQHandler+0x16c>
  36913. {
  36914. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  36915. 800ff2e: 68fb ldr r3, [r7, #12]
  36916. 800ff30: f003 0301 and.w r3, r3, #1
  36917. 800ff34: 2b00 cmp r3, #0
  36918. 800ff36: d007 beq.n 800ff48 <HAL_TIM_IRQHandler+0x16c>
  36919. {
  36920. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  36921. 800ff38: 687b ldr r3, [r7, #4]
  36922. 800ff3a: 681b ldr r3, [r3, #0]
  36923. 800ff3c: f06f 0201 mvn.w r2, #1
  36924. 800ff40: 611a str r2, [r3, #16]
  36925. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36926. htim->PeriodElapsedCallback(htim);
  36927. #else
  36928. HAL_TIM_PeriodElapsedCallback(htim);
  36929. 800ff42: 6878 ldr r0, [r7, #4]
  36930. 800ff44: f7f1 ff8e bl 8001e64 <HAL_TIM_PeriodElapsedCallback>
  36931. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36932. }
  36933. }
  36934. /* TIM Break input event */
  36935. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36936. 800ff48: 68bb ldr r3, [r7, #8]
  36937. 800ff4a: f003 0380 and.w r3, r3, #128 @ 0x80
  36938. 800ff4e: 2b00 cmp r3, #0
  36939. 800ff50: d104 bne.n 800ff5c <HAL_TIM_IRQHandler+0x180>
  36940. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  36941. 800ff52: 68bb ldr r3, [r7, #8]
  36942. 800ff54: f403 5300 and.w r3, r3, #8192 @ 0x2000
  36943. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36944. 800ff58: 2b00 cmp r3, #0
  36945. 800ff5a: d00c beq.n 800ff76 <HAL_TIM_IRQHandler+0x19a>
  36946. {
  36947. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36948. 800ff5c: 68fb ldr r3, [r7, #12]
  36949. 800ff5e: f003 0380 and.w r3, r3, #128 @ 0x80
  36950. 800ff62: 2b00 cmp r3, #0
  36951. 800ff64: d007 beq.n 800ff76 <HAL_TIM_IRQHandler+0x19a>
  36952. {
  36953. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  36954. 800ff66: 687b ldr r3, [r7, #4]
  36955. 800ff68: 681b ldr r3, [r3, #0]
  36956. 800ff6a: f46f 5202 mvn.w r2, #8320 @ 0x2080
  36957. 800ff6e: 611a str r2, [r3, #16]
  36958. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36959. htim->BreakCallback(htim);
  36960. #else
  36961. HAL_TIMEx_BreakCallback(htim);
  36962. 800ff70: 6878 ldr r0, [r7, #4]
  36963. 800ff72: f001 f9ff bl 8011374 <HAL_TIMEx_BreakCallback>
  36964. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36965. }
  36966. }
  36967. /* TIM Break2 input event */
  36968. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  36969. 800ff76: 68bb ldr r3, [r7, #8]
  36970. 800ff78: f403 7380 and.w r3, r3, #256 @ 0x100
  36971. 800ff7c: 2b00 cmp r3, #0
  36972. 800ff7e: d00c beq.n 800ff9a <HAL_TIM_IRQHandler+0x1be>
  36973. {
  36974. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36975. 800ff80: 68fb ldr r3, [r7, #12]
  36976. 800ff82: f003 0380 and.w r3, r3, #128 @ 0x80
  36977. 800ff86: 2b00 cmp r3, #0
  36978. 800ff88: d007 beq.n 800ff9a <HAL_TIM_IRQHandler+0x1be>
  36979. {
  36980. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  36981. 800ff8a: 687b ldr r3, [r7, #4]
  36982. 800ff8c: 681b ldr r3, [r3, #0]
  36983. 800ff8e: f46f 7280 mvn.w r2, #256 @ 0x100
  36984. 800ff92: 611a str r2, [r3, #16]
  36985. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36986. htim->Break2Callback(htim);
  36987. #else
  36988. HAL_TIMEx_Break2Callback(htim);
  36989. 800ff94: 6878 ldr r0, [r7, #4]
  36990. 800ff96: f001 f9f7 bl 8011388 <HAL_TIMEx_Break2Callback>
  36991. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36992. }
  36993. }
  36994. /* TIM Trigger detection event */
  36995. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  36996. 800ff9a: 68bb ldr r3, [r7, #8]
  36997. 800ff9c: f003 0340 and.w r3, r3, #64 @ 0x40
  36998. 800ffa0: 2b00 cmp r3, #0
  36999. 800ffa2: d00c beq.n 800ffbe <HAL_TIM_IRQHandler+0x1e2>
  37000. {
  37001. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  37002. 800ffa4: 68fb ldr r3, [r7, #12]
  37003. 800ffa6: f003 0340 and.w r3, r3, #64 @ 0x40
  37004. 800ffaa: 2b00 cmp r3, #0
  37005. 800ffac: d007 beq.n 800ffbe <HAL_TIM_IRQHandler+0x1e2>
  37006. {
  37007. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  37008. 800ffae: 687b ldr r3, [r7, #4]
  37009. 800ffb0: 681b ldr r3, [r3, #0]
  37010. 800ffb2: f06f 0240 mvn.w r2, #64 @ 0x40
  37011. 800ffb6: 611a str r2, [r3, #16]
  37012. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37013. htim->TriggerCallback(htim);
  37014. #else
  37015. HAL_TIM_TriggerCallback(htim);
  37016. 800ffb8: 6878 ldr r0, [r7, #4]
  37017. 800ffba: f000 fb17 bl 80105ec <HAL_TIM_TriggerCallback>
  37018. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37019. }
  37020. }
  37021. /* TIM commutation event */
  37022. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  37023. 800ffbe: 68bb ldr r3, [r7, #8]
  37024. 800ffc0: f003 0320 and.w r3, r3, #32
  37025. 800ffc4: 2b00 cmp r3, #0
  37026. 800ffc6: d00c beq.n 800ffe2 <HAL_TIM_IRQHandler+0x206>
  37027. {
  37028. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  37029. 800ffc8: 68fb ldr r3, [r7, #12]
  37030. 800ffca: f003 0320 and.w r3, r3, #32
  37031. 800ffce: 2b00 cmp r3, #0
  37032. 800ffd0: d007 beq.n 800ffe2 <HAL_TIM_IRQHandler+0x206>
  37033. {
  37034. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  37035. 800ffd2: 687b ldr r3, [r7, #4]
  37036. 800ffd4: 681b ldr r3, [r3, #0]
  37037. 800ffd6: f06f 0220 mvn.w r2, #32
  37038. 800ffda: 611a str r2, [r3, #16]
  37039. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37040. htim->CommutationCallback(htim);
  37041. #else
  37042. HAL_TIMEx_CommutCallback(htim);
  37043. 800ffdc: 6878 ldr r0, [r7, #4]
  37044. 800ffde: f001 f9bf bl 8011360 <HAL_TIMEx_CommutCallback>
  37045. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37046. }
  37047. }
  37048. }
  37049. 800ffe2: bf00 nop
  37050. 800ffe4: 3710 adds r7, #16
  37051. 800ffe6: 46bd mov sp, r7
  37052. 800ffe8: bd80 pop {r7, pc}
  37053. 0800ffea <HAL_TIM_IC_ConfigChannel>:
  37054. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37055. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37056. * @retval HAL status
  37057. */
  37058. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  37059. {
  37060. 800ffea: b580 push {r7, lr}
  37061. 800ffec: b086 sub sp, #24
  37062. 800ffee: af00 add r7, sp, #0
  37063. 800fff0: 60f8 str r0, [r7, #12]
  37064. 800fff2: 60b9 str r1, [r7, #8]
  37065. 800fff4: 607a str r2, [r7, #4]
  37066. HAL_StatusTypeDef status = HAL_OK;
  37067. 800fff6: 2300 movs r3, #0
  37068. 800fff8: 75fb strb r3, [r7, #23]
  37069. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  37070. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  37071. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  37072. /* Process Locked */
  37073. __HAL_LOCK(htim);
  37074. 800fffa: 68fb ldr r3, [r7, #12]
  37075. 800fffc: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37076. 8010000: 2b01 cmp r3, #1
  37077. 8010002: d101 bne.n 8010008 <HAL_TIM_IC_ConfigChannel+0x1e>
  37078. 8010004: 2302 movs r3, #2
  37079. 8010006: e088 b.n 801011a <HAL_TIM_IC_ConfigChannel+0x130>
  37080. 8010008: 68fb ldr r3, [r7, #12]
  37081. 801000a: 2201 movs r2, #1
  37082. 801000c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37083. if (Channel == TIM_CHANNEL_1)
  37084. 8010010: 687b ldr r3, [r7, #4]
  37085. 8010012: 2b00 cmp r3, #0
  37086. 8010014: d11b bne.n 801004e <HAL_TIM_IC_ConfigChannel+0x64>
  37087. {
  37088. /* TI1 Configuration */
  37089. TIM_TI1_SetConfig(htim->Instance,
  37090. 8010016: 68fb ldr r3, [r7, #12]
  37091. 8010018: 6818 ldr r0, [r3, #0]
  37092. sConfig->ICPolarity,
  37093. 801001a: 68bb ldr r3, [r7, #8]
  37094. 801001c: 6819 ldr r1, [r3, #0]
  37095. sConfig->ICSelection,
  37096. 801001e: 68bb ldr r3, [r7, #8]
  37097. 8010020: 685a ldr r2, [r3, #4]
  37098. sConfig->ICFilter);
  37099. 8010022: 68bb ldr r3, [r7, #8]
  37100. 8010024: 68db ldr r3, [r3, #12]
  37101. TIM_TI1_SetConfig(htim->Instance,
  37102. 8010026: f000 fea1 bl 8010d6c <TIM_TI1_SetConfig>
  37103. /* Reset the IC1PSC Bits */
  37104. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  37105. 801002a: 68fb ldr r3, [r7, #12]
  37106. 801002c: 681b ldr r3, [r3, #0]
  37107. 801002e: 699a ldr r2, [r3, #24]
  37108. 8010030: 68fb ldr r3, [r7, #12]
  37109. 8010032: 681b ldr r3, [r3, #0]
  37110. 8010034: f022 020c bic.w r2, r2, #12
  37111. 8010038: 619a str r2, [r3, #24]
  37112. /* Set the IC1PSC value */
  37113. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  37114. 801003a: 68fb ldr r3, [r7, #12]
  37115. 801003c: 681b ldr r3, [r3, #0]
  37116. 801003e: 6999 ldr r1, [r3, #24]
  37117. 8010040: 68bb ldr r3, [r7, #8]
  37118. 8010042: 689a ldr r2, [r3, #8]
  37119. 8010044: 68fb ldr r3, [r7, #12]
  37120. 8010046: 681b ldr r3, [r3, #0]
  37121. 8010048: 430a orrs r2, r1
  37122. 801004a: 619a str r2, [r3, #24]
  37123. 801004c: e060 b.n 8010110 <HAL_TIM_IC_ConfigChannel+0x126>
  37124. }
  37125. else if (Channel == TIM_CHANNEL_2)
  37126. 801004e: 687b ldr r3, [r7, #4]
  37127. 8010050: 2b04 cmp r3, #4
  37128. 8010052: d11c bne.n 801008e <HAL_TIM_IC_ConfigChannel+0xa4>
  37129. {
  37130. /* TI2 Configuration */
  37131. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37132. TIM_TI2_SetConfig(htim->Instance,
  37133. 8010054: 68fb ldr r3, [r7, #12]
  37134. 8010056: 6818 ldr r0, [r3, #0]
  37135. sConfig->ICPolarity,
  37136. 8010058: 68bb ldr r3, [r7, #8]
  37137. 801005a: 6819 ldr r1, [r3, #0]
  37138. sConfig->ICSelection,
  37139. 801005c: 68bb ldr r3, [r7, #8]
  37140. 801005e: 685a ldr r2, [r3, #4]
  37141. sConfig->ICFilter);
  37142. 8010060: 68bb ldr r3, [r7, #8]
  37143. 8010062: 68db ldr r3, [r3, #12]
  37144. TIM_TI2_SetConfig(htim->Instance,
  37145. 8010064: f000 ff25 bl 8010eb2 <TIM_TI2_SetConfig>
  37146. /* Reset the IC2PSC Bits */
  37147. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  37148. 8010068: 68fb ldr r3, [r7, #12]
  37149. 801006a: 681b ldr r3, [r3, #0]
  37150. 801006c: 699a ldr r2, [r3, #24]
  37151. 801006e: 68fb ldr r3, [r7, #12]
  37152. 8010070: 681b ldr r3, [r3, #0]
  37153. 8010072: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37154. 8010076: 619a str r2, [r3, #24]
  37155. /* Set the IC2PSC value */
  37156. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  37157. 8010078: 68fb ldr r3, [r7, #12]
  37158. 801007a: 681b ldr r3, [r3, #0]
  37159. 801007c: 6999 ldr r1, [r3, #24]
  37160. 801007e: 68bb ldr r3, [r7, #8]
  37161. 8010080: 689b ldr r3, [r3, #8]
  37162. 8010082: 021a lsls r2, r3, #8
  37163. 8010084: 68fb ldr r3, [r7, #12]
  37164. 8010086: 681b ldr r3, [r3, #0]
  37165. 8010088: 430a orrs r2, r1
  37166. 801008a: 619a str r2, [r3, #24]
  37167. 801008c: e040 b.n 8010110 <HAL_TIM_IC_ConfigChannel+0x126>
  37168. }
  37169. else if (Channel == TIM_CHANNEL_3)
  37170. 801008e: 687b ldr r3, [r7, #4]
  37171. 8010090: 2b08 cmp r3, #8
  37172. 8010092: d11b bne.n 80100cc <HAL_TIM_IC_ConfigChannel+0xe2>
  37173. {
  37174. /* TI3 Configuration */
  37175. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37176. TIM_TI3_SetConfig(htim->Instance,
  37177. 8010094: 68fb ldr r3, [r7, #12]
  37178. 8010096: 6818 ldr r0, [r3, #0]
  37179. sConfig->ICPolarity,
  37180. 8010098: 68bb ldr r3, [r7, #8]
  37181. 801009a: 6819 ldr r1, [r3, #0]
  37182. sConfig->ICSelection,
  37183. 801009c: 68bb ldr r3, [r7, #8]
  37184. 801009e: 685a ldr r2, [r3, #4]
  37185. sConfig->ICFilter);
  37186. 80100a0: 68bb ldr r3, [r7, #8]
  37187. 80100a2: 68db ldr r3, [r3, #12]
  37188. TIM_TI3_SetConfig(htim->Instance,
  37189. 80100a4: f000 ff72 bl 8010f8c <TIM_TI3_SetConfig>
  37190. /* Reset the IC3PSC Bits */
  37191. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  37192. 80100a8: 68fb ldr r3, [r7, #12]
  37193. 80100aa: 681b ldr r3, [r3, #0]
  37194. 80100ac: 69da ldr r2, [r3, #28]
  37195. 80100ae: 68fb ldr r3, [r7, #12]
  37196. 80100b0: 681b ldr r3, [r3, #0]
  37197. 80100b2: f022 020c bic.w r2, r2, #12
  37198. 80100b6: 61da str r2, [r3, #28]
  37199. /* Set the IC3PSC value */
  37200. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  37201. 80100b8: 68fb ldr r3, [r7, #12]
  37202. 80100ba: 681b ldr r3, [r3, #0]
  37203. 80100bc: 69d9 ldr r1, [r3, #28]
  37204. 80100be: 68bb ldr r3, [r7, #8]
  37205. 80100c0: 689a ldr r2, [r3, #8]
  37206. 80100c2: 68fb ldr r3, [r7, #12]
  37207. 80100c4: 681b ldr r3, [r3, #0]
  37208. 80100c6: 430a orrs r2, r1
  37209. 80100c8: 61da str r2, [r3, #28]
  37210. 80100ca: e021 b.n 8010110 <HAL_TIM_IC_ConfigChannel+0x126>
  37211. }
  37212. else if (Channel == TIM_CHANNEL_4)
  37213. 80100cc: 687b ldr r3, [r7, #4]
  37214. 80100ce: 2b0c cmp r3, #12
  37215. 80100d0: d11c bne.n 801010c <HAL_TIM_IC_ConfigChannel+0x122>
  37216. {
  37217. /* TI4 Configuration */
  37218. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37219. TIM_TI4_SetConfig(htim->Instance,
  37220. 80100d2: 68fb ldr r3, [r7, #12]
  37221. 80100d4: 6818 ldr r0, [r3, #0]
  37222. sConfig->ICPolarity,
  37223. 80100d6: 68bb ldr r3, [r7, #8]
  37224. 80100d8: 6819 ldr r1, [r3, #0]
  37225. sConfig->ICSelection,
  37226. 80100da: 68bb ldr r3, [r7, #8]
  37227. 80100dc: 685a ldr r2, [r3, #4]
  37228. sConfig->ICFilter);
  37229. 80100de: 68bb ldr r3, [r7, #8]
  37230. 80100e0: 68db ldr r3, [r3, #12]
  37231. TIM_TI4_SetConfig(htim->Instance,
  37232. 80100e2: f000 ff8f bl 8011004 <TIM_TI4_SetConfig>
  37233. /* Reset the IC4PSC Bits */
  37234. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  37235. 80100e6: 68fb ldr r3, [r7, #12]
  37236. 80100e8: 681b ldr r3, [r3, #0]
  37237. 80100ea: 69da ldr r2, [r3, #28]
  37238. 80100ec: 68fb ldr r3, [r7, #12]
  37239. 80100ee: 681b ldr r3, [r3, #0]
  37240. 80100f0: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37241. 80100f4: 61da str r2, [r3, #28]
  37242. /* Set the IC4PSC value */
  37243. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  37244. 80100f6: 68fb ldr r3, [r7, #12]
  37245. 80100f8: 681b ldr r3, [r3, #0]
  37246. 80100fa: 69d9 ldr r1, [r3, #28]
  37247. 80100fc: 68bb ldr r3, [r7, #8]
  37248. 80100fe: 689b ldr r3, [r3, #8]
  37249. 8010100: 021a lsls r2, r3, #8
  37250. 8010102: 68fb ldr r3, [r7, #12]
  37251. 8010104: 681b ldr r3, [r3, #0]
  37252. 8010106: 430a orrs r2, r1
  37253. 8010108: 61da str r2, [r3, #28]
  37254. 801010a: e001 b.n 8010110 <HAL_TIM_IC_ConfigChannel+0x126>
  37255. }
  37256. else
  37257. {
  37258. status = HAL_ERROR;
  37259. 801010c: 2301 movs r3, #1
  37260. 801010e: 75fb strb r3, [r7, #23]
  37261. }
  37262. __HAL_UNLOCK(htim);
  37263. 8010110: 68fb ldr r3, [r7, #12]
  37264. 8010112: 2200 movs r2, #0
  37265. 8010114: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37266. return status;
  37267. 8010118: 7dfb ldrb r3, [r7, #23]
  37268. }
  37269. 801011a: 4618 mov r0, r3
  37270. 801011c: 3718 adds r7, #24
  37271. 801011e: 46bd mov sp, r7
  37272. 8010120: bd80 pop {r7, pc}
  37273. ...
  37274. 08010124 <HAL_TIM_PWM_ConfigChannel>:
  37275. * @retval HAL status
  37276. */
  37277. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  37278. const TIM_OC_InitTypeDef *sConfig,
  37279. uint32_t Channel)
  37280. {
  37281. 8010124: b580 push {r7, lr}
  37282. 8010126: b086 sub sp, #24
  37283. 8010128: af00 add r7, sp, #0
  37284. 801012a: 60f8 str r0, [r7, #12]
  37285. 801012c: 60b9 str r1, [r7, #8]
  37286. 801012e: 607a str r2, [r7, #4]
  37287. HAL_StatusTypeDef status = HAL_OK;
  37288. 8010130: 2300 movs r3, #0
  37289. 8010132: 75fb strb r3, [r7, #23]
  37290. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  37291. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  37292. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  37293. /* Process Locked */
  37294. __HAL_LOCK(htim);
  37295. 8010134: 68fb ldr r3, [r7, #12]
  37296. 8010136: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37297. 801013a: 2b01 cmp r3, #1
  37298. 801013c: d101 bne.n 8010142 <HAL_TIM_PWM_ConfigChannel+0x1e>
  37299. 801013e: 2302 movs r3, #2
  37300. 8010140: e0ff b.n 8010342 <HAL_TIM_PWM_ConfigChannel+0x21e>
  37301. 8010142: 68fb ldr r3, [r7, #12]
  37302. 8010144: 2201 movs r2, #1
  37303. 8010146: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37304. switch (Channel)
  37305. 801014a: 687b ldr r3, [r7, #4]
  37306. 801014c: 2b14 cmp r3, #20
  37307. 801014e: f200 80f0 bhi.w 8010332 <HAL_TIM_PWM_ConfigChannel+0x20e>
  37308. 8010152: a201 add r2, pc, #4 @ (adr r2, 8010158 <HAL_TIM_PWM_ConfigChannel+0x34>)
  37309. 8010154: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37310. 8010158: 080101ad .word 0x080101ad
  37311. 801015c: 08010333 .word 0x08010333
  37312. 8010160: 08010333 .word 0x08010333
  37313. 8010164: 08010333 .word 0x08010333
  37314. 8010168: 080101ed .word 0x080101ed
  37315. 801016c: 08010333 .word 0x08010333
  37316. 8010170: 08010333 .word 0x08010333
  37317. 8010174: 08010333 .word 0x08010333
  37318. 8010178: 0801022f .word 0x0801022f
  37319. 801017c: 08010333 .word 0x08010333
  37320. 8010180: 08010333 .word 0x08010333
  37321. 8010184: 08010333 .word 0x08010333
  37322. 8010188: 0801026f .word 0x0801026f
  37323. 801018c: 08010333 .word 0x08010333
  37324. 8010190: 08010333 .word 0x08010333
  37325. 8010194: 08010333 .word 0x08010333
  37326. 8010198: 080102b1 .word 0x080102b1
  37327. 801019c: 08010333 .word 0x08010333
  37328. 80101a0: 08010333 .word 0x08010333
  37329. 80101a4: 08010333 .word 0x08010333
  37330. 80101a8: 080102f1 .word 0x080102f1
  37331. {
  37332. /* Check the parameters */
  37333. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37334. /* Configure the Channel 1 in PWM mode */
  37335. TIM_OC1_SetConfig(htim->Instance, sConfig);
  37336. 80101ac: 68fb ldr r3, [r7, #12]
  37337. 80101ae: 681b ldr r3, [r3, #0]
  37338. 80101b0: 68b9 ldr r1, [r7, #8]
  37339. 80101b2: 4618 mov r0, r3
  37340. 80101b4: f000 fb04 bl 80107c0 <TIM_OC1_SetConfig>
  37341. /* Set the Preload enable bit for channel1 */
  37342. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  37343. 80101b8: 68fb ldr r3, [r7, #12]
  37344. 80101ba: 681b ldr r3, [r3, #0]
  37345. 80101bc: 699a ldr r2, [r3, #24]
  37346. 80101be: 68fb ldr r3, [r7, #12]
  37347. 80101c0: 681b ldr r3, [r3, #0]
  37348. 80101c2: f042 0208 orr.w r2, r2, #8
  37349. 80101c6: 619a str r2, [r3, #24]
  37350. /* Configure the Output Fast mode */
  37351. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  37352. 80101c8: 68fb ldr r3, [r7, #12]
  37353. 80101ca: 681b ldr r3, [r3, #0]
  37354. 80101cc: 699a ldr r2, [r3, #24]
  37355. 80101ce: 68fb ldr r3, [r7, #12]
  37356. 80101d0: 681b ldr r3, [r3, #0]
  37357. 80101d2: f022 0204 bic.w r2, r2, #4
  37358. 80101d6: 619a str r2, [r3, #24]
  37359. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  37360. 80101d8: 68fb ldr r3, [r7, #12]
  37361. 80101da: 681b ldr r3, [r3, #0]
  37362. 80101dc: 6999 ldr r1, [r3, #24]
  37363. 80101de: 68bb ldr r3, [r7, #8]
  37364. 80101e0: 691a ldr r2, [r3, #16]
  37365. 80101e2: 68fb ldr r3, [r7, #12]
  37366. 80101e4: 681b ldr r3, [r3, #0]
  37367. 80101e6: 430a orrs r2, r1
  37368. 80101e8: 619a str r2, [r3, #24]
  37369. break;
  37370. 80101ea: e0a5 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37371. {
  37372. /* Check the parameters */
  37373. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37374. /* Configure the Channel 2 in PWM mode */
  37375. TIM_OC2_SetConfig(htim->Instance, sConfig);
  37376. 80101ec: 68fb ldr r3, [r7, #12]
  37377. 80101ee: 681b ldr r3, [r3, #0]
  37378. 80101f0: 68b9 ldr r1, [r7, #8]
  37379. 80101f2: 4618 mov r0, r3
  37380. 80101f4: f000 fb74 bl 80108e0 <TIM_OC2_SetConfig>
  37381. /* Set the Preload enable bit for channel2 */
  37382. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  37383. 80101f8: 68fb ldr r3, [r7, #12]
  37384. 80101fa: 681b ldr r3, [r3, #0]
  37385. 80101fc: 699a ldr r2, [r3, #24]
  37386. 80101fe: 68fb ldr r3, [r7, #12]
  37387. 8010200: 681b ldr r3, [r3, #0]
  37388. 8010202: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37389. 8010206: 619a str r2, [r3, #24]
  37390. /* Configure the Output Fast mode */
  37391. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  37392. 8010208: 68fb ldr r3, [r7, #12]
  37393. 801020a: 681b ldr r3, [r3, #0]
  37394. 801020c: 699a ldr r2, [r3, #24]
  37395. 801020e: 68fb ldr r3, [r7, #12]
  37396. 8010210: 681b ldr r3, [r3, #0]
  37397. 8010212: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37398. 8010216: 619a str r2, [r3, #24]
  37399. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  37400. 8010218: 68fb ldr r3, [r7, #12]
  37401. 801021a: 681b ldr r3, [r3, #0]
  37402. 801021c: 6999 ldr r1, [r3, #24]
  37403. 801021e: 68bb ldr r3, [r7, #8]
  37404. 8010220: 691b ldr r3, [r3, #16]
  37405. 8010222: 021a lsls r2, r3, #8
  37406. 8010224: 68fb ldr r3, [r7, #12]
  37407. 8010226: 681b ldr r3, [r3, #0]
  37408. 8010228: 430a orrs r2, r1
  37409. 801022a: 619a str r2, [r3, #24]
  37410. break;
  37411. 801022c: e084 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37412. {
  37413. /* Check the parameters */
  37414. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37415. /* Configure the Channel 3 in PWM mode */
  37416. TIM_OC3_SetConfig(htim->Instance, sConfig);
  37417. 801022e: 68fb ldr r3, [r7, #12]
  37418. 8010230: 681b ldr r3, [r3, #0]
  37419. 8010232: 68b9 ldr r1, [r7, #8]
  37420. 8010234: 4618 mov r0, r3
  37421. 8010236: f000 fbdd bl 80109f4 <TIM_OC3_SetConfig>
  37422. /* Set the Preload enable bit for channel3 */
  37423. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  37424. 801023a: 68fb ldr r3, [r7, #12]
  37425. 801023c: 681b ldr r3, [r3, #0]
  37426. 801023e: 69da ldr r2, [r3, #28]
  37427. 8010240: 68fb ldr r3, [r7, #12]
  37428. 8010242: 681b ldr r3, [r3, #0]
  37429. 8010244: f042 0208 orr.w r2, r2, #8
  37430. 8010248: 61da str r2, [r3, #28]
  37431. /* Configure the Output Fast mode */
  37432. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  37433. 801024a: 68fb ldr r3, [r7, #12]
  37434. 801024c: 681b ldr r3, [r3, #0]
  37435. 801024e: 69da ldr r2, [r3, #28]
  37436. 8010250: 68fb ldr r3, [r7, #12]
  37437. 8010252: 681b ldr r3, [r3, #0]
  37438. 8010254: f022 0204 bic.w r2, r2, #4
  37439. 8010258: 61da str r2, [r3, #28]
  37440. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  37441. 801025a: 68fb ldr r3, [r7, #12]
  37442. 801025c: 681b ldr r3, [r3, #0]
  37443. 801025e: 69d9 ldr r1, [r3, #28]
  37444. 8010260: 68bb ldr r3, [r7, #8]
  37445. 8010262: 691a ldr r2, [r3, #16]
  37446. 8010264: 68fb ldr r3, [r7, #12]
  37447. 8010266: 681b ldr r3, [r3, #0]
  37448. 8010268: 430a orrs r2, r1
  37449. 801026a: 61da str r2, [r3, #28]
  37450. break;
  37451. 801026c: e064 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37452. {
  37453. /* Check the parameters */
  37454. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37455. /* Configure the Channel 4 in PWM mode */
  37456. TIM_OC4_SetConfig(htim->Instance, sConfig);
  37457. 801026e: 68fb ldr r3, [r7, #12]
  37458. 8010270: 681b ldr r3, [r3, #0]
  37459. 8010272: 68b9 ldr r1, [r7, #8]
  37460. 8010274: 4618 mov r0, r3
  37461. 8010276: f000 fc45 bl 8010b04 <TIM_OC4_SetConfig>
  37462. /* Set the Preload enable bit for channel4 */
  37463. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  37464. 801027a: 68fb ldr r3, [r7, #12]
  37465. 801027c: 681b ldr r3, [r3, #0]
  37466. 801027e: 69da ldr r2, [r3, #28]
  37467. 8010280: 68fb ldr r3, [r7, #12]
  37468. 8010282: 681b ldr r3, [r3, #0]
  37469. 8010284: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37470. 8010288: 61da str r2, [r3, #28]
  37471. /* Configure the Output Fast mode */
  37472. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  37473. 801028a: 68fb ldr r3, [r7, #12]
  37474. 801028c: 681b ldr r3, [r3, #0]
  37475. 801028e: 69da ldr r2, [r3, #28]
  37476. 8010290: 68fb ldr r3, [r7, #12]
  37477. 8010292: 681b ldr r3, [r3, #0]
  37478. 8010294: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37479. 8010298: 61da str r2, [r3, #28]
  37480. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  37481. 801029a: 68fb ldr r3, [r7, #12]
  37482. 801029c: 681b ldr r3, [r3, #0]
  37483. 801029e: 69d9 ldr r1, [r3, #28]
  37484. 80102a0: 68bb ldr r3, [r7, #8]
  37485. 80102a2: 691b ldr r3, [r3, #16]
  37486. 80102a4: 021a lsls r2, r3, #8
  37487. 80102a6: 68fb ldr r3, [r7, #12]
  37488. 80102a8: 681b ldr r3, [r3, #0]
  37489. 80102aa: 430a orrs r2, r1
  37490. 80102ac: 61da str r2, [r3, #28]
  37491. break;
  37492. 80102ae: e043 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37493. {
  37494. /* Check the parameters */
  37495. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  37496. /* Configure the Channel 5 in PWM mode */
  37497. TIM_OC5_SetConfig(htim->Instance, sConfig);
  37498. 80102b0: 68fb ldr r3, [r7, #12]
  37499. 80102b2: 681b ldr r3, [r3, #0]
  37500. 80102b4: 68b9 ldr r1, [r7, #8]
  37501. 80102b6: 4618 mov r0, r3
  37502. 80102b8: f000 fc8e bl 8010bd8 <TIM_OC5_SetConfig>
  37503. /* Set the Preload enable bit for channel5*/
  37504. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  37505. 80102bc: 68fb ldr r3, [r7, #12]
  37506. 80102be: 681b ldr r3, [r3, #0]
  37507. 80102c0: 6d5a ldr r2, [r3, #84] @ 0x54
  37508. 80102c2: 68fb ldr r3, [r7, #12]
  37509. 80102c4: 681b ldr r3, [r3, #0]
  37510. 80102c6: f042 0208 orr.w r2, r2, #8
  37511. 80102ca: 655a str r2, [r3, #84] @ 0x54
  37512. /* Configure the Output Fast mode */
  37513. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  37514. 80102cc: 68fb ldr r3, [r7, #12]
  37515. 80102ce: 681b ldr r3, [r3, #0]
  37516. 80102d0: 6d5a ldr r2, [r3, #84] @ 0x54
  37517. 80102d2: 68fb ldr r3, [r7, #12]
  37518. 80102d4: 681b ldr r3, [r3, #0]
  37519. 80102d6: f022 0204 bic.w r2, r2, #4
  37520. 80102da: 655a str r2, [r3, #84] @ 0x54
  37521. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  37522. 80102dc: 68fb ldr r3, [r7, #12]
  37523. 80102de: 681b ldr r3, [r3, #0]
  37524. 80102e0: 6d59 ldr r1, [r3, #84] @ 0x54
  37525. 80102e2: 68bb ldr r3, [r7, #8]
  37526. 80102e4: 691a ldr r2, [r3, #16]
  37527. 80102e6: 68fb ldr r3, [r7, #12]
  37528. 80102e8: 681b ldr r3, [r3, #0]
  37529. 80102ea: 430a orrs r2, r1
  37530. 80102ec: 655a str r2, [r3, #84] @ 0x54
  37531. break;
  37532. 80102ee: e023 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37533. {
  37534. /* Check the parameters */
  37535. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  37536. /* Configure the Channel 6 in PWM mode */
  37537. TIM_OC6_SetConfig(htim->Instance, sConfig);
  37538. 80102f0: 68fb ldr r3, [r7, #12]
  37539. 80102f2: 681b ldr r3, [r3, #0]
  37540. 80102f4: 68b9 ldr r1, [r7, #8]
  37541. 80102f6: 4618 mov r0, r3
  37542. 80102f8: f000 fcd2 bl 8010ca0 <TIM_OC6_SetConfig>
  37543. /* Set the Preload enable bit for channel6 */
  37544. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  37545. 80102fc: 68fb ldr r3, [r7, #12]
  37546. 80102fe: 681b ldr r3, [r3, #0]
  37547. 8010300: 6d5a ldr r2, [r3, #84] @ 0x54
  37548. 8010302: 68fb ldr r3, [r7, #12]
  37549. 8010304: 681b ldr r3, [r3, #0]
  37550. 8010306: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37551. 801030a: 655a str r2, [r3, #84] @ 0x54
  37552. /* Configure the Output Fast mode */
  37553. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  37554. 801030c: 68fb ldr r3, [r7, #12]
  37555. 801030e: 681b ldr r3, [r3, #0]
  37556. 8010310: 6d5a ldr r2, [r3, #84] @ 0x54
  37557. 8010312: 68fb ldr r3, [r7, #12]
  37558. 8010314: 681b ldr r3, [r3, #0]
  37559. 8010316: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37560. 801031a: 655a str r2, [r3, #84] @ 0x54
  37561. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  37562. 801031c: 68fb ldr r3, [r7, #12]
  37563. 801031e: 681b ldr r3, [r3, #0]
  37564. 8010320: 6d59 ldr r1, [r3, #84] @ 0x54
  37565. 8010322: 68bb ldr r3, [r7, #8]
  37566. 8010324: 691b ldr r3, [r3, #16]
  37567. 8010326: 021a lsls r2, r3, #8
  37568. 8010328: 68fb ldr r3, [r7, #12]
  37569. 801032a: 681b ldr r3, [r3, #0]
  37570. 801032c: 430a orrs r2, r1
  37571. 801032e: 655a str r2, [r3, #84] @ 0x54
  37572. break;
  37573. 8010330: e002 b.n 8010338 <HAL_TIM_PWM_ConfigChannel+0x214>
  37574. }
  37575. default:
  37576. status = HAL_ERROR;
  37577. 8010332: 2301 movs r3, #1
  37578. 8010334: 75fb strb r3, [r7, #23]
  37579. break;
  37580. 8010336: bf00 nop
  37581. }
  37582. __HAL_UNLOCK(htim);
  37583. 8010338: 68fb ldr r3, [r7, #12]
  37584. 801033a: 2200 movs r2, #0
  37585. 801033c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37586. return status;
  37587. 8010340: 7dfb ldrb r3, [r7, #23]
  37588. }
  37589. 8010342: 4618 mov r0, r3
  37590. 8010344: 3718 adds r7, #24
  37591. 8010346: 46bd mov sp, r7
  37592. 8010348: bd80 pop {r7, pc}
  37593. 801034a: bf00 nop
  37594. 0801034c <HAL_TIM_ConfigClockSource>:
  37595. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  37596. * contains the clock source information for the TIM peripheral.
  37597. * @retval HAL status
  37598. */
  37599. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  37600. {
  37601. 801034c: b580 push {r7, lr}
  37602. 801034e: b084 sub sp, #16
  37603. 8010350: af00 add r7, sp, #0
  37604. 8010352: 6078 str r0, [r7, #4]
  37605. 8010354: 6039 str r1, [r7, #0]
  37606. HAL_StatusTypeDef status = HAL_OK;
  37607. 8010356: 2300 movs r3, #0
  37608. 8010358: 73fb strb r3, [r7, #15]
  37609. uint32_t tmpsmcr;
  37610. /* Process Locked */
  37611. __HAL_LOCK(htim);
  37612. 801035a: 687b ldr r3, [r7, #4]
  37613. 801035c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37614. 8010360: 2b01 cmp r3, #1
  37615. 8010362: d101 bne.n 8010368 <HAL_TIM_ConfigClockSource+0x1c>
  37616. 8010364: 2302 movs r3, #2
  37617. 8010366: e0dc b.n 8010522 <HAL_TIM_ConfigClockSource+0x1d6>
  37618. 8010368: 687b ldr r3, [r7, #4]
  37619. 801036a: 2201 movs r2, #1
  37620. 801036c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37621. htim->State = HAL_TIM_STATE_BUSY;
  37622. 8010370: 687b ldr r3, [r7, #4]
  37623. 8010372: 2202 movs r2, #2
  37624. 8010374: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37625. /* Check the parameters */
  37626. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  37627. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  37628. tmpsmcr = htim->Instance->SMCR;
  37629. 8010378: 687b ldr r3, [r7, #4]
  37630. 801037a: 681b ldr r3, [r3, #0]
  37631. 801037c: 689b ldr r3, [r3, #8]
  37632. 801037e: 60bb str r3, [r7, #8]
  37633. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  37634. 8010380: 68ba ldr r2, [r7, #8]
  37635. 8010382: 4b6a ldr r3, [pc, #424] @ (801052c <HAL_TIM_ConfigClockSource+0x1e0>)
  37636. 8010384: 4013 ands r3, r2
  37637. 8010386: 60bb str r3, [r7, #8]
  37638. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  37639. 8010388: 68bb ldr r3, [r7, #8]
  37640. 801038a: f423 437f bic.w r3, r3, #65280 @ 0xff00
  37641. 801038e: 60bb str r3, [r7, #8]
  37642. htim->Instance->SMCR = tmpsmcr;
  37643. 8010390: 687b ldr r3, [r7, #4]
  37644. 8010392: 681b ldr r3, [r3, #0]
  37645. 8010394: 68ba ldr r2, [r7, #8]
  37646. 8010396: 609a str r2, [r3, #8]
  37647. switch (sClockSourceConfig->ClockSource)
  37648. 8010398: 683b ldr r3, [r7, #0]
  37649. 801039a: 681b ldr r3, [r3, #0]
  37650. 801039c: 4a64 ldr r2, [pc, #400] @ (8010530 <HAL_TIM_ConfigClockSource+0x1e4>)
  37651. 801039e: 4293 cmp r3, r2
  37652. 80103a0: f000 80a9 beq.w 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37653. 80103a4: 4a62 ldr r2, [pc, #392] @ (8010530 <HAL_TIM_ConfigClockSource+0x1e4>)
  37654. 80103a6: 4293 cmp r3, r2
  37655. 80103a8: f200 80ae bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37656. 80103ac: 4a61 ldr r2, [pc, #388] @ (8010534 <HAL_TIM_ConfigClockSource+0x1e8>)
  37657. 80103ae: 4293 cmp r3, r2
  37658. 80103b0: f000 80a1 beq.w 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37659. 80103b4: 4a5f ldr r2, [pc, #380] @ (8010534 <HAL_TIM_ConfigClockSource+0x1e8>)
  37660. 80103b6: 4293 cmp r3, r2
  37661. 80103b8: f200 80a6 bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37662. 80103bc: 4a5e ldr r2, [pc, #376] @ (8010538 <HAL_TIM_ConfigClockSource+0x1ec>)
  37663. 80103be: 4293 cmp r3, r2
  37664. 80103c0: f000 8099 beq.w 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37665. 80103c4: 4a5c ldr r2, [pc, #368] @ (8010538 <HAL_TIM_ConfigClockSource+0x1ec>)
  37666. 80103c6: 4293 cmp r3, r2
  37667. 80103c8: f200 809e bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37668. 80103cc: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37669. 80103d0: f000 8091 beq.w 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37670. 80103d4: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37671. 80103d8: f200 8096 bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37672. 80103dc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37673. 80103e0: f000 8089 beq.w 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37674. 80103e4: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37675. 80103e8: f200 808e bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37676. 80103ec: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37677. 80103f0: d03e beq.n 8010470 <HAL_TIM_ConfigClockSource+0x124>
  37678. 80103f2: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37679. 80103f6: f200 8087 bhi.w 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37680. 80103fa: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37681. 80103fe: f000 8086 beq.w 801050e <HAL_TIM_ConfigClockSource+0x1c2>
  37682. 8010402: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37683. 8010406: d87f bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37684. 8010408: 2b70 cmp r3, #112 @ 0x70
  37685. 801040a: d01a beq.n 8010442 <HAL_TIM_ConfigClockSource+0xf6>
  37686. 801040c: 2b70 cmp r3, #112 @ 0x70
  37687. 801040e: d87b bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37688. 8010410: 2b60 cmp r3, #96 @ 0x60
  37689. 8010412: d050 beq.n 80104b6 <HAL_TIM_ConfigClockSource+0x16a>
  37690. 8010414: 2b60 cmp r3, #96 @ 0x60
  37691. 8010416: d877 bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37692. 8010418: 2b50 cmp r3, #80 @ 0x50
  37693. 801041a: d03c beq.n 8010496 <HAL_TIM_ConfigClockSource+0x14a>
  37694. 801041c: 2b50 cmp r3, #80 @ 0x50
  37695. 801041e: d873 bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37696. 8010420: 2b40 cmp r3, #64 @ 0x40
  37697. 8010422: d058 beq.n 80104d6 <HAL_TIM_ConfigClockSource+0x18a>
  37698. 8010424: 2b40 cmp r3, #64 @ 0x40
  37699. 8010426: d86f bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37700. 8010428: 2b30 cmp r3, #48 @ 0x30
  37701. 801042a: d064 beq.n 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37702. 801042c: 2b30 cmp r3, #48 @ 0x30
  37703. 801042e: d86b bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37704. 8010430: 2b20 cmp r3, #32
  37705. 8010432: d060 beq.n 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37706. 8010434: 2b20 cmp r3, #32
  37707. 8010436: d867 bhi.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37708. 8010438: 2b00 cmp r3, #0
  37709. 801043a: d05c beq.n 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37710. 801043c: 2b10 cmp r3, #16
  37711. 801043e: d05a beq.n 80104f6 <HAL_TIM_ConfigClockSource+0x1aa>
  37712. 8010440: e062 b.n 8010508 <HAL_TIM_ConfigClockSource+0x1bc>
  37713. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37714. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37715. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37716. /* Configure the ETR Clock source */
  37717. TIM_ETR_SetConfig(htim->Instance,
  37718. 8010442: 687b ldr r3, [r7, #4]
  37719. 8010444: 6818 ldr r0, [r3, #0]
  37720. sClockSourceConfig->ClockPrescaler,
  37721. 8010446: 683b ldr r3, [r7, #0]
  37722. 8010448: 6899 ldr r1, [r3, #8]
  37723. sClockSourceConfig->ClockPolarity,
  37724. 801044a: 683b ldr r3, [r7, #0]
  37725. 801044c: 685a ldr r2, [r3, #4]
  37726. sClockSourceConfig->ClockFilter);
  37727. 801044e: 683b ldr r3, [r7, #0]
  37728. 8010450: 68db ldr r3, [r3, #12]
  37729. TIM_ETR_SetConfig(htim->Instance,
  37730. 8010452: f000 fe33 bl 80110bc <TIM_ETR_SetConfig>
  37731. /* Select the External clock mode1 and the ETRF trigger */
  37732. tmpsmcr = htim->Instance->SMCR;
  37733. 8010456: 687b ldr r3, [r7, #4]
  37734. 8010458: 681b ldr r3, [r3, #0]
  37735. 801045a: 689b ldr r3, [r3, #8]
  37736. 801045c: 60bb str r3, [r7, #8]
  37737. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  37738. 801045e: 68bb ldr r3, [r7, #8]
  37739. 8010460: f043 0377 orr.w r3, r3, #119 @ 0x77
  37740. 8010464: 60bb str r3, [r7, #8]
  37741. /* Write to TIMx SMCR */
  37742. htim->Instance->SMCR = tmpsmcr;
  37743. 8010466: 687b ldr r3, [r7, #4]
  37744. 8010468: 681b ldr r3, [r3, #0]
  37745. 801046a: 68ba ldr r2, [r7, #8]
  37746. 801046c: 609a str r2, [r3, #8]
  37747. break;
  37748. 801046e: e04f b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37749. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37750. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37751. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37752. /* Configure the ETR Clock source */
  37753. TIM_ETR_SetConfig(htim->Instance,
  37754. 8010470: 687b ldr r3, [r7, #4]
  37755. 8010472: 6818 ldr r0, [r3, #0]
  37756. sClockSourceConfig->ClockPrescaler,
  37757. 8010474: 683b ldr r3, [r7, #0]
  37758. 8010476: 6899 ldr r1, [r3, #8]
  37759. sClockSourceConfig->ClockPolarity,
  37760. 8010478: 683b ldr r3, [r7, #0]
  37761. 801047a: 685a ldr r2, [r3, #4]
  37762. sClockSourceConfig->ClockFilter);
  37763. 801047c: 683b ldr r3, [r7, #0]
  37764. 801047e: 68db ldr r3, [r3, #12]
  37765. TIM_ETR_SetConfig(htim->Instance,
  37766. 8010480: f000 fe1c bl 80110bc <TIM_ETR_SetConfig>
  37767. /* Enable the External clock mode2 */
  37768. htim->Instance->SMCR |= TIM_SMCR_ECE;
  37769. 8010484: 687b ldr r3, [r7, #4]
  37770. 8010486: 681b ldr r3, [r3, #0]
  37771. 8010488: 689a ldr r2, [r3, #8]
  37772. 801048a: 687b ldr r3, [r7, #4]
  37773. 801048c: 681b ldr r3, [r3, #0]
  37774. 801048e: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  37775. 8010492: 609a str r2, [r3, #8]
  37776. break;
  37777. 8010494: e03c b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37778. /* Check TI1 input conditioning related parameters */
  37779. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37780. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37781. TIM_TI1_ConfigInputStage(htim->Instance,
  37782. 8010496: 687b ldr r3, [r7, #4]
  37783. 8010498: 6818 ldr r0, [r3, #0]
  37784. sClockSourceConfig->ClockPolarity,
  37785. 801049a: 683b ldr r3, [r7, #0]
  37786. 801049c: 6859 ldr r1, [r3, #4]
  37787. sClockSourceConfig->ClockFilter);
  37788. 801049e: 683b ldr r3, [r7, #0]
  37789. 80104a0: 68db ldr r3, [r3, #12]
  37790. TIM_TI1_ConfigInputStage(htim->Instance,
  37791. 80104a2: 461a mov r2, r3
  37792. 80104a4: f000 fcd6 bl 8010e54 <TIM_TI1_ConfigInputStage>
  37793. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  37794. 80104a8: 687b ldr r3, [r7, #4]
  37795. 80104aa: 681b ldr r3, [r3, #0]
  37796. 80104ac: 2150 movs r1, #80 @ 0x50
  37797. 80104ae: 4618 mov r0, r3
  37798. 80104b0: f000 fde6 bl 8011080 <TIM_ITRx_SetConfig>
  37799. break;
  37800. 80104b4: e02c b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37801. /* Check TI2 input conditioning related parameters */
  37802. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37803. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37804. TIM_TI2_ConfigInputStage(htim->Instance,
  37805. 80104b6: 687b ldr r3, [r7, #4]
  37806. 80104b8: 6818 ldr r0, [r3, #0]
  37807. sClockSourceConfig->ClockPolarity,
  37808. 80104ba: 683b ldr r3, [r7, #0]
  37809. 80104bc: 6859 ldr r1, [r3, #4]
  37810. sClockSourceConfig->ClockFilter);
  37811. 80104be: 683b ldr r3, [r7, #0]
  37812. 80104c0: 68db ldr r3, [r3, #12]
  37813. TIM_TI2_ConfigInputStage(htim->Instance,
  37814. 80104c2: 461a mov r2, r3
  37815. 80104c4: f000 fd32 bl 8010f2c <TIM_TI2_ConfigInputStage>
  37816. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  37817. 80104c8: 687b ldr r3, [r7, #4]
  37818. 80104ca: 681b ldr r3, [r3, #0]
  37819. 80104cc: 2160 movs r1, #96 @ 0x60
  37820. 80104ce: 4618 mov r0, r3
  37821. 80104d0: f000 fdd6 bl 8011080 <TIM_ITRx_SetConfig>
  37822. break;
  37823. 80104d4: e01c b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37824. /* Check TI1 input conditioning related parameters */
  37825. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37826. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37827. TIM_TI1_ConfigInputStage(htim->Instance,
  37828. 80104d6: 687b ldr r3, [r7, #4]
  37829. 80104d8: 6818 ldr r0, [r3, #0]
  37830. sClockSourceConfig->ClockPolarity,
  37831. 80104da: 683b ldr r3, [r7, #0]
  37832. 80104dc: 6859 ldr r1, [r3, #4]
  37833. sClockSourceConfig->ClockFilter);
  37834. 80104de: 683b ldr r3, [r7, #0]
  37835. 80104e0: 68db ldr r3, [r3, #12]
  37836. TIM_TI1_ConfigInputStage(htim->Instance,
  37837. 80104e2: 461a mov r2, r3
  37838. 80104e4: f000 fcb6 bl 8010e54 <TIM_TI1_ConfigInputStage>
  37839. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  37840. 80104e8: 687b ldr r3, [r7, #4]
  37841. 80104ea: 681b ldr r3, [r3, #0]
  37842. 80104ec: 2140 movs r1, #64 @ 0x40
  37843. 80104ee: 4618 mov r0, r3
  37844. 80104f0: f000 fdc6 bl 8011080 <TIM_ITRx_SetConfig>
  37845. break;
  37846. 80104f4: e00c b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37847. case TIM_CLOCKSOURCE_ITR8:
  37848. {
  37849. /* Check whether or not the timer instance supports internal trigger input */
  37850. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  37851. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  37852. 80104f6: 687b ldr r3, [r7, #4]
  37853. 80104f8: 681a ldr r2, [r3, #0]
  37854. 80104fa: 683b ldr r3, [r7, #0]
  37855. 80104fc: 681b ldr r3, [r3, #0]
  37856. 80104fe: 4619 mov r1, r3
  37857. 8010500: 4610 mov r0, r2
  37858. 8010502: f000 fdbd bl 8011080 <TIM_ITRx_SetConfig>
  37859. break;
  37860. 8010506: e003 b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37861. }
  37862. default:
  37863. status = HAL_ERROR;
  37864. 8010508: 2301 movs r3, #1
  37865. 801050a: 73fb strb r3, [r7, #15]
  37866. break;
  37867. 801050c: e000 b.n 8010510 <HAL_TIM_ConfigClockSource+0x1c4>
  37868. break;
  37869. 801050e: bf00 nop
  37870. }
  37871. htim->State = HAL_TIM_STATE_READY;
  37872. 8010510: 687b ldr r3, [r7, #4]
  37873. 8010512: 2201 movs r2, #1
  37874. 8010514: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37875. __HAL_UNLOCK(htim);
  37876. 8010518: 687b ldr r3, [r7, #4]
  37877. 801051a: 2200 movs r2, #0
  37878. 801051c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37879. return status;
  37880. 8010520: 7bfb ldrb r3, [r7, #15]
  37881. }
  37882. 8010522: 4618 mov r0, r3
  37883. 8010524: 3710 adds r7, #16
  37884. 8010526: 46bd mov sp, r7
  37885. 8010528: bd80 pop {r7, pc}
  37886. 801052a: bf00 nop
  37887. 801052c: ffceff88 .word 0xffceff88
  37888. 8010530: 00100040 .word 0x00100040
  37889. 8010534: 00100030 .word 0x00100030
  37890. 8010538: 00100020 .word 0x00100020
  37891. 0801053c <HAL_TIM_ReadCapturedValue>:
  37892. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37893. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37894. * @retval Captured value
  37895. */
  37896. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  37897. {
  37898. 801053c: b480 push {r7}
  37899. 801053e: b085 sub sp, #20
  37900. 8010540: af00 add r7, sp, #0
  37901. 8010542: 6078 str r0, [r7, #4]
  37902. 8010544: 6039 str r1, [r7, #0]
  37903. uint32_t tmpreg = 0U;
  37904. 8010546: 2300 movs r3, #0
  37905. 8010548: 60fb str r3, [r7, #12]
  37906. switch (Channel)
  37907. 801054a: 683b ldr r3, [r7, #0]
  37908. 801054c: 2b0c cmp r3, #12
  37909. 801054e: d831 bhi.n 80105b4 <HAL_TIM_ReadCapturedValue+0x78>
  37910. 8010550: a201 add r2, pc, #4 @ (adr r2, 8010558 <HAL_TIM_ReadCapturedValue+0x1c>)
  37911. 8010552: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37912. 8010556: bf00 nop
  37913. 8010558: 0801058d .word 0x0801058d
  37914. 801055c: 080105b5 .word 0x080105b5
  37915. 8010560: 080105b5 .word 0x080105b5
  37916. 8010564: 080105b5 .word 0x080105b5
  37917. 8010568: 08010597 .word 0x08010597
  37918. 801056c: 080105b5 .word 0x080105b5
  37919. 8010570: 080105b5 .word 0x080105b5
  37920. 8010574: 080105b5 .word 0x080105b5
  37921. 8010578: 080105a1 .word 0x080105a1
  37922. 801057c: 080105b5 .word 0x080105b5
  37923. 8010580: 080105b5 .word 0x080105b5
  37924. 8010584: 080105b5 .word 0x080105b5
  37925. 8010588: 080105ab .word 0x080105ab
  37926. {
  37927. /* Check the parameters */
  37928. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37929. /* Return the capture 1 value */
  37930. tmpreg = htim->Instance->CCR1;
  37931. 801058c: 687b ldr r3, [r7, #4]
  37932. 801058e: 681b ldr r3, [r3, #0]
  37933. 8010590: 6b5b ldr r3, [r3, #52] @ 0x34
  37934. 8010592: 60fb str r3, [r7, #12]
  37935. break;
  37936. 8010594: e00f b.n 80105b6 <HAL_TIM_ReadCapturedValue+0x7a>
  37937. {
  37938. /* Check the parameters */
  37939. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37940. /* Return the capture 2 value */
  37941. tmpreg = htim->Instance->CCR2;
  37942. 8010596: 687b ldr r3, [r7, #4]
  37943. 8010598: 681b ldr r3, [r3, #0]
  37944. 801059a: 6b9b ldr r3, [r3, #56] @ 0x38
  37945. 801059c: 60fb str r3, [r7, #12]
  37946. break;
  37947. 801059e: e00a b.n 80105b6 <HAL_TIM_ReadCapturedValue+0x7a>
  37948. {
  37949. /* Check the parameters */
  37950. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37951. /* Return the capture 3 value */
  37952. tmpreg = htim->Instance->CCR3;
  37953. 80105a0: 687b ldr r3, [r7, #4]
  37954. 80105a2: 681b ldr r3, [r3, #0]
  37955. 80105a4: 6bdb ldr r3, [r3, #60] @ 0x3c
  37956. 80105a6: 60fb str r3, [r7, #12]
  37957. break;
  37958. 80105a8: e005 b.n 80105b6 <HAL_TIM_ReadCapturedValue+0x7a>
  37959. {
  37960. /* Check the parameters */
  37961. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37962. /* Return the capture 4 value */
  37963. tmpreg = htim->Instance->CCR4;
  37964. 80105aa: 687b ldr r3, [r7, #4]
  37965. 80105ac: 681b ldr r3, [r3, #0]
  37966. 80105ae: 6c1b ldr r3, [r3, #64] @ 0x40
  37967. 80105b0: 60fb str r3, [r7, #12]
  37968. break;
  37969. 80105b2: e000 b.n 80105b6 <HAL_TIM_ReadCapturedValue+0x7a>
  37970. }
  37971. default:
  37972. break;
  37973. 80105b4: bf00 nop
  37974. }
  37975. return tmpreg;
  37976. 80105b6: 68fb ldr r3, [r7, #12]
  37977. }
  37978. 80105b8: 4618 mov r0, r3
  37979. 80105ba: 3714 adds r7, #20
  37980. 80105bc: 46bd mov sp, r7
  37981. 80105be: f85d 7b04 ldr.w r7, [sp], #4
  37982. 80105c2: 4770 bx lr
  37983. 080105c4 <HAL_TIM_OC_DelayElapsedCallback>:
  37984. * @brief Output Compare callback in non-blocking mode
  37985. * @param htim TIM OC handle
  37986. * @retval None
  37987. */
  37988. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  37989. {
  37990. 80105c4: b480 push {r7}
  37991. 80105c6: b083 sub sp, #12
  37992. 80105c8: af00 add r7, sp, #0
  37993. 80105ca: 6078 str r0, [r7, #4]
  37994. UNUSED(htim);
  37995. /* NOTE : This function should not be modified, when the callback is needed,
  37996. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  37997. */
  37998. }
  37999. 80105cc: bf00 nop
  38000. 80105ce: 370c adds r7, #12
  38001. 80105d0: 46bd mov sp, r7
  38002. 80105d2: f85d 7b04 ldr.w r7, [sp], #4
  38003. 80105d6: 4770 bx lr
  38004. 080105d8 <HAL_TIM_PWM_PulseFinishedCallback>:
  38005. * @brief PWM Pulse finished callback in non-blocking mode
  38006. * @param htim TIM handle
  38007. * @retval None
  38008. */
  38009. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  38010. {
  38011. 80105d8: b480 push {r7}
  38012. 80105da: b083 sub sp, #12
  38013. 80105dc: af00 add r7, sp, #0
  38014. 80105de: 6078 str r0, [r7, #4]
  38015. UNUSED(htim);
  38016. /* NOTE : This function should not be modified, when the callback is needed,
  38017. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  38018. */
  38019. }
  38020. 80105e0: bf00 nop
  38021. 80105e2: 370c adds r7, #12
  38022. 80105e4: 46bd mov sp, r7
  38023. 80105e6: f85d 7b04 ldr.w r7, [sp], #4
  38024. 80105ea: 4770 bx lr
  38025. 080105ec <HAL_TIM_TriggerCallback>:
  38026. * @brief Hall Trigger detection callback in non-blocking mode
  38027. * @param htim TIM handle
  38028. * @retval None
  38029. */
  38030. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  38031. {
  38032. 80105ec: b480 push {r7}
  38033. 80105ee: b083 sub sp, #12
  38034. 80105f0: af00 add r7, sp, #0
  38035. 80105f2: 6078 str r0, [r7, #4]
  38036. UNUSED(htim);
  38037. /* NOTE : This function should not be modified, when the callback is needed,
  38038. the HAL_TIM_TriggerCallback could be implemented in the user file
  38039. */
  38040. }
  38041. 80105f4: bf00 nop
  38042. 80105f6: 370c adds r7, #12
  38043. 80105f8: 46bd mov sp, r7
  38044. 80105fa: f85d 7b04 ldr.w r7, [sp], #4
  38045. 80105fe: 4770 bx lr
  38046. 08010600 <HAL_TIM_GetChannelState>:
  38047. * @arg TIM_CHANNEL_5: TIM Channel 5
  38048. * @arg TIM_CHANNEL_6: TIM Channel 6
  38049. * @retval TIM Channel state
  38050. */
  38051. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  38052. {
  38053. 8010600: b480 push {r7}
  38054. 8010602: b085 sub sp, #20
  38055. 8010604: af00 add r7, sp, #0
  38056. 8010606: 6078 str r0, [r7, #4]
  38057. 8010608: 6039 str r1, [r7, #0]
  38058. HAL_TIM_ChannelStateTypeDef channel_state;
  38059. /* Check the parameters */
  38060. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  38061. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  38062. 801060a: 683b ldr r3, [r7, #0]
  38063. 801060c: 2b00 cmp r3, #0
  38064. 801060e: d104 bne.n 801061a <HAL_TIM_GetChannelState+0x1a>
  38065. 8010610: 687b ldr r3, [r7, #4]
  38066. 8010612: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  38067. 8010616: b2db uxtb r3, r3
  38068. 8010618: e023 b.n 8010662 <HAL_TIM_GetChannelState+0x62>
  38069. 801061a: 683b ldr r3, [r7, #0]
  38070. 801061c: 2b04 cmp r3, #4
  38071. 801061e: d104 bne.n 801062a <HAL_TIM_GetChannelState+0x2a>
  38072. 8010620: 687b ldr r3, [r7, #4]
  38073. 8010622: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  38074. 8010626: b2db uxtb r3, r3
  38075. 8010628: e01b b.n 8010662 <HAL_TIM_GetChannelState+0x62>
  38076. 801062a: 683b ldr r3, [r7, #0]
  38077. 801062c: 2b08 cmp r3, #8
  38078. 801062e: d104 bne.n 801063a <HAL_TIM_GetChannelState+0x3a>
  38079. 8010630: 687b ldr r3, [r7, #4]
  38080. 8010632: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  38081. 8010636: b2db uxtb r3, r3
  38082. 8010638: e013 b.n 8010662 <HAL_TIM_GetChannelState+0x62>
  38083. 801063a: 683b ldr r3, [r7, #0]
  38084. 801063c: 2b0c cmp r3, #12
  38085. 801063e: d104 bne.n 801064a <HAL_TIM_GetChannelState+0x4a>
  38086. 8010640: 687b ldr r3, [r7, #4]
  38087. 8010642: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  38088. 8010646: b2db uxtb r3, r3
  38089. 8010648: e00b b.n 8010662 <HAL_TIM_GetChannelState+0x62>
  38090. 801064a: 683b ldr r3, [r7, #0]
  38091. 801064c: 2b10 cmp r3, #16
  38092. 801064e: d104 bne.n 801065a <HAL_TIM_GetChannelState+0x5a>
  38093. 8010650: 687b ldr r3, [r7, #4]
  38094. 8010652: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  38095. 8010656: b2db uxtb r3, r3
  38096. 8010658: e003 b.n 8010662 <HAL_TIM_GetChannelState+0x62>
  38097. 801065a: 687b ldr r3, [r7, #4]
  38098. 801065c: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  38099. 8010660: b2db uxtb r3, r3
  38100. 8010662: 73fb strb r3, [r7, #15]
  38101. return channel_state;
  38102. 8010664: 7bfb ldrb r3, [r7, #15]
  38103. }
  38104. 8010666: 4618 mov r0, r3
  38105. 8010668: 3714 adds r7, #20
  38106. 801066a: 46bd mov sp, r7
  38107. 801066c: f85d 7b04 ldr.w r7, [sp], #4
  38108. 8010670: 4770 bx lr
  38109. ...
  38110. 08010674 <TIM_Base_SetConfig>:
  38111. * @param TIMx TIM peripheral
  38112. * @param Structure TIM Base configuration structure
  38113. * @retval None
  38114. */
  38115. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  38116. {
  38117. 8010674: b480 push {r7}
  38118. 8010676: b085 sub sp, #20
  38119. 8010678: af00 add r7, sp, #0
  38120. 801067a: 6078 str r0, [r7, #4]
  38121. 801067c: 6039 str r1, [r7, #0]
  38122. uint32_t tmpcr1;
  38123. tmpcr1 = TIMx->CR1;
  38124. 801067e: 687b ldr r3, [r7, #4]
  38125. 8010680: 681b ldr r3, [r3, #0]
  38126. 8010682: 60fb str r3, [r7, #12]
  38127. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  38128. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  38129. 8010684: 687b ldr r3, [r7, #4]
  38130. 8010686: 4a46 ldr r2, [pc, #280] @ (80107a0 <TIM_Base_SetConfig+0x12c>)
  38131. 8010688: 4293 cmp r3, r2
  38132. 801068a: d013 beq.n 80106b4 <TIM_Base_SetConfig+0x40>
  38133. 801068c: 687b ldr r3, [r7, #4]
  38134. 801068e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38135. 8010692: d00f beq.n 80106b4 <TIM_Base_SetConfig+0x40>
  38136. 8010694: 687b ldr r3, [r7, #4]
  38137. 8010696: 4a43 ldr r2, [pc, #268] @ (80107a4 <TIM_Base_SetConfig+0x130>)
  38138. 8010698: 4293 cmp r3, r2
  38139. 801069a: d00b beq.n 80106b4 <TIM_Base_SetConfig+0x40>
  38140. 801069c: 687b ldr r3, [r7, #4]
  38141. 801069e: 4a42 ldr r2, [pc, #264] @ (80107a8 <TIM_Base_SetConfig+0x134>)
  38142. 80106a0: 4293 cmp r3, r2
  38143. 80106a2: d007 beq.n 80106b4 <TIM_Base_SetConfig+0x40>
  38144. 80106a4: 687b ldr r3, [r7, #4]
  38145. 80106a6: 4a41 ldr r2, [pc, #260] @ (80107ac <TIM_Base_SetConfig+0x138>)
  38146. 80106a8: 4293 cmp r3, r2
  38147. 80106aa: d003 beq.n 80106b4 <TIM_Base_SetConfig+0x40>
  38148. 80106ac: 687b ldr r3, [r7, #4]
  38149. 80106ae: 4a40 ldr r2, [pc, #256] @ (80107b0 <TIM_Base_SetConfig+0x13c>)
  38150. 80106b0: 4293 cmp r3, r2
  38151. 80106b2: d108 bne.n 80106c6 <TIM_Base_SetConfig+0x52>
  38152. {
  38153. /* Select the Counter Mode */
  38154. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  38155. 80106b4: 68fb ldr r3, [r7, #12]
  38156. 80106b6: f023 0370 bic.w r3, r3, #112 @ 0x70
  38157. 80106ba: 60fb str r3, [r7, #12]
  38158. tmpcr1 |= Structure->CounterMode;
  38159. 80106bc: 683b ldr r3, [r7, #0]
  38160. 80106be: 685b ldr r3, [r3, #4]
  38161. 80106c0: 68fa ldr r2, [r7, #12]
  38162. 80106c2: 4313 orrs r3, r2
  38163. 80106c4: 60fb str r3, [r7, #12]
  38164. }
  38165. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  38166. 80106c6: 687b ldr r3, [r7, #4]
  38167. 80106c8: 4a35 ldr r2, [pc, #212] @ (80107a0 <TIM_Base_SetConfig+0x12c>)
  38168. 80106ca: 4293 cmp r3, r2
  38169. 80106cc: d01f beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38170. 80106ce: 687b ldr r3, [r7, #4]
  38171. 80106d0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38172. 80106d4: d01b beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38173. 80106d6: 687b ldr r3, [r7, #4]
  38174. 80106d8: 4a32 ldr r2, [pc, #200] @ (80107a4 <TIM_Base_SetConfig+0x130>)
  38175. 80106da: 4293 cmp r3, r2
  38176. 80106dc: d017 beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38177. 80106de: 687b ldr r3, [r7, #4]
  38178. 80106e0: 4a31 ldr r2, [pc, #196] @ (80107a8 <TIM_Base_SetConfig+0x134>)
  38179. 80106e2: 4293 cmp r3, r2
  38180. 80106e4: d013 beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38181. 80106e6: 687b ldr r3, [r7, #4]
  38182. 80106e8: 4a30 ldr r2, [pc, #192] @ (80107ac <TIM_Base_SetConfig+0x138>)
  38183. 80106ea: 4293 cmp r3, r2
  38184. 80106ec: d00f beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38185. 80106ee: 687b ldr r3, [r7, #4]
  38186. 80106f0: 4a2f ldr r2, [pc, #188] @ (80107b0 <TIM_Base_SetConfig+0x13c>)
  38187. 80106f2: 4293 cmp r3, r2
  38188. 80106f4: d00b beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38189. 80106f6: 687b ldr r3, [r7, #4]
  38190. 80106f8: 4a2e ldr r2, [pc, #184] @ (80107b4 <TIM_Base_SetConfig+0x140>)
  38191. 80106fa: 4293 cmp r3, r2
  38192. 80106fc: d007 beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38193. 80106fe: 687b ldr r3, [r7, #4]
  38194. 8010700: 4a2d ldr r2, [pc, #180] @ (80107b8 <TIM_Base_SetConfig+0x144>)
  38195. 8010702: 4293 cmp r3, r2
  38196. 8010704: d003 beq.n 801070e <TIM_Base_SetConfig+0x9a>
  38197. 8010706: 687b ldr r3, [r7, #4]
  38198. 8010708: 4a2c ldr r2, [pc, #176] @ (80107bc <TIM_Base_SetConfig+0x148>)
  38199. 801070a: 4293 cmp r3, r2
  38200. 801070c: d108 bne.n 8010720 <TIM_Base_SetConfig+0xac>
  38201. {
  38202. /* Set the clock division */
  38203. tmpcr1 &= ~TIM_CR1_CKD;
  38204. 801070e: 68fb ldr r3, [r7, #12]
  38205. 8010710: f423 7340 bic.w r3, r3, #768 @ 0x300
  38206. 8010714: 60fb str r3, [r7, #12]
  38207. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  38208. 8010716: 683b ldr r3, [r7, #0]
  38209. 8010718: 68db ldr r3, [r3, #12]
  38210. 801071a: 68fa ldr r2, [r7, #12]
  38211. 801071c: 4313 orrs r3, r2
  38212. 801071e: 60fb str r3, [r7, #12]
  38213. }
  38214. /* Set the auto-reload preload */
  38215. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  38216. 8010720: 68fb ldr r3, [r7, #12]
  38217. 8010722: f023 0280 bic.w r2, r3, #128 @ 0x80
  38218. 8010726: 683b ldr r3, [r7, #0]
  38219. 8010728: 695b ldr r3, [r3, #20]
  38220. 801072a: 4313 orrs r3, r2
  38221. 801072c: 60fb str r3, [r7, #12]
  38222. TIMx->CR1 = tmpcr1;
  38223. 801072e: 687b ldr r3, [r7, #4]
  38224. 8010730: 68fa ldr r2, [r7, #12]
  38225. 8010732: 601a str r2, [r3, #0]
  38226. /* Set the Autoreload value */
  38227. TIMx->ARR = (uint32_t)Structure->Period ;
  38228. 8010734: 683b ldr r3, [r7, #0]
  38229. 8010736: 689a ldr r2, [r3, #8]
  38230. 8010738: 687b ldr r3, [r7, #4]
  38231. 801073a: 62da str r2, [r3, #44] @ 0x2c
  38232. /* Set the Prescaler value */
  38233. TIMx->PSC = Structure->Prescaler;
  38234. 801073c: 683b ldr r3, [r7, #0]
  38235. 801073e: 681a ldr r2, [r3, #0]
  38236. 8010740: 687b ldr r3, [r7, #4]
  38237. 8010742: 629a str r2, [r3, #40] @ 0x28
  38238. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  38239. 8010744: 687b ldr r3, [r7, #4]
  38240. 8010746: 4a16 ldr r2, [pc, #88] @ (80107a0 <TIM_Base_SetConfig+0x12c>)
  38241. 8010748: 4293 cmp r3, r2
  38242. 801074a: d00f beq.n 801076c <TIM_Base_SetConfig+0xf8>
  38243. 801074c: 687b ldr r3, [r7, #4]
  38244. 801074e: 4a18 ldr r2, [pc, #96] @ (80107b0 <TIM_Base_SetConfig+0x13c>)
  38245. 8010750: 4293 cmp r3, r2
  38246. 8010752: d00b beq.n 801076c <TIM_Base_SetConfig+0xf8>
  38247. 8010754: 687b ldr r3, [r7, #4]
  38248. 8010756: 4a17 ldr r2, [pc, #92] @ (80107b4 <TIM_Base_SetConfig+0x140>)
  38249. 8010758: 4293 cmp r3, r2
  38250. 801075a: d007 beq.n 801076c <TIM_Base_SetConfig+0xf8>
  38251. 801075c: 687b ldr r3, [r7, #4]
  38252. 801075e: 4a16 ldr r2, [pc, #88] @ (80107b8 <TIM_Base_SetConfig+0x144>)
  38253. 8010760: 4293 cmp r3, r2
  38254. 8010762: d003 beq.n 801076c <TIM_Base_SetConfig+0xf8>
  38255. 8010764: 687b ldr r3, [r7, #4]
  38256. 8010766: 4a15 ldr r2, [pc, #84] @ (80107bc <TIM_Base_SetConfig+0x148>)
  38257. 8010768: 4293 cmp r3, r2
  38258. 801076a: d103 bne.n 8010774 <TIM_Base_SetConfig+0x100>
  38259. {
  38260. /* Set the Repetition Counter value */
  38261. TIMx->RCR = Structure->RepetitionCounter;
  38262. 801076c: 683b ldr r3, [r7, #0]
  38263. 801076e: 691a ldr r2, [r3, #16]
  38264. 8010770: 687b ldr r3, [r7, #4]
  38265. 8010772: 631a str r2, [r3, #48] @ 0x30
  38266. }
  38267. /* Generate an update event to reload the Prescaler
  38268. and the repetition counter (only for advanced timer) value immediately */
  38269. TIMx->EGR = TIM_EGR_UG;
  38270. 8010774: 687b ldr r3, [r7, #4]
  38271. 8010776: 2201 movs r2, #1
  38272. 8010778: 615a str r2, [r3, #20]
  38273. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  38274. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  38275. 801077a: 687b ldr r3, [r7, #4]
  38276. 801077c: 691b ldr r3, [r3, #16]
  38277. 801077e: f003 0301 and.w r3, r3, #1
  38278. 8010782: 2b01 cmp r3, #1
  38279. 8010784: d105 bne.n 8010792 <TIM_Base_SetConfig+0x11e>
  38280. {
  38281. /* Clear the update flag */
  38282. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  38283. 8010786: 687b ldr r3, [r7, #4]
  38284. 8010788: 691b ldr r3, [r3, #16]
  38285. 801078a: f023 0201 bic.w r2, r3, #1
  38286. 801078e: 687b ldr r3, [r7, #4]
  38287. 8010790: 611a str r2, [r3, #16]
  38288. }
  38289. }
  38290. 8010792: bf00 nop
  38291. 8010794: 3714 adds r7, #20
  38292. 8010796: 46bd mov sp, r7
  38293. 8010798: f85d 7b04 ldr.w r7, [sp], #4
  38294. 801079c: 4770 bx lr
  38295. 801079e: bf00 nop
  38296. 80107a0: 40010000 .word 0x40010000
  38297. 80107a4: 40000400 .word 0x40000400
  38298. 80107a8: 40000800 .word 0x40000800
  38299. 80107ac: 40000c00 .word 0x40000c00
  38300. 80107b0: 40010400 .word 0x40010400
  38301. 80107b4: 40014000 .word 0x40014000
  38302. 80107b8: 40014400 .word 0x40014400
  38303. 80107bc: 40014800 .word 0x40014800
  38304. 080107c0 <TIM_OC1_SetConfig>:
  38305. * @param TIMx to select the TIM peripheral
  38306. * @param OC_Config The output configuration structure
  38307. * @retval None
  38308. */
  38309. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38310. {
  38311. 80107c0: b480 push {r7}
  38312. 80107c2: b087 sub sp, #28
  38313. 80107c4: af00 add r7, sp, #0
  38314. 80107c6: 6078 str r0, [r7, #4]
  38315. 80107c8: 6039 str r1, [r7, #0]
  38316. uint32_t tmpccmrx;
  38317. uint32_t tmpccer;
  38318. uint32_t tmpcr2;
  38319. /* Get the TIMx CCER register value */
  38320. tmpccer = TIMx->CCER;
  38321. 80107ca: 687b ldr r3, [r7, #4]
  38322. 80107cc: 6a1b ldr r3, [r3, #32]
  38323. 80107ce: 617b str r3, [r7, #20]
  38324. /* Disable the Channel 1: Reset the CC1E Bit */
  38325. TIMx->CCER &= ~TIM_CCER_CC1E;
  38326. 80107d0: 687b ldr r3, [r7, #4]
  38327. 80107d2: 6a1b ldr r3, [r3, #32]
  38328. 80107d4: f023 0201 bic.w r2, r3, #1
  38329. 80107d8: 687b ldr r3, [r7, #4]
  38330. 80107da: 621a str r2, [r3, #32]
  38331. /* Get the TIMx CR2 register value */
  38332. tmpcr2 = TIMx->CR2;
  38333. 80107dc: 687b ldr r3, [r7, #4]
  38334. 80107de: 685b ldr r3, [r3, #4]
  38335. 80107e0: 613b str r3, [r7, #16]
  38336. /* Get the TIMx CCMR1 register value */
  38337. tmpccmrx = TIMx->CCMR1;
  38338. 80107e2: 687b ldr r3, [r7, #4]
  38339. 80107e4: 699b ldr r3, [r3, #24]
  38340. 80107e6: 60fb str r3, [r7, #12]
  38341. /* Reset the Output Compare Mode Bits */
  38342. tmpccmrx &= ~TIM_CCMR1_OC1M;
  38343. 80107e8: 68fa ldr r2, [r7, #12]
  38344. 80107ea: 4b37 ldr r3, [pc, #220] @ (80108c8 <TIM_OC1_SetConfig+0x108>)
  38345. 80107ec: 4013 ands r3, r2
  38346. 80107ee: 60fb str r3, [r7, #12]
  38347. tmpccmrx &= ~TIM_CCMR1_CC1S;
  38348. 80107f0: 68fb ldr r3, [r7, #12]
  38349. 80107f2: f023 0303 bic.w r3, r3, #3
  38350. 80107f6: 60fb str r3, [r7, #12]
  38351. /* Select the Output Compare Mode */
  38352. tmpccmrx |= OC_Config->OCMode;
  38353. 80107f8: 683b ldr r3, [r7, #0]
  38354. 80107fa: 681b ldr r3, [r3, #0]
  38355. 80107fc: 68fa ldr r2, [r7, #12]
  38356. 80107fe: 4313 orrs r3, r2
  38357. 8010800: 60fb str r3, [r7, #12]
  38358. /* Reset the Output Polarity level */
  38359. tmpccer &= ~TIM_CCER_CC1P;
  38360. 8010802: 697b ldr r3, [r7, #20]
  38361. 8010804: f023 0302 bic.w r3, r3, #2
  38362. 8010808: 617b str r3, [r7, #20]
  38363. /* Set the Output Compare Polarity */
  38364. tmpccer |= OC_Config->OCPolarity;
  38365. 801080a: 683b ldr r3, [r7, #0]
  38366. 801080c: 689b ldr r3, [r3, #8]
  38367. 801080e: 697a ldr r2, [r7, #20]
  38368. 8010810: 4313 orrs r3, r2
  38369. 8010812: 617b str r3, [r7, #20]
  38370. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  38371. 8010814: 687b ldr r3, [r7, #4]
  38372. 8010816: 4a2d ldr r2, [pc, #180] @ (80108cc <TIM_OC1_SetConfig+0x10c>)
  38373. 8010818: 4293 cmp r3, r2
  38374. 801081a: d00f beq.n 801083c <TIM_OC1_SetConfig+0x7c>
  38375. 801081c: 687b ldr r3, [r7, #4]
  38376. 801081e: 4a2c ldr r2, [pc, #176] @ (80108d0 <TIM_OC1_SetConfig+0x110>)
  38377. 8010820: 4293 cmp r3, r2
  38378. 8010822: d00b beq.n 801083c <TIM_OC1_SetConfig+0x7c>
  38379. 8010824: 687b ldr r3, [r7, #4]
  38380. 8010826: 4a2b ldr r2, [pc, #172] @ (80108d4 <TIM_OC1_SetConfig+0x114>)
  38381. 8010828: 4293 cmp r3, r2
  38382. 801082a: d007 beq.n 801083c <TIM_OC1_SetConfig+0x7c>
  38383. 801082c: 687b ldr r3, [r7, #4]
  38384. 801082e: 4a2a ldr r2, [pc, #168] @ (80108d8 <TIM_OC1_SetConfig+0x118>)
  38385. 8010830: 4293 cmp r3, r2
  38386. 8010832: d003 beq.n 801083c <TIM_OC1_SetConfig+0x7c>
  38387. 8010834: 687b ldr r3, [r7, #4]
  38388. 8010836: 4a29 ldr r2, [pc, #164] @ (80108dc <TIM_OC1_SetConfig+0x11c>)
  38389. 8010838: 4293 cmp r3, r2
  38390. 801083a: d10c bne.n 8010856 <TIM_OC1_SetConfig+0x96>
  38391. {
  38392. /* Check parameters */
  38393. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38394. /* Reset the Output N Polarity level */
  38395. tmpccer &= ~TIM_CCER_CC1NP;
  38396. 801083c: 697b ldr r3, [r7, #20]
  38397. 801083e: f023 0308 bic.w r3, r3, #8
  38398. 8010842: 617b str r3, [r7, #20]
  38399. /* Set the Output N Polarity */
  38400. tmpccer |= OC_Config->OCNPolarity;
  38401. 8010844: 683b ldr r3, [r7, #0]
  38402. 8010846: 68db ldr r3, [r3, #12]
  38403. 8010848: 697a ldr r2, [r7, #20]
  38404. 801084a: 4313 orrs r3, r2
  38405. 801084c: 617b str r3, [r7, #20]
  38406. /* Reset the Output N State */
  38407. tmpccer &= ~TIM_CCER_CC1NE;
  38408. 801084e: 697b ldr r3, [r7, #20]
  38409. 8010850: f023 0304 bic.w r3, r3, #4
  38410. 8010854: 617b str r3, [r7, #20]
  38411. }
  38412. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38413. 8010856: 687b ldr r3, [r7, #4]
  38414. 8010858: 4a1c ldr r2, [pc, #112] @ (80108cc <TIM_OC1_SetConfig+0x10c>)
  38415. 801085a: 4293 cmp r3, r2
  38416. 801085c: d00f beq.n 801087e <TIM_OC1_SetConfig+0xbe>
  38417. 801085e: 687b ldr r3, [r7, #4]
  38418. 8010860: 4a1b ldr r2, [pc, #108] @ (80108d0 <TIM_OC1_SetConfig+0x110>)
  38419. 8010862: 4293 cmp r3, r2
  38420. 8010864: d00b beq.n 801087e <TIM_OC1_SetConfig+0xbe>
  38421. 8010866: 687b ldr r3, [r7, #4]
  38422. 8010868: 4a1a ldr r2, [pc, #104] @ (80108d4 <TIM_OC1_SetConfig+0x114>)
  38423. 801086a: 4293 cmp r3, r2
  38424. 801086c: d007 beq.n 801087e <TIM_OC1_SetConfig+0xbe>
  38425. 801086e: 687b ldr r3, [r7, #4]
  38426. 8010870: 4a19 ldr r2, [pc, #100] @ (80108d8 <TIM_OC1_SetConfig+0x118>)
  38427. 8010872: 4293 cmp r3, r2
  38428. 8010874: d003 beq.n 801087e <TIM_OC1_SetConfig+0xbe>
  38429. 8010876: 687b ldr r3, [r7, #4]
  38430. 8010878: 4a18 ldr r2, [pc, #96] @ (80108dc <TIM_OC1_SetConfig+0x11c>)
  38431. 801087a: 4293 cmp r3, r2
  38432. 801087c: d111 bne.n 80108a2 <TIM_OC1_SetConfig+0xe2>
  38433. /* Check parameters */
  38434. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38435. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38436. /* Reset the Output Compare and Output Compare N IDLE State */
  38437. tmpcr2 &= ~TIM_CR2_OIS1;
  38438. 801087e: 693b ldr r3, [r7, #16]
  38439. 8010880: f423 7380 bic.w r3, r3, #256 @ 0x100
  38440. 8010884: 613b str r3, [r7, #16]
  38441. tmpcr2 &= ~TIM_CR2_OIS1N;
  38442. 8010886: 693b ldr r3, [r7, #16]
  38443. 8010888: f423 7300 bic.w r3, r3, #512 @ 0x200
  38444. 801088c: 613b str r3, [r7, #16]
  38445. /* Set the Output Idle state */
  38446. tmpcr2 |= OC_Config->OCIdleState;
  38447. 801088e: 683b ldr r3, [r7, #0]
  38448. 8010890: 695b ldr r3, [r3, #20]
  38449. 8010892: 693a ldr r2, [r7, #16]
  38450. 8010894: 4313 orrs r3, r2
  38451. 8010896: 613b str r3, [r7, #16]
  38452. /* Set the Output N Idle state */
  38453. tmpcr2 |= OC_Config->OCNIdleState;
  38454. 8010898: 683b ldr r3, [r7, #0]
  38455. 801089a: 699b ldr r3, [r3, #24]
  38456. 801089c: 693a ldr r2, [r7, #16]
  38457. 801089e: 4313 orrs r3, r2
  38458. 80108a0: 613b str r3, [r7, #16]
  38459. }
  38460. /* Write to TIMx CR2 */
  38461. TIMx->CR2 = tmpcr2;
  38462. 80108a2: 687b ldr r3, [r7, #4]
  38463. 80108a4: 693a ldr r2, [r7, #16]
  38464. 80108a6: 605a str r2, [r3, #4]
  38465. /* Write to TIMx CCMR1 */
  38466. TIMx->CCMR1 = tmpccmrx;
  38467. 80108a8: 687b ldr r3, [r7, #4]
  38468. 80108aa: 68fa ldr r2, [r7, #12]
  38469. 80108ac: 619a str r2, [r3, #24]
  38470. /* Set the Capture Compare Register value */
  38471. TIMx->CCR1 = OC_Config->Pulse;
  38472. 80108ae: 683b ldr r3, [r7, #0]
  38473. 80108b0: 685a ldr r2, [r3, #4]
  38474. 80108b2: 687b ldr r3, [r7, #4]
  38475. 80108b4: 635a str r2, [r3, #52] @ 0x34
  38476. /* Write to TIMx CCER */
  38477. TIMx->CCER = tmpccer;
  38478. 80108b6: 687b ldr r3, [r7, #4]
  38479. 80108b8: 697a ldr r2, [r7, #20]
  38480. 80108ba: 621a str r2, [r3, #32]
  38481. }
  38482. 80108bc: bf00 nop
  38483. 80108be: 371c adds r7, #28
  38484. 80108c0: 46bd mov sp, r7
  38485. 80108c2: f85d 7b04 ldr.w r7, [sp], #4
  38486. 80108c6: 4770 bx lr
  38487. 80108c8: fffeff8f .word 0xfffeff8f
  38488. 80108cc: 40010000 .word 0x40010000
  38489. 80108d0: 40010400 .word 0x40010400
  38490. 80108d4: 40014000 .word 0x40014000
  38491. 80108d8: 40014400 .word 0x40014400
  38492. 80108dc: 40014800 .word 0x40014800
  38493. 080108e0 <TIM_OC2_SetConfig>:
  38494. * @param TIMx to select the TIM peripheral
  38495. * @param OC_Config The output configuration structure
  38496. * @retval None
  38497. */
  38498. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38499. {
  38500. 80108e0: b480 push {r7}
  38501. 80108e2: b087 sub sp, #28
  38502. 80108e4: af00 add r7, sp, #0
  38503. 80108e6: 6078 str r0, [r7, #4]
  38504. 80108e8: 6039 str r1, [r7, #0]
  38505. uint32_t tmpccmrx;
  38506. uint32_t tmpccer;
  38507. uint32_t tmpcr2;
  38508. /* Get the TIMx CCER register value */
  38509. tmpccer = TIMx->CCER;
  38510. 80108ea: 687b ldr r3, [r7, #4]
  38511. 80108ec: 6a1b ldr r3, [r3, #32]
  38512. 80108ee: 617b str r3, [r7, #20]
  38513. /* Disable the Channel 2: Reset the CC2E Bit */
  38514. TIMx->CCER &= ~TIM_CCER_CC2E;
  38515. 80108f0: 687b ldr r3, [r7, #4]
  38516. 80108f2: 6a1b ldr r3, [r3, #32]
  38517. 80108f4: f023 0210 bic.w r2, r3, #16
  38518. 80108f8: 687b ldr r3, [r7, #4]
  38519. 80108fa: 621a str r2, [r3, #32]
  38520. /* Get the TIMx CR2 register value */
  38521. tmpcr2 = TIMx->CR2;
  38522. 80108fc: 687b ldr r3, [r7, #4]
  38523. 80108fe: 685b ldr r3, [r3, #4]
  38524. 8010900: 613b str r3, [r7, #16]
  38525. /* Get the TIMx CCMR1 register value */
  38526. tmpccmrx = TIMx->CCMR1;
  38527. 8010902: 687b ldr r3, [r7, #4]
  38528. 8010904: 699b ldr r3, [r3, #24]
  38529. 8010906: 60fb str r3, [r7, #12]
  38530. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38531. tmpccmrx &= ~TIM_CCMR1_OC2M;
  38532. 8010908: 68fa ldr r2, [r7, #12]
  38533. 801090a: 4b34 ldr r3, [pc, #208] @ (80109dc <TIM_OC2_SetConfig+0xfc>)
  38534. 801090c: 4013 ands r3, r2
  38535. 801090e: 60fb str r3, [r7, #12]
  38536. tmpccmrx &= ~TIM_CCMR1_CC2S;
  38537. 8010910: 68fb ldr r3, [r7, #12]
  38538. 8010912: f423 7340 bic.w r3, r3, #768 @ 0x300
  38539. 8010916: 60fb str r3, [r7, #12]
  38540. /* Select the Output Compare Mode */
  38541. tmpccmrx |= (OC_Config->OCMode << 8U);
  38542. 8010918: 683b ldr r3, [r7, #0]
  38543. 801091a: 681b ldr r3, [r3, #0]
  38544. 801091c: 021b lsls r3, r3, #8
  38545. 801091e: 68fa ldr r2, [r7, #12]
  38546. 8010920: 4313 orrs r3, r2
  38547. 8010922: 60fb str r3, [r7, #12]
  38548. /* Reset the Output Polarity level */
  38549. tmpccer &= ~TIM_CCER_CC2P;
  38550. 8010924: 697b ldr r3, [r7, #20]
  38551. 8010926: f023 0320 bic.w r3, r3, #32
  38552. 801092a: 617b str r3, [r7, #20]
  38553. /* Set the Output Compare Polarity */
  38554. tmpccer |= (OC_Config->OCPolarity << 4U);
  38555. 801092c: 683b ldr r3, [r7, #0]
  38556. 801092e: 689b ldr r3, [r3, #8]
  38557. 8010930: 011b lsls r3, r3, #4
  38558. 8010932: 697a ldr r2, [r7, #20]
  38559. 8010934: 4313 orrs r3, r2
  38560. 8010936: 617b str r3, [r7, #20]
  38561. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  38562. 8010938: 687b ldr r3, [r7, #4]
  38563. 801093a: 4a29 ldr r2, [pc, #164] @ (80109e0 <TIM_OC2_SetConfig+0x100>)
  38564. 801093c: 4293 cmp r3, r2
  38565. 801093e: d003 beq.n 8010948 <TIM_OC2_SetConfig+0x68>
  38566. 8010940: 687b ldr r3, [r7, #4]
  38567. 8010942: 4a28 ldr r2, [pc, #160] @ (80109e4 <TIM_OC2_SetConfig+0x104>)
  38568. 8010944: 4293 cmp r3, r2
  38569. 8010946: d10d bne.n 8010964 <TIM_OC2_SetConfig+0x84>
  38570. {
  38571. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38572. /* Reset the Output N Polarity level */
  38573. tmpccer &= ~TIM_CCER_CC2NP;
  38574. 8010948: 697b ldr r3, [r7, #20]
  38575. 801094a: f023 0380 bic.w r3, r3, #128 @ 0x80
  38576. 801094e: 617b str r3, [r7, #20]
  38577. /* Set the Output N Polarity */
  38578. tmpccer |= (OC_Config->OCNPolarity << 4U);
  38579. 8010950: 683b ldr r3, [r7, #0]
  38580. 8010952: 68db ldr r3, [r3, #12]
  38581. 8010954: 011b lsls r3, r3, #4
  38582. 8010956: 697a ldr r2, [r7, #20]
  38583. 8010958: 4313 orrs r3, r2
  38584. 801095a: 617b str r3, [r7, #20]
  38585. /* Reset the Output N State */
  38586. tmpccer &= ~TIM_CCER_CC2NE;
  38587. 801095c: 697b ldr r3, [r7, #20]
  38588. 801095e: f023 0340 bic.w r3, r3, #64 @ 0x40
  38589. 8010962: 617b str r3, [r7, #20]
  38590. }
  38591. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38592. 8010964: 687b ldr r3, [r7, #4]
  38593. 8010966: 4a1e ldr r2, [pc, #120] @ (80109e0 <TIM_OC2_SetConfig+0x100>)
  38594. 8010968: 4293 cmp r3, r2
  38595. 801096a: d00f beq.n 801098c <TIM_OC2_SetConfig+0xac>
  38596. 801096c: 687b ldr r3, [r7, #4]
  38597. 801096e: 4a1d ldr r2, [pc, #116] @ (80109e4 <TIM_OC2_SetConfig+0x104>)
  38598. 8010970: 4293 cmp r3, r2
  38599. 8010972: d00b beq.n 801098c <TIM_OC2_SetConfig+0xac>
  38600. 8010974: 687b ldr r3, [r7, #4]
  38601. 8010976: 4a1c ldr r2, [pc, #112] @ (80109e8 <TIM_OC2_SetConfig+0x108>)
  38602. 8010978: 4293 cmp r3, r2
  38603. 801097a: d007 beq.n 801098c <TIM_OC2_SetConfig+0xac>
  38604. 801097c: 687b ldr r3, [r7, #4]
  38605. 801097e: 4a1b ldr r2, [pc, #108] @ (80109ec <TIM_OC2_SetConfig+0x10c>)
  38606. 8010980: 4293 cmp r3, r2
  38607. 8010982: d003 beq.n 801098c <TIM_OC2_SetConfig+0xac>
  38608. 8010984: 687b ldr r3, [r7, #4]
  38609. 8010986: 4a1a ldr r2, [pc, #104] @ (80109f0 <TIM_OC2_SetConfig+0x110>)
  38610. 8010988: 4293 cmp r3, r2
  38611. 801098a: d113 bne.n 80109b4 <TIM_OC2_SetConfig+0xd4>
  38612. /* Check parameters */
  38613. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38614. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38615. /* Reset the Output Compare and Output Compare N IDLE State */
  38616. tmpcr2 &= ~TIM_CR2_OIS2;
  38617. 801098c: 693b ldr r3, [r7, #16]
  38618. 801098e: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38619. 8010992: 613b str r3, [r7, #16]
  38620. tmpcr2 &= ~TIM_CR2_OIS2N;
  38621. 8010994: 693b ldr r3, [r7, #16]
  38622. 8010996: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38623. 801099a: 613b str r3, [r7, #16]
  38624. /* Set the Output Idle state */
  38625. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  38626. 801099c: 683b ldr r3, [r7, #0]
  38627. 801099e: 695b ldr r3, [r3, #20]
  38628. 80109a0: 009b lsls r3, r3, #2
  38629. 80109a2: 693a ldr r2, [r7, #16]
  38630. 80109a4: 4313 orrs r3, r2
  38631. 80109a6: 613b str r3, [r7, #16]
  38632. /* Set the Output N Idle state */
  38633. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  38634. 80109a8: 683b ldr r3, [r7, #0]
  38635. 80109aa: 699b ldr r3, [r3, #24]
  38636. 80109ac: 009b lsls r3, r3, #2
  38637. 80109ae: 693a ldr r2, [r7, #16]
  38638. 80109b0: 4313 orrs r3, r2
  38639. 80109b2: 613b str r3, [r7, #16]
  38640. }
  38641. /* Write to TIMx CR2 */
  38642. TIMx->CR2 = tmpcr2;
  38643. 80109b4: 687b ldr r3, [r7, #4]
  38644. 80109b6: 693a ldr r2, [r7, #16]
  38645. 80109b8: 605a str r2, [r3, #4]
  38646. /* Write to TIMx CCMR1 */
  38647. TIMx->CCMR1 = tmpccmrx;
  38648. 80109ba: 687b ldr r3, [r7, #4]
  38649. 80109bc: 68fa ldr r2, [r7, #12]
  38650. 80109be: 619a str r2, [r3, #24]
  38651. /* Set the Capture Compare Register value */
  38652. TIMx->CCR2 = OC_Config->Pulse;
  38653. 80109c0: 683b ldr r3, [r7, #0]
  38654. 80109c2: 685a ldr r2, [r3, #4]
  38655. 80109c4: 687b ldr r3, [r7, #4]
  38656. 80109c6: 639a str r2, [r3, #56] @ 0x38
  38657. /* Write to TIMx CCER */
  38658. TIMx->CCER = tmpccer;
  38659. 80109c8: 687b ldr r3, [r7, #4]
  38660. 80109ca: 697a ldr r2, [r7, #20]
  38661. 80109cc: 621a str r2, [r3, #32]
  38662. }
  38663. 80109ce: bf00 nop
  38664. 80109d0: 371c adds r7, #28
  38665. 80109d2: 46bd mov sp, r7
  38666. 80109d4: f85d 7b04 ldr.w r7, [sp], #4
  38667. 80109d8: 4770 bx lr
  38668. 80109da: bf00 nop
  38669. 80109dc: feff8fff .word 0xfeff8fff
  38670. 80109e0: 40010000 .word 0x40010000
  38671. 80109e4: 40010400 .word 0x40010400
  38672. 80109e8: 40014000 .word 0x40014000
  38673. 80109ec: 40014400 .word 0x40014400
  38674. 80109f0: 40014800 .word 0x40014800
  38675. 080109f4 <TIM_OC3_SetConfig>:
  38676. * @param TIMx to select the TIM peripheral
  38677. * @param OC_Config The output configuration structure
  38678. * @retval None
  38679. */
  38680. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38681. {
  38682. 80109f4: b480 push {r7}
  38683. 80109f6: b087 sub sp, #28
  38684. 80109f8: af00 add r7, sp, #0
  38685. 80109fa: 6078 str r0, [r7, #4]
  38686. 80109fc: 6039 str r1, [r7, #0]
  38687. uint32_t tmpccmrx;
  38688. uint32_t tmpccer;
  38689. uint32_t tmpcr2;
  38690. /* Get the TIMx CCER register value */
  38691. tmpccer = TIMx->CCER;
  38692. 80109fe: 687b ldr r3, [r7, #4]
  38693. 8010a00: 6a1b ldr r3, [r3, #32]
  38694. 8010a02: 617b str r3, [r7, #20]
  38695. /* Disable the Channel 3: Reset the CC2E Bit */
  38696. TIMx->CCER &= ~TIM_CCER_CC3E;
  38697. 8010a04: 687b ldr r3, [r7, #4]
  38698. 8010a06: 6a1b ldr r3, [r3, #32]
  38699. 8010a08: f423 7280 bic.w r2, r3, #256 @ 0x100
  38700. 8010a0c: 687b ldr r3, [r7, #4]
  38701. 8010a0e: 621a str r2, [r3, #32]
  38702. /* Get the TIMx CR2 register value */
  38703. tmpcr2 = TIMx->CR2;
  38704. 8010a10: 687b ldr r3, [r7, #4]
  38705. 8010a12: 685b ldr r3, [r3, #4]
  38706. 8010a14: 613b str r3, [r7, #16]
  38707. /* Get the TIMx CCMR2 register value */
  38708. tmpccmrx = TIMx->CCMR2;
  38709. 8010a16: 687b ldr r3, [r7, #4]
  38710. 8010a18: 69db ldr r3, [r3, #28]
  38711. 8010a1a: 60fb str r3, [r7, #12]
  38712. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38713. tmpccmrx &= ~TIM_CCMR2_OC3M;
  38714. 8010a1c: 68fa ldr r2, [r7, #12]
  38715. 8010a1e: 4b33 ldr r3, [pc, #204] @ (8010aec <TIM_OC3_SetConfig+0xf8>)
  38716. 8010a20: 4013 ands r3, r2
  38717. 8010a22: 60fb str r3, [r7, #12]
  38718. tmpccmrx &= ~TIM_CCMR2_CC3S;
  38719. 8010a24: 68fb ldr r3, [r7, #12]
  38720. 8010a26: f023 0303 bic.w r3, r3, #3
  38721. 8010a2a: 60fb str r3, [r7, #12]
  38722. /* Select the Output Compare Mode */
  38723. tmpccmrx |= OC_Config->OCMode;
  38724. 8010a2c: 683b ldr r3, [r7, #0]
  38725. 8010a2e: 681b ldr r3, [r3, #0]
  38726. 8010a30: 68fa ldr r2, [r7, #12]
  38727. 8010a32: 4313 orrs r3, r2
  38728. 8010a34: 60fb str r3, [r7, #12]
  38729. /* Reset the Output Polarity level */
  38730. tmpccer &= ~TIM_CCER_CC3P;
  38731. 8010a36: 697b ldr r3, [r7, #20]
  38732. 8010a38: f423 7300 bic.w r3, r3, #512 @ 0x200
  38733. 8010a3c: 617b str r3, [r7, #20]
  38734. /* Set the Output Compare Polarity */
  38735. tmpccer |= (OC_Config->OCPolarity << 8U);
  38736. 8010a3e: 683b ldr r3, [r7, #0]
  38737. 8010a40: 689b ldr r3, [r3, #8]
  38738. 8010a42: 021b lsls r3, r3, #8
  38739. 8010a44: 697a ldr r2, [r7, #20]
  38740. 8010a46: 4313 orrs r3, r2
  38741. 8010a48: 617b str r3, [r7, #20]
  38742. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  38743. 8010a4a: 687b ldr r3, [r7, #4]
  38744. 8010a4c: 4a28 ldr r2, [pc, #160] @ (8010af0 <TIM_OC3_SetConfig+0xfc>)
  38745. 8010a4e: 4293 cmp r3, r2
  38746. 8010a50: d003 beq.n 8010a5a <TIM_OC3_SetConfig+0x66>
  38747. 8010a52: 687b ldr r3, [r7, #4]
  38748. 8010a54: 4a27 ldr r2, [pc, #156] @ (8010af4 <TIM_OC3_SetConfig+0x100>)
  38749. 8010a56: 4293 cmp r3, r2
  38750. 8010a58: d10d bne.n 8010a76 <TIM_OC3_SetConfig+0x82>
  38751. {
  38752. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38753. /* Reset the Output N Polarity level */
  38754. tmpccer &= ~TIM_CCER_CC3NP;
  38755. 8010a5a: 697b ldr r3, [r7, #20]
  38756. 8010a5c: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38757. 8010a60: 617b str r3, [r7, #20]
  38758. /* Set the Output N Polarity */
  38759. tmpccer |= (OC_Config->OCNPolarity << 8U);
  38760. 8010a62: 683b ldr r3, [r7, #0]
  38761. 8010a64: 68db ldr r3, [r3, #12]
  38762. 8010a66: 021b lsls r3, r3, #8
  38763. 8010a68: 697a ldr r2, [r7, #20]
  38764. 8010a6a: 4313 orrs r3, r2
  38765. 8010a6c: 617b str r3, [r7, #20]
  38766. /* Reset the Output N State */
  38767. tmpccer &= ~TIM_CCER_CC3NE;
  38768. 8010a6e: 697b ldr r3, [r7, #20]
  38769. 8010a70: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38770. 8010a74: 617b str r3, [r7, #20]
  38771. }
  38772. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38773. 8010a76: 687b ldr r3, [r7, #4]
  38774. 8010a78: 4a1d ldr r2, [pc, #116] @ (8010af0 <TIM_OC3_SetConfig+0xfc>)
  38775. 8010a7a: 4293 cmp r3, r2
  38776. 8010a7c: d00f beq.n 8010a9e <TIM_OC3_SetConfig+0xaa>
  38777. 8010a7e: 687b ldr r3, [r7, #4]
  38778. 8010a80: 4a1c ldr r2, [pc, #112] @ (8010af4 <TIM_OC3_SetConfig+0x100>)
  38779. 8010a82: 4293 cmp r3, r2
  38780. 8010a84: d00b beq.n 8010a9e <TIM_OC3_SetConfig+0xaa>
  38781. 8010a86: 687b ldr r3, [r7, #4]
  38782. 8010a88: 4a1b ldr r2, [pc, #108] @ (8010af8 <TIM_OC3_SetConfig+0x104>)
  38783. 8010a8a: 4293 cmp r3, r2
  38784. 8010a8c: d007 beq.n 8010a9e <TIM_OC3_SetConfig+0xaa>
  38785. 8010a8e: 687b ldr r3, [r7, #4]
  38786. 8010a90: 4a1a ldr r2, [pc, #104] @ (8010afc <TIM_OC3_SetConfig+0x108>)
  38787. 8010a92: 4293 cmp r3, r2
  38788. 8010a94: d003 beq.n 8010a9e <TIM_OC3_SetConfig+0xaa>
  38789. 8010a96: 687b ldr r3, [r7, #4]
  38790. 8010a98: 4a19 ldr r2, [pc, #100] @ (8010b00 <TIM_OC3_SetConfig+0x10c>)
  38791. 8010a9a: 4293 cmp r3, r2
  38792. 8010a9c: d113 bne.n 8010ac6 <TIM_OC3_SetConfig+0xd2>
  38793. /* Check parameters */
  38794. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38795. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38796. /* Reset the Output Compare and Output Compare N IDLE State */
  38797. tmpcr2 &= ~TIM_CR2_OIS3;
  38798. 8010a9e: 693b ldr r3, [r7, #16]
  38799. 8010aa0: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  38800. 8010aa4: 613b str r3, [r7, #16]
  38801. tmpcr2 &= ~TIM_CR2_OIS3N;
  38802. 8010aa6: 693b ldr r3, [r7, #16]
  38803. 8010aa8: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38804. 8010aac: 613b str r3, [r7, #16]
  38805. /* Set the Output Idle state */
  38806. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  38807. 8010aae: 683b ldr r3, [r7, #0]
  38808. 8010ab0: 695b ldr r3, [r3, #20]
  38809. 8010ab2: 011b lsls r3, r3, #4
  38810. 8010ab4: 693a ldr r2, [r7, #16]
  38811. 8010ab6: 4313 orrs r3, r2
  38812. 8010ab8: 613b str r3, [r7, #16]
  38813. /* Set the Output N Idle state */
  38814. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  38815. 8010aba: 683b ldr r3, [r7, #0]
  38816. 8010abc: 699b ldr r3, [r3, #24]
  38817. 8010abe: 011b lsls r3, r3, #4
  38818. 8010ac0: 693a ldr r2, [r7, #16]
  38819. 8010ac2: 4313 orrs r3, r2
  38820. 8010ac4: 613b str r3, [r7, #16]
  38821. }
  38822. /* Write to TIMx CR2 */
  38823. TIMx->CR2 = tmpcr2;
  38824. 8010ac6: 687b ldr r3, [r7, #4]
  38825. 8010ac8: 693a ldr r2, [r7, #16]
  38826. 8010aca: 605a str r2, [r3, #4]
  38827. /* Write to TIMx CCMR2 */
  38828. TIMx->CCMR2 = tmpccmrx;
  38829. 8010acc: 687b ldr r3, [r7, #4]
  38830. 8010ace: 68fa ldr r2, [r7, #12]
  38831. 8010ad0: 61da str r2, [r3, #28]
  38832. /* Set the Capture Compare Register value */
  38833. TIMx->CCR3 = OC_Config->Pulse;
  38834. 8010ad2: 683b ldr r3, [r7, #0]
  38835. 8010ad4: 685a ldr r2, [r3, #4]
  38836. 8010ad6: 687b ldr r3, [r7, #4]
  38837. 8010ad8: 63da str r2, [r3, #60] @ 0x3c
  38838. /* Write to TIMx CCER */
  38839. TIMx->CCER = tmpccer;
  38840. 8010ada: 687b ldr r3, [r7, #4]
  38841. 8010adc: 697a ldr r2, [r7, #20]
  38842. 8010ade: 621a str r2, [r3, #32]
  38843. }
  38844. 8010ae0: bf00 nop
  38845. 8010ae2: 371c adds r7, #28
  38846. 8010ae4: 46bd mov sp, r7
  38847. 8010ae6: f85d 7b04 ldr.w r7, [sp], #4
  38848. 8010aea: 4770 bx lr
  38849. 8010aec: fffeff8f .word 0xfffeff8f
  38850. 8010af0: 40010000 .word 0x40010000
  38851. 8010af4: 40010400 .word 0x40010400
  38852. 8010af8: 40014000 .word 0x40014000
  38853. 8010afc: 40014400 .word 0x40014400
  38854. 8010b00: 40014800 .word 0x40014800
  38855. 08010b04 <TIM_OC4_SetConfig>:
  38856. * @param TIMx to select the TIM peripheral
  38857. * @param OC_Config The output configuration structure
  38858. * @retval None
  38859. */
  38860. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38861. {
  38862. 8010b04: b480 push {r7}
  38863. 8010b06: b087 sub sp, #28
  38864. 8010b08: af00 add r7, sp, #0
  38865. 8010b0a: 6078 str r0, [r7, #4]
  38866. 8010b0c: 6039 str r1, [r7, #0]
  38867. uint32_t tmpccmrx;
  38868. uint32_t tmpccer;
  38869. uint32_t tmpcr2;
  38870. /* Get the TIMx CCER register value */
  38871. tmpccer = TIMx->CCER;
  38872. 8010b0e: 687b ldr r3, [r7, #4]
  38873. 8010b10: 6a1b ldr r3, [r3, #32]
  38874. 8010b12: 613b str r3, [r7, #16]
  38875. /* Disable the Channel 4: Reset the CC4E Bit */
  38876. TIMx->CCER &= ~TIM_CCER_CC4E;
  38877. 8010b14: 687b ldr r3, [r7, #4]
  38878. 8010b16: 6a1b ldr r3, [r3, #32]
  38879. 8010b18: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38880. 8010b1c: 687b ldr r3, [r7, #4]
  38881. 8010b1e: 621a str r2, [r3, #32]
  38882. /* Get the TIMx CR2 register value */
  38883. tmpcr2 = TIMx->CR2;
  38884. 8010b20: 687b ldr r3, [r7, #4]
  38885. 8010b22: 685b ldr r3, [r3, #4]
  38886. 8010b24: 617b str r3, [r7, #20]
  38887. /* Get the TIMx CCMR2 register value */
  38888. tmpccmrx = TIMx->CCMR2;
  38889. 8010b26: 687b ldr r3, [r7, #4]
  38890. 8010b28: 69db ldr r3, [r3, #28]
  38891. 8010b2a: 60fb str r3, [r7, #12]
  38892. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38893. tmpccmrx &= ~TIM_CCMR2_OC4M;
  38894. 8010b2c: 68fa ldr r2, [r7, #12]
  38895. 8010b2e: 4b24 ldr r3, [pc, #144] @ (8010bc0 <TIM_OC4_SetConfig+0xbc>)
  38896. 8010b30: 4013 ands r3, r2
  38897. 8010b32: 60fb str r3, [r7, #12]
  38898. tmpccmrx &= ~TIM_CCMR2_CC4S;
  38899. 8010b34: 68fb ldr r3, [r7, #12]
  38900. 8010b36: f423 7340 bic.w r3, r3, #768 @ 0x300
  38901. 8010b3a: 60fb str r3, [r7, #12]
  38902. /* Select the Output Compare Mode */
  38903. tmpccmrx |= (OC_Config->OCMode << 8U);
  38904. 8010b3c: 683b ldr r3, [r7, #0]
  38905. 8010b3e: 681b ldr r3, [r3, #0]
  38906. 8010b40: 021b lsls r3, r3, #8
  38907. 8010b42: 68fa ldr r2, [r7, #12]
  38908. 8010b44: 4313 orrs r3, r2
  38909. 8010b46: 60fb str r3, [r7, #12]
  38910. /* Reset the Output Polarity level */
  38911. tmpccer &= ~TIM_CCER_CC4P;
  38912. 8010b48: 693b ldr r3, [r7, #16]
  38913. 8010b4a: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38914. 8010b4e: 613b str r3, [r7, #16]
  38915. /* Set the Output Compare Polarity */
  38916. tmpccer |= (OC_Config->OCPolarity << 12U);
  38917. 8010b50: 683b ldr r3, [r7, #0]
  38918. 8010b52: 689b ldr r3, [r3, #8]
  38919. 8010b54: 031b lsls r3, r3, #12
  38920. 8010b56: 693a ldr r2, [r7, #16]
  38921. 8010b58: 4313 orrs r3, r2
  38922. 8010b5a: 613b str r3, [r7, #16]
  38923. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38924. 8010b5c: 687b ldr r3, [r7, #4]
  38925. 8010b5e: 4a19 ldr r2, [pc, #100] @ (8010bc4 <TIM_OC4_SetConfig+0xc0>)
  38926. 8010b60: 4293 cmp r3, r2
  38927. 8010b62: d00f beq.n 8010b84 <TIM_OC4_SetConfig+0x80>
  38928. 8010b64: 687b ldr r3, [r7, #4]
  38929. 8010b66: 4a18 ldr r2, [pc, #96] @ (8010bc8 <TIM_OC4_SetConfig+0xc4>)
  38930. 8010b68: 4293 cmp r3, r2
  38931. 8010b6a: d00b beq.n 8010b84 <TIM_OC4_SetConfig+0x80>
  38932. 8010b6c: 687b ldr r3, [r7, #4]
  38933. 8010b6e: 4a17 ldr r2, [pc, #92] @ (8010bcc <TIM_OC4_SetConfig+0xc8>)
  38934. 8010b70: 4293 cmp r3, r2
  38935. 8010b72: d007 beq.n 8010b84 <TIM_OC4_SetConfig+0x80>
  38936. 8010b74: 687b ldr r3, [r7, #4]
  38937. 8010b76: 4a16 ldr r2, [pc, #88] @ (8010bd0 <TIM_OC4_SetConfig+0xcc>)
  38938. 8010b78: 4293 cmp r3, r2
  38939. 8010b7a: d003 beq.n 8010b84 <TIM_OC4_SetConfig+0x80>
  38940. 8010b7c: 687b ldr r3, [r7, #4]
  38941. 8010b7e: 4a15 ldr r2, [pc, #84] @ (8010bd4 <TIM_OC4_SetConfig+0xd0>)
  38942. 8010b80: 4293 cmp r3, r2
  38943. 8010b82: d109 bne.n 8010b98 <TIM_OC4_SetConfig+0x94>
  38944. {
  38945. /* Check parameters */
  38946. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38947. /* Reset the Output Compare IDLE State */
  38948. tmpcr2 &= ~TIM_CR2_OIS4;
  38949. 8010b84: 697b ldr r3, [r7, #20]
  38950. 8010b86: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  38951. 8010b8a: 617b str r3, [r7, #20]
  38952. /* Set the Output Idle state */
  38953. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  38954. 8010b8c: 683b ldr r3, [r7, #0]
  38955. 8010b8e: 695b ldr r3, [r3, #20]
  38956. 8010b90: 019b lsls r3, r3, #6
  38957. 8010b92: 697a ldr r2, [r7, #20]
  38958. 8010b94: 4313 orrs r3, r2
  38959. 8010b96: 617b str r3, [r7, #20]
  38960. }
  38961. /* Write to TIMx CR2 */
  38962. TIMx->CR2 = tmpcr2;
  38963. 8010b98: 687b ldr r3, [r7, #4]
  38964. 8010b9a: 697a ldr r2, [r7, #20]
  38965. 8010b9c: 605a str r2, [r3, #4]
  38966. /* Write to TIMx CCMR2 */
  38967. TIMx->CCMR2 = tmpccmrx;
  38968. 8010b9e: 687b ldr r3, [r7, #4]
  38969. 8010ba0: 68fa ldr r2, [r7, #12]
  38970. 8010ba2: 61da str r2, [r3, #28]
  38971. /* Set the Capture Compare Register value */
  38972. TIMx->CCR4 = OC_Config->Pulse;
  38973. 8010ba4: 683b ldr r3, [r7, #0]
  38974. 8010ba6: 685a ldr r2, [r3, #4]
  38975. 8010ba8: 687b ldr r3, [r7, #4]
  38976. 8010baa: 641a str r2, [r3, #64] @ 0x40
  38977. /* Write to TIMx CCER */
  38978. TIMx->CCER = tmpccer;
  38979. 8010bac: 687b ldr r3, [r7, #4]
  38980. 8010bae: 693a ldr r2, [r7, #16]
  38981. 8010bb0: 621a str r2, [r3, #32]
  38982. }
  38983. 8010bb2: bf00 nop
  38984. 8010bb4: 371c adds r7, #28
  38985. 8010bb6: 46bd mov sp, r7
  38986. 8010bb8: f85d 7b04 ldr.w r7, [sp], #4
  38987. 8010bbc: 4770 bx lr
  38988. 8010bbe: bf00 nop
  38989. 8010bc0: feff8fff .word 0xfeff8fff
  38990. 8010bc4: 40010000 .word 0x40010000
  38991. 8010bc8: 40010400 .word 0x40010400
  38992. 8010bcc: 40014000 .word 0x40014000
  38993. 8010bd0: 40014400 .word 0x40014400
  38994. 8010bd4: 40014800 .word 0x40014800
  38995. 08010bd8 <TIM_OC5_SetConfig>:
  38996. * @param OC_Config The output configuration structure
  38997. * @retval None
  38998. */
  38999. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  39000. const TIM_OC_InitTypeDef *OC_Config)
  39001. {
  39002. 8010bd8: b480 push {r7}
  39003. 8010bda: b087 sub sp, #28
  39004. 8010bdc: af00 add r7, sp, #0
  39005. 8010bde: 6078 str r0, [r7, #4]
  39006. 8010be0: 6039 str r1, [r7, #0]
  39007. uint32_t tmpccmrx;
  39008. uint32_t tmpccer;
  39009. uint32_t tmpcr2;
  39010. /* Get the TIMx CCER register value */
  39011. tmpccer = TIMx->CCER;
  39012. 8010be2: 687b ldr r3, [r7, #4]
  39013. 8010be4: 6a1b ldr r3, [r3, #32]
  39014. 8010be6: 613b str r3, [r7, #16]
  39015. /* Disable the output: Reset the CCxE Bit */
  39016. TIMx->CCER &= ~TIM_CCER_CC5E;
  39017. 8010be8: 687b ldr r3, [r7, #4]
  39018. 8010bea: 6a1b ldr r3, [r3, #32]
  39019. 8010bec: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  39020. 8010bf0: 687b ldr r3, [r7, #4]
  39021. 8010bf2: 621a str r2, [r3, #32]
  39022. /* Get the TIMx CR2 register value */
  39023. tmpcr2 = TIMx->CR2;
  39024. 8010bf4: 687b ldr r3, [r7, #4]
  39025. 8010bf6: 685b ldr r3, [r3, #4]
  39026. 8010bf8: 617b str r3, [r7, #20]
  39027. /* Get the TIMx CCMR1 register value */
  39028. tmpccmrx = TIMx->CCMR3;
  39029. 8010bfa: 687b ldr r3, [r7, #4]
  39030. 8010bfc: 6d5b ldr r3, [r3, #84] @ 0x54
  39031. 8010bfe: 60fb str r3, [r7, #12]
  39032. /* Reset the Output Compare Mode Bits */
  39033. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  39034. 8010c00: 68fa ldr r2, [r7, #12]
  39035. 8010c02: 4b21 ldr r3, [pc, #132] @ (8010c88 <TIM_OC5_SetConfig+0xb0>)
  39036. 8010c04: 4013 ands r3, r2
  39037. 8010c06: 60fb str r3, [r7, #12]
  39038. /* Select the Output Compare Mode */
  39039. tmpccmrx |= OC_Config->OCMode;
  39040. 8010c08: 683b ldr r3, [r7, #0]
  39041. 8010c0a: 681b ldr r3, [r3, #0]
  39042. 8010c0c: 68fa ldr r2, [r7, #12]
  39043. 8010c0e: 4313 orrs r3, r2
  39044. 8010c10: 60fb str r3, [r7, #12]
  39045. /* Reset the Output Polarity level */
  39046. tmpccer &= ~TIM_CCER_CC5P;
  39047. 8010c12: 693b ldr r3, [r7, #16]
  39048. 8010c14: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  39049. 8010c18: 613b str r3, [r7, #16]
  39050. /* Set the Output Compare Polarity */
  39051. tmpccer |= (OC_Config->OCPolarity << 16U);
  39052. 8010c1a: 683b ldr r3, [r7, #0]
  39053. 8010c1c: 689b ldr r3, [r3, #8]
  39054. 8010c1e: 041b lsls r3, r3, #16
  39055. 8010c20: 693a ldr r2, [r7, #16]
  39056. 8010c22: 4313 orrs r3, r2
  39057. 8010c24: 613b str r3, [r7, #16]
  39058. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39059. 8010c26: 687b ldr r3, [r7, #4]
  39060. 8010c28: 4a18 ldr r2, [pc, #96] @ (8010c8c <TIM_OC5_SetConfig+0xb4>)
  39061. 8010c2a: 4293 cmp r3, r2
  39062. 8010c2c: d00f beq.n 8010c4e <TIM_OC5_SetConfig+0x76>
  39063. 8010c2e: 687b ldr r3, [r7, #4]
  39064. 8010c30: 4a17 ldr r2, [pc, #92] @ (8010c90 <TIM_OC5_SetConfig+0xb8>)
  39065. 8010c32: 4293 cmp r3, r2
  39066. 8010c34: d00b beq.n 8010c4e <TIM_OC5_SetConfig+0x76>
  39067. 8010c36: 687b ldr r3, [r7, #4]
  39068. 8010c38: 4a16 ldr r2, [pc, #88] @ (8010c94 <TIM_OC5_SetConfig+0xbc>)
  39069. 8010c3a: 4293 cmp r3, r2
  39070. 8010c3c: d007 beq.n 8010c4e <TIM_OC5_SetConfig+0x76>
  39071. 8010c3e: 687b ldr r3, [r7, #4]
  39072. 8010c40: 4a15 ldr r2, [pc, #84] @ (8010c98 <TIM_OC5_SetConfig+0xc0>)
  39073. 8010c42: 4293 cmp r3, r2
  39074. 8010c44: d003 beq.n 8010c4e <TIM_OC5_SetConfig+0x76>
  39075. 8010c46: 687b ldr r3, [r7, #4]
  39076. 8010c48: 4a14 ldr r2, [pc, #80] @ (8010c9c <TIM_OC5_SetConfig+0xc4>)
  39077. 8010c4a: 4293 cmp r3, r2
  39078. 8010c4c: d109 bne.n 8010c62 <TIM_OC5_SetConfig+0x8a>
  39079. {
  39080. /* Reset the Output Compare IDLE State */
  39081. tmpcr2 &= ~TIM_CR2_OIS5;
  39082. 8010c4e: 697b ldr r3, [r7, #20]
  39083. 8010c50: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  39084. 8010c54: 617b str r3, [r7, #20]
  39085. /* Set the Output Idle state */
  39086. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  39087. 8010c56: 683b ldr r3, [r7, #0]
  39088. 8010c58: 695b ldr r3, [r3, #20]
  39089. 8010c5a: 021b lsls r3, r3, #8
  39090. 8010c5c: 697a ldr r2, [r7, #20]
  39091. 8010c5e: 4313 orrs r3, r2
  39092. 8010c60: 617b str r3, [r7, #20]
  39093. }
  39094. /* Write to TIMx CR2 */
  39095. TIMx->CR2 = tmpcr2;
  39096. 8010c62: 687b ldr r3, [r7, #4]
  39097. 8010c64: 697a ldr r2, [r7, #20]
  39098. 8010c66: 605a str r2, [r3, #4]
  39099. /* Write to TIMx CCMR3 */
  39100. TIMx->CCMR3 = tmpccmrx;
  39101. 8010c68: 687b ldr r3, [r7, #4]
  39102. 8010c6a: 68fa ldr r2, [r7, #12]
  39103. 8010c6c: 655a str r2, [r3, #84] @ 0x54
  39104. /* Set the Capture Compare Register value */
  39105. TIMx->CCR5 = OC_Config->Pulse;
  39106. 8010c6e: 683b ldr r3, [r7, #0]
  39107. 8010c70: 685a ldr r2, [r3, #4]
  39108. 8010c72: 687b ldr r3, [r7, #4]
  39109. 8010c74: 659a str r2, [r3, #88] @ 0x58
  39110. /* Write to TIMx CCER */
  39111. TIMx->CCER = tmpccer;
  39112. 8010c76: 687b ldr r3, [r7, #4]
  39113. 8010c78: 693a ldr r2, [r7, #16]
  39114. 8010c7a: 621a str r2, [r3, #32]
  39115. }
  39116. 8010c7c: bf00 nop
  39117. 8010c7e: 371c adds r7, #28
  39118. 8010c80: 46bd mov sp, r7
  39119. 8010c82: f85d 7b04 ldr.w r7, [sp], #4
  39120. 8010c86: 4770 bx lr
  39121. 8010c88: fffeff8f .word 0xfffeff8f
  39122. 8010c8c: 40010000 .word 0x40010000
  39123. 8010c90: 40010400 .word 0x40010400
  39124. 8010c94: 40014000 .word 0x40014000
  39125. 8010c98: 40014400 .word 0x40014400
  39126. 8010c9c: 40014800 .word 0x40014800
  39127. 08010ca0 <TIM_OC6_SetConfig>:
  39128. * @param OC_Config The output configuration structure
  39129. * @retval None
  39130. */
  39131. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  39132. const TIM_OC_InitTypeDef *OC_Config)
  39133. {
  39134. 8010ca0: b480 push {r7}
  39135. 8010ca2: b087 sub sp, #28
  39136. 8010ca4: af00 add r7, sp, #0
  39137. 8010ca6: 6078 str r0, [r7, #4]
  39138. 8010ca8: 6039 str r1, [r7, #0]
  39139. uint32_t tmpccmrx;
  39140. uint32_t tmpccer;
  39141. uint32_t tmpcr2;
  39142. /* Get the TIMx CCER register value */
  39143. tmpccer = TIMx->CCER;
  39144. 8010caa: 687b ldr r3, [r7, #4]
  39145. 8010cac: 6a1b ldr r3, [r3, #32]
  39146. 8010cae: 613b str r3, [r7, #16]
  39147. /* Disable the output: Reset the CCxE Bit */
  39148. TIMx->CCER &= ~TIM_CCER_CC6E;
  39149. 8010cb0: 687b ldr r3, [r7, #4]
  39150. 8010cb2: 6a1b ldr r3, [r3, #32]
  39151. 8010cb4: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  39152. 8010cb8: 687b ldr r3, [r7, #4]
  39153. 8010cba: 621a str r2, [r3, #32]
  39154. /* Get the TIMx CR2 register value */
  39155. tmpcr2 = TIMx->CR2;
  39156. 8010cbc: 687b ldr r3, [r7, #4]
  39157. 8010cbe: 685b ldr r3, [r3, #4]
  39158. 8010cc0: 617b str r3, [r7, #20]
  39159. /* Get the TIMx CCMR1 register value */
  39160. tmpccmrx = TIMx->CCMR3;
  39161. 8010cc2: 687b ldr r3, [r7, #4]
  39162. 8010cc4: 6d5b ldr r3, [r3, #84] @ 0x54
  39163. 8010cc6: 60fb str r3, [r7, #12]
  39164. /* Reset the Output Compare Mode Bits */
  39165. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  39166. 8010cc8: 68fa ldr r2, [r7, #12]
  39167. 8010cca: 4b22 ldr r3, [pc, #136] @ (8010d54 <TIM_OC6_SetConfig+0xb4>)
  39168. 8010ccc: 4013 ands r3, r2
  39169. 8010cce: 60fb str r3, [r7, #12]
  39170. /* Select the Output Compare Mode */
  39171. tmpccmrx |= (OC_Config->OCMode << 8U);
  39172. 8010cd0: 683b ldr r3, [r7, #0]
  39173. 8010cd2: 681b ldr r3, [r3, #0]
  39174. 8010cd4: 021b lsls r3, r3, #8
  39175. 8010cd6: 68fa ldr r2, [r7, #12]
  39176. 8010cd8: 4313 orrs r3, r2
  39177. 8010cda: 60fb str r3, [r7, #12]
  39178. /* Reset the Output Polarity level */
  39179. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  39180. 8010cdc: 693b ldr r3, [r7, #16]
  39181. 8010cde: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  39182. 8010ce2: 613b str r3, [r7, #16]
  39183. /* Set the Output Compare Polarity */
  39184. tmpccer |= (OC_Config->OCPolarity << 20U);
  39185. 8010ce4: 683b ldr r3, [r7, #0]
  39186. 8010ce6: 689b ldr r3, [r3, #8]
  39187. 8010ce8: 051b lsls r3, r3, #20
  39188. 8010cea: 693a ldr r2, [r7, #16]
  39189. 8010cec: 4313 orrs r3, r2
  39190. 8010cee: 613b str r3, [r7, #16]
  39191. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39192. 8010cf0: 687b ldr r3, [r7, #4]
  39193. 8010cf2: 4a19 ldr r2, [pc, #100] @ (8010d58 <TIM_OC6_SetConfig+0xb8>)
  39194. 8010cf4: 4293 cmp r3, r2
  39195. 8010cf6: d00f beq.n 8010d18 <TIM_OC6_SetConfig+0x78>
  39196. 8010cf8: 687b ldr r3, [r7, #4]
  39197. 8010cfa: 4a18 ldr r2, [pc, #96] @ (8010d5c <TIM_OC6_SetConfig+0xbc>)
  39198. 8010cfc: 4293 cmp r3, r2
  39199. 8010cfe: d00b beq.n 8010d18 <TIM_OC6_SetConfig+0x78>
  39200. 8010d00: 687b ldr r3, [r7, #4]
  39201. 8010d02: 4a17 ldr r2, [pc, #92] @ (8010d60 <TIM_OC6_SetConfig+0xc0>)
  39202. 8010d04: 4293 cmp r3, r2
  39203. 8010d06: d007 beq.n 8010d18 <TIM_OC6_SetConfig+0x78>
  39204. 8010d08: 687b ldr r3, [r7, #4]
  39205. 8010d0a: 4a16 ldr r2, [pc, #88] @ (8010d64 <TIM_OC6_SetConfig+0xc4>)
  39206. 8010d0c: 4293 cmp r3, r2
  39207. 8010d0e: d003 beq.n 8010d18 <TIM_OC6_SetConfig+0x78>
  39208. 8010d10: 687b ldr r3, [r7, #4]
  39209. 8010d12: 4a15 ldr r2, [pc, #84] @ (8010d68 <TIM_OC6_SetConfig+0xc8>)
  39210. 8010d14: 4293 cmp r3, r2
  39211. 8010d16: d109 bne.n 8010d2c <TIM_OC6_SetConfig+0x8c>
  39212. {
  39213. /* Reset the Output Compare IDLE State */
  39214. tmpcr2 &= ~TIM_CR2_OIS6;
  39215. 8010d18: 697b ldr r3, [r7, #20]
  39216. 8010d1a: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  39217. 8010d1e: 617b str r3, [r7, #20]
  39218. /* Set the Output Idle state */
  39219. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  39220. 8010d20: 683b ldr r3, [r7, #0]
  39221. 8010d22: 695b ldr r3, [r3, #20]
  39222. 8010d24: 029b lsls r3, r3, #10
  39223. 8010d26: 697a ldr r2, [r7, #20]
  39224. 8010d28: 4313 orrs r3, r2
  39225. 8010d2a: 617b str r3, [r7, #20]
  39226. }
  39227. /* Write to TIMx CR2 */
  39228. TIMx->CR2 = tmpcr2;
  39229. 8010d2c: 687b ldr r3, [r7, #4]
  39230. 8010d2e: 697a ldr r2, [r7, #20]
  39231. 8010d30: 605a str r2, [r3, #4]
  39232. /* Write to TIMx CCMR3 */
  39233. TIMx->CCMR3 = tmpccmrx;
  39234. 8010d32: 687b ldr r3, [r7, #4]
  39235. 8010d34: 68fa ldr r2, [r7, #12]
  39236. 8010d36: 655a str r2, [r3, #84] @ 0x54
  39237. /* Set the Capture Compare Register value */
  39238. TIMx->CCR6 = OC_Config->Pulse;
  39239. 8010d38: 683b ldr r3, [r7, #0]
  39240. 8010d3a: 685a ldr r2, [r3, #4]
  39241. 8010d3c: 687b ldr r3, [r7, #4]
  39242. 8010d3e: 65da str r2, [r3, #92] @ 0x5c
  39243. /* Write to TIMx CCER */
  39244. TIMx->CCER = tmpccer;
  39245. 8010d40: 687b ldr r3, [r7, #4]
  39246. 8010d42: 693a ldr r2, [r7, #16]
  39247. 8010d44: 621a str r2, [r3, #32]
  39248. }
  39249. 8010d46: bf00 nop
  39250. 8010d48: 371c adds r7, #28
  39251. 8010d4a: 46bd mov sp, r7
  39252. 8010d4c: f85d 7b04 ldr.w r7, [sp], #4
  39253. 8010d50: 4770 bx lr
  39254. 8010d52: bf00 nop
  39255. 8010d54: feff8fff .word 0xfeff8fff
  39256. 8010d58: 40010000 .word 0x40010000
  39257. 8010d5c: 40010400 .word 0x40010400
  39258. 8010d60: 40014000 .word 0x40014000
  39259. 8010d64: 40014400 .word 0x40014400
  39260. 8010d68: 40014800 .word 0x40014800
  39261. 08010d6c <TIM_TI1_SetConfig>:
  39262. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  39263. * protected against un-initialized filter and polarity values.
  39264. */
  39265. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39266. uint32_t TIM_ICFilter)
  39267. {
  39268. 8010d6c: b480 push {r7}
  39269. 8010d6e: b087 sub sp, #28
  39270. 8010d70: af00 add r7, sp, #0
  39271. 8010d72: 60f8 str r0, [r7, #12]
  39272. 8010d74: 60b9 str r1, [r7, #8]
  39273. 8010d76: 607a str r2, [r7, #4]
  39274. 8010d78: 603b str r3, [r7, #0]
  39275. uint32_t tmpccmr1;
  39276. uint32_t tmpccer;
  39277. /* Disable the Channel 1: Reset the CC1E Bit */
  39278. tmpccer = TIMx->CCER;
  39279. 8010d7a: 68fb ldr r3, [r7, #12]
  39280. 8010d7c: 6a1b ldr r3, [r3, #32]
  39281. 8010d7e: 613b str r3, [r7, #16]
  39282. TIMx->CCER &= ~TIM_CCER_CC1E;
  39283. 8010d80: 68fb ldr r3, [r7, #12]
  39284. 8010d82: 6a1b ldr r3, [r3, #32]
  39285. 8010d84: f023 0201 bic.w r2, r3, #1
  39286. 8010d88: 68fb ldr r3, [r7, #12]
  39287. 8010d8a: 621a str r2, [r3, #32]
  39288. tmpccmr1 = TIMx->CCMR1;
  39289. 8010d8c: 68fb ldr r3, [r7, #12]
  39290. 8010d8e: 699b ldr r3, [r3, #24]
  39291. 8010d90: 617b str r3, [r7, #20]
  39292. /* Select the Input */
  39293. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  39294. 8010d92: 68fb ldr r3, [r7, #12]
  39295. 8010d94: 4a28 ldr r2, [pc, #160] @ (8010e38 <TIM_TI1_SetConfig+0xcc>)
  39296. 8010d96: 4293 cmp r3, r2
  39297. 8010d98: d01b beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39298. 8010d9a: 68fb ldr r3, [r7, #12]
  39299. 8010d9c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  39300. 8010da0: d017 beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39301. 8010da2: 68fb ldr r3, [r7, #12]
  39302. 8010da4: 4a25 ldr r2, [pc, #148] @ (8010e3c <TIM_TI1_SetConfig+0xd0>)
  39303. 8010da6: 4293 cmp r3, r2
  39304. 8010da8: d013 beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39305. 8010daa: 68fb ldr r3, [r7, #12]
  39306. 8010dac: 4a24 ldr r2, [pc, #144] @ (8010e40 <TIM_TI1_SetConfig+0xd4>)
  39307. 8010dae: 4293 cmp r3, r2
  39308. 8010db0: d00f beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39309. 8010db2: 68fb ldr r3, [r7, #12]
  39310. 8010db4: 4a23 ldr r2, [pc, #140] @ (8010e44 <TIM_TI1_SetConfig+0xd8>)
  39311. 8010db6: 4293 cmp r3, r2
  39312. 8010db8: d00b beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39313. 8010dba: 68fb ldr r3, [r7, #12]
  39314. 8010dbc: 4a22 ldr r2, [pc, #136] @ (8010e48 <TIM_TI1_SetConfig+0xdc>)
  39315. 8010dbe: 4293 cmp r3, r2
  39316. 8010dc0: d007 beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39317. 8010dc2: 68fb ldr r3, [r7, #12]
  39318. 8010dc4: 4a21 ldr r2, [pc, #132] @ (8010e4c <TIM_TI1_SetConfig+0xe0>)
  39319. 8010dc6: 4293 cmp r3, r2
  39320. 8010dc8: d003 beq.n 8010dd2 <TIM_TI1_SetConfig+0x66>
  39321. 8010dca: 68fb ldr r3, [r7, #12]
  39322. 8010dcc: 4a20 ldr r2, [pc, #128] @ (8010e50 <TIM_TI1_SetConfig+0xe4>)
  39323. 8010dce: 4293 cmp r3, r2
  39324. 8010dd0: d101 bne.n 8010dd6 <TIM_TI1_SetConfig+0x6a>
  39325. 8010dd2: 2301 movs r3, #1
  39326. 8010dd4: e000 b.n 8010dd8 <TIM_TI1_SetConfig+0x6c>
  39327. 8010dd6: 2300 movs r3, #0
  39328. 8010dd8: 2b00 cmp r3, #0
  39329. 8010dda: d008 beq.n 8010dee <TIM_TI1_SetConfig+0x82>
  39330. {
  39331. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  39332. 8010ddc: 697b ldr r3, [r7, #20]
  39333. 8010dde: f023 0303 bic.w r3, r3, #3
  39334. 8010de2: 617b str r3, [r7, #20]
  39335. tmpccmr1 |= TIM_ICSelection;
  39336. 8010de4: 697a ldr r2, [r7, #20]
  39337. 8010de6: 687b ldr r3, [r7, #4]
  39338. 8010de8: 4313 orrs r3, r2
  39339. 8010dea: 617b str r3, [r7, #20]
  39340. 8010dec: e003 b.n 8010df6 <TIM_TI1_SetConfig+0x8a>
  39341. }
  39342. else
  39343. {
  39344. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  39345. 8010dee: 697b ldr r3, [r7, #20]
  39346. 8010df0: f043 0301 orr.w r3, r3, #1
  39347. 8010df4: 617b str r3, [r7, #20]
  39348. }
  39349. /* Set the filter */
  39350. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39351. 8010df6: 697b ldr r3, [r7, #20]
  39352. 8010df8: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39353. 8010dfc: 617b str r3, [r7, #20]
  39354. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  39355. 8010dfe: 683b ldr r3, [r7, #0]
  39356. 8010e00: 011b lsls r3, r3, #4
  39357. 8010e02: b2db uxtb r3, r3
  39358. 8010e04: 697a ldr r2, [r7, #20]
  39359. 8010e06: 4313 orrs r3, r2
  39360. 8010e08: 617b str r3, [r7, #20]
  39361. /* Select the Polarity and set the CC1E Bit */
  39362. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39363. 8010e0a: 693b ldr r3, [r7, #16]
  39364. 8010e0c: f023 030a bic.w r3, r3, #10
  39365. 8010e10: 613b str r3, [r7, #16]
  39366. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  39367. 8010e12: 68bb ldr r3, [r7, #8]
  39368. 8010e14: f003 030a and.w r3, r3, #10
  39369. 8010e18: 693a ldr r2, [r7, #16]
  39370. 8010e1a: 4313 orrs r3, r2
  39371. 8010e1c: 613b str r3, [r7, #16]
  39372. /* Write to TIMx CCMR1 and CCER registers */
  39373. TIMx->CCMR1 = tmpccmr1;
  39374. 8010e1e: 68fb ldr r3, [r7, #12]
  39375. 8010e20: 697a ldr r2, [r7, #20]
  39376. 8010e22: 619a str r2, [r3, #24]
  39377. TIMx->CCER = tmpccer;
  39378. 8010e24: 68fb ldr r3, [r7, #12]
  39379. 8010e26: 693a ldr r2, [r7, #16]
  39380. 8010e28: 621a str r2, [r3, #32]
  39381. }
  39382. 8010e2a: bf00 nop
  39383. 8010e2c: 371c adds r7, #28
  39384. 8010e2e: 46bd mov sp, r7
  39385. 8010e30: f85d 7b04 ldr.w r7, [sp], #4
  39386. 8010e34: 4770 bx lr
  39387. 8010e36: bf00 nop
  39388. 8010e38: 40010000 .word 0x40010000
  39389. 8010e3c: 40000400 .word 0x40000400
  39390. 8010e40: 40000800 .word 0x40000800
  39391. 8010e44: 40000c00 .word 0x40000c00
  39392. 8010e48: 40010400 .word 0x40010400
  39393. 8010e4c: 40001800 .word 0x40001800
  39394. 8010e50: 40014000 .word 0x40014000
  39395. 08010e54 <TIM_TI1_ConfigInputStage>:
  39396. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39397. * This parameter must be a value between 0x00 and 0x0F.
  39398. * @retval None
  39399. */
  39400. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39401. {
  39402. 8010e54: b480 push {r7}
  39403. 8010e56: b087 sub sp, #28
  39404. 8010e58: af00 add r7, sp, #0
  39405. 8010e5a: 60f8 str r0, [r7, #12]
  39406. 8010e5c: 60b9 str r1, [r7, #8]
  39407. 8010e5e: 607a str r2, [r7, #4]
  39408. uint32_t tmpccmr1;
  39409. uint32_t tmpccer;
  39410. /* Disable the Channel 1: Reset the CC1E Bit */
  39411. tmpccer = TIMx->CCER;
  39412. 8010e60: 68fb ldr r3, [r7, #12]
  39413. 8010e62: 6a1b ldr r3, [r3, #32]
  39414. 8010e64: 617b str r3, [r7, #20]
  39415. TIMx->CCER &= ~TIM_CCER_CC1E;
  39416. 8010e66: 68fb ldr r3, [r7, #12]
  39417. 8010e68: 6a1b ldr r3, [r3, #32]
  39418. 8010e6a: f023 0201 bic.w r2, r3, #1
  39419. 8010e6e: 68fb ldr r3, [r7, #12]
  39420. 8010e70: 621a str r2, [r3, #32]
  39421. tmpccmr1 = TIMx->CCMR1;
  39422. 8010e72: 68fb ldr r3, [r7, #12]
  39423. 8010e74: 699b ldr r3, [r3, #24]
  39424. 8010e76: 613b str r3, [r7, #16]
  39425. /* Set the filter */
  39426. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39427. 8010e78: 693b ldr r3, [r7, #16]
  39428. 8010e7a: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39429. 8010e7e: 613b str r3, [r7, #16]
  39430. tmpccmr1 |= (TIM_ICFilter << 4U);
  39431. 8010e80: 687b ldr r3, [r7, #4]
  39432. 8010e82: 011b lsls r3, r3, #4
  39433. 8010e84: 693a ldr r2, [r7, #16]
  39434. 8010e86: 4313 orrs r3, r2
  39435. 8010e88: 613b str r3, [r7, #16]
  39436. /* Select the Polarity and set the CC1E Bit */
  39437. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39438. 8010e8a: 697b ldr r3, [r7, #20]
  39439. 8010e8c: f023 030a bic.w r3, r3, #10
  39440. 8010e90: 617b str r3, [r7, #20]
  39441. tmpccer |= TIM_ICPolarity;
  39442. 8010e92: 697a ldr r2, [r7, #20]
  39443. 8010e94: 68bb ldr r3, [r7, #8]
  39444. 8010e96: 4313 orrs r3, r2
  39445. 8010e98: 617b str r3, [r7, #20]
  39446. /* Write to TIMx CCMR1 and CCER registers */
  39447. TIMx->CCMR1 = tmpccmr1;
  39448. 8010e9a: 68fb ldr r3, [r7, #12]
  39449. 8010e9c: 693a ldr r2, [r7, #16]
  39450. 8010e9e: 619a str r2, [r3, #24]
  39451. TIMx->CCER = tmpccer;
  39452. 8010ea0: 68fb ldr r3, [r7, #12]
  39453. 8010ea2: 697a ldr r2, [r7, #20]
  39454. 8010ea4: 621a str r2, [r3, #32]
  39455. }
  39456. 8010ea6: bf00 nop
  39457. 8010ea8: 371c adds r7, #28
  39458. 8010eaa: 46bd mov sp, r7
  39459. 8010eac: f85d 7b04 ldr.w r7, [sp], #4
  39460. 8010eb0: 4770 bx lr
  39461. 08010eb2 <TIM_TI2_SetConfig>:
  39462. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  39463. * protected against un-initialized filter and polarity values.
  39464. */
  39465. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39466. uint32_t TIM_ICFilter)
  39467. {
  39468. 8010eb2: b480 push {r7}
  39469. 8010eb4: b087 sub sp, #28
  39470. 8010eb6: af00 add r7, sp, #0
  39471. 8010eb8: 60f8 str r0, [r7, #12]
  39472. 8010eba: 60b9 str r1, [r7, #8]
  39473. 8010ebc: 607a str r2, [r7, #4]
  39474. 8010ebe: 603b str r3, [r7, #0]
  39475. uint32_t tmpccmr1;
  39476. uint32_t tmpccer;
  39477. /* Disable the Channel 2: Reset the CC2E Bit */
  39478. tmpccer = TIMx->CCER;
  39479. 8010ec0: 68fb ldr r3, [r7, #12]
  39480. 8010ec2: 6a1b ldr r3, [r3, #32]
  39481. 8010ec4: 617b str r3, [r7, #20]
  39482. TIMx->CCER &= ~TIM_CCER_CC2E;
  39483. 8010ec6: 68fb ldr r3, [r7, #12]
  39484. 8010ec8: 6a1b ldr r3, [r3, #32]
  39485. 8010eca: f023 0210 bic.w r2, r3, #16
  39486. 8010ece: 68fb ldr r3, [r7, #12]
  39487. 8010ed0: 621a str r2, [r3, #32]
  39488. tmpccmr1 = TIMx->CCMR1;
  39489. 8010ed2: 68fb ldr r3, [r7, #12]
  39490. 8010ed4: 699b ldr r3, [r3, #24]
  39491. 8010ed6: 613b str r3, [r7, #16]
  39492. /* Select the Input */
  39493. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  39494. 8010ed8: 693b ldr r3, [r7, #16]
  39495. 8010eda: f423 7340 bic.w r3, r3, #768 @ 0x300
  39496. 8010ede: 613b str r3, [r7, #16]
  39497. tmpccmr1 |= (TIM_ICSelection << 8U);
  39498. 8010ee0: 687b ldr r3, [r7, #4]
  39499. 8010ee2: 021b lsls r3, r3, #8
  39500. 8010ee4: 693a ldr r2, [r7, #16]
  39501. 8010ee6: 4313 orrs r3, r2
  39502. 8010ee8: 613b str r3, [r7, #16]
  39503. /* Set the filter */
  39504. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39505. 8010eea: 693b ldr r3, [r7, #16]
  39506. 8010eec: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39507. 8010ef0: 613b str r3, [r7, #16]
  39508. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  39509. 8010ef2: 683b ldr r3, [r7, #0]
  39510. 8010ef4: 031b lsls r3, r3, #12
  39511. 8010ef6: b29b uxth r3, r3
  39512. 8010ef8: 693a ldr r2, [r7, #16]
  39513. 8010efa: 4313 orrs r3, r2
  39514. 8010efc: 613b str r3, [r7, #16]
  39515. /* Select the Polarity and set the CC2E Bit */
  39516. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39517. 8010efe: 697b ldr r3, [r7, #20]
  39518. 8010f00: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39519. 8010f04: 617b str r3, [r7, #20]
  39520. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  39521. 8010f06: 68bb ldr r3, [r7, #8]
  39522. 8010f08: 011b lsls r3, r3, #4
  39523. 8010f0a: f003 03a0 and.w r3, r3, #160 @ 0xa0
  39524. 8010f0e: 697a ldr r2, [r7, #20]
  39525. 8010f10: 4313 orrs r3, r2
  39526. 8010f12: 617b str r3, [r7, #20]
  39527. /* Write to TIMx CCMR1 and CCER registers */
  39528. TIMx->CCMR1 = tmpccmr1 ;
  39529. 8010f14: 68fb ldr r3, [r7, #12]
  39530. 8010f16: 693a ldr r2, [r7, #16]
  39531. 8010f18: 619a str r2, [r3, #24]
  39532. TIMx->CCER = tmpccer;
  39533. 8010f1a: 68fb ldr r3, [r7, #12]
  39534. 8010f1c: 697a ldr r2, [r7, #20]
  39535. 8010f1e: 621a str r2, [r3, #32]
  39536. }
  39537. 8010f20: bf00 nop
  39538. 8010f22: 371c adds r7, #28
  39539. 8010f24: 46bd mov sp, r7
  39540. 8010f26: f85d 7b04 ldr.w r7, [sp], #4
  39541. 8010f2a: 4770 bx lr
  39542. 08010f2c <TIM_TI2_ConfigInputStage>:
  39543. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39544. * This parameter must be a value between 0x00 and 0x0F.
  39545. * @retval None
  39546. */
  39547. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39548. {
  39549. 8010f2c: b480 push {r7}
  39550. 8010f2e: b087 sub sp, #28
  39551. 8010f30: af00 add r7, sp, #0
  39552. 8010f32: 60f8 str r0, [r7, #12]
  39553. 8010f34: 60b9 str r1, [r7, #8]
  39554. 8010f36: 607a str r2, [r7, #4]
  39555. uint32_t tmpccmr1;
  39556. uint32_t tmpccer;
  39557. /* Disable the Channel 2: Reset the CC2E Bit */
  39558. tmpccer = TIMx->CCER;
  39559. 8010f38: 68fb ldr r3, [r7, #12]
  39560. 8010f3a: 6a1b ldr r3, [r3, #32]
  39561. 8010f3c: 617b str r3, [r7, #20]
  39562. TIMx->CCER &= ~TIM_CCER_CC2E;
  39563. 8010f3e: 68fb ldr r3, [r7, #12]
  39564. 8010f40: 6a1b ldr r3, [r3, #32]
  39565. 8010f42: f023 0210 bic.w r2, r3, #16
  39566. 8010f46: 68fb ldr r3, [r7, #12]
  39567. 8010f48: 621a str r2, [r3, #32]
  39568. tmpccmr1 = TIMx->CCMR1;
  39569. 8010f4a: 68fb ldr r3, [r7, #12]
  39570. 8010f4c: 699b ldr r3, [r3, #24]
  39571. 8010f4e: 613b str r3, [r7, #16]
  39572. /* Set the filter */
  39573. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39574. 8010f50: 693b ldr r3, [r7, #16]
  39575. 8010f52: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39576. 8010f56: 613b str r3, [r7, #16]
  39577. tmpccmr1 |= (TIM_ICFilter << 12U);
  39578. 8010f58: 687b ldr r3, [r7, #4]
  39579. 8010f5a: 031b lsls r3, r3, #12
  39580. 8010f5c: 693a ldr r2, [r7, #16]
  39581. 8010f5e: 4313 orrs r3, r2
  39582. 8010f60: 613b str r3, [r7, #16]
  39583. /* Select the Polarity and set the CC2E Bit */
  39584. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39585. 8010f62: 697b ldr r3, [r7, #20]
  39586. 8010f64: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39587. 8010f68: 617b str r3, [r7, #20]
  39588. tmpccer |= (TIM_ICPolarity << 4U);
  39589. 8010f6a: 68bb ldr r3, [r7, #8]
  39590. 8010f6c: 011b lsls r3, r3, #4
  39591. 8010f6e: 697a ldr r2, [r7, #20]
  39592. 8010f70: 4313 orrs r3, r2
  39593. 8010f72: 617b str r3, [r7, #20]
  39594. /* Write to TIMx CCMR1 and CCER registers */
  39595. TIMx->CCMR1 = tmpccmr1 ;
  39596. 8010f74: 68fb ldr r3, [r7, #12]
  39597. 8010f76: 693a ldr r2, [r7, #16]
  39598. 8010f78: 619a str r2, [r3, #24]
  39599. TIMx->CCER = tmpccer;
  39600. 8010f7a: 68fb ldr r3, [r7, #12]
  39601. 8010f7c: 697a ldr r2, [r7, #20]
  39602. 8010f7e: 621a str r2, [r3, #32]
  39603. }
  39604. 8010f80: bf00 nop
  39605. 8010f82: 371c adds r7, #28
  39606. 8010f84: 46bd mov sp, r7
  39607. 8010f86: f85d 7b04 ldr.w r7, [sp], #4
  39608. 8010f8a: 4770 bx lr
  39609. 08010f8c <TIM_TI3_SetConfig>:
  39610. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  39611. * protected against un-initialized filter and polarity values.
  39612. */
  39613. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39614. uint32_t TIM_ICFilter)
  39615. {
  39616. 8010f8c: b480 push {r7}
  39617. 8010f8e: b087 sub sp, #28
  39618. 8010f90: af00 add r7, sp, #0
  39619. 8010f92: 60f8 str r0, [r7, #12]
  39620. 8010f94: 60b9 str r1, [r7, #8]
  39621. 8010f96: 607a str r2, [r7, #4]
  39622. 8010f98: 603b str r3, [r7, #0]
  39623. uint32_t tmpccmr2;
  39624. uint32_t tmpccer;
  39625. /* Disable the Channel 3: Reset the CC3E Bit */
  39626. tmpccer = TIMx->CCER;
  39627. 8010f9a: 68fb ldr r3, [r7, #12]
  39628. 8010f9c: 6a1b ldr r3, [r3, #32]
  39629. 8010f9e: 617b str r3, [r7, #20]
  39630. TIMx->CCER &= ~TIM_CCER_CC3E;
  39631. 8010fa0: 68fb ldr r3, [r7, #12]
  39632. 8010fa2: 6a1b ldr r3, [r3, #32]
  39633. 8010fa4: f423 7280 bic.w r2, r3, #256 @ 0x100
  39634. 8010fa8: 68fb ldr r3, [r7, #12]
  39635. 8010faa: 621a str r2, [r3, #32]
  39636. tmpccmr2 = TIMx->CCMR2;
  39637. 8010fac: 68fb ldr r3, [r7, #12]
  39638. 8010fae: 69db ldr r3, [r3, #28]
  39639. 8010fb0: 613b str r3, [r7, #16]
  39640. /* Select the Input */
  39641. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  39642. 8010fb2: 693b ldr r3, [r7, #16]
  39643. 8010fb4: f023 0303 bic.w r3, r3, #3
  39644. 8010fb8: 613b str r3, [r7, #16]
  39645. tmpccmr2 |= TIM_ICSelection;
  39646. 8010fba: 693a ldr r2, [r7, #16]
  39647. 8010fbc: 687b ldr r3, [r7, #4]
  39648. 8010fbe: 4313 orrs r3, r2
  39649. 8010fc0: 613b str r3, [r7, #16]
  39650. /* Set the filter */
  39651. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  39652. 8010fc2: 693b ldr r3, [r7, #16]
  39653. 8010fc4: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39654. 8010fc8: 613b str r3, [r7, #16]
  39655. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  39656. 8010fca: 683b ldr r3, [r7, #0]
  39657. 8010fcc: 011b lsls r3, r3, #4
  39658. 8010fce: b2db uxtb r3, r3
  39659. 8010fd0: 693a ldr r2, [r7, #16]
  39660. 8010fd2: 4313 orrs r3, r2
  39661. 8010fd4: 613b str r3, [r7, #16]
  39662. /* Select the Polarity and set the CC3E Bit */
  39663. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  39664. 8010fd6: 697b ldr r3, [r7, #20]
  39665. 8010fd8: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  39666. 8010fdc: 617b str r3, [r7, #20]
  39667. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  39668. 8010fde: 68bb ldr r3, [r7, #8]
  39669. 8010fe0: 021b lsls r3, r3, #8
  39670. 8010fe2: f403 6320 and.w r3, r3, #2560 @ 0xa00
  39671. 8010fe6: 697a ldr r2, [r7, #20]
  39672. 8010fe8: 4313 orrs r3, r2
  39673. 8010fea: 617b str r3, [r7, #20]
  39674. /* Write to TIMx CCMR2 and CCER registers */
  39675. TIMx->CCMR2 = tmpccmr2;
  39676. 8010fec: 68fb ldr r3, [r7, #12]
  39677. 8010fee: 693a ldr r2, [r7, #16]
  39678. 8010ff0: 61da str r2, [r3, #28]
  39679. TIMx->CCER = tmpccer;
  39680. 8010ff2: 68fb ldr r3, [r7, #12]
  39681. 8010ff4: 697a ldr r2, [r7, #20]
  39682. 8010ff6: 621a str r2, [r3, #32]
  39683. }
  39684. 8010ff8: bf00 nop
  39685. 8010ffa: 371c adds r7, #28
  39686. 8010ffc: 46bd mov sp, r7
  39687. 8010ffe: f85d 7b04 ldr.w r7, [sp], #4
  39688. 8011002: 4770 bx lr
  39689. 08011004 <TIM_TI4_SetConfig>:
  39690. * protected against un-initialized filter and polarity values.
  39691. * @retval None
  39692. */
  39693. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39694. uint32_t TIM_ICFilter)
  39695. {
  39696. 8011004: b480 push {r7}
  39697. 8011006: b087 sub sp, #28
  39698. 8011008: af00 add r7, sp, #0
  39699. 801100a: 60f8 str r0, [r7, #12]
  39700. 801100c: 60b9 str r1, [r7, #8]
  39701. 801100e: 607a str r2, [r7, #4]
  39702. 8011010: 603b str r3, [r7, #0]
  39703. uint32_t tmpccmr2;
  39704. uint32_t tmpccer;
  39705. /* Disable the Channel 4: Reset the CC4E Bit */
  39706. tmpccer = TIMx->CCER;
  39707. 8011012: 68fb ldr r3, [r7, #12]
  39708. 8011014: 6a1b ldr r3, [r3, #32]
  39709. 8011016: 617b str r3, [r7, #20]
  39710. TIMx->CCER &= ~TIM_CCER_CC4E;
  39711. 8011018: 68fb ldr r3, [r7, #12]
  39712. 801101a: 6a1b ldr r3, [r3, #32]
  39713. 801101c: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39714. 8011020: 68fb ldr r3, [r7, #12]
  39715. 8011022: 621a str r2, [r3, #32]
  39716. tmpccmr2 = TIMx->CCMR2;
  39717. 8011024: 68fb ldr r3, [r7, #12]
  39718. 8011026: 69db ldr r3, [r3, #28]
  39719. 8011028: 613b str r3, [r7, #16]
  39720. /* Select the Input */
  39721. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  39722. 801102a: 693b ldr r3, [r7, #16]
  39723. 801102c: f423 7340 bic.w r3, r3, #768 @ 0x300
  39724. 8011030: 613b str r3, [r7, #16]
  39725. tmpccmr2 |= (TIM_ICSelection << 8U);
  39726. 8011032: 687b ldr r3, [r7, #4]
  39727. 8011034: 021b lsls r3, r3, #8
  39728. 8011036: 693a ldr r2, [r7, #16]
  39729. 8011038: 4313 orrs r3, r2
  39730. 801103a: 613b str r3, [r7, #16]
  39731. /* Set the filter */
  39732. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  39733. 801103c: 693b ldr r3, [r7, #16]
  39734. 801103e: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39735. 8011042: 613b str r3, [r7, #16]
  39736. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  39737. 8011044: 683b ldr r3, [r7, #0]
  39738. 8011046: 031b lsls r3, r3, #12
  39739. 8011048: b29b uxth r3, r3
  39740. 801104a: 693a ldr r2, [r7, #16]
  39741. 801104c: 4313 orrs r3, r2
  39742. 801104e: 613b str r3, [r7, #16]
  39743. /* Select the Polarity and set the CC4E Bit */
  39744. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  39745. 8011050: 697b ldr r3, [r7, #20]
  39746. 8011052: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  39747. 8011056: 617b str r3, [r7, #20]
  39748. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  39749. 8011058: 68bb ldr r3, [r7, #8]
  39750. 801105a: 031b lsls r3, r3, #12
  39751. 801105c: f403 4320 and.w r3, r3, #40960 @ 0xa000
  39752. 8011060: 697a ldr r2, [r7, #20]
  39753. 8011062: 4313 orrs r3, r2
  39754. 8011064: 617b str r3, [r7, #20]
  39755. /* Write to TIMx CCMR2 and CCER registers */
  39756. TIMx->CCMR2 = tmpccmr2;
  39757. 8011066: 68fb ldr r3, [r7, #12]
  39758. 8011068: 693a ldr r2, [r7, #16]
  39759. 801106a: 61da str r2, [r3, #28]
  39760. TIMx->CCER = tmpccer ;
  39761. 801106c: 68fb ldr r3, [r7, #12]
  39762. 801106e: 697a ldr r2, [r7, #20]
  39763. 8011070: 621a str r2, [r3, #32]
  39764. }
  39765. 8011072: bf00 nop
  39766. 8011074: 371c adds r7, #28
  39767. 8011076: 46bd mov sp, r7
  39768. 8011078: f85d 7b04 ldr.w r7, [sp], #4
  39769. 801107c: 4770 bx lr
  39770. ...
  39771. 08011080 <TIM_ITRx_SetConfig>:
  39772. * (*) Value not defined in all devices.
  39773. *
  39774. * @retval None
  39775. */
  39776. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  39777. {
  39778. 8011080: b480 push {r7}
  39779. 8011082: b085 sub sp, #20
  39780. 8011084: af00 add r7, sp, #0
  39781. 8011086: 6078 str r0, [r7, #4]
  39782. 8011088: 6039 str r1, [r7, #0]
  39783. uint32_t tmpsmcr;
  39784. /* Get the TIMx SMCR register value */
  39785. tmpsmcr = TIMx->SMCR;
  39786. 801108a: 687b ldr r3, [r7, #4]
  39787. 801108c: 689b ldr r3, [r3, #8]
  39788. 801108e: 60fb str r3, [r7, #12]
  39789. /* Reset the TS Bits */
  39790. tmpsmcr &= ~TIM_SMCR_TS;
  39791. 8011090: 68fa ldr r2, [r7, #12]
  39792. 8011092: 4b09 ldr r3, [pc, #36] @ (80110b8 <TIM_ITRx_SetConfig+0x38>)
  39793. 8011094: 4013 ands r3, r2
  39794. 8011096: 60fb str r3, [r7, #12]
  39795. /* Set the Input Trigger source and the slave mode*/
  39796. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  39797. 8011098: 683a ldr r2, [r7, #0]
  39798. 801109a: 68fb ldr r3, [r7, #12]
  39799. 801109c: 4313 orrs r3, r2
  39800. 801109e: f043 0307 orr.w r3, r3, #7
  39801. 80110a2: 60fb str r3, [r7, #12]
  39802. /* Write to TIMx SMCR */
  39803. TIMx->SMCR = tmpsmcr;
  39804. 80110a4: 687b ldr r3, [r7, #4]
  39805. 80110a6: 68fa ldr r2, [r7, #12]
  39806. 80110a8: 609a str r2, [r3, #8]
  39807. }
  39808. 80110aa: bf00 nop
  39809. 80110ac: 3714 adds r7, #20
  39810. 80110ae: 46bd mov sp, r7
  39811. 80110b0: f85d 7b04 ldr.w r7, [sp], #4
  39812. 80110b4: 4770 bx lr
  39813. 80110b6: bf00 nop
  39814. 80110b8: ffcfff8f .word 0xffcfff8f
  39815. 080110bc <TIM_ETR_SetConfig>:
  39816. * This parameter must be a value between 0x00 and 0x0F
  39817. * @retval None
  39818. */
  39819. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  39820. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  39821. {
  39822. 80110bc: b480 push {r7}
  39823. 80110be: b087 sub sp, #28
  39824. 80110c0: af00 add r7, sp, #0
  39825. 80110c2: 60f8 str r0, [r7, #12]
  39826. 80110c4: 60b9 str r1, [r7, #8]
  39827. 80110c6: 607a str r2, [r7, #4]
  39828. 80110c8: 603b str r3, [r7, #0]
  39829. uint32_t tmpsmcr;
  39830. tmpsmcr = TIMx->SMCR;
  39831. 80110ca: 68fb ldr r3, [r7, #12]
  39832. 80110cc: 689b ldr r3, [r3, #8]
  39833. 80110ce: 617b str r3, [r7, #20]
  39834. /* Reset the ETR Bits */
  39835. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  39836. 80110d0: 697b ldr r3, [r7, #20]
  39837. 80110d2: f423 437f bic.w r3, r3, #65280 @ 0xff00
  39838. 80110d6: 617b str r3, [r7, #20]
  39839. /* Set the Prescaler, the Filter value and the Polarity */
  39840. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  39841. 80110d8: 683b ldr r3, [r7, #0]
  39842. 80110da: 021a lsls r2, r3, #8
  39843. 80110dc: 687b ldr r3, [r7, #4]
  39844. 80110de: 431a orrs r2, r3
  39845. 80110e0: 68bb ldr r3, [r7, #8]
  39846. 80110e2: 4313 orrs r3, r2
  39847. 80110e4: 697a ldr r2, [r7, #20]
  39848. 80110e6: 4313 orrs r3, r2
  39849. 80110e8: 617b str r3, [r7, #20]
  39850. /* Write to TIMx SMCR */
  39851. TIMx->SMCR = tmpsmcr;
  39852. 80110ea: 68fb ldr r3, [r7, #12]
  39853. 80110ec: 697a ldr r2, [r7, #20]
  39854. 80110ee: 609a str r2, [r3, #8]
  39855. }
  39856. 80110f0: bf00 nop
  39857. 80110f2: 371c adds r7, #28
  39858. 80110f4: 46bd mov sp, r7
  39859. 80110f6: f85d 7b04 ldr.w r7, [sp], #4
  39860. 80110fa: 4770 bx lr
  39861. 080110fc <TIM_CCxChannelCmd>:
  39862. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  39863. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  39864. * @retval None
  39865. */
  39866. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  39867. {
  39868. 80110fc: b480 push {r7}
  39869. 80110fe: b087 sub sp, #28
  39870. 8011100: af00 add r7, sp, #0
  39871. 8011102: 60f8 str r0, [r7, #12]
  39872. 8011104: 60b9 str r1, [r7, #8]
  39873. 8011106: 607a str r2, [r7, #4]
  39874. /* Check the parameters */
  39875. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  39876. assert_param(IS_TIM_CHANNELS(Channel));
  39877. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  39878. 8011108: 68bb ldr r3, [r7, #8]
  39879. 801110a: f003 031f and.w r3, r3, #31
  39880. 801110e: 2201 movs r2, #1
  39881. 8011110: fa02 f303 lsl.w r3, r2, r3
  39882. 8011114: 617b str r3, [r7, #20]
  39883. /* Reset the CCxE Bit */
  39884. TIMx->CCER &= ~tmp;
  39885. 8011116: 68fb ldr r3, [r7, #12]
  39886. 8011118: 6a1a ldr r2, [r3, #32]
  39887. 801111a: 697b ldr r3, [r7, #20]
  39888. 801111c: 43db mvns r3, r3
  39889. 801111e: 401a ands r2, r3
  39890. 8011120: 68fb ldr r3, [r7, #12]
  39891. 8011122: 621a str r2, [r3, #32]
  39892. /* Set or reset the CCxE Bit */
  39893. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  39894. 8011124: 68fb ldr r3, [r7, #12]
  39895. 8011126: 6a1a ldr r2, [r3, #32]
  39896. 8011128: 68bb ldr r3, [r7, #8]
  39897. 801112a: f003 031f and.w r3, r3, #31
  39898. 801112e: 6879 ldr r1, [r7, #4]
  39899. 8011130: fa01 f303 lsl.w r3, r1, r3
  39900. 8011134: 431a orrs r2, r3
  39901. 8011136: 68fb ldr r3, [r7, #12]
  39902. 8011138: 621a str r2, [r3, #32]
  39903. }
  39904. 801113a: bf00 nop
  39905. 801113c: 371c adds r7, #28
  39906. 801113e: 46bd mov sp, r7
  39907. 8011140: f85d 7b04 ldr.w r7, [sp], #4
  39908. 8011144: 4770 bx lr
  39909. ...
  39910. 08011148 <HAL_TIMEx_MasterConfigSynchronization>:
  39911. * mode.
  39912. * @retval HAL status
  39913. */
  39914. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  39915. const TIM_MasterConfigTypeDef *sMasterConfig)
  39916. {
  39917. 8011148: b480 push {r7}
  39918. 801114a: b085 sub sp, #20
  39919. 801114c: af00 add r7, sp, #0
  39920. 801114e: 6078 str r0, [r7, #4]
  39921. 8011150: 6039 str r1, [r7, #0]
  39922. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  39923. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  39924. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  39925. /* Check input state */
  39926. __HAL_LOCK(htim);
  39927. 8011152: 687b ldr r3, [r7, #4]
  39928. 8011154: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39929. 8011158: 2b01 cmp r3, #1
  39930. 801115a: d101 bne.n 8011160 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  39931. 801115c: 2302 movs r3, #2
  39932. 801115e: e06d b.n 801123c <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  39933. 8011160: 687b ldr r3, [r7, #4]
  39934. 8011162: 2201 movs r2, #1
  39935. 8011164: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39936. /* Change the handler state */
  39937. htim->State = HAL_TIM_STATE_BUSY;
  39938. 8011168: 687b ldr r3, [r7, #4]
  39939. 801116a: 2202 movs r2, #2
  39940. 801116c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  39941. /* Get the TIMx CR2 register value */
  39942. tmpcr2 = htim->Instance->CR2;
  39943. 8011170: 687b ldr r3, [r7, #4]
  39944. 8011172: 681b ldr r3, [r3, #0]
  39945. 8011174: 685b ldr r3, [r3, #4]
  39946. 8011176: 60fb str r3, [r7, #12]
  39947. /* Get the TIMx SMCR register value */
  39948. tmpsmcr = htim->Instance->SMCR;
  39949. 8011178: 687b ldr r3, [r7, #4]
  39950. 801117a: 681b ldr r3, [r3, #0]
  39951. 801117c: 689b ldr r3, [r3, #8]
  39952. 801117e: 60bb str r3, [r7, #8]
  39953. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  39954. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  39955. 8011180: 687b ldr r3, [r7, #4]
  39956. 8011182: 681b ldr r3, [r3, #0]
  39957. 8011184: 4a30 ldr r2, [pc, #192] @ (8011248 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  39958. 8011186: 4293 cmp r3, r2
  39959. 8011188: d004 beq.n 8011194 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  39960. 801118a: 687b ldr r3, [r7, #4]
  39961. 801118c: 681b ldr r3, [r3, #0]
  39962. 801118e: 4a2f ldr r2, [pc, #188] @ (801124c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  39963. 8011190: 4293 cmp r3, r2
  39964. 8011192: d108 bne.n 80111a6 <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  39965. {
  39966. /* Check the parameters */
  39967. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  39968. /* Clear the MMS2 bits */
  39969. tmpcr2 &= ~TIM_CR2_MMS2;
  39970. 8011194: 68fb ldr r3, [r7, #12]
  39971. 8011196: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  39972. 801119a: 60fb str r3, [r7, #12]
  39973. /* Select the TRGO2 source*/
  39974. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  39975. 801119c: 683b ldr r3, [r7, #0]
  39976. 801119e: 685b ldr r3, [r3, #4]
  39977. 80111a0: 68fa ldr r2, [r7, #12]
  39978. 80111a2: 4313 orrs r3, r2
  39979. 80111a4: 60fb str r3, [r7, #12]
  39980. }
  39981. /* Reset the MMS Bits */
  39982. tmpcr2 &= ~TIM_CR2_MMS;
  39983. 80111a6: 68fb ldr r3, [r7, #12]
  39984. 80111a8: f023 0370 bic.w r3, r3, #112 @ 0x70
  39985. 80111ac: 60fb str r3, [r7, #12]
  39986. /* Select the TRGO source */
  39987. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  39988. 80111ae: 683b ldr r3, [r7, #0]
  39989. 80111b0: 681b ldr r3, [r3, #0]
  39990. 80111b2: 68fa ldr r2, [r7, #12]
  39991. 80111b4: 4313 orrs r3, r2
  39992. 80111b6: 60fb str r3, [r7, #12]
  39993. /* Update TIMx CR2 */
  39994. htim->Instance->CR2 = tmpcr2;
  39995. 80111b8: 687b ldr r3, [r7, #4]
  39996. 80111ba: 681b ldr r3, [r3, #0]
  39997. 80111bc: 68fa ldr r2, [r7, #12]
  39998. 80111be: 605a str r2, [r3, #4]
  39999. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  40000. 80111c0: 687b ldr r3, [r7, #4]
  40001. 80111c2: 681b ldr r3, [r3, #0]
  40002. 80111c4: 4a20 ldr r2, [pc, #128] @ (8011248 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  40003. 80111c6: 4293 cmp r3, r2
  40004. 80111c8: d022 beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40005. 80111ca: 687b ldr r3, [r7, #4]
  40006. 80111cc: 681b ldr r3, [r3, #0]
  40007. 80111ce: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  40008. 80111d2: d01d beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40009. 80111d4: 687b ldr r3, [r7, #4]
  40010. 80111d6: 681b ldr r3, [r3, #0]
  40011. 80111d8: 4a1d ldr r2, [pc, #116] @ (8011250 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  40012. 80111da: 4293 cmp r3, r2
  40013. 80111dc: d018 beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40014. 80111de: 687b ldr r3, [r7, #4]
  40015. 80111e0: 681b ldr r3, [r3, #0]
  40016. 80111e2: 4a1c ldr r2, [pc, #112] @ (8011254 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  40017. 80111e4: 4293 cmp r3, r2
  40018. 80111e6: d013 beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40019. 80111e8: 687b ldr r3, [r7, #4]
  40020. 80111ea: 681b ldr r3, [r3, #0]
  40021. 80111ec: 4a1a ldr r2, [pc, #104] @ (8011258 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  40022. 80111ee: 4293 cmp r3, r2
  40023. 80111f0: d00e beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40024. 80111f2: 687b ldr r3, [r7, #4]
  40025. 80111f4: 681b ldr r3, [r3, #0]
  40026. 80111f6: 4a15 ldr r2, [pc, #84] @ (801124c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  40027. 80111f8: 4293 cmp r3, r2
  40028. 80111fa: d009 beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40029. 80111fc: 687b ldr r3, [r7, #4]
  40030. 80111fe: 681b ldr r3, [r3, #0]
  40031. 8011200: 4a16 ldr r2, [pc, #88] @ (801125c <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  40032. 8011202: 4293 cmp r3, r2
  40033. 8011204: d004 beq.n 8011210 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40034. 8011206: 687b ldr r3, [r7, #4]
  40035. 8011208: 681b ldr r3, [r3, #0]
  40036. 801120a: 4a15 ldr r2, [pc, #84] @ (8011260 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  40037. 801120c: 4293 cmp r3, r2
  40038. 801120e: d10c bne.n 801122a <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  40039. {
  40040. /* Reset the MSM Bit */
  40041. tmpsmcr &= ~TIM_SMCR_MSM;
  40042. 8011210: 68bb ldr r3, [r7, #8]
  40043. 8011212: f023 0380 bic.w r3, r3, #128 @ 0x80
  40044. 8011216: 60bb str r3, [r7, #8]
  40045. /* Set master mode */
  40046. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  40047. 8011218: 683b ldr r3, [r7, #0]
  40048. 801121a: 689b ldr r3, [r3, #8]
  40049. 801121c: 68ba ldr r2, [r7, #8]
  40050. 801121e: 4313 orrs r3, r2
  40051. 8011220: 60bb str r3, [r7, #8]
  40052. /* Update TIMx SMCR */
  40053. htim->Instance->SMCR = tmpsmcr;
  40054. 8011222: 687b ldr r3, [r7, #4]
  40055. 8011224: 681b ldr r3, [r3, #0]
  40056. 8011226: 68ba ldr r2, [r7, #8]
  40057. 8011228: 609a str r2, [r3, #8]
  40058. }
  40059. /* Change the htim state */
  40060. htim->State = HAL_TIM_STATE_READY;
  40061. 801122a: 687b ldr r3, [r7, #4]
  40062. 801122c: 2201 movs r2, #1
  40063. 801122e: f883 203d strb.w r2, [r3, #61] @ 0x3d
  40064. __HAL_UNLOCK(htim);
  40065. 8011232: 687b ldr r3, [r7, #4]
  40066. 8011234: 2200 movs r2, #0
  40067. 8011236: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40068. return HAL_OK;
  40069. 801123a: 2300 movs r3, #0
  40070. }
  40071. 801123c: 4618 mov r0, r3
  40072. 801123e: 3714 adds r7, #20
  40073. 8011240: 46bd mov sp, r7
  40074. 8011242: f85d 7b04 ldr.w r7, [sp], #4
  40075. 8011246: 4770 bx lr
  40076. 8011248: 40010000 .word 0x40010000
  40077. 801124c: 40010400 .word 0x40010400
  40078. 8011250: 40000400 .word 0x40000400
  40079. 8011254: 40000800 .word 0x40000800
  40080. 8011258: 40000c00 .word 0x40000c00
  40081. 801125c: 40001800 .word 0x40001800
  40082. 8011260: 40014000 .word 0x40014000
  40083. 08011264 <HAL_TIMEx_ConfigBreakDeadTime>:
  40084. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  40085. * @retval HAL status
  40086. */
  40087. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  40088. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  40089. {
  40090. 8011264: b480 push {r7}
  40091. 8011266: b085 sub sp, #20
  40092. 8011268: af00 add r7, sp, #0
  40093. 801126a: 6078 str r0, [r7, #4]
  40094. 801126c: 6039 str r1, [r7, #0]
  40095. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  40096. uint32_t tmpbdtr = 0U;
  40097. 801126e: 2300 movs r3, #0
  40098. 8011270: 60fb str r3, [r7, #12]
  40099. #if defined(TIM_BDTR_BKBID)
  40100. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  40101. #endif /* TIM_BDTR_BKBID */
  40102. /* Check input state */
  40103. __HAL_LOCK(htim);
  40104. 8011272: 687b ldr r3, [r7, #4]
  40105. 8011274: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  40106. 8011278: 2b01 cmp r3, #1
  40107. 801127a: d101 bne.n 8011280 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  40108. 801127c: 2302 movs r3, #2
  40109. 801127e: e065 b.n 801134c <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  40110. 8011280: 687b ldr r3, [r7, #4]
  40111. 8011282: 2201 movs r2, #1
  40112. 8011284: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40113. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  40114. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  40115. /* Set the BDTR bits */
  40116. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  40117. 8011288: 68fb ldr r3, [r7, #12]
  40118. 801128a: f023 02ff bic.w r2, r3, #255 @ 0xff
  40119. 801128e: 683b ldr r3, [r7, #0]
  40120. 8011290: 68db ldr r3, [r3, #12]
  40121. 8011292: 4313 orrs r3, r2
  40122. 8011294: 60fb str r3, [r7, #12]
  40123. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  40124. 8011296: 68fb ldr r3, [r7, #12]
  40125. 8011298: f423 7240 bic.w r2, r3, #768 @ 0x300
  40126. 801129c: 683b ldr r3, [r7, #0]
  40127. 801129e: 689b ldr r3, [r3, #8]
  40128. 80112a0: 4313 orrs r3, r2
  40129. 80112a2: 60fb str r3, [r7, #12]
  40130. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  40131. 80112a4: 68fb ldr r3, [r7, #12]
  40132. 80112a6: f423 6280 bic.w r2, r3, #1024 @ 0x400
  40133. 80112aa: 683b ldr r3, [r7, #0]
  40134. 80112ac: 685b ldr r3, [r3, #4]
  40135. 80112ae: 4313 orrs r3, r2
  40136. 80112b0: 60fb str r3, [r7, #12]
  40137. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  40138. 80112b2: 68fb ldr r3, [r7, #12]
  40139. 80112b4: f423 6200 bic.w r2, r3, #2048 @ 0x800
  40140. 80112b8: 683b ldr r3, [r7, #0]
  40141. 80112ba: 681b ldr r3, [r3, #0]
  40142. 80112bc: 4313 orrs r3, r2
  40143. 80112be: 60fb str r3, [r7, #12]
  40144. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  40145. 80112c0: 68fb ldr r3, [r7, #12]
  40146. 80112c2: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  40147. 80112c6: 683b ldr r3, [r7, #0]
  40148. 80112c8: 691b ldr r3, [r3, #16]
  40149. 80112ca: 4313 orrs r3, r2
  40150. 80112cc: 60fb str r3, [r7, #12]
  40151. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  40152. 80112ce: 68fb ldr r3, [r7, #12]
  40153. 80112d0: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  40154. 80112d4: 683b ldr r3, [r7, #0]
  40155. 80112d6: 695b ldr r3, [r3, #20]
  40156. 80112d8: 4313 orrs r3, r2
  40157. 80112da: 60fb str r3, [r7, #12]
  40158. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  40159. 80112dc: 68fb ldr r3, [r7, #12]
  40160. 80112de: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  40161. 80112e2: 683b ldr r3, [r7, #0]
  40162. 80112e4: 6a9b ldr r3, [r3, #40] @ 0x28
  40163. 80112e6: 4313 orrs r3, r2
  40164. 80112e8: 60fb str r3, [r7, #12]
  40165. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  40166. 80112ea: 68fb ldr r3, [r7, #12]
  40167. 80112ec: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  40168. 80112f0: 683b ldr r3, [r7, #0]
  40169. 80112f2: 699b ldr r3, [r3, #24]
  40170. 80112f4: 041b lsls r3, r3, #16
  40171. 80112f6: 4313 orrs r3, r2
  40172. 80112f8: 60fb str r3, [r7, #12]
  40173. #if defined(TIM_BDTR_BKBID)
  40174. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  40175. #endif /* TIM_BDTR_BKBID */
  40176. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  40177. 80112fa: 687b ldr r3, [r7, #4]
  40178. 80112fc: 681b ldr r3, [r3, #0]
  40179. 80112fe: 4a16 ldr r2, [pc, #88] @ (8011358 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  40180. 8011300: 4293 cmp r3, r2
  40181. 8011302: d004 beq.n 801130e <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  40182. 8011304: 687b ldr r3, [r7, #4]
  40183. 8011306: 681b ldr r3, [r3, #0]
  40184. 8011308: 4a14 ldr r2, [pc, #80] @ (801135c <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  40185. 801130a: 4293 cmp r3, r2
  40186. 801130c: d115 bne.n 801133a <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  40187. #if defined(TIM_BDTR_BKBID)
  40188. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  40189. #endif /* TIM_BDTR_BKBID */
  40190. /* Set the BREAK2 input related BDTR bits */
  40191. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  40192. 801130e: 68fb ldr r3, [r7, #12]
  40193. 8011310: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  40194. 8011314: 683b ldr r3, [r7, #0]
  40195. 8011316: 6a5b ldr r3, [r3, #36] @ 0x24
  40196. 8011318: 051b lsls r3, r3, #20
  40197. 801131a: 4313 orrs r3, r2
  40198. 801131c: 60fb str r3, [r7, #12]
  40199. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  40200. 801131e: 68fb ldr r3, [r7, #12]
  40201. 8011320: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  40202. 8011324: 683b ldr r3, [r7, #0]
  40203. 8011326: 69db ldr r3, [r3, #28]
  40204. 8011328: 4313 orrs r3, r2
  40205. 801132a: 60fb str r3, [r7, #12]
  40206. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  40207. 801132c: 68fb ldr r3, [r7, #12]
  40208. 801132e: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  40209. 8011332: 683b ldr r3, [r7, #0]
  40210. 8011334: 6a1b ldr r3, [r3, #32]
  40211. 8011336: 4313 orrs r3, r2
  40212. 8011338: 60fb str r3, [r7, #12]
  40213. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  40214. #endif /* TIM_BDTR_BKBID */
  40215. }
  40216. /* Set TIMx_BDTR */
  40217. htim->Instance->BDTR = tmpbdtr;
  40218. 801133a: 687b ldr r3, [r7, #4]
  40219. 801133c: 681b ldr r3, [r3, #0]
  40220. 801133e: 68fa ldr r2, [r7, #12]
  40221. 8011340: 645a str r2, [r3, #68] @ 0x44
  40222. __HAL_UNLOCK(htim);
  40223. 8011342: 687b ldr r3, [r7, #4]
  40224. 8011344: 2200 movs r2, #0
  40225. 8011346: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40226. return HAL_OK;
  40227. 801134a: 2300 movs r3, #0
  40228. }
  40229. 801134c: 4618 mov r0, r3
  40230. 801134e: 3714 adds r7, #20
  40231. 8011350: 46bd mov sp, r7
  40232. 8011352: f85d 7b04 ldr.w r7, [sp], #4
  40233. 8011356: 4770 bx lr
  40234. 8011358: 40010000 .word 0x40010000
  40235. 801135c: 40010400 .word 0x40010400
  40236. 08011360 <HAL_TIMEx_CommutCallback>:
  40237. * @brief Commutation callback in non-blocking mode
  40238. * @param htim TIM handle
  40239. * @retval None
  40240. */
  40241. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  40242. {
  40243. 8011360: b480 push {r7}
  40244. 8011362: b083 sub sp, #12
  40245. 8011364: af00 add r7, sp, #0
  40246. 8011366: 6078 str r0, [r7, #4]
  40247. UNUSED(htim);
  40248. /* NOTE : This function should not be modified, when the callback is needed,
  40249. the HAL_TIMEx_CommutCallback could be implemented in the user file
  40250. */
  40251. }
  40252. 8011368: bf00 nop
  40253. 801136a: 370c adds r7, #12
  40254. 801136c: 46bd mov sp, r7
  40255. 801136e: f85d 7b04 ldr.w r7, [sp], #4
  40256. 8011372: 4770 bx lr
  40257. 08011374 <HAL_TIMEx_BreakCallback>:
  40258. * @brief Break detection callback in non-blocking mode
  40259. * @param htim TIM handle
  40260. * @retval None
  40261. */
  40262. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  40263. {
  40264. 8011374: b480 push {r7}
  40265. 8011376: b083 sub sp, #12
  40266. 8011378: af00 add r7, sp, #0
  40267. 801137a: 6078 str r0, [r7, #4]
  40268. UNUSED(htim);
  40269. /* NOTE : This function should not be modified, when the callback is needed,
  40270. the HAL_TIMEx_BreakCallback could be implemented in the user file
  40271. */
  40272. }
  40273. 801137c: bf00 nop
  40274. 801137e: 370c adds r7, #12
  40275. 8011380: 46bd mov sp, r7
  40276. 8011382: f85d 7b04 ldr.w r7, [sp], #4
  40277. 8011386: 4770 bx lr
  40278. 08011388 <HAL_TIMEx_Break2Callback>:
  40279. * @brief Break2 detection callback in non blocking mode
  40280. * @param htim: TIM handle
  40281. * @retval None
  40282. */
  40283. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  40284. {
  40285. 8011388: b480 push {r7}
  40286. 801138a: b083 sub sp, #12
  40287. 801138c: af00 add r7, sp, #0
  40288. 801138e: 6078 str r0, [r7, #4]
  40289. UNUSED(htim);
  40290. /* NOTE : This function Should not be modified, when the callback is needed,
  40291. the HAL_TIMEx_Break2Callback could be implemented in the user file
  40292. */
  40293. }
  40294. 8011390: bf00 nop
  40295. 8011392: 370c adds r7, #12
  40296. 8011394: 46bd mov sp, r7
  40297. 8011396: f85d 7b04 ldr.w r7, [sp], #4
  40298. 801139a: 4770 bx lr
  40299. 0801139c <HAL_UART_Init>:
  40300. * parameters in the UART_InitTypeDef and initialize the associated handle.
  40301. * @param huart UART handle.
  40302. * @retval HAL status
  40303. */
  40304. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  40305. {
  40306. 801139c: b580 push {r7, lr}
  40307. 801139e: b082 sub sp, #8
  40308. 80113a0: af00 add r7, sp, #0
  40309. 80113a2: 6078 str r0, [r7, #4]
  40310. /* Check the UART handle allocation */
  40311. if (huart == NULL)
  40312. 80113a4: 687b ldr r3, [r7, #4]
  40313. 80113a6: 2b00 cmp r3, #0
  40314. 80113a8: d101 bne.n 80113ae <HAL_UART_Init+0x12>
  40315. {
  40316. return HAL_ERROR;
  40317. 80113aa: 2301 movs r3, #1
  40318. 80113ac: e042 b.n 8011434 <HAL_UART_Init+0x98>
  40319. {
  40320. /* Check the parameters */
  40321. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  40322. }
  40323. if (huart->gState == HAL_UART_STATE_RESET)
  40324. 80113ae: 687b ldr r3, [r7, #4]
  40325. 80113b0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40326. 80113b4: 2b00 cmp r3, #0
  40327. 80113b6: d106 bne.n 80113c6 <HAL_UART_Init+0x2a>
  40328. {
  40329. /* Allocate lock resource and initialize it */
  40330. huart->Lock = HAL_UNLOCKED;
  40331. 80113b8: 687b ldr r3, [r7, #4]
  40332. 80113ba: 2200 movs r2, #0
  40333. 80113bc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  40334. /* Init the low level hardware */
  40335. huart->MspInitCallback(huart);
  40336. #else
  40337. /* Init the low level hardware : GPIO, CLOCK */
  40338. HAL_UART_MspInit(huart);
  40339. 80113c0: 6878 ldr r0, [r7, #4]
  40340. 80113c2: f7f3 f881 bl 80044c8 <HAL_UART_MspInit>
  40341. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40342. }
  40343. huart->gState = HAL_UART_STATE_BUSY;
  40344. 80113c6: 687b ldr r3, [r7, #4]
  40345. 80113c8: 2224 movs r2, #36 @ 0x24
  40346. 80113ca: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40347. __HAL_UART_DISABLE(huart);
  40348. 80113ce: 687b ldr r3, [r7, #4]
  40349. 80113d0: 681b ldr r3, [r3, #0]
  40350. 80113d2: 681a ldr r2, [r3, #0]
  40351. 80113d4: 687b ldr r3, [r7, #4]
  40352. 80113d6: 681b ldr r3, [r3, #0]
  40353. 80113d8: f022 0201 bic.w r2, r2, #1
  40354. 80113dc: 601a str r2, [r3, #0]
  40355. /* Perform advanced settings configuration */
  40356. /* For some items, configuration requires to be done prior TE and RE bits are set */
  40357. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  40358. 80113de: 687b ldr r3, [r7, #4]
  40359. 80113e0: 6a9b ldr r3, [r3, #40] @ 0x28
  40360. 80113e2: 2b00 cmp r3, #0
  40361. 80113e4: d002 beq.n 80113ec <HAL_UART_Init+0x50>
  40362. {
  40363. UART_AdvFeatureConfig(huart);
  40364. 80113e6: 6878 ldr r0, [r7, #4]
  40365. 80113e8: f001 f9e8 bl 80127bc <UART_AdvFeatureConfig>
  40366. }
  40367. /* Set the UART Communication parameters */
  40368. if (UART_SetConfig(huart) == HAL_ERROR)
  40369. 80113ec: 6878 ldr r0, [r7, #4]
  40370. 80113ee: f000 fc7d bl 8011cec <UART_SetConfig>
  40371. 80113f2: 4603 mov r3, r0
  40372. 80113f4: 2b01 cmp r3, #1
  40373. 80113f6: d101 bne.n 80113fc <HAL_UART_Init+0x60>
  40374. {
  40375. return HAL_ERROR;
  40376. 80113f8: 2301 movs r3, #1
  40377. 80113fa: e01b b.n 8011434 <HAL_UART_Init+0x98>
  40378. }
  40379. /* In asynchronous mode, the following bits must be kept cleared:
  40380. - LINEN and CLKEN bits in the USART_CR2 register,
  40381. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  40382. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  40383. 80113fc: 687b ldr r3, [r7, #4]
  40384. 80113fe: 681b ldr r3, [r3, #0]
  40385. 8011400: 685a ldr r2, [r3, #4]
  40386. 8011402: 687b ldr r3, [r7, #4]
  40387. 8011404: 681b ldr r3, [r3, #0]
  40388. 8011406: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  40389. 801140a: 605a str r2, [r3, #4]
  40390. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  40391. 801140c: 687b ldr r3, [r7, #4]
  40392. 801140e: 681b ldr r3, [r3, #0]
  40393. 8011410: 689a ldr r2, [r3, #8]
  40394. 8011412: 687b ldr r3, [r7, #4]
  40395. 8011414: 681b ldr r3, [r3, #0]
  40396. 8011416: f022 022a bic.w r2, r2, #42 @ 0x2a
  40397. 801141a: 609a str r2, [r3, #8]
  40398. __HAL_UART_ENABLE(huart);
  40399. 801141c: 687b ldr r3, [r7, #4]
  40400. 801141e: 681b ldr r3, [r3, #0]
  40401. 8011420: 681a ldr r2, [r3, #0]
  40402. 8011422: 687b ldr r3, [r7, #4]
  40403. 8011424: 681b ldr r3, [r3, #0]
  40404. 8011426: f042 0201 orr.w r2, r2, #1
  40405. 801142a: 601a str r2, [r3, #0]
  40406. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  40407. return (UART_CheckIdleState(huart));
  40408. 801142c: 6878 ldr r0, [r7, #4]
  40409. 801142e: f001 fa67 bl 8012900 <UART_CheckIdleState>
  40410. 8011432: 4603 mov r3, r0
  40411. }
  40412. 8011434: 4618 mov r0, r3
  40413. 8011436: 3708 adds r7, #8
  40414. 8011438: 46bd mov sp, r7
  40415. 801143a: bd80 pop {r7, pc}
  40416. 0801143c <HAL_UART_Transmit_IT>:
  40417. * @param pData Pointer to data buffer (u8 or u16 data elements).
  40418. * @param Size Amount of data elements (u8 or u16) to be sent.
  40419. * @retval HAL status
  40420. */
  40421. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  40422. {
  40423. 801143c: b480 push {r7}
  40424. 801143e: b091 sub sp, #68 @ 0x44
  40425. 8011440: af00 add r7, sp, #0
  40426. 8011442: 60f8 str r0, [r7, #12]
  40427. 8011444: 60b9 str r1, [r7, #8]
  40428. 8011446: 4613 mov r3, r2
  40429. 8011448: 80fb strh r3, [r7, #6]
  40430. /* Check that a Tx process is not already ongoing */
  40431. if (huart->gState == HAL_UART_STATE_READY)
  40432. 801144a: 68fb ldr r3, [r7, #12]
  40433. 801144c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40434. 8011450: 2b20 cmp r3, #32
  40435. 8011452: d178 bne.n 8011546 <HAL_UART_Transmit_IT+0x10a>
  40436. {
  40437. if ((pData == NULL) || (Size == 0U))
  40438. 8011454: 68bb ldr r3, [r7, #8]
  40439. 8011456: 2b00 cmp r3, #0
  40440. 8011458: d002 beq.n 8011460 <HAL_UART_Transmit_IT+0x24>
  40441. 801145a: 88fb ldrh r3, [r7, #6]
  40442. 801145c: 2b00 cmp r3, #0
  40443. 801145e: d101 bne.n 8011464 <HAL_UART_Transmit_IT+0x28>
  40444. {
  40445. return HAL_ERROR;
  40446. 8011460: 2301 movs r3, #1
  40447. 8011462: e071 b.n 8011548 <HAL_UART_Transmit_IT+0x10c>
  40448. }
  40449. huart->pTxBuffPtr = pData;
  40450. 8011464: 68fb ldr r3, [r7, #12]
  40451. 8011466: 68ba ldr r2, [r7, #8]
  40452. 8011468: 651a str r2, [r3, #80] @ 0x50
  40453. huart->TxXferSize = Size;
  40454. 801146a: 68fb ldr r3, [r7, #12]
  40455. 801146c: 88fa ldrh r2, [r7, #6]
  40456. 801146e: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  40457. huart->TxXferCount = Size;
  40458. 8011472: 68fb ldr r3, [r7, #12]
  40459. 8011474: 88fa ldrh r2, [r7, #6]
  40460. 8011476: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  40461. huart->TxISR = NULL;
  40462. 801147a: 68fb ldr r3, [r7, #12]
  40463. 801147c: 2200 movs r2, #0
  40464. 801147e: 679a str r2, [r3, #120] @ 0x78
  40465. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40466. 8011480: 68fb ldr r3, [r7, #12]
  40467. 8011482: 2200 movs r2, #0
  40468. 8011484: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40469. huart->gState = HAL_UART_STATE_BUSY_TX;
  40470. 8011488: 68fb ldr r3, [r7, #12]
  40471. 801148a: 2221 movs r2, #33 @ 0x21
  40472. 801148c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40473. /* Configure Tx interrupt processing */
  40474. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  40475. 8011490: 68fb ldr r3, [r7, #12]
  40476. 8011492: 6e5b ldr r3, [r3, #100] @ 0x64
  40477. 8011494: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  40478. 8011498: d12a bne.n 80114f0 <HAL_UART_Transmit_IT+0xb4>
  40479. {
  40480. /* Set the Tx ISR function pointer according to the data word length */
  40481. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40482. 801149a: 68fb ldr r3, [r7, #12]
  40483. 801149c: 689b ldr r3, [r3, #8]
  40484. 801149e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40485. 80114a2: d107 bne.n 80114b4 <HAL_UART_Transmit_IT+0x78>
  40486. 80114a4: 68fb ldr r3, [r7, #12]
  40487. 80114a6: 691b ldr r3, [r3, #16]
  40488. 80114a8: 2b00 cmp r3, #0
  40489. 80114aa: d103 bne.n 80114b4 <HAL_UART_Transmit_IT+0x78>
  40490. {
  40491. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  40492. 80114ac: 68fb ldr r3, [r7, #12]
  40493. 80114ae: 4a29 ldr r2, [pc, #164] @ (8011554 <HAL_UART_Transmit_IT+0x118>)
  40494. 80114b0: 679a str r2, [r3, #120] @ 0x78
  40495. 80114b2: e002 b.n 80114ba <HAL_UART_Transmit_IT+0x7e>
  40496. }
  40497. else
  40498. {
  40499. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  40500. 80114b4: 68fb ldr r3, [r7, #12]
  40501. 80114b6: 4a28 ldr r2, [pc, #160] @ (8011558 <HAL_UART_Transmit_IT+0x11c>)
  40502. 80114b8: 679a str r2, [r3, #120] @ 0x78
  40503. }
  40504. /* Enable the TX FIFO threshold interrupt */
  40505. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  40506. 80114ba: 68fb ldr r3, [r7, #12]
  40507. 80114bc: 681b ldr r3, [r3, #0]
  40508. 80114be: 3308 adds r3, #8
  40509. 80114c0: 62bb str r3, [r7, #40] @ 0x28
  40510. */
  40511. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  40512. {
  40513. uint32_t result;
  40514. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40515. 80114c2: 6abb ldr r3, [r7, #40] @ 0x28
  40516. 80114c4: e853 3f00 ldrex r3, [r3]
  40517. 80114c8: 627b str r3, [r7, #36] @ 0x24
  40518. return(result);
  40519. 80114ca: 6a7b ldr r3, [r7, #36] @ 0x24
  40520. 80114cc: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  40521. 80114d0: 63bb str r3, [r7, #56] @ 0x38
  40522. 80114d2: 68fb ldr r3, [r7, #12]
  40523. 80114d4: 681b ldr r3, [r3, #0]
  40524. 80114d6: 3308 adds r3, #8
  40525. 80114d8: 6bba ldr r2, [r7, #56] @ 0x38
  40526. 80114da: 637a str r2, [r7, #52] @ 0x34
  40527. 80114dc: 633b str r3, [r7, #48] @ 0x30
  40528. */
  40529. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  40530. {
  40531. uint32_t result;
  40532. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40533. 80114de: 6b39 ldr r1, [r7, #48] @ 0x30
  40534. 80114e0: 6b7a ldr r2, [r7, #52] @ 0x34
  40535. 80114e2: e841 2300 strex r3, r2, [r1]
  40536. 80114e6: 62fb str r3, [r7, #44] @ 0x2c
  40537. return(result);
  40538. 80114e8: 6afb ldr r3, [r7, #44] @ 0x2c
  40539. 80114ea: 2b00 cmp r3, #0
  40540. 80114ec: d1e5 bne.n 80114ba <HAL_UART_Transmit_IT+0x7e>
  40541. 80114ee: e028 b.n 8011542 <HAL_UART_Transmit_IT+0x106>
  40542. }
  40543. else
  40544. {
  40545. /* Set the Tx ISR function pointer according to the data word length */
  40546. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40547. 80114f0: 68fb ldr r3, [r7, #12]
  40548. 80114f2: 689b ldr r3, [r3, #8]
  40549. 80114f4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40550. 80114f8: d107 bne.n 801150a <HAL_UART_Transmit_IT+0xce>
  40551. 80114fa: 68fb ldr r3, [r7, #12]
  40552. 80114fc: 691b ldr r3, [r3, #16]
  40553. 80114fe: 2b00 cmp r3, #0
  40554. 8011500: d103 bne.n 801150a <HAL_UART_Transmit_IT+0xce>
  40555. {
  40556. huart->TxISR = UART_TxISR_16BIT;
  40557. 8011502: 68fb ldr r3, [r7, #12]
  40558. 8011504: 4a15 ldr r2, [pc, #84] @ (801155c <HAL_UART_Transmit_IT+0x120>)
  40559. 8011506: 679a str r2, [r3, #120] @ 0x78
  40560. 8011508: e002 b.n 8011510 <HAL_UART_Transmit_IT+0xd4>
  40561. }
  40562. else
  40563. {
  40564. huart->TxISR = UART_TxISR_8BIT;
  40565. 801150a: 68fb ldr r3, [r7, #12]
  40566. 801150c: 4a14 ldr r2, [pc, #80] @ (8011560 <HAL_UART_Transmit_IT+0x124>)
  40567. 801150e: 679a str r2, [r3, #120] @ 0x78
  40568. }
  40569. /* Enable the Transmit Data Register Empty interrupt */
  40570. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  40571. 8011510: 68fb ldr r3, [r7, #12]
  40572. 8011512: 681b ldr r3, [r3, #0]
  40573. 8011514: 617b str r3, [r7, #20]
  40574. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40575. 8011516: 697b ldr r3, [r7, #20]
  40576. 8011518: e853 3f00 ldrex r3, [r3]
  40577. 801151c: 613b str r3, [r7, #16]
  40578. return(result);
  40579. 801151e: 693b ldr r3, [r7, #16]
  40580. 8011520: f043 0380 orr.w r3, r3, #128 @ 0x80
  40581. 8011524: 63fb str r3, [r7, #60] @ 0x3c
  40582. 8011526: 68fb ldr r3, [r7, #12]
  40583. 8011528: 681b ldr r3, [r3, #0]
  40584. 801152a: 461a mov r2, r3
  40585. 801152c: 6bfb ldr r3, [r7, #60] @ 0x3c
  40586. 801152e: 623b str r3, [r7, #32]
  40587. 8011530: 61fa str r2, [r7, #28]
  40588. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40589. 8011532: 69f9 ldr r1, [r7, #28]
  40590. 8011534: 6a3a ldr r2, [r7, #32]
  40591. 8011536: e841 2300 strex r3, r2, [r1]
  40592. 801153a: 61bb str r3, [r7, #24]
  40593. return(result);
  40594. 801153c: 69bb ldr r3, [r7, #24]
  40595. 801153e: 2b00 cmp r3, #0
  40596. 8011540: d1e6 bne.n 8011510 <HAL_UART_Transmit_IT+0xd4>
  40597. }
  40598. return HAL_OK;
  40599. 8011542: 2300 movs r3, #0
  40600. 8011544: e000 b.n 8011548 <HAL_UART_Transmit_IT+0x10c>
  40601. }
  40602. else
  40603. {
  40604. return HAL_BUSY;
  40605. 8011546: 2302 movs r3, #2
  40606. }
  40607. }
  40608. 8011548: 4618 mov r0, r3
  40609. 801154a: 3744 adds r7, #68 @ 0x44
  40610. 801154c: 46bd mov sp, r7
  40611. 801154e: f85d 7b04 ldr.w r7, [sp], #4
  40612. 8011552: 4770 bx lr
  40613. 8011554: 080130c7 .word 0x080130c7
  40614. 8011558: 08012fe7 .word 0x08012fe7
  40615. 801155c: 08012f25 .word 0x08012f25
  40616. 8011560: 08012e6d .word 0x08012e6d
  40617. 08011564 <HAL_UART_IRQHandler>:
  40618. * @brief Handle UART interrupt request.
  40619. * @param huart UART handle.
  40620. * @retval None
  40621. */
  40622. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  40623. {
  40624. 8011564: b580 push {r7, lr}
  40625. 8011566: b0ba sub sp, #232 @ 0xe8
  40626. 8011568: af00 add r7, sp, #0
  40627. 801156a: 6078 str r0, [r7, #4]
  40628. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  40629. 801156c: 687b ldr r3, [r7, #4]
  40630. 801156e: 681b ldr r3, [r3, #0]
  40631. 8011570: 69db ldr r3, [r3, #28]
  40632. 8011572: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  40633. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  40634. 8011576: 687b ldr r3, [r7, #4]
  40635. 8011578: 681b ldr r3, [r3, #0]
  40636. 801157a: 681b ldr r3, [r3, #0]
  40637. 801157c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  40638. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  40639. 8011580: 687b ldr r3, [r7, #4]
  40640. 8011582: 681b ldr r3, [r3, #0]
  40641. 8011584: 689b ldr r3, [r3, #8]
  40642. 8011586: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  40643. uint32_t errorflags;
  40644. uint32_t errorcode;
  40645. /* If no error occurs */
  40646. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  40647. 801158a: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  40648. 801158e: f640 030f movw r3, #2063 @ 0x80f
  40649. 8011592: 4013 ands r3, r2
  40650. 8011594: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  40651. if (errorflags == 0U)
  40652. 8011598: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40653. 801159c: 2b00 cmp r3, #0
  40654. 801159e: d11b bne.n 80115d8 <HAL_UART_IRQHandler+0x74>
  40655. {
  40656. /* UART in mode Receiver ---------------------------------------------------*/
  40657. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40658. 80115a0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40659. 80115a4: f003 0320 and.w r3, r3, #32
  40660. 80115a8: 2b00 cmp r3, #0
  40661. 80115aa: d015 beq.n 80115d8 <HAL_UART_IRQHandler+0x74>
  40662. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40663. 80115ac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40664. 80115b0: f003 0320 and.w r3, r3, #32
  40665. 80115b4: 2b00 cmp r3, #0
  40666. 80115b6: d105 bne.n 80115c4 <HAL_UART_IRQHandler+0x60>
  40667. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40668. 80115b8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40669. 80115bc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40670. 80115c0: 2b00 cmp r3, #0
  40671. 80115c2: d009 beq.n 80115d8 <HAL_UART_IRQHandler+0x74>
  40672. {
  40673. if (huart->RxISR != NULL)
  40674. 80115c4: 687b ldr r3, [r7, #4]
  40675. 80115c6: 6f5b ldr r3, [r3, #116] @ 0x74
  40676. 80115c8: 2b00 cmp r3, #0
  40677. 80115ca: f000 8377 beq.w 8011cbc <HAL_UART_IRQHandler+0x758>
  40678. {
  40679. huart->RxISR(huart);
  40680. 80115ce: 687b ldr r3, [r7, #4]
  40681. 80115d0: 6f5b ldr r3, [r3, #116] @ 0x74
  40682. 80115d2: 6878 ldr r0, [r7, #4]
  40683. 80115d4: 4798 blx r3
  40684. }
  40685. return;
  40686. 80115d6: e371 b.n 8011cbc <HAL_UART_IRQHandler+0x758>
  40687. }
  40688. }
  40689. /* If some errors occur */
  40690. if ((errorflags != 0U)
  40691. 80115d8: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40692. 80115dc: 2b00 cmp r3, #0
  40693. 80115de: f000 8123 beq.w 8011828 <HAL_UART_IRQHandler+0x2c4>
  40694. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  40695. 80115e2: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40696. 80115e6: 4b8d ldr r3, [pc, #564] @ (801181c <HAL_UART_IRQHandler+0x2b8>)
  40697. 80115e8: 4013 ands r3, r2
  40698. 80115ea: 2b00 cmp r3, #0
  40699. 80115ec: d106 bne.n 80115fc <HAL_UART_IRQHandler+0x98>
  40700. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  40701. 80115ee: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  40702. 80115f2: 4b8b ldr r3, [pc, #556] @ (8011820 <HAL_UART_IRQHandler+0x2bc>)
  40703. 80115f4: 4013 ands r3, r2
  40704. 80115f6: 2b00 cmp r3, #0
  40705. 80115f8: f000 8116 beq.w 8011828 <HAL_UART_IRQHandler+0x2c4>
  40706. {
  40707. /* UART parity error interrupt occurred -------------------------------------*/
  40708. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  40709. 80115fc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40710. 8011600: f003 0301 and.w r3, r3, #1
  40711. 8011604: 2b00 cmp r3, #0
  40712. 8011606: d011 beq.n 801162c <HAL_UART_IRQHandler+0xc8>
  40713. 8011608: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40714. 801160c: f403 7380 and.w r3, r3, #256 @ 0x100
  40715. 8011610: 2b00 cmp r3, #0
  40716. 8011612: d00b beq.n 801162c <HAL_UART_IRQHandler+0xc8>
  40717. {
  40718. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  40719. 8011614: 687b ldr r3, [r7, #4]
  40720. 8011616: 681b ldr r3, [r3, #0]
  40721. 8011618: 2201 movs r2, #1
  40722. 801161a: 621a str r2, [r3, #32]
  40723. huart->ErrorCode |= HAL_UART_ERROR_PE;
  40724. 801161c: 687b ldr r3, [r7, #4]
  40725. 801161e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40726. 8011622: f043 0201 orr.w r2, r3, #1
  40727. 8011626: 687b ldr r3, [r7, #4]
  40728. 8011628: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40729. }
  40730. /* UART frame error interrupt occurred --------------------------------------*/
  40731. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40732. 801162c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40733. 8011630: f003 0302 and.w r3, r3, #2
  40734. 8011634: 2b00 cmp r3, #0
  40735. 8011636: d011 beq.n 801165c <HAL_UART_IRQHandler+0xf8>
  40736. 8011638: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40737. 801163c: f003 0301 and.w r3, r3, #1
  40738. 8011640: 2b00 cmp r3, #0
  40739. 8011642: d00b beq.n 801165c <HAL_UART_IRQHandler+0xf8>
  40740. {
  40741. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  40742. 8011644: 687b ldr r3, [r7, #4]
  40743. 8011646: 681b ldr r3, [r3, #0]
  40744. 8011648: 2202 movs r2, #2
  40745. 801164a: 621a str r2, [r3, #32]
  40746. huart->ErrorCode |= HAL_UART_ERROR_FE;
  40747. 801164c: 687b ldr r3, [r7, #4]
  40748. 801164e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40749. 8011652: f043 0204 orr.w r2, r3, #4
  40750. 8011656: 687b ldr r3, [r7, #4]
  40751. 8011658: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40752. }
  40753. /* UART noise error interrupt occurred --------------------------------------*/
  40754. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40755. 801165c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40756. 8011660: f003 0304 and.w r3, r3, #4
  40757. 8011664: 2b00 cmp r3, #0
  40758. 8011666: d011 beq.n 801168c <HAL_UART_IRQHandler+0x128>
  40759. 8011668: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40760. 801166c: f003 0301 and.w r3, r3, #1
  40761. 8011670: 2b00 cmp r3, #0
  40762. 8011672: d00b beq.n 801168c <HAL_UART_IRQHandler+0x128>
  40763. {
  40764. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  40765. 8011674: 687b ldr r3, [r7, #4]
  40766. 8011676: 681b ldr r3, [r3, #0]
  40767. 8011678: 2204 movs r2, #4
  40768. 801167a: 621a str r2, [r3, #32]
  40769. huart->ErrorCode |= HAL_UART_ERROR_NE;
  40770. 801167c: 687b ldr r3, [r7, #4]
  40771. 801167e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40772. 8011682: f043 0202 orr.w r2, r3, #2
  40773. 8011686: 687b ldr r3, [r7, #4]
  40774. 8011688: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40775. }
  40776. /* UART Over-Run interrupt occurred -----------------------------------------*/
  40777. if (((isrflags & USART_ISR_ORE) != 0U)
  40778. 801168c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40779. 8011690: f003 0308 and.w r3, r3, #8
  40780. 8011694: 2b00 cmp r3, #0
  40781. 8011696: d017 beq.n 80116c8 <HAL_UART_IRQHandler+0x164>
  40782. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40783. 8011698: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40784. 801169c: f003 0320 and.w r3, r3, #32
  40785. 80116a0: 2b00 cmp r3, #0
  40786. 80116a2: d105 bne.n 80116b0 <HAL_UART_IRQHandler+0x14c>
  40787. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  40788. 80116a4: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40789. 80116a8: 4b5c ldr r3, [pc, #368] @ (801181c <HAL_UART_IRQHandler+0x2b8>)
  40790. 80116aa: 4013 ands r3, r2
  40791. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40792. 80116ac: 2b00 cmp r3, #0
  40793. 80116ae: d00b beq.n 80116c8 <HAL_UART_IRQHandler+0x164>
  40794. {
  40795. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  40796. 80116b0: 687b ldr r3, [r7, #4]
  40797. 80116b2: 681b ldr r3, [r3, #0]
  40798. 80116b4: 2208 movs r2, #8
  40799. 80116b6: 621a str r2, [r3, #32]
  40800. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  40801. 80116b8: 687b ldr r3, [r7, #4]
  40802. 80116ba: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40803. 80116be: f043 0208 orr.w r2, r3, #8
  40804. 80116c2: 687b ldr r3, [r7, #4]
  40805. 80116c4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40806. }
  40807. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  40808. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  40809. 80116c8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40810. 80116cc: f403 6300 and.w r3, r3, #2048 @ 0x800
  40811. 80116d0: 2b00 cmp r3, #0
  40812. 80116d2: d012 beq.n 80116fa <HAL_UART_IRQHandler+0x196>
  40813. 80116d4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40814. 80116d8: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  40815. 80116dc: 2b00 cmp r3, #0
  40816. 80116de: d00c beq.n 80116fa <HAL_UART_IRQHandler+0x196>
  40817. {
  40818. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  40819. 80116e0: 687b ldr r3, [r7, #4]
  40820. 80116e2: 681b ldr r3, [r3, #0]
  40821. 80116e4: f44f 6200 mov.w r2, #2048 @ 0x800
  40822. 80116e8: 621a str r2, [r3, #32]
  40823. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  40824. 80116ea: 687b ldr r3, [r7, #4]
  40825. 80116ec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40826. 80116f0: f043 0220 orr.w r2, r3, #32
  40827. 80116f4: 687b ldr r3, [r7, #4]
  40828. 80116f6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40829. }
  40830. /* Call UART Error Call back function if need be ----------------------------*/
  40831. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  40832. 80116fa: 687b ldr r3, [r7, #4]
  40833. 80116fc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40834. 8011700: 2b00 cmp r3, #0
  40835. 8011702: f000 82dd beq.w 8011cc0 <HAL_UART_IRQHandler+0x75c>
  40836. {
  40837. /* UART in mode Receiver --------------------------------------------------*/
  40838. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40839. 8011706: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40840. 801170a: f003 0320 and.w r3, r3, #32
  40841. 801170e: 2b00 cmp r3, #0
  40842. 8011710: d013 beq.n 801173a <HAL_UART_IRQHandler+0x1d6>
  40843. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40844. 8011712: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40845. 8011716: f003 0320 and.w r3, r3, #32
  40846. 801171a: 2b00 cmp r3, #0
  40847. 801171c: d105 bne.n 801172a <HAL_UART_IRQHandler+0x1c6>
  40848. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40849. 801171e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40850. 8011722: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40851. 8011726: 2b00 cmp r3, #0
  40852. 8011728: d007 beq.n 801173a <HAL_UART_IRQHandler+0x1d6>
  40853. {
  40854. if (huart->RxISR != NULL)
  40855. 801172a: 687b ldr r3, [r7, #4]
  40856. 801172c: 6f5b ldr r3, [r3, #116] @ 0x74
  40857. 801172e: 2b00 cmp r3, #0
  40858. 8011730: d003 beq.n 801173a <HAL_UART_IRQHandler+0x1d6>
  40859. {
  40860. huart->RxISR(huart);
  40861. 8011732: 687b ldr r3, [r7, #4]
  40862. 8011734: 6f5b ldr r3, [r3, #116] @ 0x74
  40863. 8011736: 6878 ldr r0, [r7, #4]
  40864. 8011738: 4798 blx r3
  40865. /* If Error is to be considered as blocking :
  40866. - Receiver Timeout error in Reception
  40867. - Overrun error in Reception
  40868. - any error occurs in DMA mode reception
  40869. */
  40870. errorcode = huart->ErrorCode;
  40871. 801173a: 687b ldr r3, [r7, #4]
  40872. 801173c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40873. 8011740: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40874. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40875. 8011744: 687b ldr r3, [r7, #4]
  40876. 8011746: 681b ldr r3, [r3, #0]
  40877. 8011748: 689b ldr r3, [r3, #8]
  40878. 801174a: f003 0340 and.w r3, r3, #64 @ 0x40
  40879. 801174e: 2b40 cmp r3, #64 @ 0x40
  40880. 8011750: d005 beq.n 801175e <HAL_UART_IRQHandler+0x1fa>
  40881. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40882. 8011752: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40883. 8011756: f003 0328 and.w r3, r3, #40 @ 0x28
  40884. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40885. 801175a: 2b00 cmp r3, #0
  40886. 801175c: d054 beq.n 8011808 <HAL_UART_IRQHandler+0x2a4>
  40887. {
  40888. /* Blocking error : transfer is aborted
  40889. Set the UART state ready to be able to start again the process,
  40890. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40891. UART_EndRxTransfer(huart);
  40892. 801175e: 6878 ldr r0, [r7, #4]
  40893. 8011760: f001 fb08 bl 8012d74 <UART_EndRxTransfer>
  40894. /* Abort the UART DMA Rx channel if enabled */
  40895. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40896. 8011764: 687b ldr r3, [r7, #4]
  40897. 8011766: 681b ldr r3, [r3, #0]
  40898. 8011768: 689b ldr r3, [r3, #8]
  40899. 801176a: f003 0340 and.w r3, r3, #64 @ 0x40
  40900. 801176e: 2b40 cmp r3, #64 @ 0x40
  40901. 8011770: d146 bne.n 8011800 <HAL_UART_IRQHandler+0x29c>
  40902. {
  40903. /* Disable the UART DMA Rx request if enabled */
  40904. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40905. 8011772: 687b ldr r3, [r7, #4]
  40906. 8011774: 681b ldr r3, [r3, #0]
  40907. 8011776: 3308 adds r3, #8
  40908. 8011778: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40909. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40910. 801177c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40911. 8011780: e853 3f00 ldrex r3, [r3]
  40912. 8011784: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40913. return(result);
  40914. 8011788: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40915. 801178c: f023 0340 bic.w r3, r3, #64 @ 0x40
  40916. 8011790: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40917. 8011794: 687b ldr r3, [r7, #4]
  40918. 8011796: 681b ldr r3, [r3, #0]
  40919. 8011798: 3308 adds r3, #8
  40920. 801179a: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40921. 801179e: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40922. 80117a2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40923. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40924. 80117a6: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40925. 80117aa: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40926. 80117ae: e841 2300 strex r3, r2, [r1]
  40927. 80117b2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40928. return(result);
  40929. 80117b6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40930. 80117ba: 2b00 cmp r3, #0
  40931. 80117bc: d1d9 bne.n 8011772 <HAL_UART_IRQHandler+0x20e>
  40932. /* Abort the UART DMA Rx channel */
  40933. if (huart->hdmarx != NULL)
  40934. 80117be: 687b ldr r3, [r7, #4]
  40935. 80117c0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40936. 80117c4: 2b00 cmp r3, #0
  40937. 80117c6: d017 beq.n 80117f8 <HAL_UART_IRQHandler+0x294>
  40938. {
  40939. /* Set the UART DMA Abort callback :
  40940. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  40941. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  40942. 80117c8: 687b ldr r3, [r7, #4]
  40943. 80117ca: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40944. 80117ce: 4a15 ldr r2, [pc, #84] @ (8011824 <HAL_UART_IRQHandler+0x2c0>)
  40945. 80117d0: 651a str r2, [r3, #80] @ 0x50
  40946. /* Abort DMA RX */
  40947. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  40948. 80117d2: 687b ldr r3, [r7, #4]
  40949. 80117d4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40950. 80117d8: 4618 mov r0, r3
  40951. 80117da: f7f7 ff8f bl 80096fc <HAL_DMA_Abort_IT>
  40952. 80117de: 4603 mov r3, r0
  40953. 80117e0: 2b00 cmp r3, #0
  40954. 80117e2: d019 beq.n 8011818 <HAL_UART_IRQHandler+0x2b4>
  40955. {
  40956. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  40957. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  40958. 80117e4: 687b ldr r3, [r7, #4]
  40959. 80117e6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40960. 80117ea: 6d1b ldr r3, [r3, #80] @ 0x50
  40961. 80117ec: 687a ldr r2, [r7, #4]
  40962. 80117ee: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  40963. 80117f2: 4610 mov r0, r2
  40964. 80117f4: 4798 blx r3
  40965. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40966. 80117f6: e00f b.n 8011818 <HAL_UART_IRQHandler+0x2b4>
  40967. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40968. /*Call registered error callback*/
  40969. huart->ErrorCallback(huart);
  40970. #else
  40971. /*Call legacy weak error callback*/
  40972. HAL_UART_ErrorCallback(huart);
  40973. 80117f8: 6878 ldr r0, [r7, #4]
  40974. 80117fa: f000 fa6d bl 8011cd8 <HAL_UART_ErrorCallback>
  40975. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40976. 80117fe: e00b b.n 8011818 <HAL_UART_IRQHandler+0x2b4>
  40977. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40978. /*Call registered error callback*/
  40979. huart->ErrorCallback(huart);
  40980. #else
  40981. /*Call legacy weak error callback*/
  40982. HAL_UART_ErrorCallback(huart);
  40983. 8011800: 6878 ldr r0, [r7, #4]
  40984. 8011802: f000 fa69 bl 8011cd8 <HAL_UART_ErrorCallback>
  40985. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40986. 8011806: e007 b.n 8011818 <HAL_UART_IRQHandler+0x2b4>
  40987. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40988. /*Call registered error callback*/
  40989. huart->ErrorCallback(huart);
  40990. #else
  40991. /*Call legacy weak error callback*/
  40992. HAL_UART_ErrorCallback(huart);
  40993. 8011808: 6878 ldr r0, [r7, #4]
  40994. 801180a: f000 fa65 bl 8011cd8 <HAL_UART_ErrorCallback>
  40995. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40996. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40997. 801180e: 687b ldr r3, [r7, #4]
  40998. 8011810: 2200 movs r2, #0
  40999. 8011812: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41000. }
  41001. }
  41002. return;
  41003. 8011816: e253 b.n 8011cc0 <HAL_UART_IRQHandler+0x75c>
  41004. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41005. 8011818: bf00 nop
  41006. return;
  41007. 801181a: e251 b.n 8011cc0 <HAL_UART_IRQHandler+0x75c>
  41008. 801181c: 10000001 .word 0x10000001
  41009. 8011820: 04000120 .word 0x04000120
  41010. 8011824: 08012e41 .word 0x08012e41
  41011. } /* End if some error occurs */
  41012. /* Check current reception Mode :
  41013. If Reception till IDLE event has been selected : */
  41014. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  41015. 8011828: 687b ldr r3, [r7, #4]
  41016. 801182a: 6edb ldr r3, [r3, #108] @ 0x6c
  41017. 801182c: 2b01 cmp r3, #1
  41018. 801182e: f040 81e7 bne.w 8011c00 <HAL_UART_IRQHandler+0x69c>
  41019. && ((isrflags & USART_ISR_IDLE) != 0U)
  41020. 8011832: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41021. 8011836: f003 0310 and.w r3, r3, #16
  41022. 801183a: 2b00 cmp r3, #0
  41023. 801183c: f000 81e0 beq.w 8011c00 <HAL_UART_IRQHandler+0x69c>
  41024. && ((cr1its & USART_ISR_IDLE) != 0U))
  41025. 8011840: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41026. 8011844: f003 0310 and.w r3, r3, #16
  41027. 8011848: 2b00 cmp r3, #0
  41028. 801184a: f000 81d9 beq.w 8011c00 <HAL_UART_IRQHandler+0x69c>
  41029. {
  41030. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  41031. 801184e: 687b ldr r3, [r7, #4]
  41032. 8011850: 681b ldr r3, [r3, #0]
  41033. 8011852: 2210 movs r2, #16
  41034. 8011854: 621a str r2, [r3, #32]
  41035. /* Check if DMA mode is enabled in UART */
  41036. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41037. 8011856: 687b ldr r3, [r7, #4]
  41038. 8011858: 681b ldr r3, [r3, #0]
  41039. 801185a: 689b ldr r3, [r3, #8]
  41040. 801185c: f003 0340 and.w r3, r3, #64 @ 0x40
  41041. 8011860: 2b40 cmp r3, #64 @ 0x40
  41042. 8011862: f040 8151 bne.w 8011b08 <HAL_UART_IRQHandler+0x5a4>
  41043. {
  41044. /* DMA mode enabled */
  41045. /* Check received length : If all expected data are received, do nothing,
  41046. (DMA cplt callback will be called).
  41047. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41048. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  41049. 8011866: 687b ldr r3, [r7, #4]
  41050. 8011868: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41051. 801186c: 681b ldr r3, [r3, #0]
  41052. 801186e: 4a96 ldr r2, [pc, #600] @ (8011ac8 <HAL_UART_IRQHandler+0x564>)
  41053. 8011870: 4293 cmp r3, r2
  41054. 8011872: d068 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41055. 8011874: 687b ldr r3, [r7, #4]
  41056. 8011876: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41057. 801187a: 681b ldr r3, [r3, #0]
  41058. 801187c: 4a93 ldr r2, [pc, #588] @ (8011acc <HAL_UART_IRQHandler+0x568>)
  41059. 801187e: 4293 cmp r3, r2
  41060. 8011880: d061 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41061. 8011882: 687b ldr r3, [r7, #4]
  41062. 8011884: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41063. 8011888: 681b ldr r3, [r3, #0]
  41064. 801188a: 4a91 ldr r2, [pc, #580] @ (8011ad0 <HAL_UART_IRQHandler+0x56c>)
  41065. 801188c: 4293 cmp r3, r2
  41066. 801188e: d05a beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41067. 8011890: 687b ldr r3, [r7, #4]
  41068. 8011892: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41069. 8011896: 681b ldr r3, [r3, #0]
  41070. 8011898: 4a8e ldr r2, [pc, #568] @ (8011ad4 <HAL_UART_IRQHandler+0x570>)
  41071. 801189a: 4293 cmp r3, r2
  41072. 801189c: d053 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41073. 801189e: 687b ldr r3, [r7, #4]
  41074. 80118a0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41075. 80118a4: 681b ldr r3, [r3, #0]
  41076. 80118a6: 4a8c ldr r2, [pc, #560] @ (8011ad8 <HAL_UART_IRQHandler+0x574>)
  41077. 80118a8: 4293 cmp r3, r2
  41078. 80118aa: d04c beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41079. 80118ac: 687b ldr r3, [r7, #4]
  41080. 80118ae: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41081. 80118b2: 681b ldr r3, [r3, #0]
  41082. 80118b4: 4a89 ldr r2, [pc, #548] @ (8011adc <HAL_UART_IRQHandler+0x578>)
  41083. 80118b6: 4293 cmp r3, r2
  41084. 80118b8: d045 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41085. 80118ba: 687b ldr r3, [r7, #4]
  41086. 80118bc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41087. 80118c0: 681b ldr r3, [r3, #0]
  41088. 80118c2: 4a87 ldr r2, [pc, #540] @ (8011ae0 <HAL_UART_IRQHandler+0x57c>)
  41089. 80118c4: 4293 cmp r3, r2
  41090. 80118c6: d03e beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41091. 80118c8: 687b ldr r3, [r7, #4]
  41092. 80118ca: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41093. 80118ce: 681b ldr r3, [r3, #0]
  41094. 80118d0: 4a84 ldr r2, [pc, #528] @ (8011ae4 <HAL_UART_IRQHandler+0x580>)
  41095. 80118d2: 4293 cmp r3, r2
  41096. 80118d4: d037 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41097. 80118d6: 687b ldr r3, [r7, #4]
  41098. 80118d8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41099. 80118dc: 681b ldr r3, [r3, #0]
  41100. 80118de: 4a82 ldr r2, [pc, #520] @ (8011ae8 <HAL_UART_IRQHandler+0x584>)
  41101. 80118e0: 4293 cmp r3, r2
  41102. 80118e2: d030 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41103. 80118e4: 687b ldr r3, [r7, #4]
  41104. 80118e6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41105. 80118ea: 681b ldr r3, [r3, #0]
  41106. 80118ec: 4a7f ldr r2, [pc, #508] @ (8011aec <HAL_UART_IRQHandler+0x588>)
  41107. 80118ee: 4293 cmp r3, r2
  41108. 80118f0: d029 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41109. 80118f2: 687b ldr r3, [r7, #4]
  41110. 80118f4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41111. 80118f8: 681b ldr r3, [r3, #0]
  41112. 80118fa: 4a7d ldr r2, [pc, #500] @ (8011af0 <HAL_UART_IRQHandler+0x58c>)
  41113. 80118fc: 4293 cmp r3, r2
  41114. 80118fe: d022 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41115. 8011900: 687b ldr r3, [r7, #4]
  41116. 8011902: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41117. 8011906: 681b ldr r3, [r3, #0]
  41118. 8011908: 4a7a ldr r2, [pc, #488] @ (8011af4 <HAL_UART_IRQHandler+0x590>)
  41119. 801190a: 4293 cmp r3, r2
  41120. 801190c: d01b beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41121. 801190e: 687b ldr r3, [r7, #4]
  41122. 8011910: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41123. 8011914: 681b ldr r3, [r3, #0]
  41124. 8011916: 4a78 ldr r2, [pc, #480] @ (8011af8 <HAL_UART_IRQHandler+0x594>)
  41125. 8011918: 4293 cmp r3, r2
  41126. 801191a: d014 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41127. 801191c: 687b ldr r3, [r7, #4]
  41128. 801191e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41129. 8011922: 681b ldr r3, [r3, #0]
  41130. 8011924: 4a75 ldr r2, [pc, #468] @ (8011afc <HAL_UART_IRQHandler+0x598>)
  41131. 8011926: 4293 cmp r3, r2
  41132. 8011928: d00d beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41133. 801192a: 687b ldr r3, [r7, #4]
  41134. 801192c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41135. 8011930: 681b ldr r3, [r3, #0]
  41136. 8011932: 4a73 ldr r2, [pc, #460] @ (8011b00 <HAL_UART_IRQHandler+0x59c>)
  41137. 8011934: 4293 cmp r3, r2
  41138. 8011936: d006 beq.n 8011946 <HAL_UART_IRQHandler+0x3e2>
  41139. 8011938: 687b ldr r3, [r7, #4]
  41140. 801193a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41141. 801193e: 681b ldr r3, [r3, #0]
  41142. 8011940: 4a70 ldr r2, [pc, #448] @ (8011b04 <HAL_UART_IRQHandler+0x5a0>)
  41143. 8011942: 4293 cmp r3, r2
  41144. 8011944: d106 bne.n 8011954 <HAL_UART_IRQHandler+0x3f0>
  41145. 8011946: 687b ldr r3, [r7, #4]
  41146. 8011948: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41147. 801194c: 681b ldr r3, [r3, #0]
  41148. 801194e: 685b ldr r3, [r3, #4]
  41149. 8011950: b29b uxth r3, r3
  41150. 8011952: e005 b.n 8011960 <HAL_UART_IRQHandler+0x3fc>
  41151. 8011954: 687b ldr r3, [r7, #4]
  41152. 8011956: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41153. 801195a: 681b ldr r3, [r3, #0]
  41154. 801195c: 685b ldr r3, [r3, #4]
  41155. 801195e: b29b uxth r3, r3
  41156. 8011960: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  41157. if ((nb_remaining_rx_data > 0U)
  41158. 8011964: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  41159. 8011968: 2b00 cmp r3, #0
  41160. 801196a: f000 81ab beq.w 8011cc4 <HAL_UART_IRQHandler+0x760>
  41161. && (nb_remaining_rx_data < huart->RxXferSize))
  41162. 801196e: 687b ldr r3, [r7, #4]
  41163. 8011970: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  41164. 8011974: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41165. 8011978: 429a cmp r2, r3
  41166. 801197a: f080 81a3 bcs.w 8011cc4 <HAL_UART_IRQHandler+0x760>
  41167. {
  41168. /* Reception is not complete */
  41169. huart->RxXferCount = nb_remaining_rx_data;
  41170. 801197e: 687b ldr r3, [r7, #4]
  41171. 8011980: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41172. 8011984: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  41173. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  41174. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  41175. 8011988: 687b ldr r3, [r7, #4]
  41176. 801198a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41177. 801198e: 69db ldr r3, [r3, #28]
  41178. 8011990: f5b3 7f80 cmp.w r3, #256 @ 0x100
  41179. 8011994: f000 8087 beq.w 8011aa6 <HAL_UART_IRQHandler+0x542>
  41180. {
  41181. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  41182. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  41183. 8011998: 687b ldr r3, [r7, #4]
  41184. 801199a: 681b ldr r3, [r3, #0]
  41185. 801199c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  41186. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41187. 80119a0: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  41188. 80119a4: e853 3f00 ldrex r3, [r3]
  41189. 80119a8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  41190. return(result);
  41191. 80119ac: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  41192. 80119b0: f423 7380 bic.w r3, r3, #256 @ 0x100
  41193. 80119b4: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  41194. 80119b8: 687b ldr r3, [r7, #4]
  41195. 80119ba: 681b ldr r3, [r3, #0]
  41196. 80119bc: 461a mov r2, r3
  41197. 80119be: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  41198. 80119c2: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  41199. 80119c6: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  41200. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41201. 80119ca: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  41202. 80119ce: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  41203. 80119d2: e841 2300 strex r3, r2, [r1]
  41204. 80119d6: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  41205. return(result);
  41206. 80119da: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  41207. 80119de: 2b00 cmp r3, #0
  41208. 80119e0: d1da bne.n 8011998 <HAL_UART_IRQHandler+0x434>
  41209. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41210. 80119e2: 687b ldr r3, [r7, #4]
  41211. 80119e4: 681b ldr r3, [r3, #0]
  41212. 80119e6: 3308 adds r3, #8
  41213. 80119e8: 677b str r3, [r7, #116] @ 0x74
  41214. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41215. 80119ea: 6f7b ldr r3, [r7, #116] @ 0x74
  41216. 80119ec: e853 3f00 ldrex r3, [r3]
  41217. 80119f0: 673b str r3, [r7, #112] @ 0x70
  41218. return(result);
  41219. 80119f2: 6f3b ldr r3, [r7, #112] @ 0x70
  41220. 80119f4: f023 0301 bic.w r3, r3, #1
  41221. 80119f8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  41222. 80119fc: 687b ldr r3, [r7, #4]
  41223. 80119fe: 681b ldr r3, [r3, #0]
  41224. 8011a00: 3308 adds r3, #8
  41225. 8011a02: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  41226. 8011a06: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  41227. 8011a0a: 67fb str r3, [r7, #124] @ 0x7c
  41228. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41229. 8011a0c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  41230. 8011a0e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  41231. 8011a12: e841 2300 strex r3, r2, [r1]
  41232. 8011a16: 67bb str r3, [r7, #120] @ 0x78
  41233. return(result);
  41234. 8011a18: 6fbb ldr r3, [r7, #120] @ 0x78
  41235. 8011a1a: 2b00 cmp r3, #0
  41236. 8011a1c: d1e1 bne.n 80119e2 <HAL_UART_IRQHandler+0x47e>
  41237. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  41238. in the UART CR3 register */
  41239. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  41240. 8011a1e: 687b ldr r3, [r7, #4]
  41241. 8011a20: 681b ldr r3, [r3, #0]
  41242. 8011a22: 3308 adds r3, #8
  41243. 8011a24: 663b str r3, [r7, #96] @ 0x60
  41244. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41245. 8011a26: 6e3b ldr r3, [r7, #96] @ 0x60
  41246. 8011a28: e853 3f00 ldrex r3, [r3]
  41247. 8011a2c: 65fb str r3, [r7, #92] @ 0x5c
  41248. return(result);
  41249. 8011a2e: 6dfb ldr r3, [r7, #92] @ 0x5c
  41250. 8011a30: f023 0340 bic.w r3, r3, #64 @ 0x40
  41251. 8011a34: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  41252. 8011a38: 687b ldr r3, [r7, #4]
  41253. 8011a3a: 681b ldr r3, [r3, #0]
  41254. 8011a3c: 3308 adds r3, #8
  41255. 8011a3e: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  41256. 8011a42: 66fa str r2, [r7, #108] @ 0x6c
  41257. 8011a44: 66bb str r3, [r7, #104] @ 0x68
  41258. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41259. 8011a46: 6eb9 ldr r1, [r7, #104] @ 0x68
  41260. 8011a48: 6efa ldr r2, [r7, #108] @ 0x6c
  41261. 8011a4a: e841 2300 strex r3, r2, [r1]
  41262. 8011a4e: 667b str r3, [r7, #100] @ 0x64
  41263. return(result);
  41264. 8011a50: 6e7b ldr r3, [r7, #100] @ 0x64
  41265. 8011a52: 2b00 cmp r3, #0
  41266. 8011a54: d1e3 bne.n 8011a1e <HAL_UART_IRQHandler+0x4ba>
  41267. /* At end of Rx process, restore huart->RxState to Ready */
  41268. huart->RxState = HAL_UART_STATE_READY;
  41269. 8011a56: 687b ldr r3, [r7, #4]
  41270. 8011a58: 2220 movs r2, #32
  41271. 8011a5a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41272. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41273. 8011a5e: 687b ldr r3, [r7, #4]
  41274. 8011a60: 2200 movs r2, #0
  41275. 8011a62: 66da str r2, [r3, #108] @ 0x6c
  41276. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41277. 8011a64: 687b ldr r3, [r7, #4]
  41278. 8011a66: 681b ldr r3, [r3, #0]
  41279. 8011a68: 64fb str r3, [r7, #76] @ 0x4c
  41280. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41281. 8011a6a: 6cfb ldr r3, [r7, #76] @ 0x4c
  41282. 8011a6c: e853 3f00 ldrex r3, [r3]
  41283. 8011a70: 64bb str r3, [r7, #72] @ 0x48
  41284. return(result);
  41285. 8011a72: 6cbb ldr r3, [r7, #72] @ 0x48
  41286. 8011a74: f023 0310 bic.w r3, r3, #16
  41287. 8011a78: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  41288. 8011a7c: 687b ldr r3, [r7, #4]
  41289. 8011a7e: 681b ldr r3, [r3, #0]
  41290. 8011a80: 461a mov r2, r3
  41291. 8011a82: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  41292. 8011a86: 65bb str r3, [r7, #88] @ 0x58
  41293. 8011a88: 657a str r2, [r7, #84] @ 0x54
  41294. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41295. 8011a8a: 6d79 ldr r1, [r7, #84] @ 0x54
  41296. 8011a8c: 6dba ldr r2, [r7, #88] @ 0x58
  41297. 8011a8e: e841 2300 strex r3, r2, [r1]
  41298. 8011a92: 653b str r3, [r7, #80] @ 0x50
  41299. return(result);
  41300. 8011a94: 6d3b ldr r3, [r7, #80] @ 0x50
  41301. 8011a96: 2b00 cmp r3, #0
  41302. 8011a98: d1e4 bne.n 8011a64 <HAL_UART_IRQHandler+0x500>
  41303. /* Last bytes received, so no need as the abort is immediate */
  41304. (void)HAL_DMA_Abort(huart->hdmarx);
  41305. 8011a9a: 687b ldr r3, [r7, #4]
  41306. 8011a9c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41307. 8011aa0: 4618 mov r0, r3
  41308. 8011aa2: f7f7 fb0d bl 80090c0 <HAL_DMA_Abort>
  41309. }
  41310. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41311. In this case, Rx Event type is Idle Event */
  41312. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41313. 8011aa6: 687b ldr r3, [r7, #4]
  41314. 8011aa8: 2202 movs r2, #2
  41315. 8011aaa: 671a str r2, [r3, #112] @ 0x70
  41316. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41317. /*Call registered Rx Event callback*/
  41318. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41319. #else
  41320. /*Call legacy weak Rx Event callback*/
  41321. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41322. 8011aac: 687b ldr r3, [r7, #4]
  41323. 8011aae: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41324. 8011ab2: 687b ldr r3, [r7, #4]
  41325. 8011ab4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41326. 8011ab8: b29b uxth r3, r3
  41327. 8011aba: 1ad3 subs r3, r2, r3
  41328. 8011abc: b29b uxth r3, r3
  41329. 8011abe: 4619 mov r1, r3
  41330. 8011ac0: 6878 ldr r0, [r7, #4]
  41331. 8011ac2: f7f2 ffff bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  41332. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41333. }
  41334. return;
  41335. 8011ac6: e0fd b.n 8011cc4 <HAL_UART_IRQHandler+0x760>
  41336. 8011ac8: 40020010 .word 0x40020010
  41337. 8011acc: 40020028 .word 0x40020028
  41338. 8011ad0: 40020040 .word 0x40020040
  41339. 8011ad4: 40020058 .word 0x40020058
  41340. 8011ad8: 40020070 .word 0x40020070
  41341. 8011adc: 40020088 .word 0x40020088
  41342. 8011ae0: 400200a0 .word 0x400200a0
  41343. 8011ae4: 400200b8 .word 0x400200b8
  41344. 8011ae8: 40020410 .word 0x40020410
  41345. 8011aec: 40020428 .word 0x40020428
  41346. 8011af0: 40020440 .word 0x40020440
  41347. 8011af4: 40020458 .word 0x40020458
  41348. 8011af8: 40020470 .word 0x40020470
  41349. 8011afc: 40020488 .word 0x40020488
  41350. 8011b00: 400204a0 .word 0x400204a0
  41351. 8011b04: 400204b8 .word 0x400204b8
  41352. else
  41353. {
  41354. /* DMA mode not enabled */
  41355. /* Check received length : If all expected data are received, do nothing.
  41356. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41357. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  41358. 8011b08: 687b ldr r3, [r7, #4]
  41359. 8011b0a: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41360. 8011b0e: 687b ldr r3, [r7, #4]
  41361. 8011b10: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41362. 8011b14: b29b uxth r3, r3
  41363. 8011b16: 1ad3 subs r3, r2, r3
  41364. 8011b18: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  41365. if ((huart->RxXferCount > 0U)
  41366. 8011b1c: 687b ldr r3, [r7, #4]
  41367. 8011b1e: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41368. 8011b22: b29b uxth r3, r3
  41369. 8011b24: 2b00 cmp r3, #0
  41370. 8011b26: f000 80cf beq.w 8011cc8 <HAL_UART_IRQHandler+0x764>
  41371. && (nb_rx_data > 0U))
  41372. 8011b2a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41373. 8011b2e: 2b00 cmp r3, #0
  41374. 8011b30: f000 80ca beq.w 8011cc8 <HAL_UART_IRQHandler+0x764>
  41375. {
  41376. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  41377. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41378. 8011b34: 687b ldr r3, [r7, #4]
  41379. 8011b36: 681b ldr r3, [r3, #0]
  41380. 8011b38: 63bb str r3, [r7, #56] @ 0x38
  41381. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41382. 8011b3a: 6bbb ldr r3, [r7, #56] @ 0x38
  41383. 8011b3c: e853 3f00 ldrex r3, [r3]
  41384. 8011b40: 637b str r3, [r7, #52] @ 0x34
  41385. return(result);
  41386. 8011b42: 6b7b ldr r3, [r7, #52] @ 0x34
  41387. 8011b44: f423 7390 bic.w r3, r3, #288 @ 0x120
  41388. 8011b48: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  41389. 8011b4c: 687b ldr r3, [r7, #4]
  41390. 8011b4e: 681b ldr r3, [r3, #0]
  41391. 8011b50: 461a mov r2, r3
  41392. 8011b52: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  41393. 8011b56: 647b str r3, [r7, #68] @ 0x44
  41394. 8011b58: 643a str r2, [r7, #64] @ 0x40
  41395. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41396. 8011b5a: 6c39 ldr r1, [r7, #64] @ 0x40
  41397. 8011b5c: 6c7a ldr r2, [r7, #68] @ 0x44
  41398. 8011b5e: e841 2300 strex r3, r2, [r1]
  41399. 8011b62: 63fb str r3, [r7, #60] @ 0x3c
  41400. return(result);
  41401. 8011b64: 6bfb ldr r3, [r7, #60] @ 0x3c
  41402. 8011b66: 2b00 cmp r3, #0
  41403. 8011b68: d1e4 bne.n 8011b34 <HAL_UART_IRQHandler+0x5d0>
  41404. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  41405. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  41406. 8011b6a: 687b ldr r3, [r7, #4]
  41407. 8011b6c: 681b ldr r3, [r3, #0]
  41408. 8011b6e: 3308 adds r3, #8
  41409. 8011b70: 627b str r3, [r7, #36] @ 0x24
  41410. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41411. 8011b72: 6a7b ldr r3, [r7, #36] @ 0x24
  41412. 8011b74: e853 3f00 ldrex r3, [r3]
  41413. 8011b78: 623b str r3, [r7, #32]
  41414. return(result);
  41415. 8011b7a: 6a3a ldr r2, [r7, #32]
  41416. 8011b7c: 4b55 ldr r3, [pc, #340] @ (8011cd4 <HAL_UART_IRQHandler+0x770>)
  41417. 8011b7e: 4013 ands r3, r2
  41418. 8011b80: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  41419. 8011b84: 687b ldr r3, [r7, #4]
  41420. 8011b86: 681b ldr r3, [r3, #0]
  41421. 8011b88: 3308 adds r3, #8
  41422. 8011b8a: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  41423. 8011b8e: 633a str r2, [r7, #48] @ 0x30
  41424. 8011b90: 62fb str r3, [r7, #44] @ 0x2c
  41425. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41426. 8011b92: 6af9 ldr r1, [r7, #44] @ 0x2c
  41427. 8011b94: 6b3a ldr r2, [r7, #48] @ 0x30
  41428. 8011b96: e841 2300 strex r3, r2, [r1]
  41429. 8011b9a: 62bb str r3, [r7, #40] @ 0x28
  41430. return(result);
  41431. 8011b9c: 6abb ldr r3, [r7, #40] @ 0x28
  41432. 8011b9e: 2b00 cmp r3, #0
  41433. 8011ba0: d1e3 bne.n 8011b6a <HAL_UART_IRQHandler+0x606>
  41434. /* Rx process is completed, restore huart->RxState to Ready */
  41435. huart->RxState = HAL_UART_STATE_READY;
  41436. 8011ba2: 687b ldr r3, [r7, #4]
  41437. 8011ba4: 2220 movs r2, #32
  41438. 8011ba6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41439. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41440. 8011baa: 687b ldr r3, [r7, #4]
  41441. 8011bac: 2200 movs r2, #0
  41442. 8011bae: 66da str r2, [r3, #108] @ 0x6c
  41443. /* Clear RxISR function pointer */
  41444. huart->RxISR = NULL;
  41445. 8011bb0: 687b ldr r3, [r7, #4]
  41446. 8011bb2: 2200 movs r2, #0
  41447. 8011bb4: 675a str r2, [r3, #116] @ 0x74
  41448. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41449. 8011bb6: 687b ldr r3, [r7, #4]
  41450. 8011bb8: 681b ldr r3, [r3, #0]
  41451. 8011bba: 613b str r3, [r7, #16]
  41452. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41453. 8011bbc: 693b ldr r3, [r7, #16]
  41454. 8011bbe: e853 3f00 ldrex r3, [r3]
  41455. 8011bc2: 60fb str r3, [r7, #12]
  41456. return(result);
  41457. 8011bc4: 68fb ldr r3, [r7, #12]
  41458. 8011bc6: f023 0310 bic.w r3, r3, #16
  41459. 8011bca: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  41460. 8011bce: 687b ldr r3, [r7, #4]
  41461. 8011bd0: 681b ldr r3, [r3, #0]
  41462. 8011bd2: 461a mov r2, r3
  41463. 8011bd4: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  41464. 8011bd8: 61fb str r3, [r7, #28]
  41465. 8011bda: 61ba str r2, [r7, #24]
  41466. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41467. 8011bdc: 69b9 ldr r1, [r7, #24]
  41468. 8011bde: 69fa ldr r2, [r7, #28]
  41469. 8011be0: e841 2300 strex r3, r2, [r1]
  41470. 8011be4: 617b str r3, [r7, #20]
  41471. return(result);
  41472. 8011be6: 697b ldr r3, [r7, #20]
  41473. 8011be8: 2b00 cmp r3, #0
  41474. 8011bea: d1e4 bne.n 8011bb6 <HAL_UART_IRQHandler+0x652>
  41475. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41476. In this case, Rx Event type is Idle Event */
  41477. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41478. 8011bec: 687b ldr r3, [r7, #4]
  41479. 8011bee: 2202 movs r2, #2
  41480. 8011bf0: 671a str r2, [r3, #112] @ 0x70
  41481. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41482. /*Call registered Rx complete callback*/
  41483. huart->RxEventCallback(huart, nb_rx_data);
  41484. #else
  41485. /*Call legacy weak Rx Event callback*/
  41486. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  41487. 8011bf2: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41488. 8011bf6: 4619 mov r1, r3
  41489. 8011bf8: 6878 ldr r0, [r7, #4]
  41490. 8011bfa: f7f2 ff63 bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  41491. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41492. }
  41493. return;
  41494. 8011bfe: e063 b.n 8011cc8 <HAL_UART_IRQHandler+0x764>
  41495. }
  41496. }
  41497. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  41498. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  41499. 8011c00: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41500. 8011c04: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  41501. 8011c08: 2b00 cmp r3, #0
  41502. 8011c0a: d00e beq.n 8011c2a <HAL_UART_IRQHandler+0x6c6>
  41503. 8011c0c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41504. 8011c10: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  41505. 8011c14: 2b00 cmp r3, #0
  41506. 8011c16: d008 beq.n 8011c2a <HAL_UART_IRQHandler+0x6c6>
  41507. {
  41508. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  41509. 8011c18: 687b ldr r3, [r7, #4]
  41510. 8011c1a: 681b ldr r3, [r3, #0]
  41511. 8011c1c: f44f 1280 mov.w r2, #1048576 @ 0x100000
  41512. 8011c20: 621a str r2, [r3, #32]
  41513. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41514. /* Call registered Wakeup Callback */
  41515. huart->WakeupCallback(huart);
  41516. #else
  41517. /* Call legacy weak Wakeup Callback */
  41518. HAL_UARTEx_WakeupCallback(huart);
  41519. 8011c22: 6878 ldr r0, [r7, #4]
  41520. 8011c24: f002 f80c bl 8013c40 <HAL_UARTEx_WakeupCallback>
  41521. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41522. return;
  41523. 8011c28: e051 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41524. }
  41525. /* UART in mode Transmitter ------------------------------------------------*/
  41526. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  41527. 8011c2a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41528. 8011c2e: f003 0380 and.w r3, r3, #128 @ 0x80
  41529. 8011c32: 2b00 cmp r3, #0
  41530. 8011c34: d014 beq.n 8011c60 <HAL_UART_IRQHandler+0x6fc>
  41531. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  41532. 8011c36: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41533. 8011c3a: f003 0380 and.w r3, r3, #128 @ 0x80
  41534. 8011c3e: 2b00 cmp r3, #0
  41535. 8011c40: d105 bne.n 8011c4e <HAL_UART_IRQHandler+0x6ea>
  41536. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  41537. 8011c42: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41538. 8011c46: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41539. 8011c4a: 2b00 cmp r3, #0
  41540. 8011c4c: d008 beq.n 8011c60 <HAL_UART_IRQHandler+0x6fc>
  41541. {
  41542. if (huart->TxISR != NULL)
  41543. 8011c4e: 687b ldr r3, [r7, #4]
  41544. 8011c50: 6f9b ldr r3, [r3, #120] @ 0x78
  41545. 8011c52: 2b00 cmp r3, #0
  41546. 8011c54: d03a beq.n 8011ccc <HAL_UART_IRQHandler+0x768>
  41547. {
  41548. huart->TxISR(huart);
  41549. 8011c56: 687b ldr r3, [r7, #4]
  41550. 8011c58: 6f9b ldr r3, [r3, #120] @ 0x78
  41551. 8011c5a: 6878 ldr r0, [r7, #4]
  41552. 8011c5c: 4798 blx r3
  41553. }
  41554. return;
  41555. 8011c5e: e035 b.n 8011ccc <HAL_UART_IRQHandler+0x768>
  41556. }
  41557. /* UART in mode Transmitter (transmission end) -----------------------------*/
  41558. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  41559. 8011c60: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41560. 8011c64: f003 0340 and.w r3, r3, #64 @ 0x40
  41561. 8011c68: 2b00 cmp r3, #0
  41562. 8011c6a: d009 beq.n 8011c80 <HAL_UART_IRQHandler+0x71c>
  41563. 8011c6c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41564. 8011c70: f003 0340 and.w r3, r3, #64 @ 0x40
  41565. 8011c74: 2b00 cmp r3, #0
  41566. 8011c76: d003 beq.n 8011c80 <HAL_UART_IRQHandler+0x71c>
  41567. {
  41568. UART_EndTransmit_IT(huart);
  41569. 8011c78: 6878 ldr r0, [r7, #4]
  41570. 8011c7a: f001 fa99 bl 80131b0 <UART_EndTransmit_IT>
  41571. return;
  41572. 8011c7e: e026 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41573. }
  41574. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  41575. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  41576. 8011c80: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41577. 8011c84: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41578. 8011c88: 2b00 cmp r3, #0
  41579. 8011c8a: d009 beq.n 8011ca0 <HAL_UART_IRQHandler+0x73c>
  41580. 8011c8c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41581. 8011c90: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  41582. 8011c94: 2b00 cmp r3, #0
  41583. 8011c96: d003 beq.n 8011ca0 <HAL_UART_IRQHandler+0x73c>
  41584. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41585. /* Call registered Tx Fifo Empty Callback */
  41586. huart->TxFifoEmptyCallback(huart);
  41587. #else
  41588. /* Call legacy weak Tx Fifo Empty Callback */
  41589. HAL_UARTEx_TxFifoEmptyCallback(huart);
  41590. 8011c98: 6878 ldr r0, [r7, #4]
  41591. 8011c9a: f001 ffe5 bl 8013c68 <HAL_UARTEx_TxFifoEmptyCallback>
  41592. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41593. return;
  41594. 8011c9e: e016 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41595. }
  41596. /* UART RX Fifo Full occurred ----------------------------------------------*/
  41597. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  41598. 8011ca0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41599. 8011ca4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  41600. 8011ca8: 2b00 cmp r3, #0
  41601. 8011caa: d010 beq.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41602. 8011cac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41603. 8011cb0: 2b00 cmp r3, #0
  41604. 8011cb2: da0c bge.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41605. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41606. /* Call registered Rx Fifo Full Callback */
  41607. huart->RxFifoFullCallback(huart);
  41608. #else
  41609. /* Call legacy weak Rx Fifo Full Callback */
  41610. HAL_UARTEx_RxFifoFullCallback(huart);
  41611. 8011cb4: 6878 ldr r0, [r7, #4]
  41612. 8011cb6: f001 ffcd bl 8013c54 <HAL_UARTEx_RxFifoFullCallback>
  41613. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41614. return;
  41615. 8011cba: e008 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41616. return;
  41617. 8011cbc: bf00 nop
  41618. 8011cbe: e006 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41619. return;
  41620. 8011cc0: bf00 nop
  41621. 8011cc2: e004 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41622. return;
  41623. 8011cc4: bf00 nop
  41624. 8011cc6: e002 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41625. return;
  41626. 8011cc8: bf00 nop
  41627. 8011cca: e000 b.n 8011cce <HAL_UART_IRQHandler+0x76a>
  41628. return;
  41629. 8011ccc: bf00 nop
  41630. }
  41631. }
  41632. 8011cce: 37e8 adds r7, #232 @ 0xe8
  41633. 8011cd0: 46bd mov sp, r7
  41634. 8011cd2: bd80 pop {r7, pc}
  41635. 8011cd4: effffffe .word 0xeffffffe
  41636. 08011cd8 <HAL_UART_ErrorCallback>:
  41637. * @brief UART error callback.
  41638. * @param huart UART handle.
  41639. * @retval None
  41640. */
  41641. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  41642. {
  41643. 8011cd8: b480 push {r7}
  41644. 8011cda: b083 sub sp, #12
  41645. 8011cdc: af00 add r7, sp, #0
  41646. 8011cde: 6078 str r0, [r7, #4]
  41647. UNUSED(huart);
  41648. /* NOTE : This function should not be modified, when the callback is needed,
  41649. the HAL_UART_ErrorCallback can be implemented in the user file.
  41650. */
  41651. }
  41652. 8011ce0: bf00 nop
  41653. 8011ce2: 370c adds r7, #12
  41654. 8011ce4: 46bd mov sp, r7
  41655. 8011ce6: f85d 7b04 ldr.w r7, [sp], #4
  41656. 8011cea: 4770 bx lr
  41657. 08011cec <UART_SetConfig>:
  41658. * @brief Configure the UART peripheral.
  41659. * @param huart UART handle.
  41660. * @retval HAL status
  41661. */
  41662. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  41663. {
  41664. 8011cec: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  41665. 8011cf0: b092 sub sp, #72 @ 0x48
  41666. 8011cf2: af00 add r7, sp, #0
  41667. 8011cf4: 6178 str r0, [r7, #20]
  41668. uint32_t tmpreg;
  41669. uint16_t brrtemp;
  41670. UART_ClockSourceTypeDef clocksource;
  41671. uint32_t usartdiv;
  41672. HAL_StatusTypeDef ret = HAL_OK;
  41673. 8011cf6: 2300 movs r3, #0
  41674. 8011cf8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41675. * the UART Word Length, Parity, Mode and oversampling:
  41676. * set the M bits according to huart->Init.WordLength value
  41677. * set PCE and PS bits according to huart->Init.Parity value
  41678. * set TE and RE bits according to huart->Init.Mode value
  41679. * set OVER8 bit according to huart->Init.OverSampling value */
  41680. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  41681. 8011cfc: 697b ldr r3, [r7, #20]
  41682. 8011cfe: 689a ldr r2, [r3, #8]
  41683. 8011d00: 697b ldr r3, [r7, #20]
  41684. 8011d02: 691b ldr r3, [r3, #16]
  41685. 8011d04: 431a orrs r2, r3
  41686. 8011d06: 697b ldr r3, [r7, #20]
  41687. 8011d08: 695b ldr r3, [r3, #20]
  41688. 8011d0a: 431a orrs r2, r3
  41689. 8011d0c: 697b ldr r3, [r7, #20]
  41690. 8011d0e: 69db ldr r3, [r3, #28]
  41691. 8011d10: 4313 orrs r3, r2
  41692. 8011d12: 647b str r3, [r7, #68] @ 0x44
  41693. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  41694. 8011d14: 697b ldr r3, [r7, #20]
  41695. 8011d16: 681b ldr r3, [r3, #0]
  41696. 8011d18: 681a ldr r2, [r3, #0]
  41697. 8011d1a: 4bbe ldr r3, [pc, #760] @ (8012014 <UART_SetConfig+0x328>)
  41698. 8011d1c: 4013 ands r3, r2
  41699. 8011d1e: 697a ldr r2, [r7, #20]
  41700. 8011d20: 6812 ldr r2, [r2, #0]
  41701. 8011d22: 6c79 ldr r1, [r7, #68] @ 0x44
  41702. 8011d24: 430b orrs r3, r1
  41703. 8011d26: 6013 str r3, [r2, #0]
  41704. /*-------------------------- USART CR2 Configuration -----------------------*/
  41705. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  41706. * to huart->Init.StopBits value */
  41707. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  41708. 8011d28: 697b ldr r3, [r7, #20]
  41709. 8011d2a: 681b ldr r3, [r3, #0]
  41710. 8011d2c: 685b ldr r3, [r3, #4]
  41711. 8011d2e: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  41712. 8011d32: 697b ldr r3, [r7, #20]
  41713. 8011d34: 68da ldr r2, [r3, #12]
  41714. 8011d36: 697b ldr r3, [r7, #20]
  41715. 8011d38: 681b ldr r3, [r3, #0]
  41716. 8011d3a: 430a orrs r2, r1
  41717. 8011d3c: 605a str r2, [r3, #4]
  41718. /* Configure
  41719. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  41720. * to huart->Init.HwFlowCtl value
  41721. * - one-bit sampling method versus three samples' majority rule according
  41722. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  41723. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  41724. 8011d3e: 697b ldr r3, [r7, #20]
  41725. 8011d40: 699b ldr r3, [r3, #24]
  41726. 8011d42: 647b str r3, [r7, #68] @ 0x44
  41727. if (!(UART_INSTANCE_LOWPOWER(huart)))
  41728. 8011d44: 697b ldr r3, [r7, #20]
  41729. 8011d46: 681b ldr r3, [r3, #0]
  41730. 8011d48: 4ab3 ldr r2, [pc, #716] @ (8012018 <UART_SetConfig+0x32c>)
  41731. 8011d4a: 4293 cmp r3, r2
  41732. 8011d4c: d004 beq.n 8011d58 <UART_SetConfig+0x6c>
  41733. {
  41734. tmpreg |= huart->Init.OneBitSampling;
  41735. 8011d4e: 697b ldr r3, [r7, #20]
  41736. 8011d50: 6a1b ldr r3, [r3, #32]
  41737. 8011d52: 6c7a ldr r2, [r7, #68] @ 0x44
  41738. 8011d54: 4313 orrs r3, r2
  41739. 8011d56: 647b str r3, [r7, #68] @ 0x44
  41740. }
  41741. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  41742. 8011d58: 697b ldr r3, [r7, #20]
  41743. 8011d5a: 681b ldr r3, [r3, #0]
  41744. 8011d5c: 689a ldr r2, [r3, #8]
  41745. 8011d5e: 4baf ldr r3, [pc, #700] @ (801201c <UART_SetConfig+0x330>)
  41746. 8011d60: 4013 ands r3, r2
  41747. 8011d62: 697a ldr r2, [r7, #20]
  41748. 8011d64: 6812 ldr r2, [r2, #0]
  41749. 8011d66: 6c79 ldr r1, [r7, #68] @ 0x44
  41750. 8011d68: 430b orrs r3, r1
  41751. 8011d6a: 6093 str r3, [r2, #8]
  41752. /*-------------------------- USART PRESC Configuration -----------------------*/
  41753. /* Configure
  41754. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  41755. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  41756. 8011d6c: 697b ldr r3, [r7, #20]
  41757. 8011d6e: 681b ldr r3, [r3, #0]
  41758. 8011d70: 6adb ldr r3, [r3, #44] @ 0x2c
  41759. 8011d72: f023 010f bic.w r1, r3, #15
  41760. 8011d76: 697b ldr r3, [r7, #20]
  41761. 8011d78: 6a5a ldr r2, [r3, #36] @ 0x24
  41762. 8011d7a: 697b ldr r3, [r7, #20]
  41763. 8011d7c: 681b ldr r3, [r3, #0]
  41764. 8011d7e: 430a orrs r2, r1
  41765. 8011d80: 62da str r2, [r3, #44] @ 0x2c
  41766. /*-------------------------- USART BRR Configuration -----------------------*/
  41767. UART_GETCLOCKSOURCE(huart, clocksource);
  41768. 8011d82: 697b ldr r3, [r7, #20]
  41769. 8011d84: 681b ldr r3, [r3, #0]
  41770. 8011d86: 4aa6 ldr r2, [pc, #664] @ (8012020 <UART_SetConfig+0x334>)
  41771. 8011d88: 4293 cmp r3, r2
  41772. 8011d8a: d177 bne.n 8011e7c <UART_SetConfig+0x190>
  41773. 8011d8c: 4ba5 ldr r3, [pc, #660] @ (8012024 <UART_SetConfig+0x338>)
  41774. 8011d8e: 6d5b ldr r3, [r3, #84] @ 0x54
  41775. 8011d90: f003 0338 and.w r3, r3, #56 @ 0x38
  41776. 8011d94: 2b28 cmp r3, #40 @ 0x28
  41777. 8011d96: d86d bhi.n 8011e74 <UART_SetConfig+0x188>
  41778. 8011d98: a201 add r2, pc, #4 @ (adr r2, 8011da0 <UART_SetConfig+0xb4>)
  41779. 8011d9a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41780. 8011d9e: bf00 nop
  41781. 8011da0: 08011e45 .word 0x08011e45
  41782. 8011da4: 08011e75 .word 0x08011e75
  41783. 8011da8: 08011e75 .word 0x08011e75
  41784. 8011dac: 08011e75 .word 0x08011e75
  41785. 8011db0: 08011e75 .word 0x08011e75
  41786. 8011db4: 08011e75 .word 0x08011e75
  41787. 8011db8: 08011e75 .word 0x08011e75
  41788. 8011dbc: 08011e75 .word 0x08011e75
  41789. 8011dc0: 08011e4d .word 0x08011e4d
  41790. 8011dc4: 08011e75 .word 0x08011e75
  41791. 8011dc8: 08011e75 .word 0x08011e75
  41792. 8011dcc: 08011e75 .word 0x08011e75
  41793. 8011dd0: 08011e75 .word 0x08011e75
  41794. 8011dd4: 08011e75 .word 0x08011e75
  41795. 8011dd8: 08011e75 .word 0x08011e75
  41796. 8011ddc: 08011e75 .word 0x08011e75
  41797. 8011de0: 08011e55 .word 0x08011e55
  41798. 8011de4: 08011e75 .word 0x08011e75
  41799. 8011de8: 08011e75 .word 0x08011e75
  41800. 8011dec: 08011e75 .word 0x08011e75
  41801. 8011df0: 08011e75 .word 0x08011e75
  41802. 8011df4: 08011e75 .word 0x08011e75
  41803. 8011df8: 08011e75 .word 0x08011e75
  41804. 8011dfc: 08011e75 .word 0x08011e75
  41805. 8011e00: 08011e5d .word 0x08011e5d
  41806. 8011e04: 08011e75 .word 0x08011e75
  41807. 8011e08: 08011e75 .word 0x08011e75
  41808. 8011e0c: 08011e75 .word 0x08011e75
  41809. 8011e10: 08011e75 .word 0x08011e75
  41810. 8011e14: 08011e75 .word 0x08011e75
  41811. 8011e18: 08011e75 .word 0x08011e75
  41812. 8011e1c: 08011e75 .word 0x08011e75
  41813. 8011e20: 08011e65 .word 0x08011e65
  41814. 8011e24: 08011e75 .word 0x08011e75
  41815. 8011e28: 08011e75 .word 0x08011e75
  41816. 8011e2c: 08011e75 .word 0x08011e75
  41817. 8011e30: 08011e75 .word 0x08011e75
  41818. 8011e34: 08011e75 .word 0x08011e75
  41819. 8011e38: 08011e75 .word 0x08011e75
  41820. 8011e3c: 08011e75 .word 0x08011e75
  41821. 8011e40: 08011e6d .word 0x08011e6d
  41822. 8011e44: 2301 movs r3, #1
  41823. 8011e46: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41824. 8011e4a: e222 b.n 8012292 <UART_SetConfig+0x5a6>
  41825. 8011e4c: 2304 movs r3, #4
  41826. 8011e4e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41827. 8011e52: e21e b.n 8012292 <UART_SetConfig+0x5a6>
  41828. 8011e54: 2308 movs r3, #8
  41829. 8011e56: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41830. 8011e5a: e21a b.n 8012292 <UART_SetConfig+0x5a6>
  41831. 8011e5c: 2310 movs r3, #16
  41832. 8011e5e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41833. 8011e62: e216 b.n 8012292 <UART_SetConfig+0x5a6>
  41834. 8011e64: 2320 movs r3, #32
  41835. 8011e66: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41836. 8011e6a: e212 b.n 8012292 <UART_SetConfig+0x5a6>
  41837. 8011e6c: 2340 movs r3, #64 @ 0x40
  41838. 8011e6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41839. 8011e72: e20e b.n 8012292 <UART_SetConfig+0x5a6>
  41840. 8011e74: 2380 movs r3, #128 @ 0x80
  41841. 8011e76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41842. 8011e7a: e20a b.n 8012292 <UART_SetConfig+0x5a6>
  41843. 8011e7c: 697b ldr r3, [r7, #20]
  41844. 8011e7e: 681b ldr r3, [r3, #0]
  41845. 8011e80: 4a69 ldr r2, [pc, #420] @ (8012028 <UART_SetConfig+0x33c>)
  41846. 8011e82: 4293 cmp r3, r2
  41847. 8011e84: d130 bne.n 8011ee8 <UART_SetConfig+0x1fc>
  41848. 8011e86: 4b67 ldr r3, [pc, #412] @ (8012024 <UART_SetConfig+0x338>)
  41849. 8011e88: 6d5b ldr r3, [r3, #84] @ 0x54
  41850. 8011e8a: f003 0307 and.w r3, r3, #7
  41851. 8011e8e: 2b05 cmp r3, #5
  41852. 8011e90: d826 bhi.n 8011ee0 <UART_SetConfig+0x1f4>
  41853. 8011e92: a201 add r2, pc, #4 @ (adr r2, 8011e98 <UART_SetConfig+0x1ac>)
  41854. 8011e94: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41855. 8011e98: 08011eb1 .word 0x08011eb1
  41856. 8011e9c: 08011eb9 .word 0x08011eb9
  41857. 8011ea0: 08011ec1 .word 0x08011ec1
  41858. 8011ea4: 08011ec9 .word 0x08011ec9
  41859. 8011ea8: 08011ed1 .word 0x08011ed1
  41860. 8011eac: 08011ed9 .word 0x08011ed9
  41861. 8011eb0: 2300 movs r3, #0
  41862. 8011eb2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41863. 8011eb6: e1ec b.n 8012292 <UART_SetConfig+0x5a6>
  41864. 8011eb8: 2304 movs r3, #4
  41865. 8011eba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41866. 8011ebe: e1e8 b.n 8012292 <UART_SetConfig+0x5a6>
  41867. 8011ec0: 2308 movs r3, #8
  41868. 8011ec2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41869. 8011ec6: e1e4 b.n 8012292 <UART_SetConfig+0x5a6>
  41870. 8011ec8: 2310 movs r3, #16
  41871. 8011eca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41872. 8011ece: e1e0 b.n 8012292 <UART_SetConfig+0x5a6>
  41873. 8011ed0: 2320 movs r3, #32
  41874. 8011ed2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41875. 8011ed6: e1dc b.n 8012292 <UART_SetConfig+0x5a6>
  41876. 8011ed8: 2340 movs r3, #64 @ 0x40
  41877. 8011eda: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41878. 8011ede: e1d8 b.n 8012292 <UART_SetConfig+0x5a6>
  41879. 8011ee0: 2380 movs r3, #128 @ 0x80
  41880. 8011ee2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41881. 8011ee6: e1d4 b.n 8012292 <UART_SetConfig+0x5a6>
  41882. 8011ee8: 697b ldr r3, [r7, #20]
  41883. 8011eea: 681b ldr r3, [r3, #0]
  41884. 8011eec: 4a4f ldr r2, [pc, #316] @ (801202c <UART_SetConfig+0x340>)
  41885. 8011eee: 4293 cmp r3, r2
  41886. 8011ef0: d130 bne.n 8011f54 <UART_SetConfig+0x268>
  41887. 8011ef2: 4b4c ldr r3, [pc, #304] @ (8012024 <UART_SetConfig+0x338>)
  41888. 8011ef4: 6d5b ldr r3, [r3, #84] @ 0x54
  41889. 8011ef6: f003 0307 and.w r3, r3, #7
  41890. 8011efa: 2b05 cmp r3, #5
  41891. 8011efc: d826 bhi.n 8011f4c <UART_SetConfig+0x260>
  41892. 8011efe: a201 add r2, pc, #4 @ (adr r2, 8011f04 <UART_SetConfig+0x218>)
  41893. 8011f00: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41894. 8011f04: 08011f1d .word 0x08011f1d
  41895. 8011f08: 08011f25 .word 0x08011f25
  41896. 8011f0c: 08011f2d .word 0x08011f2d
  41897. 8011f10: 08011f35 .word 0x08011f35
  41898. 8011f14: 08011f3d .word 0x08011f3d
  41899. 8011f18: 08011f45 .word 0x08011f45
  41900. 8011f1c: 2300 movs r3, #0
  41901. 8011f1e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41902. 8011f22: e1b6 b.n 8012292 <UART_SetConfig+0x5a6>
  41903. 8011f24: 2304 movs r3, #4
  41904. 8011f26: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41905. 8011f2a: e1b2 b.n 8012292 <UART_SetConfig+0x5a6>
  41906. 8011f2c: 2308 movs r3, #8
  41907. 8011f2e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41908. 8011f32: e1ae b.n 8012292 <UART_SetConfig+0x5a6>
  41909. 8011f34: 2310 movs r3, #16
  41910. 8011f36: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41911. 8011f3a: e1aa b.n 8012292 <UART_SetConfig+0x5a6>
  41912. 8011f3c: 2320 movs r3, #32
  41913. 8011f3e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41914. 8011f42: e1a6 b.n 8012292 <UART_SetConfig+0x5a6>
  41915. 8011f44: 2340 movs r3, #64 @ 0x40
  41916. 8011f46: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41917. 8011f4a: e1a2 b.n 8012292 <UART_SetConfig+0x5a6>
  41918. 8011f4c: 2380 movs r3, #128 @ 0x80
  41919. 8011f4e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41920. 8011f52: e19e b.n 8012292 <UART_SetConfig+0x5a6>
  41921. 8011f54: 697b ldr r3, [r7, #20]
  41922. 8011f56: 681b ldr r3, [r3, #0]
  41923. 8011f58: 4a35 ldr r2, [pc, #212] @ (8012030 <UART_SetConfig+0x344>)
  41924. 8011f5a: 4293 cmp r3, r2
  41925. 8011f5c: d130 bne.n 8011fc0 <UART_SetConfig+0x2d4>
  41926. 8011f5e: 4b31 ldr r3, [pc, #196] @ (8012024 <UART_SetConfig+0x338>)
  41927. 8011f60: 6d5b ldr r3, [r3, #84] @ 0x54
  41928. 8011f62: f003 0307 and.w r3, r3, #7
  41929. 8011f66: 2b05 cmp r3, #5
  41930. 8011f68: d826 bhi.n 8011fb8 <UART_SetConfig+0x2cc>
  41931. 8011f6a: a201 add r2, pc, #4 @ (adr r2, 8011f70 <UART_SetConfig+0x284>)
  41932. 8011f6c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41933. 8011f70: 08011f89 .word 0x08011f89
  41934. 8011f74: 08011f91 .word 0x08011f91
  41935. 8011f78: 08011f99 .word 0x08011f99
  41936. 8011f7c: 08011fa1 .word 0x08011fa1
  41937. 8011f80: 08011fa9 .word 0x08011fa9
  41938. 8011f84: 08011fb1 .word 0x08011fb1
  41939. 8011f88: 2300 movs r3, #0
  41940. 8011f8a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41941. 8011f8e: e180 b.n 8012292 <UART_SetConfig+0x5a6>
  41942. 8011f90: 2304 movs r3, #4
  41943. 8011f92: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41944. 8011f96: e17c b.n 8012292 <UART_SetConfig+0x5a6>
  41945. 8011f98: 2308 movs r3, #8
  41946. 8011f9a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41947. 8011f9e: e178 b.n 8012292 <UART_SetConfig+0x5a6>
  41948. 8011fa0: 2310 movs r3, #16
  41949. 8011fa2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41950. 8011fa6: e174 b.n 8012292 <UART_SetConfig+0x5a6>
  41951. 8011fa8: 2320 movs r3, #32
  41952. 8011faa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41953. 8011fae: e170 b.n 8012292 <UART_SetConfig+0x5a6>
  41954. 8011fb0: 2340 movs r3, #64 @ 0x40
  41955. 8011fb2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41956. 8011fb6: e16c b.n 8012292 <UART_SetConfig+0x5a6>
  41957. 8011fb8: 2380 movs r3, #128 @ 0x80
  41958. 8011fba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41959. 8011fbe: e168 b.n 8012292 <UART_SetConfig+0x5a6>
  41960. 8011fc0: 697b ldr r3, [r7, #20]
  41961. 8011fc2: 681b ldr r3, [r3, #0]
  41962. 8011fc4: 4a1b ldr r2, [pc, #108] @ (8012034 <UART_SetConfig+0x348>)
  41963. 8011fc6: 4293 cmp r3, r2
  41964. 8011fc8: d142 bne.n 8012050 <UART_SetConfig+0x364>
  41965. 8011fca: 4b16 ldr r3, [pc, #88] @ (8012024 <UART_SetConfig+0x338>)
  41966. 8011fcc: 6d5b ldr r3, [r3, #84] @ 0x54
  41967. 8011fce: f003 0307 and.w r3, r3, #7
  41968. 8011fd2: 2b05 cmp r3, #5
  41969. 8011fd4: d838 bhi.n 8012048 <UART_SetConfig+0x35c>
  41970. 8011fd6: a201 add r2, pc, #4 @ (adr r2, 8011fdc <UART_SetConfig+0x2f0>)
  41971. 8011fd8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41972. 8011fdc: 08011ff5 .word 0x08011ff5
  41973. 8011fe0: 08011ffd .word 0x08011ffd
  41974. 8011fe4: 08012005 .word 0x08012005
  41975. 8011fe8: 0801200d .word 0x0801200d
  41976. 8011fec: 08012039 .word 0x08012039
  41977. 8011ff0: 08012041 .word 0x08012041
  41978. 8011ff4: 2300 movs r3, #0
  41979. 8011ff6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41980. 8011ffa: e14a b.n 8012292 <UART_SetConfig+0x5a6>
  41981. 8011ffc: 2304 movs r3, #4
  41982. 8011ffe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41983. 8012002: e146 b.n 8012292 <UART_SetConfig+0x5a6>
  41984. 8012004: 2308 movs r3, #8
  41985. 8012006: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41986. 801200a: e142 b.n 8012292 <UART_SetConfig+0x5a6>
  41987. 801200c: 2310 movs r3, #16
  41988. 801200e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41989. 8012012: e13e b.n 8012292 <UART_SetConfig+0x5a6>
  41990. 8012014: cfff69f3 .word 0xcfff69f3
  41991. 8012018: 58000c00 .word 0x58000c00
  41992. 801201c: 11fff4ff .word 0x11fff4ff
  41993. 8012020: 40011000 .word 0x40011000
  41994. 8012024: 58024400 .word 0x58024400
  41995. 8012028: 40004400 .word 0x40004400
  41996. 801202c: 40004800 .word 0x40004800
  41997. 8012030: 40004c00 .word 0x40004c00
  41998. 8012034: 40005000 .word 0x40005000
  41999. 8012038: 2320 movs r3, #32
  42000. 801203a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42001. 801203e: e128 b.n 8012292 <UART_SetConfig+0x5a6>
  42002. 8012040: 2340 movs r3, #64 @ 0x40
  42003. 8012042: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42004. 8012046: e124 b.n 8012292 <UART_SetConfig+0x5a6>
  42005. 8012048: 2380 movs r3, #128 @ 0x80
  42006. 801204a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42007. 801204e: e120 b.n 8012292 <UART_SetConfig+0x5a6>
  42008. 8012050: 697b ldr r3, [r7, #20]
  42009. 8012052: 681b ldr r3, [r3, #0]
  42010. 8012054: 4acb ldr r2, [pc, #812] @ (8012384 <UART_SetConfig+0x698>)
  42011. 8012056: 4293 cmp r3, r2
  42012. 8012058: d176 bne.n 8012148 <UART_SetConfig+0x45c>
  42013. 801205a: 4bcb ldr r3, [pc, #812] @ (8012388 <UART_SetConfig+0x69c>)
  42014. 801205c: 6d5b ldr r3, [r3, #84] @ 0x54
  42015. 801205e: f003 0338 and.w r3, r3, #56 @ 0x38
  42016. 8012062: 2b28 cmp r3, #40 @ 0x28
  42017. 8012064: d86c bhi.n 8012140 <UART_SetConfig+0x454>
  42018. 8012066: a201 add r2, pc, #4 @ (adr r2, 801206c <UART_SetConfig+0x380>)
  42019. 8012068: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42020. 801206c: 08012111 .word 0x08012111
  42021. 8012070: 08012141 .word 0x08012141
  42022. 8012074: 08012141 .word 0x08012141
  42023. 8012078: 08012141 .word 0x08012141
  42024. 801207c: 08012141 .word 0x08012141
  42025. 8012080: 08012141 .word 0x08012141
  42026. 8012084: 08012141 .word 0x08012141
  42027. 8012088: 08012141 .word 0x08012141
  42028. 801208c: 08012119 .word 0x08012119
  42029. 8012090: 08012141 .word 0x08012141
  42030. 8012094: 08012141 .word 0x08012141
  42031. 8012098: 08012141 .word 0x08012141
  42032. 801209c: 08012141 .word 0x08012141
  42033. 80120a0: 08012141 .word 0x08012141
  42034. 80120a4: 08012141 .word 0x08012141
  42035. 80120a8: 08012141 .word 0x08012141
  42036. 80120ac: 08012121 .word 0x08012121
  42037. 80120b0: 08012141 .word 0x08012141
  42038. 80120b4: 08012141 .word 0x08012141
  42039. 80120b8: 08012141 .word 0x08012141
  42040. 80120bc: 08012141 .word 0x08012141
  42041. 80120c0: 08012141 .word 0x08012141
  42042. 80120c4: 08012141 .word 0x08012141
  42043. 80120c8: 08012141 .word 0x08012141
  42044. 80120cc: 08012129 .word 0x08012129
  42045. 80120d0: 08012141 .word 0x08012141
  42046. 80120d4: 08012141 .word 0x08012141
  42047. 80120d8: 08012141 .word 0x08012141
  42048. 80120dc: 08012141 .word 0x08012141
  42049. 80120e0: 08012141 .word 0x08012141
  42050. 80120e4: 08012141 .word 0x08012141
  42051. 80120e8: 08012141 .word 0x08012141
  42052. 80120ec: 08012131 .word 0x08012131
  42053. 80120f0: 08012141 .word 0x08012141
  42054. 80120f4: 08012141 .word 0x08012141
  42055. 80120f8: 08012141 .word 0x08012141
  42056. 80120fc: 08012141 .word 0x08012141
  42057. 8012100: 08012141 .word 0x08012141
  42058. 8012104: 08012141 .word 0x08012141
  42059. 8012108: 08012141 .word 0x08012141
  42060. 801210c: 08012139 .word 0x08012139
  42061. 8012110: 2301 movs r3, #1
  42062. 8012112: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42063. 8012116: e0bc b.n 8012292 <UART_SetConfig+0x5a6>
  42064. 8012118: 2304 movs r3, #4
  42065. 801211a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42066. 801211e: e0b8 b.n 8012292 <UART_SetConfig+0x5a6>
  42067. 8012120: 2308 movs r3, #8
  42068. 8012122: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42069. 8012126: e0b4 b.n 8012292 <UART_SetConfig+0x5a6>
  42070. 8012128: 2310 movs r3, #16
  42071. 801212a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42072. 801212e: e0b0 b.n 8012292 <UART_SetConfig+0x5a6>
  42073. 8012130: 2320 movs r3, #32
  42074. 8012132: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42075. 8012136: e0ac b.n 8012292 <UART_SetConfig+0x5a6>
  42076. 8012138: 2340 movs r3, #64 @ 0x40
  42077. 801213a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42078. 801213e: e0a8 b.n 8012292 <UART_SetConfig+0x5a6>
  42079. 8012140: 2380 movs r3, #128 @ 0x80
  42080. 8012142: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42081. 8012146: e0a4 b.n 8012292 <UART_SetConfig+0x5a6>
  42082. 8012148: 697b ldr r3, [r7, #20]
  42083. 801214a: 681b ldr r3, [r3, #0]
  42084. 801214c: 4a8f ldr r2, [pc, #572] @ (801238c <UART_SetConfig+0x6a0>)
  42085. 801214e: 4293 cmp r3, r2
  42086. 8012150: d130 bne.n 80121b4 <UART_SetConfig+0x4c8>
  42087. 8012152: 4b8d ldr r3, [pc, #564] @ (8012388 <UART_SetConfig+0x69c>)
  42088. 8012154: 6d5b ldr r3, [r3, #84] @ 0x54
  42089. 8012156: f003 0307 and.w r3, r3, #7
  42090. 801215a: 2b05 cmp r3, #5
  42091. 801215c: d826 bhi.n 80121ac <UART_SetConfig+0x4c0>
  42092. 801215e: a201 add r2, pc, #4 @ (adr r2, 8012164 <UART_SetConfig+0x478>)
  42093. 8012160: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42094. 8012164: 0801217d .word 0x0801217d
  42095. 8012168: 08012185 .word 0x08012185
  42096. 801216c: 0801218d .word 0x0801218d
  42097. 8012170: 08012195 .word 0x08012195
  42098. 8012174: 0801219d .word 0x0801219d
  42099. 8012178: 080121a5 .word 0x080121a5
  42100. 801217c: 2300 movs r3, #0
  42101. 801217e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42102. 8012182: e086 b.n 8012292 <UART_SetConfig+0x5a6>
  42103. 8012184: 2304 movs r3, #4
  42104. 8012186: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42105. 801218a: e082 b.n 8012292 <UART_SetConfig+0x5a6>
  42106. 801218c: 2308 movs r3, #8
  42107. 801218e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42108. 8012192: e07e b.n 8012292 <UART_SetConfig+0x5a6>
  42109. 8012194: 2310 movs r3, #16
  42110. 8012196: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42111. 801219a: e07a b.n 8012292 <UART_SetConfig+0x5a6>
  42112. 801219c: 2320 movs r3, #32
  42113. 801219e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42114. 80121a2: e076 b.n 8012292 <UART_SetConfig+0x5a6>
  42115. 80121a4: 2340 movs r3, #64 @ 0x40
  42116. 80121a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42117. 80121aa: e072 b.n 8012292 <UART_SetConfig+0x5a6>
  42118. 80121ac: 2380 movs r3, #128 @ 0x80
  42119. 80121ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42120. 80121b2: e06e b.n 8012292 <UART_SetConfig+0x5a6>
  42121. 80121b4: 697b ldr r3, [r7, #20]
  42122. 80121b6: 681b ldr r3, [r3, #0]
  42123. 80121b8: 4a75 ldr r2, [pc, #468] @ (8012390 <UART_SetConfig+0x6a4>)
  42124. 80121ba: 4293 cmp r3, r2
  42125. 80121bc: d130 bne.n 8012220 <UART_SetConfig+0x534>
  42126. 80121be: 4b72 ldr r3, [pc, #456] @ (8012388 <UART_SetConfig+0x69c>)
  42127. 80121c0: 6d5b ldr r3, [r3, #84] @ 0x54
  42128. 80121c2: f003 0307 and.w r3, r3, #7
  42129. 80121c6: 2b05 cmp r3, #5
  42130. 80121c8: d826 bhi.n 8012218 <UART_SetConfig+0x52c>
  42131. 80121ca: a201 add r2, pc, #4 @ (adr r2, 80121d0 <UART_SetConfig+0x4e4>)
  42132. 80121cc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42133. 80121d0: 080121e9 .word 0x080121e9
  42134. 80121d4: 080121f1 .word 0x080121f1
  42135. 80121d8: 080121f9 .word 0x080121f9
  42136. 80121dc: 08012201 .word 0x08012201
  42137. 80121e0: 08012209 .word 0x08012209
  42138. 80121e4: 08012211 .word 0x08012211
  42139. 80121e8: 2300 movs r3, #0
  42140. 80121ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42141. 80121ee: e050 b.n 8012292 <UART_SetConfig+0x5a6>
  42142. 80121f0: 2304 movs r3, #4
  42143. 80121f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42144. 80121f6: e04c b.n 8012292 <UART_SetConfig+0x5a6>
  42145. 80121f8: 2308 movs r3, #8
  42146. 80121fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42147. 80121fe: e048 b.n 8012292 <UART_SetConfig+0x5a6>
  42148. 8012200: 2310 movs r3, #16
  42149. 8012202: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42150. 8012206: e044 b.n 8012292 <UART_SetConfig+0x5a6>
  42151. 8012208: 2320 movs r3, #32
  42152. 801220a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42153. 801220e: e040 b.n 8012292 <UART_SetConfig+0x5a6>
  42154. 8012210: 2340 movs r3, #64 @ 0x40
  42155. 8012212: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42156. 8012216: e03c b.n 8012292 <UART_SetConfig+0x5a6>
  42157. 8012218: 2380 movs r3, #128 @ 0x80
  42158. 801221a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42159. 801221e: e038 b.n 8012292 <UART_SetConfig+0x5a6>
  42160. 8012220: 697b ldr r3, [r7, #20]
  42161. 8012222: 681b ldr r3, [r3, #0]
  42162. 8012224: 4a5b ldr r2, [pc, #364] @ (8012394 <UART_SetConfig+0x6a8>)
  42163. 8012226: 4293 cmp r3, r2
  42164. 8012228: d130 bne.n 801228c <UART_SetConfig+0x5a0>
  42165. 801222a: 4b57 ldr r3, [pc, #348] @ (8012388 <UART_SetConfig+0x69c>)
  42166. 801222c: 6d9b ldr r3, [r3, #88] @ 0x58
  42167. 801222e: f003 0307 and.w r3, r3, #7
  42168. 8012232: 2b05 cmp r3, #5
  42169. 8012234: d826 bhi.n 8012284 <UART_SetConfig+0x598>
  42170. 8012236: a201 add r2, pc, #4 @ (adr r2, 801223c <UART_SetConfig+0x550>)
  42171. 8012238: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42172. 801223c: 08012255 .word 0x08012255
  42173. 8012240: 0801225d .word 0x0801225d
  42174. 8012244: 08012265 .word 0x08012265
  42175. 8012248: 0801226d .word 0x0801226d
  42176. 801224c: 08012275 .word 0x08012275
  42177. 8012250: 0801227d .word 0x0801227d
  42178. 8012254: 2302 movs r3, #2
  42179. 8012256: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42180. 801225a: e01a b.n 8012292 <UART_SetConfig+0x5a6>
  42181. 801225c: 2304 movs r3, #4
  42182. 801225e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42183. 8012262: e016 b.n 8012292 <UART_SetConfig+0x5a6>
  42184. 8012264: 2308 movs r3, #8
  42185. 8012266: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42186. 801226a: e012 b.n 8012292 <UART_SetConfig+0x5a6>
  42187. 801226c: 2310 movs r3, #16
  42188. 801226e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42189. 8012272: e00e b.n 8012292 <UART_SetConfig+0x5a6>
  42190. 8012274: 2320 movs r3, #32
  42191. 8012276: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42192. 801227a: e00a b.n 8012292 <UART_SetConfig+0x5a6>
  42193. 801227c: 2340 movs r3, #64 @ 0x40
  42194. 801227e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42195. 8012282: e006 b.n 8012292 <UART_SetConfig+0x5a6>
  42196. 8012284: 2380 movs r3, #128 @ 0x80
  42197. 8012286: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42198. 801228a: e002 b.n 8012292 <UART_SetConfig+0x5a6>
  42199. 801228c: 2380 movs r3, #128 @ 0x80
  42200. 801228e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42201. /* Check LPUART instance */
  42202. if (UART_INSTANCE_LOWPOWER(huart))
  42203. 8012292: 697b ldr r3, [r7, #20]
  42204. 8012294: 681b ldr r3, [r3, #0]
  42205. 8012296: 4a3f ldr r2, [pc, #252] @ (8012394 <UART_SetConfig+0x6a8>)
  42206. 8012298: 4293 cmp r3, r2
  42207. 801229a: f040 80f8 bne.w 801248e <UART_SetConfig+0x7a2>
  42208. {
  42209. /* Retrieve frequency clock */
  42210. switch (clocksource)
  42211. 801229e: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42212. 80122a2: 2b20 cmp r3, #32
  42213. 80122a4: dc46 bgt.n 8012334 <UART_SetConfig+0x648>
  42214. 80122a6: 2b02 cmp r3, #2
  42215. 80122a8: f2c0 8082 blt.w 80123b0 <UART_SetConfig+0x6c4>
  42216. 80122ac: 3b02 subs r3, #2
  42217. 80122ae: 2b1e cmp r3, #30
  42218. 80122b0: d87e bhi.n 80123b0 <UART_SetConfig+0x6c4>
  42219. 80122b2: a201 add r2, pc, #4 @ (adr r2, 80122b8 <UART_SetConfig+0x5cc>)
  42220. 80122b4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42221. 80122b8: 0801233b .word 0x0801233b
  42222. 80122bc: 080123b1 .word 0x080123b1
  42223. 80122c0: 08012343 .word 0x08012343
  42224. 80122c4: 080123b1 .word 0x080123b1
  42225. 80122c8: 080123b1 .word 0x080123b1
  42226. 80122cc: 080123b1 .word 0x080123b1
  42227. 80122d0: 08012353 .word 0x08012353
  42228. 80122d4: 080123b1 .word 0x080123b1
  42229. 80122d8: 080123b1 .word 0x080123b1
  42230. 80122dc: 080123b1 .word 0x080123b1
  42231. 80122e0: 080123b1 .word 0x080123b1
  42232. 80122e4: 080123b1 .word 0x080123b1
  42233. 80122e8: 080123b1 .word 0x080123b1
  42234. 80122ec: 080123b1 .word 0x080123b1
  42235. 80122f0: 08012363 .word 0x08012363
  42236. 80122f4: 080123b1 .word 0x080123b1
  42237. 80122f8: 080123b1 .word 0x080123b1
  42238. 80122fc: 080123b1 .word 0x080123b1
  42239. 8012300: 080123b1 .word 0x080123b1
  42240. 8012304: 080123b1 .word 0x080123b1
  42241. 8012308: 080123b1 .word 0x080123b1
  42242. 801230c: 080123b1 .word 0x080123b1
  42243. 8012310: 080123b1 .word 0x080123b1
  42244. 8012314: 080123b1 .word 0x080123b1
  42245. 8012318: 080123b1 .word 0x080123b1
  42246. 801231c: 080123b1 .word 0x080123b1
  42247. 8012320: 080123b1 .word 0x080123b1
  42248. 8012324: 080123b1 .word 0x080123b1
  42249. 8012328: 080123b1 .word 0x080123b1
  42250. 801232c: 080123b1 .word 0x080123b1
  42251. 8012330: 080123a3 .word 0x080123a3
  42252. 8012334: 2b40 cmp r3, #64 @ 0x40
  42253. 8012336: d037 beq.n 80123a8 <UART_SetConfig+0x6bc>
  42254. 8012338: e03a b.n 80123b0 <UART_SetConfig+0x6c4>
  42255. {
  42256. case UART_CLOCKSOURCE_D3PCLK1:
  42257. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  42258. 801233a: f7fc fa8b bl 800e854 <HAL_RCCEx_GetD3PCLK1Freq>
  42259. 801233e: 63f8 str r0, [r7, #60] @ 0x3c
  42260. break;
  42261. 8012340: e03c b.n 80123bc <UART_SetConfig+0x6d0>
  42262. case UART_CLOCKSOURCE_PLL2:
  42263. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42264. 8012342: f107 0324 add.w r3, r7, #36 @ 0x24
  42265. 8012346: 4618 mov r0, r3
  42266. 8012348: f7fc fa9a bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  42267. pclk = pll2_clocks.PLL2_Q_Frequency;
  42268. 801234c: 6abb ldr r3, [r7, #40] @ 0x28
  42269. 801234e: 63fb str r3, [r7, #60] @ 0x3c
  42270. break;
  42271. 8012350: e034 b.n 80123bc <UART_SetConfig+0x6d0>
  42272. case UART_CLOCKSOURCE_PLL3:
  42273. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42274. 8012352: f107 0318 add.w r3, r7, #24
  42275. 8012356: 4618 mov r0, r3
  42276. 8012358: f7fc fbe6 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  42277. pclk = pll3_clocks.PLL3_Q_Frequency;
  42278. 801235c: 69fb ldr r3, [r7, #28]
  42279. 801235e: 63fb str r3, [r7, #60] @ 0x3c
  42280. break;
  42281. 8012360: e02c b.n 80123bc <UART_SetConfig+0x6d0>
  42282. case UART_CLOCKSOURCE_HSI:
  42283. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42284. 8012362: 4b09 ldr r3, [pc, #36] @ (8012388 <UART_SetConfig+0x69c>)
  42285. 8012364: 681b ldr r3, [r3, #0]
  42286. 8012366: f003 0320 and.w r3, r3, #32
  42287. 801236a: 2b00 cmp r3, #0
  42288. 801236c: d016 beq.n 801239c <UART_SetConfig+0x6b0>
  42289. {
  42290. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42291. 801236e: 4b06 ldr r3, [pc, #24] @ (8012388 <UART_SetConfig+0x69c>)
  42292. 8012370: 681b ldr r3, [r3, #0]
  42293. 8012372: 08db lsrs r3, r3, #3
  42294. 8012374: f003 0303 and.w r3, r3, #3
  42295. 8012378: 4a07 ldr r2, [pc, #28] @ (8012398 <UART_SetConfig+0x6ac>)
  42296. 801237a: fa22 f303 lsr.w r3, r2, r3
  42297. 801237e: 63fb str r3, [r7, #60] @ 0x3c
  42298. }
  42299. else
  42300. {
  42301. pclk = (uint32_t) HSI_VALUE;
  42302. }
  42303. break;
  42304. 8012380: e01c b.n 80123bc <UART_SetConfig+0x6d0>
  42305. 8012382: bf00 nop
  42306. 8012384: 40011400 .word 0x40011400
  42307. 8012388: 58024400 .word 0x58024400
  42308. 801238c: 40007800 .word 0x40007800
  42309. 8012390: 40007c00 .word 0x40007c00
  42310. 8012394: 58000c00 .word 0x58000c00
  42311. 8012398: 03d09000 .word 0x03d09000
  42312. pclk = (uint32_t) HSI_VALUE;
  42313. 801239c: 4b9d ldr r3, [pc, #628] @ (8012614 <UART_SetConfig+0x928>)
  42314. 801239e: 63fb str r3, [r7, #60] @ 0x3c
  42315. break;
  42316. 80123a0: e00c b.n 80123bc <UART_SetConfig+0x6d0>
  42317. case UART_CLOCKSOURCE_CSI:
  42318. pclk = (uint32_t) CSI_VALUE;
  42319. 80123a2: 4b9d ldr r3, [pc, #628] @ (8012618 <UART_SetConfig+0x92c>)
  42320. 80123a4: 63fb str r3, [r7, #60] @ 0x3c
  42321. break;
  42322. 80123a6: e009 b.n 80123bc <UART_SetConfig+0x6d0>
  42323. case UART_CLOCKSOURCE_LSE:
  42324. pclk = (uint32_t) LSE_VALUE;
  42325. 80123a8: f44f 4300 mov.w r3, #32768 @ 0x8000
  42326. 80123ac: 63fb str r3, [r7, #60] @ 0x3c
  42327. break;
  42328. 80123ae: e005 b.n 80123bc <UART_SetConfig+0x6d0>
  42329. default:
  42330. pclk = 0U;
  42331. 80123b0: 2300 movs r3, #0
  42332. 80123b2: 63fb str r3, [r7, #60] @ 0x3c
  42333. ret = HAL_ERROR;
  42334. 80123b4: 2301 movs r3, #1
  42335. 80123b6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42336. break;
  42337. 80123ba: bf00 nop
  42338. }
  42339. /* If proper clock source reported */
  42340. if (pclk != 0U)
  42341. 80123bc: 6bfb ldr r3, [r7, #60] @ 0x3c
  42342. 80123be: 2b00 cmp r3, #0
  42343. 80123c0: f000 81de beq.w 8012780 <UART_SetConfig+0xa94>
  42344. {
  42345. /* Compute clock after Prescaler */
  42346. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  42347. 80123c4: 697b ldr r3, [r7, #20]
  42348. 80123c6: 6a5b ldr r3, [r3, #36] @ 0x24
  42349. 80123c8: 4a94 ldr r2, [pc, #592] @ (801261c <UART_SetConfig+0x930>)
  42350. 80123ca: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42351. 80123ce: 461a mov r2, r3
  42352. 80123d0: 6bfb ldr r3, [r7, #60] @ 0x3c
  42353. 80123d2: fbb3 f3f2 udiv r3, r3, r2
  42354. 80123d6: 633b str r3, [r7, #48] @ 0x30
  42355. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  42356. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42357. 80123d8: 697b ldr r3, [r7, #20]
  42358. 80123da: 685a ldr r2, [r3, #4]
  42359. 80123dc: 4613 mov r3, r2
  42360. 80123de: 005b lsls r3, r3, #1
  42361. 80123e0: 4413 add r3, r2
  42362. 80123e2: 6b3a ldr r2, [r7, #48] @ 0x30
  42363. 80123e4: 429a cmp r2, r3
  42364. 80123e6: d305 bcc.n 80123f4 <UART_SetConfig+0x708>
  42365. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  42366. 80123e8: 697b ldr r3, [r7, #20]
  42367. 80123ea: 685b ldr r3, [r3, #4]
  42368. 80123ec: 031b lsls r3, r3, #12
  42369. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42370. 80123ee: 6b3a ldr r2, [r7, #48] @ 0x30
  42371. 80123f0: 429a cmp r2, r3
  42372. 80123f2: d903 bls.n 80123fc <UART_SetConfig+0x710>
  42373. {
  42374. ret = HAL_ERROR;
  42375. 80123f4: 2301 movs r3, #1
  42376. 80123f6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42377. 80123fa: e1c1 b.n 8012780 <UART_SetConfig+0xa94>
  42378. }
  42379. else
  42380. {
  42381. /* Check computed UsartDiv value is in allocated range
  42382. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  42383. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42384. 80123fc: 6bfb ldr r3, [r7, #60] @ 0x3c
  42385. 80123fe: 2200 movs r2, #0
  42386. 8012400: 60bb str r3, [r7, #8]
  42387. 8012402: 60fa str r2, [r7, #12]
  42388. 8012404: 697b ldr r3, [r7, #20]
  42389. 8012406: 6a5b ldr r3, [r3, #36] @ 0x24
  42390. 8012408: 4a84 ldr r2, [pc, #528] @ (801261c <UART_SetConfig+0x930>)
  42391. 801240a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42392. 801240e: b29b uxth r3, r3
  42393. 8012410: 2200 movs r2, #0
  42394. 8012412: 603b str r3, [r7, #0]
  42395. 8012414: 607a str r2, [r7, #4]
  42396. 8012416: e9d7 2300 ldrd r2, r3, [r7]
  42397. 801241a: e9d7 0102 ldrd r0, r1, [r7, #8]
  42398. 801241e: f7ed ff5f bl 80002e0 <__aeabi_uldivmod>
  42399. 8012422: 4602 mov r2, r0
  42400. 8012424: 460b mov r3, r1
  42401. 8012426: 4610 mov r0, r2
  42402. 8012428: 4619 mov r1, r3
  42403. 801242a: f04f 0200 mov.w r2, #0
  42404. 801242e: f04f 0300 mov.w r3, #0
  42405. 8012432: 020b lsls r3, r1, #8
  42406. 8012434: ea43 6310 orr.w r3, r3, r0, lsr #24
  42407. 8012438: 0202 lsls r2, r0, #8
  42408. 801243a: 6979 ldr r1, [r7, #20]
  42409. 801243c: 6849 ldr r1, [r1, #4]
  42410. 801243e: 0849 lsrs r1, r1, #1
  42411. 8012440: 2000 movs r0, #0
  42412. 8012442: 460c mov r4, r1
  42413. 8012444: 4605 mov r5, r0
  42414. 8012446: eb12 0804 adds.w r8, r2, r4
  42415. 801244a: eb43 0905 adc.w r9, r3, r5
  42416. 801244e: 697b ldr r3, [r7, #20]
  42417. 8012450: 685b ldr r3, [r3, #4]
  42418. 8012452: 2200 movs r2, #0
  42419. 8012454: 469a mov sl, r3
  42420. 8012456: 4693 mov fp, r2
  42421. 8012458: 4652 mov r2, sl
  42422. 801245a: 465b mov r3, fp
  42423. 801245c: 4640 mov r0, r8
  42424. 801245e: 4649 mov r1, r9
  42425. 8012460: f7ed ff3e bl 80002e0 <__aeabi_uldivmod>
  42426. 8012464: 4602 mov r2, r0
  42427. 8012466: 460b mov r3, r1
  42428. 8012468: 4613 mov r3, r2
  42429. 801246a: 63bb str r3, [r7, #56] @ 0x38
  42430. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  42431. 801246c: 6bbb ldr r3, [r7, #56] @ 0x38
  42432. 801246e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  42433. 8012472: d308 bcc.n 8012486 <UART_SetConfig+0x79a>
  42434. 8012474: 6bbb ldr r3, [r7, #56] @ 0x38
  42435. 8012476: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42436. 801247a: d204 bcs.n 8012486 <UART_SetConfig+0x79a>
  42437. {
  42438. huart->Instance->BRR = usartdiv;
  42439. 801247c: 697b ldr r3, [r7, #20]
  42440. 801247e: 681b ldr r3, [r3, #0]
  42441. 8012480: 6bba ldr r2, [r7, #56] @ 0x38
  42442. 8012482: 60da str r2, [r3, #12]
  42443. 8012484: e17c b.n 8012780 <UART_SetConfig+0xa94>
  42444. }
  42445. else
  42446. {
  42447. ret = HAL_ERROR;
  42448. 8012486: 2301 movs r3, #1
  42449. 8012488: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42450. 801248c: e178 b.n 8012780 <UART_SetConfig+0xa94>
  42451. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  42452. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  42453. } /* if (pclk != 0) */
  42454. }
  42455. /* Check UART Over Sampling to set Baud Rate Register */
  42456. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  42457. 801248e: 697b ldr r3, [r7, #20]
  42458. 8012490: 69db ldr r3, [r3, #28]
  42459. 8012492: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  42460. 8012496: f040 80c5 bne.w 8012624 <UART_SetConfig+0x938>
  42461. {
  42462. switch (clocksource)
  42463. 801249a: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42464. 801249e: 2b20 cmp r3, #32
  42465. 80124a0: dc48 bgt.n 8012534 <UART_SetConfig+0x848>
  42466. 80124a2: 2b00 cmp r3, #0
  42467. 80124a4: db7b blt.n 801259e <UART_SetConfig+0x8b2>
  42468. 80124a6: 2b20 cmp r3, #32
  42469. 80124a8: d879 bhi.n 801259e <UART_SetConfig+0x8b2>
  42470. 80124aa: a201 add r2, pc, #4 @ (adr r2, 80124b0 <UART_SetConfig+0x7c4>)
  42471. 80124ac: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42472. 80124b0: 0801253b .word 0x0801253b
  42473. 80124b4: 08012543 .word 0x08012543
  42474. 80124b8: 0801259f .word 0x0801259f
  42475. 80124bc: 0801259f .word 0x0801259f
  42476. 80124c0: 0801254b .word 0x0801254b
  42477. 80124c4: 0801259f .word 0x0801259f
  42478. 80124c8: 0801259f .word 0x0801259f
  42479. 80124cc: 0801259f .word 0x0801259f
  42480. 80124d0: 0801255b .word 0x0801255b
  42481. 80124d4: 0801259f .word 0x0801259f
  42482. 80124d8: 0801259f .word 0x0801259f
  42483. 80124dc: 0801259f .word 0x0801259f
  42484. 80124e0: 0801259f .word 0x0801259f
  42485. 80124e4: 0801259f .word 0x0801259f
  42486. 80124e8: 0801259f .word 0x0801259f
  42487. 80124ec: 0801259f .word 0x0801259f
  42488. 80124f0: 0801256b .word 0x0801256b
  42489. 80124f4: 0801259f .word 0x0801259f
  42490. 80124f8: 0801259f .word 0x0801259f
  42491. 80124fc: 0801259f .word 0x0801259f
  42492. 8012500: 0801259f .word 0x0801259f
  42493. 8012504: 0801259f .word 0x0801259f
  42494. 8012508: 0801259f .word 0x0801259f
  42495. 801250c: 0801259f .word 0x0801259f
  42496. 8012510: 0801259f .word 0x0801259f
  42497. 8012514: 0801259f .word 0x0801259f
  42498. 8012518: 0801259f .word 0x0801259f
  42499. 801251c: 0801259f .word 0x0801259f
  42500. 8012520: 0801259f .word 0x0801259f
  42501. 8012524: 0801259f .word 0x0801259f
  42502. 8012528: 0801259f .word 0x0801259f
  42503. 801252c: 0801259f .word 0x0801259f
  42504. 8012530: 08012591 .word 0x08012591
  42505. 8012534: 2b40 cmp r3, #64 @ 0x40
  42506. 8012536: d02e beq.n 8012596 <UART_SetConfig+0x8aa>
  42507. 8012538: e031 b.n 801259e <UART_SetConfig+0x8b2>
  42508. {
  42509. case UART_CLOCKSOURCE_D2PCLK1:
  42510. pclk = HAL_RCC_GetPCLK1Freq();
  42511. 801253a: f7fa f9af bl 800c89c <HAL_RCC_GetPCLK1Freq>
  42512. 801253e: 63f8 str r0, [r7, #60] @ 0x3c
  42513. break;
  42514. 8012540: e033 b.n 80125aa <UART_SetConfig+0x8be>
  42515. case UART_CLOCKSOURCE_D2PCLK2:
  42516. pclk = HAL_RCC_GetPCLK2Freq();
  42517. 8012542: f7fa f9c1 bl 800c8c8 <HAL_RCC_GetPCLK2Freq>
  42518. 8012546: 63f8 str r0, [r7, #60] @ 0x3c
  42519. break;
  42520. 8012548: e02f b.n 80125aa <UART_SetConfig+0x8be>
  42521. case UART_CLOCKSOURCE_PLL2:
  42522. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42523. 801254a: f107 0324 add.w r3, r7, #36 @ 0x24
  42524. 801254e: 4618 mov r0, r3
  42525. 8012550: f7fc f996 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  42526. pclk = pll2_clocks.PLL2_Q_Frequency;
  42527. 8012554: 6abb ldr r3, [r7, #40] @ 0x28
  42528. 8012556: 63fb str r3, [r7, #60] @ 0x3c
  42529. break;
  42530. 8012558: e027 b.n 80125aa <UART_SetConfig+0x8be>
  42531. case UART_CLOCKSOURCE_PLL3:
  42532. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42533. 801255a: f107 0318 add.w r3, r7, #24
  42534. 801255e: 4618 mov r0, r3
  42535. 8012560: f7fc fae2 bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  42536. pclk = pll3_clocks.PLL3_Q_Frequency;
  42537. 8012564: 69fb ldr r3, [r7, #28]
  42538. 8012566: 63fb str r3, [r7, #60] @ 0x3c
  42539. break;
  42540. 8012568: e01f b.n 80125aa <UART_SetConfig+0x8be>
  42541. case UART_CLOCKSOURCE_HSI:
  42542. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42543. 801256a: 4b2d ldr r3, [pc, #180] @ (8012620 <UART_SetConfig+0x934>)
  42544. 801256c: 681b ldr r3, [r3, #0]
  42545. 801256e: f003 0320 and.w r3, r3, #32
  42546. 8012572: 2b00 cmp r3, #0
  42547. 8012574: d009 beq.n 801258a <UART_SetConfig+0x89e>
  42548. {
  42549. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42550. 8012576: 4b2a ldr r3, [pc, #168] @ (8012620 <UART_SetConfig+0x934>)
  42551. 8012578: 681b ldr r3, [r3, #0]
  42552. 801257a: 08db lsrs r3, r3, #3
  42553. 801257c: f003 0303 and.w r3, r3, #3
  42554. 8012580: 4a24 ldr r2, [pc, #144] @ (8012614 <UART_SetConfig+0x928>)
  42555. 8012582: fa22 f303 lsr.w r3, r2, r3
  42556. 8012586: 63fb str r3, [r7, #60] @ 0x3c
  42557. }
  42558. else
  42559. {
  42560. pclk = (uint32_t) HSI_VALUE;
  42561. }
  42562. break;
  42563. 8012588: e00f b.n 80125aa <UART_SetConfig+0x8be>
  42564. pclk = (uint32_t) HSI_VALUE;
  42565. 801258a: 4b22 ldr r3, [pc, #136] @ (8012614 <UART_SetConfig+0x928>)
  42566. 801258c: 63fb str r3, [r7, #60] @ 0x3c
  42567. break;
  42568. 801258e: e00c b.n 80125aa <UART_SetConfig+0x8be>
  42569. case UART_CLOCKSOURCE_CSI:
  42570. pclk = (uint32_t) CSI_VALUE;
  42571. 8012590: 4b21 ldr r3, [pc, #132] @ (8012618 <UART_SetConfig+0x92c>)
  42572. 8012592: 63fb str r3, [r7, #60] @ 0x3c
  42573. break;
  42574. 8012594: e009 b.n 80125aa <UART_SetConfig+0x8be>
  42575. case UART_CLOCKSOURCE_LSE:
  42576. pclk = (uint32_t) LSE_VALUE;
  42577. 8012596: f44f 4300 mov.w r3, #32768 @ 0x8000
  42578. 801259a: 63fb str r3, [r7, #60] @ 0x3c
  42579. break;
  42580. 801259c: e005 b.n 80125aa <UART_SetConfig+0x8be>
  42581. default:
  42582. pclk = 0U;
  42583. 801259e: 2300 movs r3, #0
  42584. 80125a0: 63fb str r3, [r7, #60] @ 0x3c
  42585. ret = HAL_ERROR;
  42586. 80125a2: 2301 movs r3, #1
  42587. 80125a4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42588. break;
  42589. 80125a8: bf00 nop
  42590. }
  42591. /* USARTDIV must be greater than or equal to 0d16 */
  42592. if (pclk != 0U)
  42593. 80125aa: 6bfb ldr r3, [r7, #60] @ 0x3c
  42594. 80125ac: 2b00 cmp r3, #0
  42595. 80125ae: f000 80e7 beq.w 8012780 <UART_SetConfig+0xa94>
  42596. {
  42597. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42598. 80125b2: 697b ldr r3, [r7, #20]
  42599. 80125b4: 6a5b ldr r3, [r3, #36] @ 0x24
  42600. 80125b6: 4a19 ldr r2, [pc, #100] @ (801261c <UART_SetConfig+0x930>)
  42601. 80125b8: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42602. 80125bc: 461a mov r2, r3
  42603. 80125be: 6bfb ldr r3, [r7, #60] @ 0x3c
  42604. 80125c0: fbb3 f3f2 udiv r3, r3, r2
  42605. 80125c4: 005a lsls r2, r3, #1
  42606. 80125c6: 697b ldr r3, [r7, #20]
  42607. 80125c8: 685b ldr r3, [r3, #4]
  42608. 80125ca: 085b lsrs r3, r3, #1
  42609. 80125cc: 441a add r2, r3
  42610. 80125ce: 697b ldr r3, [r7, #20]
  42611. 80125d0: 685b ldr r3, [r3, #4]
  42612. 80125d2: fbb2 f3f3 udiv r3, r2, r3
  42613. 80125d6: 63bb str r3, [r7, #56] @ 0x38
  42614. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42615. 80125d8: 6bbb ldr r3, [r7, #56] @ 0x38
  42616. 80125da: 2b0f cmp r3, #15
  42617. 80125dc: d916 bls.n 801260c <UART_SetConfig+0x920>
  42618. 80125de: 6bbb ldr r3, [r7, #56] @ 0x38
  42619. 80125e0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42620. 80125e4: d212 bcs.n 801260c <UART_SetConfig+0x920>
  42621. {
  42622. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  42623. 80125e6: 6bbb ldr r3, [r7, #56] @ 0x38
  42624. 80125e8: b29b uxth r3, r3
  42625. 80125ea: f023 030f bic.w r3, r3, #15
  42626. 80125ee: 86fb strh r3, [r7, #54] @ 0x36
  42627. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  42628. 80125f0: 6bbb ldr r3, [r7, #56] @ 0x38
  42629. 80125f2: 085b lsrs r3, r3, #1
  42630. 80125f4: b29b uxth r3, r3
  42631. 80125f6: f003 0307 and.w r3, r3, #7
  42632. 80125fa: b29a uxth r2, r3
  42633. 80125fc: 8efb ldrh r3, [r7, #54] @ 0x36
  42634. 80125fe: 4313 orrs r3, r2
  42635. 8012600: 86fb strh r3, [r7, #54] @ 0x36
  42636. huart->Instance->BRR = brrtemp;
  42637. 8012602: 697b ldr r3, [r7, #20]
  42638. 8012604: 681b ldr r3, [r3, #0]
  42639. 8012606: 8efa ldrh r2, [r7, #54] @ 0x36
  42640. 8012608: 60da str r2, [r3, #12]
  42641. 801260a: e0b9 b.n 8012780 <UART_SetConfig+0xa94>
  42642. }
  42643. else
  42644. {
  42645. ret = HAL_ERROR;
  42646. 801260c: 2301 movs r3, #1
  42647. 801260e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42648. 8012612: e0b5 b.n 8012780 <UART_SetConfig+0xa94>
  42649. 8012614: 03d09000 .word 0x03d09000
  42650. 8012618: 003d0900 .word 0x003d0900
  42651. 801261c: 080186f4 .word 0x080186f4
  42652. 8012620: 58024400 .word 0x58024400
  42653. }
  42654. }
  42655. }
  42656. else
  42657. {
  42658. switch (clocksource)
  42659. 8012624: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42660. 8012628: 2b20 cmp r3, #32
  42661. 801262a: dc49 bgt.n 80126c0 <UART_SetConfig+0x9d4>
  42662. 801262c: 2b00 cmp r3, #0
  42663. 801262e: db7c blt.n 801272a <UART_SetConfig+0xa3e>
  42664. 8012630: 2b20 cmp r3, #32
  42665. 8012632: d87a bhi.n 801272a <UART_SetConfig+0xa3e>
  42666. 8012634: a201 add r2, pc, #4 @ (adr r2, 801263c <UART_SetConfig+0x950>)
  42667. 8012636: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42668. 801263a: bf00 nop
  42669. 801263c: 080126c7 .word 0x080126c7
  42670. 8012640: 080126cf .word 0x080126cf
  42671. 8012644: 0801272b .word 0x0801272b
  42672. 8012648: 0801272b .word 0x0801272b
  42673. 801264c: 080126d7 .word 0x080126d7
  42674. 8012650: 0801272b .word 0x0801272b
  42675. 8012654: 0801272b .word 0x0801272b
  42676. 8012658: 0801272b .word 0x0801272b
  42677. 801265c: 080126e7 .word 0x080126e7
  42678. 8012660: 0801272b .word 0x0801272b
  42679. 8012664: 0801272b .word 0x0801272b
  42680. 8012668: 0801272b .word 0x0801272b
  42681. 801266c: 0801272b .word 0x0801272b
  42682. 8012670: 0801272b .word 0x0801272b
  42683. 8012674: 0801272b .word 0x0801272b
  42684. 8012678: 0801272b .word 0x0801272b
  42685. 801267c: 080126f7 .word 0x080126f7
  42686. 8012680: 0801272b .word 0x0801272b
  42687. 8012684: 0801272b .word 0x0801272b
  42688. 8012688: 0801272b .word 0x0801272b
  42689. 801268c: 0801272b .word 0x0801272b
  42690. 8012690: 0801272b .word 0x0801272b
  42691. 8012694: 0801272b .word 0x0801272b
  42692. 8012698: 0801272b .word 0x0801272b
  42693. 801269c: 0801272b .word 0x0801272b
  42694. 80126a0: 0801272b .word 0x0801272b
  42695. 80126a4: 0801272b .word 0x0801272b
  42696. 80126a8: 0801272b .word 0x0801272b
  42697. 80126ac: 0801272b .word 0x0801272b
  42698. 80126b0: 0801272b .word 0x0801272b
  42699. 80126b4: 0801272b .word 0x0801272b
  42700. 80126b8: 0801272b .word 0x0801272b
  42701. 80126bc: 0801271d .word 0x0801271d
  42702. 80126c0: 2b40 cmp r3, #64 @ 0x40
  42703. 80126c2: d02e beq.n 8012722 <UART_SetConfig+0xa36>
  42704. 80126c4: e031 b.n 801272a <UART_SetConfig+0xa3e>
  42705. {
  42706. case UART_CLOCKSOURCE_D2PCLK1:
  42707. pclk = HAL_RCC_GetPCLK1Freq();
  42708. 80126c6: f7fa f8e9 bl 800c89c <HAL_RCC_GetPCLK1Freq>
  42709. 80126ca: 63f8 str r0, [r7, #60] @ 0x3c
  42710. break;
  42711. 80126cc: e033 b.n 8012736 <UART_SetConfig+0xa4a>
  42712. case UART_CLOCKSOURCE_D2PCLK2:
  42713. pclk = HAL_RCC_GetPCLK2Freq();
  42714. 80126ce: f7fa f8fb bl 800c8c8 <HAL_RCC_GetPCLK2Freq>
  42715. 80126d2: 63f8 str r0, [r7, #60] @ 0x3c
  42716. break;
  42717. 80126d4: e02f b.n 8012736 <UART_SetConfig+0xa4a>
  42718. case UART_CLOCKSOURCE_PLL2:
  42719. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42720. 80126d6: f107 0324 add.w r3, r7, #36 @ 0x24
  42721. 80126da: 4618 mov r0, r3
  42722. 80126dc: f7fc f8d0 bl 800e880 <HAL_RCCEx_GetPLL2ClockFreq>
  42723. pclk = pll2_clocks.PLL2_Q_Frequency;
  42724. 80126e0: 6abb ldr r3, [r7, #40] @ 0x28
  42725. 80126e2: 63fb str r3, [r7, #60] @ 0x3c
  42726. break;
  42727. 80126e4: e027 b.n 8012736 <UART_SetConfig+0xa4a>
  42728. case UART_CLOCKSOURCE_PLL3:
  42729. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42730. 80126e6: f107 0318 add.w r3, r7, #24
  42731. 80126ea: 4618 mov r0, r3
  42732. 80126ec: f7fc fa1c bl 800eb28 <HAL_RCCEx_GetPLL3ClockFreq>
  42733. pclk = pll3_clocks.PLL3_Q_Frequency;
  42734. 80126f0: 69fb ldr r3, [r7, #28]
  42735. 80126f2: 63fb str r3, [r7, #60] @ 0x3c
  42736. break;
  42737. 80126f4: e01f b.n 8012736 <UART_SetConfig+0xa4a>
  42738. case UART_CLOCKSOURCE_HSI:
  42739. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42740. 80126f6: 4b2d ldr r3, [pc, #180] @ (80127ac <UART_SetConfig+0xac0>)
  42741. 80126f8: 681b ldr r3, [r3, #0]
  42742. 80126fa: f003 0320 and.w r3, r3, #32
  42743. 80126fe: 2b00 cmp r3, #0
  42744. 8012700: d009 beq.n 8012716 <UART_SetConfig+0xa2a>
  42745. {
  42746. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42747. 8012702: 4b2a ldr r3, [pc, #168] @ (80127ac <UART_SetConfig+0xac0>)
  42748. 8012704: 681b ldr r3, [r3, #0]
  42749. 8012706: 08db lsrs r3, r3, #3
  42750. 8012708: f003 0303 and.w r3, r3, #3
  42751. 801270c: 4a28 ldr r2, [pc, #160] @ (80127b0 <UART_SetConfig+0xac4>)
  42752. 801270e: fa22 f303 lsr.w r3, r2, r3
  42753. 8012712: 63fb str r3, [r7, #60] @ 0x3c
  42754. }
  42755. else
  42756. {
  42757. pclk = (uint32_t) HSI_VALUE;
  42758. }
  42759. break;
  42760. 8012714: e00f b.n 8012736 <UART_SetConfig+0xa4a>
  42761. pclk = (uint32_t) HSI_VALUE;
  42762. 8012716: 4b26 ldr r3, [pc, #152] @ (80127b0 <UART_SetConfig+0xac4>)
  42763. 8012718: 63fb str r3, [r7, #60] @ 0x3c
  42764. break;
  42765. 801271a: e00c b.n 8012736 <UART_SetConfig+0xa4a>
  42766. case UART_CLOCKSOURCE_CSI:
  42767. pclk = (uint32_t) CSI_VALUE;
  42768. 801271c: 4b25 ldr r3, [pc, #148] @ (80127b4 <UART_SetConfig+0xac8>)
  42769. 801271e: 63fb str r3, [r7, #60] @ 0x3c
  42770. break;
  42771. 8012720: e009 b.n 8012736 <UART_SetConfig+0xa4a>
  42772. case UART_CLOCKSOURCE_LSE:
  42773. pclk = (uint32_t) LSE_VALUE;
  42774. 8012722: f44f 4300 mov.w r3, #32768 @ 0x8000
  42775. 8012726: 63fb str r3, [r7, #60] @ 0x3c
  42776. break;
  42777. 8012728: e005 b.n 8012736 <UART_SetConfig+0xa4a>
  42778. default:
  42779. pclk = 0U;
  42780. 801272a: 2300 movs r3, #0
  42781. 801272c: 63fb str r3, [r7, #60] @ 0x3c
  42782. ret = HAL_ERROR;
  42783. 801272e: 2301 movs r3, #1
  42784. 8012730: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42785. break;
  42786. 8012734: bf00 nop
  42787. }
  42788. if (pclk != 0U)
  42789. 8012736: 6bfb ldr r3, [r7, #60] @ 0x3c
  42790. 8012738: 2b00 cmp r3, #0
  42791. 801273a: d021 beq.n 8012780 <UART_SetConfig+0xa94>
  42792. {
  42793. /* USARTDIV must be greater than or equal to 0d16 */
  42794. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42795. 801273c: 697b ldr r3, [r7, #20]
  42796. 801273e: 6a5b ldr r3, [r3, #36] @ 0x24
  42797. 8012740: 4a1d ldr r2, [pc, #116] @ (80127b8 <UART_SetConfig+0xacc>)
  42798. 8012742: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42799. 8012746: 461a mov r2, r3
  42800. 8012748: 6bfb ldr r3, [r7, #60] @ 0x3c
  42801. 801274a: fbb3 f2f2 udiv r2, r3, r2
  42802. 801274e: 697b ldr r3, [r7, #20]
  42803. 8012750: 685b ldr r3, [r3, #4]
  42804. 8012752: 085b lsrs r3, r3, #1
  42805. 8012754: 441a add r2, r3
  42806. 8012756: 697b ldr r3, [r7, #20]
  42807. 8012758: 685b ldr r3, [r3, #4]
  42808. 801275a: fbb2 f3f3 udiv r3, r2, r3
  42809. 801275e: 63bb str r3, [r7, #56] @ 0x38
  42810. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42811. 8012760: 6bbb ldr r3, [r7, #56] @ 0x38
  42812. 8012762: 2b0f cmp r3, #15
  42813. 8012764: d909 bls.n 801277a <UART_SetConfig+0xa8e>
  42814. 8012766: 6bbb ldr r3, [r7, #56] @ 0x38
  42815. 8012768: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42816. 801276c: d205 bcs.n 801277a <UART_SetConfig+0xa8e>
  42817. {
  42818. huart->Instance->BRR = (uint16_t)usartdiv;
  42819. 801276e: 6bbb ldr r3, [r7, #56] @ 0x38
  42820. 8012770: b29a uxth r2, r3
  42821. 8012772: 697b ldr r3, [r7, #20]
  42822. 8012774: 681b ldr r3, [r3, #0]
  42823. 8012776: 60da str r2, [r3, #12]
  42824. 8012778: e002 b.n 8012780 <UART_SetConfig+0xa94>
  42825. }
  42826. else
  42827. {
  42828. ret = HAL_ERROR;
  42829. 801277a: 2301 movs r3, #1
  42830. 801277c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42831. }
  42832. }
  42833. }
  42834. /* Initialize the number of data to process during RX/TX ISR execution */
  42835. huart->NbTxDataToProcess = 1;
  42836. 8012780: 697b ldr r3, [r7, #20]
  42837. 8012782: 2201 movs r2, #1
  42838. 8012784: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  42839. huart->NbRxDataToProcess = 1;
  42840. 8012788: 697b ldr r3, [r7, #20]
  42841. 801278a: 2201 movs r2, #1
  42842. 801278c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  42843. /* Clear ISR function pointers */
  42844. huart->RxISR = NULL;
  42845. 8012790: 697b ldr r3, [r7, #20]
  42846. 8012792: 2200 movs r2, #0
  42847. 8012794: 675a str r2, [r3, #116] @ 0x74
  42848. huart->TxISR = NULL;
  42849. 8012796: 697b ldr r3, [r7, #20]
  42850. 8012798: 2200 movs r2, #0
  42851. 801279a: 679a str r2, [r3, #120] @ 0x78
  42852. return ret;
  42853. 801279c: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  42854. }
  42855. 80127a0: 4618 mov r0, r3
  42856. 80127a2: 3748 adds r7, #72 @ 0x48
  42857. 80127a4: 46bd mov sp, r7
  42858. 80127a6: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  42859. 80127aa: bf00 nop
  42860. 80127ac: 58024400 .word 0x58024400
  42861. 80127b0: 03d09000 .word 0x03d09000
  42862. 80127b4: 003d0900 .word 0x003d0900
  42863. 80127b8: 080186f4 .word 0x080186f4
  42864. 080127bc <UART_AdvFeatureConfig>:
  42865. * @brief Configure the UART peripheral advanced features.
  42866. * @param huart UART handle.
  42867. * @retval None
  42868. */
  42869. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42870. {
  42871. 80127bc: b480 push {r7}
  42872. 80127be: b083 sub sp, #12
  42873. 80127c0: af00 add r7, sp, #0
  42874. 80127c2: 6078 str r0, [r7, #4]
  42875. /* Check whether the set of advanced features to configure is properly set */
  42876. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42877. /* if required, configure RX/TX pins swap */
  42878. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42879. 80127c4: 687b ldr r3, [r7, #4]
  42880. 80127c6: 6a9b ldr r3, [r3, #40] @ 0x28
  42881. 80127c8: f003 0308 and.w r3, r3, #8
  42882. 80127cc: 2b00 cmp r3, #0
  42883. 80127ce: d00a beq.n 80127e6 <UART_AdvFeatureConfig+0x2a>
  42884. {
  42885. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42886. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42887. 80127d0: 687b ldr r3, [r7, #4]
  42888. 80127d2: 681b ldr r3, [r3, #0]
  42889. 80127d4: 685b ldr r3, [r3, #4]
  42890. 80127d6: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42891. 80127da: 687b ldr r3, [r7, #4]
  42892. 80127dc: 6b9a ldr r2, [r3, #56] @ 0x38
  42893. 80127de: 687b ldr r3, [r7, #4]
  42894. 80127e0: 681b ldr r3, [r3, #0]
  42895. 80127e2: 430a orrs r2, r1
  42896. 80127e4: 605a str r2, [r3, #4]
  42897. }
  42898. /* if required, configure TX pin active level inversion */
  42899. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42900. 80127e6: 687b ldr r3, [r7, #4]
  42901. 80127e8: 6a9b ldr r3, [r3, #40] @ 0x28
  42902. 80127ea: f003 0301 and.w r3, r3, #1
  42903. 80127ee: 2b00 cmp r3, #0
  42904. 80127f0: d00a beq.n 8012808 <UART_AdvFeatureConfig+0x4c>
  42905. {
  42906. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42907. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42908. 80127f2: 687b ldr r3, [r7, #4]
  42909. 80127f4: 681b ldr r3, [r3, #0]
  42910. 80127f6: 685b ldr r3, [r3, #4]
  42911. 80127f8: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42912. 80127fc: 687b ldr r3, [r7, #4]
  42913. 80127fe: 6ada ldr r2, [r3, #44] @ 0x2c
  42914. 8012800: 687b ldr r3, [r7, #4]
  42915. 8012802: 681b ldr r3, [r3, #0]
  42916. 8012804: 430a orrs r2, r1
  42917. 8012806: 605a str r2, [r3, #4]
  42918. }
  42919. /* if required, configure RX pin active level inversion */
  42920. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42921. 8012808: 687b ldr r3, [r7, #4]
  42922. 801280a: 6a9b ldr r3, [r3, #40] @ 0x28
  42923. 801280c: f003 0302 and.w r3, r3, #2
  42924. 8012810: 2b00 cmp r3, #0
  42925. 8012812: d00a beq.n 801282a <UART_AdvFeatureConfig+0x6e>
  42926. {
  42927. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42928. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42929. 8012814: 687b ldr r3, [r7, #4]
  42930. 8012816: 681b ldr r3, [r3, #0]
  42931. 8012818: 685b ldr r3, [r3, #4]
  42932. 801281a: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42933. 801281e: 687b ldr r3, [r7, #4]
  42934. 8012820: 6b1a ldr r2, [r3, #48] @ 0x30
  42935. 8012822: 687b ldr r3, [r7, #4]
  42936. 8012824: 681b ldr r3, [r3, #0]
  42937. 8012826: 430a orrs r2, r1
  42938. 8012828: 605a str r2, [r3, #4]
  42939. }
  42940. /* if required, configure data inversion */
  42941. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  42942. 801282a: 687b ldr r3, [r7, #4]
  42943. 801282c: 6a9b ldr r3, [r3, #40] @ 0x28
  42944. 801282e: f003 0304 and.w r3, r3, #4
  42945. 8012832: 2b00 cmp r3, #0
  42946. 8012834: d00a beq.n 801284c <UART_AdvFeatureConfig+0x90>
  42947. {
  42948. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  42949. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  42950. 8012836: 687b ldr r3, [r7, #4]
  42951. 8012838: 681b ldr r3, [r3, #0]
  42952. 801283a: 685b ldr r3, [r3, #4]
  42953. 801283c: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  42954. 8012840: 687b ldr r3, [r7, #4]
  42955. 8012842: 6b5a ldr r2, [r3, #52] @ 0x34
  42956. 8012844: 687b ldr r3, [r7, #4]
  42957. 8012846: 681b ldr r3, [r3, #0]
  42958. 8012848: 430a orrs r2, r1
  42959. 801284a: 605a str r2, [r3, #4]
  42960. }
  42961. /* if required, configure RX overrun detection disabling */
  42962. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  42963. 801284c: 687b ldr r3, [r7, #4]
  42964. 801284e: 6a9b ldr r3, [r3, #40] @ 0x28
  42965. 8012850: f003 0310 and.w r3, r3, #16
  42966. 8012854: 2b00 cmp r3, #0
  42967. 8012856: d00a beq.n 801286e <UART_AdvFeatureConfig+0xb2>
  42968. {
  42969. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  42970. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  42971. 8012858: 687b ldr r3, [r7, #4]
  42972. 801285a: 681b ldr r3, [r3, #0]
  42973. 801285c: 689b ldr r3, [r3, #8]
  42974. 801285e: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  42975. 8012862: 687b ldr r3, [r7, #4]
  42976. 8012864: 6bda ldr r2, [r3, #60] @ 0x3c
  42977. 8012866: 687b ldr r3, [r7, #4]
  42978. 8012868: 681b ldr r3, [r3, #0]
  42979. 801286a: 430a orrs r2, r1
  42980. 801286c: 609a str r2, [r3, #8]
  42981. }
  42982. /* if required, configure DMA disabling on reception error */
  42983. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  42984. 801286e: 687b ldr r3, [r7, #4]
  42985. 8012870: 6a9b ldr r3, [r3, #40] @ 0x28
  42986. 8012872: f003 0320 and.w r3, r3, #32
  42987. 8012876: 2b00 cmp r3, #0
  42988. 8012878: d00a beq.n 8012890 <UART_AdvFeatureConfig+0xd4>
  42989. {
  42990. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  42991. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  42992. 801287a: 687b ldr r3, [r7, #4]
  42993. 801287c: 681b ldr r3, [r3, #0]
  42994. 801287e: 689b ldr r3, [r3, #8]
  42995. 8012880: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  42996. 8012884: 687b ldr r3, [r7, #4]
  42997. 8012886: 6c1a ldr r2, [r3, #64] @ 0x40
  42998. 8012888: 687b ldr r3, [r7, #4]
  42999. 801288a: 681b ldr r3, [r3, #0]
  43000. 801288c: 430a orrs r2, r1
  43001. 801288e: 609a str r2, [r3, #8]
  43002. }
  43003. /* if required, configure auto Baud rate detection scheme */
  43004. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  43005. 8012890: 687b ldr r3, [r7, #4]
  43006. 8012892: 6a9b ldr r3, [r3, #40] @ 0x28
  43007. 8012894: f003 0340 and.w r3, r3, #64 @ 0x40
  43008. 8012898: 2b00 cmp r3, #0
  43009. 801289a: d01a beq.n 80128d2 <UART_AdvFeatureConfig+0x116>
  43010. {
  43011. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  43012. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  43013. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  43014. 801289c: 687b ldr r3, [r7, #4]
  43015. 801289e: 681b ldr r3, [r3, #0]
  43016. 80128a0: 685b ldr r3, [r3, #4]
  43017. 80128a2: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  43018. 80128a6: 687b ldr r3, [r7, #4]
  43019. 80128a8: 6c5a ldr r2, [r3, #68] @ 0x44
  43020. 80128aa: 687b ldr r3, [r7, #4]
  43021. 80128ac: 681b ldr r3, [r3, #0]
  43022. 80128ae: 430a orrs r2, r1
  43023. 80128b0: 605a str r2, [r3, #4]
  43024. /* set auto Baudrate detection parameters if detection is enabled */
  43025. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  43026. 80128b2: 687b ldr r3, [r7, #4]
  43027. 80128b4: 6c5b ldr r3, [r3, #68] @ 0x44
  43028. 80128b6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  43029. 80128ba: d10a bne.n 80128d2 <UART_AdvFeatureConfig+0x116>
  43030. {
  43031. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  43032. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  43033. 80128bc: 687b ldr r3, [r7, #4]
  43034. 80128be: 681b ldr r3, [r3, #0]
  43035. 80128c0: 685b ldr r3, [r3, #4]
  43036. 80128c2: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  43037. 80128c6: 687b ldr r3, [r7, #4]
  43038. 80128c8: 6c9a ldr r2, [r3, #72] @ 0x48
  43039. 80128ca: 687b ldr r3, [r7, #4]
  43040. 80128cc: 681b ldr r3, [r3, #0]
  43041. 80128ce: 430a orrs r2, r1
  43042. 80128d0: 605a str r2, [r3, #4]
  43043. }
  43044. }
  43045. /* if required, configure MSB first on communication line */
  43046. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  43047. 80128d2: 687b ldr r3, [r7, #4]
  43048. 80128d4: 6a9b ldr r3, [r3, #40] @ 0x28
  43049. 80128d6: f003 0380 and.w r3, r3, #128 @ 0x80
  43050. 80128da: 2b00 cmp r3, #0
  43051. 80128dc: d00a beq.n 80128f4 <UART_AdvFeatureConfig+0x138>
  43052. {
  43053. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  43054. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  43055. 80128de: 687b ldr r3, [r7, #4]
  43056. 80128e0: 681b ldr r3, [r3, #0]
  43057. 80128e2: 685b ldr r3, [r3, #4]
  43058. 80128e4: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  43059. 80128e8: 687b ldr r3, [r7, #4]
  43060. 80128ea: 6cda ldr r2, [r3, #76] @ 0x4c
  43061. 80128ec: 687b ldr r3, [r7, #4]
  43062. 80128ee: 681b ldr r3, [r3, #0]
  43063. 80128f0: 430a orrs r2, r1
  43064. 80128f2: 605a str r2, [r3, #4]
  43065. }
  43066. }
  43067. 80128f4: bf00 nop
  43068. 80128f6: 370c adds r7, #12
  43069. 80128f8: 46bd mov sp, r7
  43070. 80128fa: f85d 7b04 ldr.w r7, [sp], #4
  43071. 80128fe: 4770 bx lr
  43072. 08012900 <UART_CheckIdleState>:
  43073. * @brief Check the UART Idle State.
  43074. * @param huart UART handle.
  43075. * @retval HAL status
  43076. */
  43077. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  43078. {
  43079. 8012900: b580 push {r7, lr}
  43080. 8012902: b098 sub sp, #96 @ 0x60
  43081. 8012904: af02 add r7, sp, #8
  43082. 8012906: 6078 str r0, [r7, #4]
  43083. uint32_t tickstart;
  43084. /* Initialize the UART ErrorCode */
  43085. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43086. 8012908: 687b ldr r3, [r7, #4]
  43087. 801290a: 2200 movs r2, #0
  43088. 801290c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43089. /* Init tickstart for timeout management */
  43090. tickstart = HAL_GetTick();
  43091. 8012910: f7f3 fa74 bl 8005dfc <HAL_GetTick>
  43092. 8012914: 6578 str r0, [r7, #84] @ 0x54
  43093. /* Check if the Transmitter is enabled */
  43094. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  43095. 8012916: 687b ldr r3, [r7, #4]
  43096. 8012918: 681b ldr r3, [r3, #0]
  43097. 801291a: 681b ldr r3, [r3, #0]
  43098. 801291c: f003 0308 and.w r3, r3, #8
  43099. 8012920: 2b08 cmp r3, #8
  43100. 8012922: d12f bne.n 8012984 <UART_CheckIdleState+0x84>
  43101. {
  43102. /* Wait until TEACK flag is set */
  43103. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43104. 8012924: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43105. 8012928: 9300 str r3, [sp, #0]
  43106. 801292a: 6d7b ldr r3, [r7, #84] @ 0x54
  43107. 801292c: 2200 movs r2, #0
  43108. 801292e: f44f 1100 mov.w r1, #2097152 @ 0x200000
  43109. 8012932: 6878 ldr r0, [r7, #4]
  43110. 8012934: f000 f88e bl 8012a54 <UART_WaitOnFlagUntilTimeout>
  43111. 8012938: 4603 mov r3, r0
  43112. 801293a: 2b00 cmp r3, #0
  43113. 801293c: d022 beq.n 8012984 <UART_CheckIdleState+0x84>
  43114. {
  43115. /* Disable TXE interrupt for the interrupt process */
  43116. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  43117. 801293e: 687b ldr r3, [r7, #4]
  43118. 8012940: 681b ldr r3, [r3, #0]
  43119. 8012942: 63bb str r3, [r7, #56] @ 0x38
  43120. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43121. 8012944: 6bbb ldr r3, [r7, #56] @ 0x38
  43122. 8012946: e853 3f00 ldrex r3, [r3]
  43123. 801294a: 637b str r3, [r7, #52] @ 0x34
  43124. return(result);
  43125. 801294c: 6b7b ldr r3, [r7, #52] @ 0x34
  43126. 801294e: f023 0380 bic.w r3, r3, #128 @ 0x80
  43127. 8012952: 653b str r3, [r7, #80] @ 0x50
  43128. 8012954: 687b ldr r3, [r7, #4]
  43129. 8012956: 681b ldr r3, [r3, #0]
  43130. 8012958: 461a mov r2, r3
  43131. 801295a: 6d3b ldr r3, [r7, #80] @ 0x50
  43132. 801295c: 647b str r3, [r7, #68] @ 0x44
  43133. 801295e: 643a str r2, [r7, #64] @ 0x40
  43134. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43135. 8012960: 6c39 ldr r1, [r7, #64] @ 0x40
  43136. 8012962: 6c7a ldr r2, [r7, #68] @ 0x44
  43137. 8012964: e841 2300 strex r3, r2, [r1]
  43138. 8012968: 63fb str r3, [r7, #60] @ 0x3c
  43139. return(result);
  43140. 801296a: 6bfb ldr r3, [r7, #60] @ 0x3c
  43141. 801296c: 2b00 cmp r3, #0
  43142. 801296e: d1e6 bne.n 801293e <UART_CheckIdleState+0x3e>
  43143. huart->gState = HAL_UART_STATE_READY;
  43144. 8012970: 687b ldr r3, [r7, #4]
  43145. 8012972: 2220 movs r2, #32
  43146. 8012974: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43147. __HAL_UNLOCK(huart);
  43148. 8012978: 687b ldr r3, [r7, #4]
  43149. 801297a: 2200 movs r2, #0
  43150. 801297c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43151. /* Timeout occurred */
  43152. return HAL_TIMEOUT;
  43153. 8012980: 2303 movs r3, #3
  43154. 8012982: e063 b.n 8012a4c <UART_CheckIdleState+0x14c>
  43155. }
  43156. }
  43157. /* Check if the Receiver is enabled */
  43158. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  43159. 8012984: 687b ldr r3, [r7, #4]
  43160. 8012986: 681b ldr r3, [r3, #0]
  43161. 8012988: 681b ldr r3, [r3, #0]
  43162. 801298a: f003 0304 and.w r3, r3, #4
  43163. 801298e: 2b04 cmp r3, #4
  43164. 8012990: d149 bne.n 8012a26 <UART_CheckIdleState+0x126>
  43165. {
  43166. /* Wait until REACK flag is set */
  43167. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43168. 8012992: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43169. 8012996: 9300 str r3, [sp, #0]
  43170. 8012998: 6d7b ldr r3, [r7, #84] @ 0x54
  43171. 801299a: 2200 movs r2, #0
  43172. 801299c: f44f 0180 mov.w r1, #4194304 @ 0x400000
  43173. 80129a0: 6878 ldr r0, [r7, #4]
  43174. 80129a2: f000 f857 bl 8012a54 <UART_WaitOnFlagUntilTimeout>
  43175. 80129a6: 4603 mov r3, r0
  43176. 80129a8: 2b00 cmp r3, #0
  43177. 80129aa: d03c beq.n 8012a26 <UART_CheckIdleState+0x126>
  43178. {
  43179. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  43180. interrupts for the interrupt process */
  43181. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43182. 80129ac: 687b ldr r3, [r7, #4]
  43183. 80129ae: 681b ldr r3, [r3, #0]
  43184. 80129b0: 627b str r3, [r7, #36] @ 0x24
  43185. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43186. 80129b2: 6a7b ldr r3, [r7, #36] @ 0x24
  43187. 80129b4: e853 3f00 ldrex r3, [r3]
  43188. 80129b8: 623b str r3, [r7, #32]
  43189. return(result);
  43190. 80129ba: 6a3b ldr r3, [r7, #32]
  43191. 80129bc: f423 7390 bic.w r3, r3, #288 @ 0x120
  43192. 80129c0: 64fb str r3, [r7, #76] @ 0x4c
  43193. 80129c2: 687b ldr r3, [r7, #4]
  43194. 80129c4: 681b ldr r3, [r3, #0]
  43195. 80129c6: 461a mov r2, r3
  43196. 80129c8: 6cfb ldr r3, [r7, #76] @ 0x4c
  43197. 80129ca: 633b str r3, [r7, #48] @ 0x30
  43198. 80129cc: 62fa str r2, [r7, #44] @ 0x2c
  43199. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43200. 80129ce: 6af9 ldr r1, [r7, #44] @ 0x2c
  43201. 80129d0: 6b3a ldr r2, [r7, #48] @ 0x30
  43202. 80129d2: e841 2300 strex r3, r2, [r1]
  43203. 80129d6: 62bb str r3, [r7, #40] @ 0x28
  43204. return(result);
  43205. 80129d8: 6abb ldr r3, [r7, #40] @ 0x28
  43206. 80129da: 2b00 cmp r3, #0
  43207. 80129dc: d1e6 bne.n 80129ac <UART_CheckIdleState+0xac>
  43208. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43209. 80129de: 687b ldr r3, [r7, #4]
  43210. 80129e0: 681b ldr r3, [r3, #0]
  43211. 80129e2: 3308 adds r3, #8
  43212. 80129e4: 613b str r3, [r7, #16]
  43213. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43214. 80129e6: 693b ldr r3, [r7, #16]
  43215. 80129e8: e853 3f00 ldrex r3, [r3]
  43216. 80129ec: 60fb str r3, [r7, #12]
  43217. return(result);
  43218. 80129ee: 68fb ldr r3, [r7, #12]
  43219. 80129f0: f023 0301 bic.w r3, r3, #1
  43220. 80129f4: 64bb str r3, [r7, #72] @ 0x48
  43221. 80129f6: 687b ldr r3, [r7, #4]
  43222. 80129f8: 681b ldr r3, [r3, #0]
  43223. 80129fa: 3308 adds r3, #8
  43224. 80129fc: 6cba ldr r2, [r7, #72] @ 0x48
  43225. 80129fe: 61fa str r2, [r7, #28]
  43226. 8012a00: 61bb str r3, [r7, #24]
  43227. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43228. 8012a02: 69b9 ldr r1, [r7, #24]
  43229. 8012a04: 69fa ldr r2, [r7, #28]
  43230. 8012a06: e841 2300 strex r3, r2, [r1]
  43231. 8012a0a: 617b str r3, [r7, #20]
  43232. return(result);
  43233. 8012a0c: 697b ldr r3, [r7, #20]
  43234. 8012a0e: 2b00 cmp r3, #0
  43235. 8012a10: d1e5 bne.n 80129de <UART_CheckIdleState+0xde>
  43236. huart->RxState = HAL_UART_STATE_READY;
  43237. 8012a12: 687b ldr r3, [r7, #4]
  43238. 8012a14: 2220 movs r2, #32
  43239. 8012a16: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43240. __HAL_UNLOCK(huart);
  43241. 8012a1a: 687b ldr r3, [r7, #4]
  43242. 8012a1c: 2200 movs r2, #0
  43243. 8012a1e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43244. /* Timeout occurred */
  43245. return HAL_TIMEOUT;
  43246. 8012a22: 2303 movs r3, #3
  43247. 8012a24: e012 b.n 8012a4c <UART_CheckIdleState+0x14c>
  43248. }
  43249. }
  43250. /* Initialize the UART State */
  43251. huart->gState = HAL_UART_STATE_READY;
  43252. 8012a26: 687b ldr r3, [r7, #4]
  43253. 8012a28: 2220 movs r2, #32
  43254. 8012a2a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43255. huart->RxState = HAL_UART_STATE_READY;
  43256. 8012a2e: 687b ldr r3, [r7, #4]
  43257. 8012a30: 2220 movs r2, #32
  43258. 8012a32: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43259. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43260. 8012a36: 687b ldr r3, [r7, #4]
  43261. 8012a38: 2200 movs r2, #0
  43262. 8012a3a: 66da str r2, [r3, #108] @ 0x6c
  43263. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43264. 8012a3c: 687b ldr r3, [r7, #4]
  43265. 8012a3e: 2200 movs r2, #0
  43266. 8012a40: 671a str r2, [r3, #112] @ 0x70
  43267. __HAL_UNLOCK(huart);
  43268. 8012a42: 687b ldr r3, [r7, #4]
  43269. 8012a44: 2200 movs r2, #0
  43270. 8012a46: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43271. return HAL_OK;
  43272. 8012a4a: 2300 movs r3, #0
  43273. }
  43274. 8012a4c: 4618 mov r0, r3
  43275. 8012a4e: 3758 adds r7, #88 @ 0x58
  43276. 8012a50: 46bd mov sp, r7
  43277. 8012a52: bd80 pop {r7, pc}
  43278. 08012a54 <UART_WaitOnFlagUntilTimeout>:
  43279. * @param Timeout Timeout duration
  43280. * @retval HAL status
  43281. */
  43282. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  43283. uint32_t Tickstart, uint32_t Timeout)
  43284. {
  43285. 8012a54: b580 push {r7, lr}
  43286. 8012a56: b084 sub sp, #16
  43287. 8012a58: af00 add r7, sp, #0
  43288. 8012a5a: 60f8 str r0, [r7, #12]
  43289. 8012a5c: 60b9 str r1, [r7, #8]
  43290. 8012a5e: 603b str r3, [r7, #0]
  43291. 8012a60: 4613 mov r3, r2
  43292. 8012a62: 71fb strb r3, [r7, #7]
  43293. /* Wait until flag is set */
  43294. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43295. 8012a64: e04f b.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43296. {
  43297. /* Check for the Timeout */
  43298. if (Timeout != HAL_MAX_DELAY)
  43299. 8012a66: 69bb ldr r3, [r7, #24]
  43300. 8012a68: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43301. 8012a6c: d04b beq.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43302. {
  43303. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  43304. 8012a6e: f7f3 f9c5 bl 8005dfc <HAL_GetTick>
  43305. 8012a72: 4602 mov r2, r0
  43306. 8012a74: 683b ldr r3, [r7, #0]
  43307. 8012a76: 1ad3 subs r3, r2, r3
  43308. 8012a78: 69ba ldr r2, [r7, #24]
  43309. 8012a7a: 429a cmp r2, r3
  43310. 8012a7c: d302 bcc.n 8012a84 <UART_WaitOnFlagUntilTimeout+0x30>
  43311. 8012a7e: 69bb ldr r3, [r7, #24]
  43312. 8012a80: 2b00 cmp r3, #0
  43313. 8012a82: d101 bne.n 8012a88 <UART_WaitOnFlagUntilTimeout+0x34>
  43314. {
  43315. return HAL_TIMEOUT;
  43316. 8012a84: 2303 movs r3, #3
  43317. 8012a86: e04e b.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xd2>
  43318. }
  43319. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  43320. 8012a88: 68fb ldr r3, [r7, #12]
  43321. 8012a8a: 681b ldr r3, [r3, #0]
  43322. 8012a8c: 681b ldr r3, [r3, #0]
  43323. 8012a8e: f003 0304 and.w r3, r3, #4
  43324. 8012a92: 2b00 cmp r3, #0
  43325. 8012a94: d037 beq.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43326. 8012a96: 68bb ldr r3, [r7, #8]
  43327. 8012a98: 2b80 cmp r3, #128 @ 0x80
  43328. 8012a9a: d034 beq.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43329. 8012a9c: 68bb ldr r3, [r7, #8]
  43330. 8012a9e: 2b40 cmp r3, #64 @ 0x40
  43331. 8012aa0: d031 beq.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43332. {
  43333. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  43334. 8012aa2: 68fb ldr r3, [r7, #12]
  43335. 8012aa4: 681b ldr r3, [r3, #0]
  43336. 8012aa6: 69db ldr r3, [r3, #28]
  43337. 8012aa8: f003 0308 and.w r3, r3, #8
  43338. 8012aac: 2b08 cmp r3, #8
  43339. 8012aae: d110 bne.n 8012ad2 <UART_WaitOnFlagUntilTimeout+0x7e>
  43340. {
  43341. /* Clear Overrun Error flag*/
  43342. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  43343. 8012ab0: 68fb ldr r3, [r7, #12]
  43344. 8012ab2: 681b ldr r3, [r3, #0]
  43345. 8012ab4: 2208 movs r2, #8
  43346. 8012ab6: 621a str r2, [r3, #32]
  43347. /* Blocking error : transfer is aborted
  43348. Set the UART state ready to be able to start again the process,
  43349. Disable Rx Interrupts if ongoing */
  43350. UART_EndRxTransfer(huart);
  43351. 8012ab8: 68f8 ldr r0, [r7, #12]
  43352. 8012aba: f000 f95b bl 8012d74 <UART_EndRxTransfer>
  43353. huart->ErrorCode = HAL_UART_ERROR_ORE;
  43354. 8012abe: 68fb ldr r3, [r7, #12]
  43355. 8012ac0: 2208 movs r2, #8
  43356. 8012ac2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43357. /* Process Unlocked */
  43358. __HAL_UNLOCK(huart);
  43359. 8012ac6: 68fb ldr r3, [r7, #12]
  43360. 8012ac8: 2200 movs r2, #0
  43361. 8012aca: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43362. return HAL_ERROR;
  43363. 8012ace: 2301 movs r3, #1
  43364. 8012ad0: e029 b.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xd2>
  43365. }
  43366. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  43367. 8012ad2: 68fb ldr r3, [r7, #12]
  43368. 8012ad4: 681b ldr r3, [r3, #0]
  43369. 8012ad6: 69db ldr r3, [r3, #28]
  43370. 8012ad8: f403 6300 and.w r3, r3, #2048 @ 0x800
  43371. 8012adc: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  43372. 8012ae0: d111 bne.n 8012b06 <UART_WaitOnFlagUntilTimeout+0xb2>
  43373. {
  43374. /* Clear Receiver Timeout flag*/
  43375. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  43376. 8012ae2: 68fb ldr r3, [r7, #12]
  43377. 8012ae4: 681b ldr r3, [r3, #0]
  43378. 8012ae6: f44f 6200 mov.w r2, #2048 @ 0x800
  43379. 8012aea: 621a str r2, [r3, #32]
  43380. /* Blocking error : transfer is aborted
  43381. Set the UART state ready to be able to start again the process,
  43382. Disable Rx Interrupts if ongoing */
  43383. UART_EndRxTransfer(huart);
  43384. 8012aec: 68f8 ldr r0, [r7, #12]
  43385. 8012aee: f000 f941 bl 8012d74 <UART_EndRxTransfer>
  43386. huart->ErrorCode = HAL_UART_ERROR_RTO;
  43387. 8012af2: 68fb ldr r3, [r7, #12]
  43388. 8012af4: 2220 movs r2, #32
  43389. 8012af6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43390. /* Process Unlocked */
  43391. __HAL_UNLOCK(huart);
  43392. 8012afa: 68fb ldr r3, [r7, #12]
  43393. 8012afc: 2200 movs r2, #0
  43394. 8012afe: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43395. return HAL_TIMEOUT;
  43396. 8012b02: 2303 movs r3, #3
  43397. 8012b04: e00f b.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xd2>
  43398. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43399. 8012b06: 68fb ldr r3, [r7, #12]
  43400. 8012b08: 681b ldr r3, [r3, #0]
  43401. 8012b0a: 69da ldr r2, [r3, #28]
  43402. 8012b0c: 68bb ldr r3, [r7, #8]
  43403. 8012b0e: 4013 ands r3, r2
  43404. 8012b10: 68ba ldr r2, [r7, #8]
  43405. 8012b12: 429a cmp r2, r3
  43406. 8012b14: bf0c ite eq
  43407. 8012b16: 2301 moveq r3, #1
  43408. 8012b18: 2300 movne r3, #0
  43409. 8012b1a: b2db uxtb r3, r3
  43410. 8012b1c: 461a mov r2, r3
  43411. 8012b1e: 79fb ldrb r3, [r7, #7]
  43412. 8012b20: 429a cmp r2, r3
  43413. 8012b22: d0a0 beq.n 8012a66 <UART_WaitOnFlagUntilTimeout+0x12>
  43414. }
  43415. }
  43416. }
  43417. }
  43418. return HAL_OK;
  43419. 8012b24: 2300 movs r3, #0
  43420. }
  43421. 8012b26: 4618 mov r0, r3
  43422. 8012b28: 3710 adds r7, #16
  43423. 8012b2a: 46bd mov sp, r7
  43424. 8012b2c: bd80 pop {r7, pc}
  43425. ...
  43426. 08012b30 <UART_Start_Receive_IT>:
  43427. * @param pData Pointer to data buffer (u8 or u16 data elements).
  43428. * @param Size Amount of data elements (u8 or u16) to be received.
  43429. * @retval HAL status
  43430. */
  43431. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  43432. {
  43433. 8012b30: b480 push {r7}
  43434. 8012b32: b0a3 sub sp, #140 @ 0x8c
  43435. 8012b34: af00 add r7, sp, #0
  43436. 8012b36: 60f8 str r0, [r7, #12]
  43437. 8012b38: 60b9 str r1, [r7, #8]
  43438. 8012b3a: 4613 mov r3, r2
  43439. 8012b3c: 80fb strh r3, [r7, #6]
  43440. huart->pRxBuffPtr = pData;
  43441. 8012b3e: 68fb ldr r3, [r7, #12]
  43442. 8012b40: 68ba ldr r2, [r7, #8]
  43443. 8012b42: 659a str r2, [r3, #88] @ 0x58
  43444. huart->RxXferSize = Size;
  43445. 8012b44: 68fb ldr r3, [r7, #12]
  43446. 8012b46: 88fa ldrh r2, [r7, #6]
  43447. 8012b48: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  43448. huart->RxXferCount = Size;
  43449. 8012b4c: 68fb ldr r3, [r7, #12]
  43450. 8012b4e: 88fa ldrh r2, [r7, #6]
  43451. 8012b50: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43452. huart->RxISR = NULL;
  43453. 8012b54: 68fb ldr r3, [r7, #12]
  43454. 8012b56: 2200 movs r2, #0
  43455. 8012b58: 675a str r2, [r3, #116] @ 0x74
  43456. /* Computation of UART mask to apply to RDR register */
  43457. UART_MASK_COMPUTATION(huart);
  43458. 8012b5a: 68fb ldr r3, [r7, #12]
  43459. 8012b5c: 689b ldr r3, [r3, #8]
  43460. 8012b5e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43461. 8012b62: d10e bne.n 8012b82 <UART_Start_Receive_IT+0x52>
  43462. 8012b64: 68fb ldr r3, [r7, #12]
  43463. 8012b66: 691b ldr r3, [r3, #16]
  43464. 8012b68: 2b00 cmp r3, #0
  43465. 8012b6a: d105 bne.n 8012b78 <UART_Start_Receive_IT+0x48>
  43466. 8012b6c: 68fb ldr r3, [r7, #12]
  43467. 8012b6e: f240 12ff movw r2, #511 @ 0x1ff
  43468. 8012b72: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43469. 8012b76: e02d b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43470. 8012b78: 68fb ldr r3, [r7, #12]
  43471. 8012b7a: 22ff movs r2, #255 @ 0xff
  43472. 8012b7c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43473. 8012b80: e028 b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43474. 8012b82: 68fb ldr r3, [r7, #12]
  43475. 8012b84: 689b ldr r3, [r3, #8]
  43476. 8012b86: 2b00 cmp r3, #0
  43477. 8012b88: d10d bne.n 8012ba6 <UART_Start_Receive_IT+0x76>
  43478. 8012b8a: 68fb ldr r3, [r7, #12]
  43479. 8012b8c: 691b ldr r3, [r3, #16]
  43480. 8012b8e: 2b00 cmp r3, #0
  43481. 8012b90: d104 bne.n 8012b9c <UART_Start_Receive_IT+0x6c>
  43482. 8012b92: 68fb ldr r3, [r7, #12]
  43483. 8012b94: 22ff movs r2, #255 @ 0xff
  43484. 8012b96: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43485. 8012b9a: e01b b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43486. 8012b9c: 68fb ldr r3, [r7, #12]
  43487. 8012b9e: 227f movs r2, #127 @ 0x7f
  43488. 8012ba0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43489. 8012ba4: e016 b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43490. 8012ba6: 68fb ldr r3, [r7, #12]
  43491. 8012ba8: 689b ldr r3, [r3, #8]
  43492. 8012baa: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  43493. 8012bae: d10d bne.n 8012bcc <UART_Start_Receive_IT+0x9c>
  43494. 8012bb0: 68fb ldr r3, [r7, #12]
  43495. 8012bb2: 691b ldr r3, [r3, #16]
  43496. 8012bb4: 2b00 cmp r3, #0
  43497. 8012bb6: d104 bne.n 8012bc2 <UART_Start_Receive_IT+0x92>
  43498. 8012bb8: 68fb ldr r3, [r7, #12]
  43499. 8012bba: 227f movs r2, #127 @ 0x7f
  43500. 8012bbc: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43501. 8012bc0: e008 b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43502. 8012bc2: 68fb ldr r3, [r7, #12]
  43503. 8012bc4: 223f movs r2, #63 @ 0x3f
  43504. 8012bc6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43505. 8012bca: e003 b.n 8012bd4 <UART_Start_Receive_IT+0xa4>
  43506. 8012bcc: 68fb ldr r3, [r7, #12]
  43507. 8012bce: 2200 movs r2, #0
  43508. 8012bd0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43509. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43510. 8012bd4: 68fb ldr r3, [r7, #12]
  43511. 8012bd6: 2200 movs r2, #0
  43512. 8012bd8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43513. huart->RxState = HAL_UART_STATE_BUSY_RX;
  43514. 8012bdc: 68fb ldr r3, [r7, #12]
  43515. 8012bde: 2222 movs r2, #34 @ 0x22
  43516. 8012be0: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43517. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43518. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43519. 8012be4: 68fb ldr r3, [r7, #12]
  43520. 8012be6: 681b ldr r3, [r3, #0]
  43521. 8012be8: 3308 adds r3, #8
  43522. 8012bea: 667b str r3, [r7, #100] @ 0x64
  43523. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43524. 8012bec: 6e7b ldr r3, [r7, #100] @ 0x64
  43525. 8012bee: e853 3f00 ldrex r3, [r3]
  43526. 8012bf2: 663b str r3, [r7, #96] @ 0x60
  43527. return(result);
  43528. 8012bf4: 6e3b ldr r3, [r7, #96] @ 0x60
  43529. 8012bf6: f043 0301 orr.w r3, r3, #1
  43530. 8012bfa: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  43531. 8012bfe: 68fb ldr r3, [r7, #12]
  43532. 8012c00: 681b ldr r3, [r3, #0]
  43533. 8012c02: 3308 adds r3, #8
  43534. 8012c04: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  43535. 8012c08: 673a str r2, [r7, #112] @ 0x70
  43536. 8012c0a: 66fb str r3, [r7, #108] @ 0x6c
  43537. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43538. 8012c0c: 6ef9 ldr r1, [r7, #108] @ 0x6c
  43539. 8012c0e: 6f3a ldr r2, [r7, #112] @ 0x70
  43540. 8012c10: e841 2300 strex r3, r2, [r1]
  43541. 8012c14: 66bb str r3, [r7, #104] @ 0x68
  43542. return(result);
  43543. 8012c16: 6ebb ldr r3, [r7, #104] @ 0x68
  43544. 8012c18: 2b00 cmp r3, #0
  43545. 8012c1a: d1e3 bne.n 8012be4 <UART_Start_Receive_IT+0xb4>
  43546. /* Configure Rx interrupt processing */
  43547. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  43548. 8012c1c: 68fb ldr r3, [r7, #12]
  43549. 8012c1e: 6e5b ldr r3, [r3, #100] @ 0x64
  43550. 8012c20: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  43551. 8012c24: d14f bne.n 8012cc6 <UART_Start_Receive_IT+0x196>
  43552. 8012c26: 68fb ldr r3, [r7, #12]
  43553. 8012c28: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43554. 8012c2c: 88fa ldrh r2, [r7, #6]
  43555. 8012c2e: 429a cmp r2, r3
  43556. 8012c30: d349 bcc.n 8012cc6 <UART_Start_Receive_IT+0x196>
  43557. {
  43558. /* Set the Rx ISR function pointer according to the data word length */
  43559. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43560. 8012c32: 68fb ldr r3, [r7, #12]
  43561. 8012c34: 689b ldr r3, [r3, #8]
  43562. 8012c36: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43563. 8012c3a: d107 bne.n 8012c4c <UART_Start_Receive_IT+0x11c>
  43564. 8012c3c: 68fb ldr r3, [r7, #12]
  43565. 8012c3e: 691b ldr r3, [r3, #16]
  43566. 8012c40: 2b00 cmp r3, #0
  43567. 8012c42: d103 bne.n 8012c4c <UART_Start_Receive_IT+0x11c>
  43568. {
  43569. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  43570. 8012c44: 68fb ldr r3, [r7, #12]
  43571. 8012c46: 4a47 ldr r2, [pc, #284] @ (8012d64 <UART_Start_Receive_IT+0x234>)
  43572. 8012c48: 675a str r2, [r3, #116] @ 0x74
  43573. 8012c4a: e002 b.n 8012c52 <UART_Start_Receive_IT+0x122>
  43574. }
  43575. else
  43576. {
  43577. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  43578. 8012c4c: 68fb ldr r3, [r7, #12]
  43579. 8012c4e: 4a46 ldr r2, [pc, #280] @ (8012d68 <UART_Start_Receive_IT+0x238>)
  43580. 8012c50: 675a str r2, [r3, #116] @ 0x74
  43581. }
  43582. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  43583. if (huart->Init.Parity != UART_PARITY_NONE)
  43584. 8012c52: 68fb ldr r3, [r7, #12]
  43585. 8012c54: 691b ldr r3, [r3, #16]
  43586. 8012c56: 2b00 cmp r3, #0
  43587. 8012c58: d01a beq.n 8012c90 <UART_Start_Receive_IT+0x160>
  43588. {
  43589. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43590. 8012c5a: 68fb ldr r3, [r7, #12]
  43591. 8012c5c: 681b ldr r3, [r3, #0]
  43592. 8012c5e: 653b str r3, [r7, #80] @ 0x50
  43593. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43594. 8012c60: 6d3b ldr r3, [r7, #80] @ 0x50
  43595. 8012c62: e853 3f00 ldrex r3, [r3]
  43596. 8012c66: 64fb str r3, [r7, #76] @ 0x4c
  43597. return(result);
  43598. 8012c68: 6cfb ldr r3, [r7, #76] @ 0x4c
  43599. 8012c6a: f443 7380 orr.w r3, r3, #256 @ 0x100
  43600. 8012c6e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  43601. 8012c72: 68fb ldr r3, [r7, #12]
  43602. 8012c74: 681b ldr r3, [r3, #0]
  43603. 8012c76: 461a mov r2, r3
  43604. 8012c78: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  43605. 8012c7c: 65fb str r3, [r7, #92] @ 0x5c
  43606. 8012c7e: 65ba str r2, [r7, #88] @ 0x58
  43607. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43608. 8012c80: 6db9 ldr r1, [r7, #88] @ 0x58
  43609. 8012c82: 6dfa ldr r2, [r7, #92] @ 0x5c
  43610. 8012c84: e841 2300 strex r3, r2, [r1]
  43611. 8012c88: 657b str r3, [r7, #84] @ 0x54
  43612. return(result);
  43613. 8012c8a: 6d7b ldr r3, [r7, #84] @ 0x54
  43614. 8012c8c: 2b00 cmp r3, #0
  43615. 8012c8e: d1e4 bne.n 8012c5a <UART_Start_Receive_IT+0x12a>
  43616. }
  43617. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  43618. 8012c90: 68fb ldr r3, [r7, #12]
  43619. 8012c92: 681b ldr r3, [r3, #0]
  43620. 8012c94: 3308 adds r3, #8
  43621. 8012c96: 63fb str r3, [r7, #60] @ 0x3c
  43622. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43623. 8012c98: 6bfb ldr r3, [r7, #60] @ 0x3c
  43624. 8012c9a: e853 3f00 ldrex r3, [r3]
  43625. 8012c9e: 63bb str r3, [r7, #56] @ 0x38
  43626. return(result);
  43627. 8012ca0: 6bbb ldr r3, [r7, #56] @ 0x38
  43628. 8012ca2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  43629. 8012ca6: 67fb str r3, [r7, #124] @ 0x7c
  43630. 8012ca8: 68fb ldr r3, [r7, #12]
  43631. 8012caa: 681b ldr r3, [r3, #0]
  43632. 8012cac: 3308 adds r3, #8
  43633. 8012cae: 6ffa ldr r2, [r7, #124] @ 0x7c
  43634. 8012cb0: 64ba str r2, [r7, #72] @ 0x48
  43635. 8012cb2: 647b str r3, [r7, #68] @ 0x44
  43636. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43637. 8012cb4: 6c79 ldr r1, [r7, #68] @ 0x44
  43638. 8012cb6: 6cba ldr r2, [r7, #72] @ 0x48
  43639. 8012cb8: e841 2300 strex r3, r2, [r1]
  43640. 8012cbc: 643b str r3, [r7, #64] @ 0x40
  43641. return(result);
  43642. 8012cbe: 6c3b ldr r3, [r7, #64] @ 0x40
  43643. 8012cc0: 2b00 cmp r3, #0
  43644. 8012cc2: d1e5 bne.n 8012c90 <UART_Start_Receive_IT+0x160>
  43645. 8012cc4: e046 b.n 8012d54 <UART_Start_Receive_IT+0x224>
  43646. }
  43647. else
  43648. {
  43649. /* Set the Rx ISR function pointer according to the data word length */
  43650. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43651. 8012cc6: 68fb ldr r3, [r7, #12]
  43652. 8012cc8: 689b ldr r3, [r3, #8]
  43653. 8012cca: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43654. 8012cce: d107 bne.n 8012ce0 <UART_Start_Receive_IT+0x1b0>
  43655. 8012cd0: 68fb ldr r3, [r7, #12]
  43656. 8012cd2: 691b ldr r3, [r3, #16]
  43657. 8012cd4: 2b00 cmp r3, #0
  43658. 8012cd6: d103 bne.n 8012ce0 <UART_Start_Receive_IT+0x1b0>
  43659. {
  43660. huart->RxISR = UART_RxISR_16BIT;
  43661. 8012cd8: 68fb ldr r3, [r7, #12]
  43662. 8012cda: 4a24 ldr r2, [pc, #144] @ (8012d6c <UART_Start_Receive_IT+0x23c>)
  43663. 8012cdc: 675a str r2, [r3, #116] @ 0x74
  43664. 8012cde: e002 b.n 8012ce6 <UART_Start_Receive_IT+0x1b6>
  43665. }
  43666. else
  43667. {
  43668. huart->RxISR = UART_RxISR_8BIT;
  43669. 8012ce0: 68fb ldr r3, [r7, #12]
  43670. 8012ce2: 4a23 ldr r2, [pc, #140] @ (8012d70 <UART_Start_Receive_IT+0x240>)
  43671. 8012ce4: 675a str r2, [r3, #116] @ 0x74
  43672. }
  43673. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  43674. if (huart->Init.Parity != UART_PARITY_NONE)
  43675. 8012ce6: 68fb ldr r3, [r7, #12]
  43676. 8012ce8: 691b ldr r3, [r3, #16]
  43677. 8012cea: 2b00 cmp r3, #0
  43678. 8012cec: d019 beq.n 8012d22 <UART_Start_Receive_IT+0x1f2>
  43679. {
  43680. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  43681. 8012cee: 68fb ldr r3, [r7, #12]
  43682. 8012cf0: 681b ldr r3, [r3, #0]
  43683. 8012cf2: 62bb str r3, [r7, #40] @ 0x28
  43684. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43685. 8012cf4: 6abb ldr r3, [r7, #40] @ 0x28
  43686. 8012cf6: e853 3f00 ldrex r3, [r3]
  43687. 8012cfa: 627b str r3, [r7, #36] @ 0x24
  43688. return(result);
  43689. 8012cfc: 6a7b ldr r3, [r7, #36] @ 0x24
  43690. 8012cfe: f443 7390 orr.w r3, r3, #288 @ 0x120
  43691. 8012d02: 677b str r3, [r7, #116] @ 0x74
  43692. 8012d04: 68fb ldr r3, [r7, #12]
  43693. 8012d06: 681b ldr r3, [r3, #0]
  43694. 8012d08: 461a mov r2, r3
  43695. 8012d0a: 6f7b ldr r3, [r7, #116] @ 0x74
  43696. 8012d0c: 637b str r3, [r7, #52] @ 0x34
  43697. 8012d0e: 633a str r2, [r7, #48] @ 0x30
  43698. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43699. 8012d10: 6b39 ldr r1, [r7, #48] @ 0x30
  43700. 8012d12: 6b7a ldr r2, [r7, #52] @ 0x34
  43701. 8012d14: e841 2300 strex r3, r2, [r1]
  43702. 8012d18: 62fb str r3, [r7, #44] @ 0x2c
  43703. return(result);
  43704. 8012d1a: 6afb ldr r3, [r7, #44] @ 0x2c
  43705. 8012d1c: 2b00 cmp r3, #0
  43706. 8012d1e: d1e6 bne.n 8012cee <UART_Start_Receive_IT+0x1be>
  43707. 8012d20: e018 b.n 8012d54 <UART_Start_Receive_IT+0x224>
  43708. }
  43709. else
  43710. {
  43711. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  43712. 8012d22: 68fb ldr r3, [r7, #12]
  43713. 8012d24: 681b ldr r3, [r3, #0]
  43714. 8012d26: 617b str r3, [r7, #20]
  43715. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43716. 8012d28: 697b ldr r3, [r7, #20]
  43717. 8012d2a: e853 3f00 ldrex r3, [r3]
  43718. 8012d2e: 613b str r3, [r7, #16]
  43719. return(result);
  43720. 8012d30: 693b ldr r3, [r7, #16]
  43721. 8012d32: f043 0320 orr.w r3, r3, #32
  43722. 8012d36: 67bb str r3, [r7, #120] @ 0x78
  43723. 8012d38: 68fb ldr r3, [r7, #12]
  43724. 8012d3a: 681b ldr r3, [r3, #0]
  43725. 8012d3c: 461a mov r2, r3
  43726. 8012d3e: 6fbb ldr r3, [r7, #120] @ 0x78
  43727. 8012d40: 623b str r3, [r7, #32]
  43728. 8012d42: 61fa str r2, [r7, #28]
  43729. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43730. 8012d44: 69f9 ldr r1, [r7, #28]
  43731. 8012d46: 6a3a ldr r2, [r7, #32]
  43732. 8012d48: e841 2300 strex r3, r2, [r1]
  43733. 8012d4c: 61bb str r3, [r7, #24]
  43734. return(result);
  43735. 8012d4e: 69bb ldr r3, [r7, #24]
  43736. 8012d50: 2b00 cmp r3, #0
  43737. 8012d52: d1e6 bne.n 8012d22 <UART_Start_Receive_IT+0x1f2>
  43738. }
  43739. }
  43740. return HAL_OK;
  43741. 8012d54: 2300 movs r3, #0
  43742. }
  43743. 8012d56: 4618 mov r0, r3
  43744. 8012d58: 378c adds r7, #140 @ 0x8c
  43745. 8012d5a: 46bd mov sp, r7
  43746. 8012d5c: f85d 7b04 ldr.w r7, [sp], #4
  43747. 8012d60: 4770 bx lr
  43748. 8012d62: bf00 nop
  43749. 8012d64: 080138d9 .word 0x080138d9
  43750. 8012d68: 08013579 .word 0x08013579
  43751. 8012d6c: 080133c1 .word 0x080133c1
  43752. 8012d70: 08013209 .word 0x08013209
  43753. 08012d74 <UART_EndRxTransfer>:
  43754. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  43755. * @param huart UART handle.
  43756. * @retval None
  43757. */
  43758. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  43759. {
  43760. 8012d74: b480 push {r7}
  43761. 8012d76: b095 sub sp, #84 @ 0x54
  43762. 8012d78: af00 add r7, sp, #0
  43763. 8012d7a: 6078 str r0, [r7, #4]
  43764. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  43765. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43766. 8012d7c: 687b ldr r3, [r7, #4]
  43767. 8012d7e: 681b ldr r3, [r3, #0]
  43768. 8012d80: 637b str r3, [r7, #52] @ 0x34
  43769. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43770. 8012d82: 6b7b ldr r3, [r7, #52] @ 0x34
  43771. 8012d84: e853 3f00 ldrex r3, [r3]
  43772. 8012d88: 633b str r3, [r7, #48] @ 0x30
  43773. return(result);
  43774. 8012d8a: 6b3b ldr r3, [r7, #48] @ 0x30
  43775. 8012d8c: f423 7390 bic.w r3, r3, #288 @ 0x120
  43776. 8012d90: 64fb str r3, [r7, #76] @ 0x4c
  43777. 8012d92: 687b ldr r3, [r7, #4]
  43778. 8012d94: 681b ldr r3, [r3, #0]
  43779. 8012d96: 461a mov r2, r3
  43780. 8012d98: 6cfb ldr r3, [r7, #76] @ 0x4c
  43781. 8012d9a: 643b str r3, [r7, #64] @ 0x40
  43782. 8012d9c: 63fa str r2, [r7, #60] @ 0x3c
  43783. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43784. 8012d9e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43785. 8012da0: 6c3a ldr r2, [r7, #64] @ 0x40
  43786. 8012da2: e841 2300 strex r3, r2, [r1]
  43787. 8012da6: 63bb str r3, [r7, #56] @ 0x38
  43788. return(result);
  43789. 8012da8: 6bbb ldr r3, [r7, #56] @ 0x38
  43790. 8012daa: 2b00 cmp r3, #0
  43791. 8012dac: d1e6 bne.n 8012d7c <UART_EndRxTransfer+0x8>
  43792. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  43793. 8012dae: 687b ldr r3, [r7, #4]
  43794. 8012db0: 681b ldr r3, [r3, #0]
  43795. 8012db2: 3308 adds r3, #8
  43796. 8012db4: 623b str r3, [r7, #32]
  43797. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43798. 8012db6: 6a3b ldr r3, [r7, #32]
  43799. 8012db8: e853 3f00 ldrex r3, [r3]
  43800. 8012dbc: 61fb str r3, [r7, #28]
  43801. return(result);
  43802. 8012dbe: 69fa ldr r2, [r7, #28]
  43803. 8012dc0: 4b1e ldr r3, [pc, #120] @ (8012e3c <UART_EndRxTransfer+0xc8>)
  43804. 8012dc2: 4013 ands r3, r2
  43805. 8012dc4: 64bb str r3, [r7, #72] @ 0x48
  43806. 8012dc6: 687b ldr r3, [r7, #4]
  43807. 8012dc8: 681b ldr r3, [r3, #0]
  43808. 8012dca: 3308 adds r3, #8
  43809. 8012dcc: 6cba ldr r2, [r7, #72] @ 0x48
  43810. 8012dce: 62fa str r2, [r7, #44] @ 0x2c
  43811. 8012dd0: 62bb str r3, [r7, #40] @ 0x28
  43812. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43813. 8012dd2: 6ab9 ldr r1, [r7, #40] @ 0x28
  43814. 8012dd4: 6afa ldr r2, [r7, #44] @ 0x2c
  43815. 8012dd6: e841 2300 strex r3, r2, [r1]
  43816. 8012dda: 627b str r3, [r7, #36] @ 0x24
  43817. return(result);
  43818. 8012ddc: 6a7b ldr r3, [r7, #36] @ 0x24
  43819. 8012dde: 2b00 cmp r3, #0
  43820. 8012de0: d1e5 bne.n 8012dae <UART_EndRxTransfer+0x3a>
  43821. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  43822. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43823. 8012de2: 687b ldr r3, [r7, #4]
  43824. 8012de4: 6edb ldr r3, [r3, #108] @ 0x6c
  43825. 8012de6: 2b01 cmp r3, #1
  43826. 8012de8: d118 bne.n 8012e1c <UART_EndRxTransfer+0xa8>
  43827. {
  43828. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43829. 8012dea: 687b ldr r3, [r7, #4]
  43830. 8012dec: 681b ldr r3, [r3, #0]
  43831. 8012dee: 60fb str r3, [r7, #12]
  43832. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43833. 8012df0: 68fb ldr r3, [r7, #12]
  43834. 8012df2: e853 3f00 ldrex r3, [r3]
  43835. 8012df6: 60bb str r3, [r7, #8]
  43836. return(result);
  43837. 8012df8: 68bb ldr r3, [r7, #8]
  43838. 8012dfa: f023 0310 bic.w r3, r3, #16
  43839. 8012dfe: 647b str r3, [r7, #68] @ 0x44
  43840. 8012e00: 687b ldr r3, [r7, #4]
  43841. 8012e02: 681b ldr r3, [r3, #0]
  43842. 8012e04: 461a mov r2, r3
  43843. 8012e06: 6c7b ldr r3, [r7, #68] @ 0x44
  43844. 8012e08: 61bb str r3, [r7, #24]
  43845. 8012e0a: 617a str r2, [r7, #20]
  43846. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43847. 8012e0c: 6979 ldr r1, [r7, #20]
  43848. 8012e0e: 69ba ldr r2, [r7, #24]
  43849. 8012e10: e841 2300 strex r3, r2, [r1]
  43850. 8012e14: 613b str r3, [r7, #16]
  43851. return(result);
  43852. 8012e16: 693b ldr r3, [r7, #16]
  43853. 8012e18: 2b00 cmp r3, #0
  43854. 8012e1a: d1e6 bne.n 8012dea <UART_EndRxTransfer+0x76>
  43855. }
  43856. /* At end of Rx process, restore huart->RxState to Ready */
  43857. huart->RxState = HAL_UART_STATE_READY;
  43858. 8012e1c: 687b ldr r3, [r7, #4]
  43859. 8012e1e: 2220 movs r2, #32
  43860. 8012e20: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43861. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43862. 8012e24: 687b ldr r3, [r7, #4]
  43863. 8012e26: 2200 movs r2, #0
  43864. 8012e28: 66da str r2, [r3, #108] @ 0x6c
  43865. /* Reset RxIsr function pointer */
  43866. huart->RxISR = NULL;
  43867. 8012e2a: 687b ldr r3, [r7, #4]
  43868. 8012e2c: 2200 movs r2, #0
  43869. 8012e2e: 675a str r2, [r3, #116] @ 0x74
  43870. }
  43871. 8012e30: bf00 nop
  43872. 8012e32: 3754 adds r7, #84 @ 0x54
  43873. 8012e34: 46bd mov sp, r7
  43874. 8012e36: f85d 7b04 ldr.w r7, [sp], #4
  43875. 8012e3a: 4770 bx lr
  43876. 8012e3c: effffffe .word 0xeffffffe
  43877. 08012e40 <UART_DMAAbortOnError>:
  43878. * (To be called at end of DMA Abort procedure following error occurrence).
  43879. * @param hdma DMA handle.
  43880. * @retval None
  43881. */
  43882. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43883. {
  43884. 8012e40: b580 push {r7, lr}
  43885. 8012e42: b084 sub sp, #16
  43886. 8012e44: af00 add r7, sp, #0
  43887. 8012e46: 6078 str r0, [r7, #4]
  43888. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43889. 8012e48: 687b ldr r3, [r7, #4]
  43890. 8012e4a: 6b9b ldr r3, [r3, #56] @ 0x38
  43891. 8012e4c: 60fb str r3, [r7, #12]
  43892. huart->RxXferCount = 0U;
  43893. 8012e4e: 68fb ldr r3, [r7, #12]
  43894. 8012e50: 2200 movs r2, #0
  43895. 8012e52: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43896. huart->TxXferCount = 0U;
  43897. 8012e56: 68fb ldr r3, [r7, #12]
  43898. 8012e58: 2200 movs r2, #0
  43899. 8012e5a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43900. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43901. /*Call registered error callback*/
  43902. huart->ErrorCallback(huart);
  43903. #else
  43904. /*Call legacy weak error callback*/
  43905. HAL_UART_ErrorCallback(huart);
  43906. 8012e5e: 68f8 ldr r0, [r7, #12]
  43907. 8012e60: f7fe ff3a bl 8011cd8 <HAL_UART_ErrorCallback>
  43908. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43909. }
  43910. 8012e64: bf00 nop
  43911. 8012e66: 3710 adds r7, #16
  43912. 8012e68: 46bd mov sp, r7
  43913. 8012e6a: bd80 pop {r7, pc}
  43914. 08012e6c <UART_TxISR_8BIT>:
  43915. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43916. * @param huart UART handle.
  43917. * @retval None
  43918. */
  43919. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43920. {
  43921. 8012e6c: b480 push {r7}
  43922. 8012e6e: b08f sub sp, #60 @ 0x3c
  43923. 8012e70: af00 add r7, sp, #0
  43924. 8012e72: 6078 str r0, [r7, #4]
  43925. /* Check that a Tx process is ongoing */
  43926. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43927. 8012e74: 687b ldr r3, [r7, #4]
  43928. 8012e76: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43929. 8012e7a: 2b21 cmp r3, #33 @ 0x21
  43930. 8012e7c: d14c bne.n 8012f18 <UART_TxISR_8BIT+0xac>
  43931. {
  43932. if (huart->TxXferCount == 0U)
  43933. 8012e7e: 687b ldr r3, [r7, #4]
  43934. 8012e80: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43935. 8012e84: b29b uxth r3, r3
  43936. 8012e86: 2b00 cmp r3, #0
  43937. 8012e88: d132 bne.n 8012ef0 <UART_TxISR_8BIT+0x84>
  43938. {
  43939. /* Disable the UART Transmit Data Register Empty Interrupt */
  43940. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43941. 8012e8a: 687b ldr r3, [r7, #4]
  43942. 8012e8c: 681b ldr r3, [r3, #0]
  43943. 8012e8e: 623b str r3, [r7, #32]
  43944. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43945. 8012e90: 6a3b ldr r3, [r7, #32]
  43946. 8012e92: e853 3f00 ldrex r3, [r3]
  43947. 8012e96: 61fb str r3, [r7, #28]
  43948. return(result);
  43949. 8012e98: 69fb ldr r3, [r7, #28]
  43950. 8012e9a: f023 0380 bic.w r3, r3, #128 @ 0x80
  43951. 8012e9e: 637b str r3, [r7, #52] @ 0x34
  43952. 8012ea0: 687b ldr r3, [r7, #4]
  43953. 8012ea2: 681b ldr r3, [r3, #0]
  43954. 8012ea4: 461a mov r2, r3
  43955. 8012ea6: 6b7b ldr r3, [r7, #52] @ 0x34
  43956. 8012ea8: 62fb str r3, [r7, #44] @ 0x2c
  43957. 8012eaa: 62ba str r2, [r7, #40] @ 0x28
  43958. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43959. 8012eac: 6ab9 ldr r1, [r7, #40] @ 0x28
  43960. 8012eae: 6afa ldr r2, [r7, #44] @ 0x2c
  43961. 8012eb0: e841 2300 strex r3, r2, [r1]
  43962. 8012eb4: 627b str r3, [r7, #36] @ 0x24
  43963. return(result);
  43964. 8012eb6: 6a7b ldr r3, [r7, #36] @ 0x24
  43965. 8012eb8: 2b00 cmp r3, #0
  43966. 8012eba: d1e6 bne.n 8012e8a <UART_TxISR_8BIT+0x1e>
  43967. /* Enable the UART Transmit Complete Interrupt */
  43968. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43969. 8012ebc: 687b ldr r3, [r7, #4]
  43970. 8012ebe: 681b ldr r3, [r3, #0]
  43971. 8012ec0: 60fb str r3, [r7, #12]
  43972. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43973. 8012ec2: 68fb ldr r3, [r7, #12]
  43974. 8012ec4: e853 3f00 ldrex r3, [r3]
  43975. 8012ec8: 60bb str r3, [r7, #8]
  43976. return(result);
  43977. 8012eca: 68bb ldr r3, [r7, #8]
  43978. 8012ecc: f043 0340 orr.w r3, r3, #64 @ 0x40
  43979. 8012ed0: 633b str r3, [r7, #48] @ 0x30
  43980. 8012ed2: 687b ldr r3, [r7, #4]
  43981. 8012ed4: 681b ldr r3, [r3, #0]
  43982. 8012ed6: 461a mov r2, r3
  43983. 8012ed8: 6b3b ldr r3, [r7, #48] @ 0x30
  43984. 8012eda: 61bb str r3, [r7, #24]
  43985. 8012edc: 617a str r2, [r7, #20]
  43986. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43987. 8012ede: 6979 ldr r1, [r7, #20]
  43988. 8012ee0: 69ba ldr r2, [r7, #24]
  43989. 8012ee2: e841 2300 strex r3, r2, [r1]
  43990. 8012ee6: 613b str r3, [r7, #16]
  43991. return(result);
  43992. 8012ee8: 693b ldr r3, [r7, #16]
  43993. 8012eea: 2b00 cmp r3, #0
  43994. 8012eec: d1e6 bne.n 8012ebc <UART_TxISR_8BIT+0x50>
  43995. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43996. huart->pTxBuffPtr++;
  43997. huart->TxXferCount--;
  43998. }
  43999. }
  44000. }
  44001. 8012eee: e013 b.n 8012f18 <UART_TxISR_8BIT+0xac>
  44002. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44003. 8012ef0: 687b ldr r3, [r7, #4]
  44004. 8012ef2: 6d1b ldr r3, [r3, #80] @ 0x50
  44005. 8012ef4: 781a ldrb r2, [r3, #0]
  44006. 8012ef6: 687b ldr r3, [r7, #4]
  44007. 8012ef8: 681b ldr r3, [r3, #0]
  44008. 8012efa: 629a str r2, [r3, #40] @ 0x28
  44009. huart->pTxBuffPtr++;
  44010. 8012efc: 687b ldr r3, [r7, #4]
  44011. 8012efe: 6d1b ldr r3, [r3, #80] @ 0x50
  44012. 8012f00: 1c5a adds r2, r3, #1
  44013. 8012f02: 687b ldr r3, [r7, #4]
  44014. 8012f04: 651a str r2, [r3, #80] @ 0x50
  44015. huart->TxXferCount--;
  44016. 8012f06: 687b ldr r3, [r7, #4]
  44017. 8012f08: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44018. 8012f0c: b29b uxth r3, r3
  44019. 8012f0e: 3b01 subs r3, #1
  44020. 8012f10: b29a uxth r2, r3
  44021. 8012f12: 687b ldr r3, [r7, #4]
  44022. 8012f14: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44023. }
  44024. 8012f18: bf00 nop
  44025. 8012f1a: 373c adds r7, #60 @ 0x3c
  44026. 8012f1c: 46bd mov sp, r7
  44027. 8012f1e: f85d 7b04 ldr.w r7, [sp], #4
  44028. 8012f22: 4770 bx lr
  44029. 08012f24 <UART_TxISR_16BIT>:
  44030. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44031. * @param huart UART handle.
  44032. * @retval None
  44033. */
  44034. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  44035. {
  44036. 8012f24: b480 push {r7}
  44037. 8012f26: b091 sub sp, #68 @ 0x44
  44038. 8012f28: af00 add r7, sp, #0
  44039. 8012f2a: 6078 str r0, [r7, #4]
  44040. const uint16_t *tmp;
  44041. /* Check that a Tx process is ongoing */
  44042. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44043. 8012f2c: 687b ldr r3, [r7, #4]
  44044. 8012f2e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44045. 8012f32: 2b21 cmp r3, #33 @ 0x21
  44046. 8012f34: d151 bne.n 8012fda <UART_TxISR_16BIT+0xb6>
  44047. {
  44048. if (huart->TxXferCount == 0U)
  44049. 8012f36: 687b ldr r3, [r7, #4]
  44050. 8012f38: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44051. 8012f3c: b29b uxth r3, r3
  44052. 8012f3e: 2b00 cmp r3, #0
  44053. 8012f40: d132 bne.n 8012fa8 <UART_TxISR_16BIT+0x84>
  44054. {
  44055. /* Disable the UART Transmit Data Register Empty Interrupt */
  44056. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  44057. 8012f42: 687b ldr r3, [r7, #4]
  44058. 8012f44: 681b ldr r3, [r3, #0]
  44059. 8012f46: 627b str r3, [r7, #36] @ 0x24
  44060. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44061. 8012f48: 6a7b ldr r3, [r7, #36] @ 0x24
  44062. 8012f4a: e853 3f00 ldrex r3, [r3]
  44063. 8012f4e: 623b str r3, [r7, #32]
  44064. return(result);
  44065. 8012f50: 6a3b ldr r3, [r7, #32]
  44066. 8012f52: f023 0380 bic.w r3, r3, #128 @ 0x80
  44067. 8012f56: 63bb str r3, [r7, #56] @ 0x38
  44068. 8012f58: 687b ldr r3, [r7, #4]
  44069. 8012f5a: 681b ldr r3, [r3, #0]
  44070. 8012f5c: 461a mov r2, r3
  44071. 8012f5e: 6bbb ldr r3, [r7, #56] @ 0x38
  44072. 8012f60: 633b str r3, [r7, #48] @ 0x30
  44073. 8012f62: 62fa str r2, [r7, #44] @ 0x2c
  44074. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44075. 8012f64: 6af9 ldr r1, [r7, #44] @ 0x2c
  44076. 8012f66: 6b3a ldr r2, [r7, #48] @ 0x30
  44077. 8012f68: e841 2300 strex r3, r2, [r1]
  44078. 8012f6c: 62bb str r3, [r7, #40] @ 0x28
  44079. return(result);
  44080. 8012f6e: 6abb ldr r3, [r7, #40] @ 0x28
  44081. 8012f70: 2b00 cmp r3, #0
  44082. 8012f72: d1e6 bne.n 8012f42 <UART_TxISR_16BIT+0x1e>
  44083. /* Enable the UART Transmit Complete Interrupt */
  44084. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44085. 8012f74: 687b ldr r3, [r7, #4]
  44086. 8012f76: 681b ldr r3, [r3, #0]
  44087. 8012f78: 613b str r3, [r7, #16]
  44088. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44089. 8012f7a: 693b ldr r3, [r7, #16]
  44090. 8012f7c: e853 3f00 ldrex r3, [r3]
  44091. 8012f80: 60fb str r3, [r7, #12]
  44092. return(result);
  44093. 8012f82: 68fb ldr r3, [r7, #12]
  44094. 8012f84: f043 0340 orr.w r3, r3, #64 @ 0x40
  44095. 8012f88: 637b str r3, [r7, #52] @ 0x34
  44096. 8012f8a: 687b ldr r3, [r7, #4]
  44097. 8012f8c: 681b ldr r3, [r3, #0]
  44098. 8012f8e: 461a mov r2, r3
  44099. 8012f90: 6b7b ldr r3, [r7, #52] @ 0x34
  44100. 8012f92: 61fb str r3, [r7, #28]
  44101. 8012f94: 61ba str r2, [r7, #24]
  44102. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44103. 8012f96: 69b9 ldr r1, [r7, #24]
  44104. 8012f98: 69fa ldr r2, [r7, #28]
  44105. 8012f9a: e841 2300 strex r3, r2, [r1]
  44106. 8012f9e: 617b str r3, [r7, #20]
  44107. return(result);
  44108. 8012fa0: 697b ldr r3, [r7, #20]
  44109. 8012fa2: 2b00 cmp r3, #0
  44110. 8012fa4: d1e6 bne.n 8012f74 <UART_TxISR_16BIT+0x50>
  44111. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44112. huart->pTxBuffPtr += 2U;
  44113. huart->TxXferCount--;
  44114. }
  44115. }
  44116. }
  44117. 8012fa6: e018 b.n 8012fda <UART_TxISR_16BIT+0xb6>
  44118. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44119. 8012fa8: 687b ldr r3, [r7, #4]
  44120. 8012faa: 6d1b ldr r3, [r3, #80] @ 0x50
  44121. 8012fac: 63fb str r3, [r7, #60] @ 0x3c
  44122. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44123. 8012fae: 6bfb ldr r3, [r7, #60] @ 0x3c
  44124. 8012fb0: 881b ldrh r3, [r3, #0]
  44125. 8012fb2: 461a mov r2, r3
  44126. 8012fb4: 687b ldr r3, [r7, #4]
  44127. 8012fb6: 681b ldr r3, [r3, #0]
  44128. 8012fb8: f3c2 0208 ubfx r2, r2, #0, #9
  44129. 8012fbc: 629a str r2, [r3, #40] @ 0x28
  44130. huart->pTxBuffPtr += 2U;
  44131. 8012fbe: 687b ldr r3, [r7, #4]
  44132. 8012fc0: 6d1b ldr r3, [r3, #80] @ 0x50
  44133. 8012fc2: 1c9a adds r2, r3, #2
  44134. 8012fc4: 687b ldr r3, [r7, #4]
  44135. 8012fc6: 651a str r2, [r3, #80] @ 0x50
  44136. huart->TxXferCount--;
  44137. 8012fc8: 687b ldr r3, [r7, #4]
  44138. 8012fca: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44139. 8012fce: b29b uxth r3, r3
  44140. 8012fd0: 3b01 subs r3, #1
  44141. 8012fd2: b29a uxth r2, r3
  44142. 8012fd4: 687b ldr r3, [r7, #4]
  44143. 8012fd6: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44144. }
  44145. 8012fda: bf00 nop
  44146. 8012fdc: 3744 adds r7, #68 @ 0x44
  44147. 8012fde: 46bd mov sp, r7
  44148. 8012fe0: f85d 7b04 ldr.w r7, [sp], #4
  44149. 8012fe4: 4770 bx lr
  44150. 08012fe6 <UART_TxISR_8BIT_FIFOEN>:
  44151. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44152. * @param huart UART handle.
  44153. * @retval None
  44154. */
  44155. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44156. {
  44157. 8012fe6: b480 push {r7}
  44158. 8012fe8: b091 sub sp, #68 @ 0x44
  44159. 8012fea: af00 add r7, sp, #0
  44160. 8012fec: 6078 str r0, [r7, #4]
  44161. uint16_t nb_tx_data;
  44162. /* Check that a Tx process is ongoing */
  44163. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44164. 8012fee: 687b ldr r3, [r7, #4]
  44165. 8012ff0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44166. 8012ff4: 2b21 cmp r3, #33 @ 0x21
  44167. 8012ff6: d160 bne.n 80130ba <UART_TxISR_8BIT_FIFOEN+0xd4>
  44168. {
  44169. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44170. 8012ff8: 687b ldr r3, [r7, #4]
  44171. 8012ffa: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44172. 8012ffe: 87fb strh r3, [r7, #62] @ 0x3e
  44173. 8013000: e057 b.n 80130b2 <UART_TxISR_8BIT_FIFOEN+0xcc>
  44174. {
  44175. if (huart->TxXferCount == 0U)
  44176. 8013002: 687b ldr r3, [r7, #4]
  44177. 8013004: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44178. 8013008: b29b uxth r3, r3
  44179. 801300a: 2b00 cmp r3, #0
  44180. 801300c: d133 bne.n 8013076 <UART_TxISR_8BIT_FIFOEN+0x90>
  44181. {
  44182. /* Disable the TX FIFO threshold interrupt */
  44183. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44184. 801300e: 687b ldr r3, [r7, #4]
  44185. 8013010: 681b ldr r3, [r3, #0]
  44186. 8013012: 3308 adds r3, #8
  44187. 8013014: 627b str r3, [r7, #36] @ 0x24
  44188. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44189. 8013016: 6a7b ldr r3, [r7, #36] @ 0x24
  44190. 8013018: e853 3f00 ldrex r3, [r3]
  44191. 801301c: 623b str r3, [r7, #32]
  44192. return(result);
  44193. 801301e: 6a3b ldr r3, [r7, #32]
  44194. 8013020: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44195. 8013024: 63bb str r3, [r7, #56] @ 0x38
  44196. 8013026: 687b ldr r3, [r7, #4]
  44197. 8013028: 681b ldr r3, [r3, #0]
  44198. 801302a: 3308 adds r3, #8
  44199. 801302c: 6bba ldr r2, [r7, #56] @ 0x38
  44200. 801302e: 633a str r2, [r7, #48] @ 0x30
  44201. 8013030: 62fb str r3, [r7, #44] @ 0x2c
  44202. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44203. 8013032: 6af9 ldr r1, [r7, #44] @ 0x2c
  44204. 8013034: 6b3a ldr r2, [r7, #48] @ 0x30
  44205. 8013036: e841 2300 strex r3, r2, [r1]
  44206. 801303a: 62bb str r3, [r7, #40] @ 0x28
  44207. return(result);
  44208. 801303c: 6abb ldr r3, [r7, #40] @ 0x28
  44209. 801303e: 2b00 cmp r3, #0
  44210. 8013040: d1e5 bne.n 801300e <UART_TxISR_8BIT_FIFOEN+0x28>
  44211. /* Enable the UART Transmit Complete Interrupt */
  44212. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44213. 8013042: 687b ldr r3, [r7, #4]
  44214. 8013044: 681b ldr r3, [r3, #0]
  44215. 8013046: 613b str r3, [r7, #16]
  44216. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44217. 8013048: 693b ldr r3, [r7, #16]
  44218. 801304a: e853 3f00 ldrex r3, [r3]
  44219. 801304e: 60fb str r3, [r7, #12]
  44220. return(result);
  44221. 8013050: 68fb ldr r3, [r7, #12]
  44222. 8013052: f043 0340 orr.w r3, r3, #64 @ 0x40
  44223. 8013056: 637b str r3, [r7, #52] @ 0x34
  44224. 8013058: 687b ldr r3, [r7, #4]
  44225. 801305a: 681b ldr r3, [r3, #0]
  44226. 801305c: 461a mov r2, r3
  44227. 801305e: 6b7b ldr r3, [r7, #52] @ 0x34
  44228. 8013060: 61fb str r3, [r7, #28]
  44229. 8013062: 61ba str r2, [r7, #24]
  44230. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44231. 8013064: 69b9 ldr r1, [r7, #24]
  44232. 8013066: 69fa ldr r2, [r7, #28]
  44233. 8013068: e841 2300 strex r3, r2, [r1]
  44234. 801306c: 617b str r3, [r7, #20]
  44235. return(result);
  44236. 801306e: 697b ldr r3, [r7, #20]
  44237. 8013070: 2b00 cmp r3, #0
  44238. 8013072: d1e6 bne.n 8013042 <UART_TxISR_8BIT_FIFOEN+0x5c>
  44239. break; /* force exit loop */
  44240. 8013074: e021 b.n 80130ba <UART_TxISR_8BIT_FIFOEN+0xd4>
  44241. }
  44242. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44243. 8013076: 687b ldr r3, [r7, #4]
  44244. 8013078: 681b ldr r3, [r3, #0]
  44245. 801307a: 69db ldr r3, [r3, #28]
  44246. 801307c: f003 0380 and.w r3, r3, #128 @ 0x80
  44247. 8013080: 2b00 cmp r3, #0
  44248. 8013082: d013 beq.n 80130ac <UART_TxISR_8BIT_FIFOEN+0xc6>
  44249. {
  44250. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44251. 8013084: 687b ldr r3, [r7, #4]
  44252. 8013086: 6d1b ldr r3, [r3, #80] @ 0x50
  44253. 8013088: 781a ldrb r2, [r3, #0]
  44254. 801308a: 687b ldr r3, [r7, #4]
  44255. 801308c: 681b ldr r3, [r3, #0]
  44256. 801308e: 629a str r2, [r3, #40] @ 0x28
  44257. huart->pTxBuffPtr++;
  44258. 8013090: 687b ldr r3, [r7, #4]
  44259. 8013092: 6d1b ldr r3, [r3, #80] @ 0x50
  44260. 8013094: 1c5a adds r2, r3, #1
  44261. 8013096: 687b ldr r3, [r7, #4]
  44262. 8013098: 651a str r2, [r3, #80] @ 0x50
  44263. huart->TxXferCount--;
  44264. 801309a: 687b ldr r3, [r7, #4]
  44265. 801309c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44266. 80130a0: b29b uxth r3, r3
  44267. 80130a2: 3b01 subs r3, #1
  44268. 80130a4: b29a uxth r2, r3
  44269. 80130a6: 687b ldr r3, [r7, #4]
  44270. 80130a8: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44271. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44272. 80130ac: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44273. 80130ae: 3b01 subs r3, #1
  44274. 80130b0: 87fb strh r3, [r7, #62] @ 0x3e
  44275. 80130b2: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44276. 80130b4: 2b00 cmp r3, #0
  44277. 80130b6: d1a4 bne.n 8013002 <UART_TxISR_8BIT_FIFOEN+0x1c>
  44278. {
  44279. /* Nothing to do */
  44280. }
  44281. }
  44282. }
  44283. }
  44284. 80130b8: e7ff b.n 80130ba <UART_TxISR_8BIT_FIFOEN+0xd4>
  44285. 80130ba: bf00 nop
  44286. 80130bc: 3744 adds r7, #68 @ 0x44
  44287. 80130be: 46bd mov sp, r7
  44288. 80130c0: f85d 7b04 ldr.w r7, [sp], #4
  44289. 80130c4: 4770 bx lr
  44290. 080130c6 <UART_TxISR_16BIT_FIFOEN>:
  44291. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44292. * @param huart UART handle.
  44293. * @retval None
  44294. */
  44295. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44296. {
  44297. 80130c6: b480 push {r7}
  44298. 80130c8: b091 sub sp, #68 @ 0x44
  44299. 80130ca: af00 add r7, sp, #0
  44300. 80130cc: 6078 str r0, [r7, #4]
  44301. const uint16_t *tmp;
  44302. uint16_t nb_tx_data;
  44303. /* Check that a Tx process is ongoing */
  44304. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44305. 80130ce: 687b ldr r3, [r7, #4]
  44306. 80130d0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44307. 80130d4: 2b21 cmp r3, #33 @ 0x21
  44308. 80130d6: d165 bne.n 80131a4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44309. {
  44310. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44311. 80130d8: 687b ldr r3, [r7, #4]
  44312. 80130da: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44313. 80130de: 87fb strh r3, [r7, #62] @ 0x3e
  44314. 80130e0: e05c b.n 801319c <UART_TxISR_16BIT_FIFOEN+0xd6>
  44315. {
  44316. if (huart->TxXferCount == 0U)
  44317. 80130e2: 687b ldr r3, [r7, #4]
  44318. 80130e4: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44319. 80130e8: b29b uxth r3, r3
  44320. 80130ea: 2b00 cmp r3, #0
  44321. 80130ec: d133 bne.n 8013156 <UART_TxISR_16BIT_FIFOEN+0x90>
  44322. {
  44323. /* Disable the TX FIFO threshold interrupt */
  44324. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44325. 80130ee: 687b ldr r3, [r7, #4]
  44326. 80130f0: 681b ldr r3, [r3, #0]
  44327. 80130f2: 3308 adds r3, #8
  44328. 80130f4: 623b str r3, [r7, #32]
  44329. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44330. 80130f6: 6a3b ldr r3, [r7, #32]
  44331. 80130f8: e853 3f00 ldrex r3, [r3]
  44332. 80130fc: 61fb str r3, [r7, #28]
  44333. return(result);
  44334. 80130fe: 69fb ldr r3, [r7, #28]
  44335. 8013100: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44336. 8013104: 637b str r3, [r7, #52] @ 0x34
  44337. 8013106: 687b ldr r3, [r7, #4]
  44338. 8013108: 681b ldr r3, [r3, #0]
  44339. 801310a: 3308 adds r3, #8
  44340. 801310c: 6b7a ldr r2, [r7, #52] @ 0x34
  44341. 801310e: 62fa str r2, [r7, #44] @ 0x2c
  44342. 8013110: 62bb str r3, [r7, #40] @ 0x28
  44343. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44344. 8013112: 6ab9 ldr r1, [r7, #40] @ 0x28
  44345. 8013114: 6afa ldr r2, [r7, #44] @ 0x2c
  44346. 8013116: e841 2300 strex r3, r2, [r1]
  44347. 801311a: 627b str r3, [r7, #36] @ 0x24
  44348. return(result);
  44349. 801311c: 6a7b ldr r3, [r7, #36] @ 0x24
  44350. 801311e: 2b00 cmp r3, #0
  44351. 8013120: d1e5 bne.n 80130ee <UART_TxISR_16BIT_FIFOEN+0x28>
  44352. /* Enable the UART Transmit Complete Interrupt */
  44353. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44354. 8013122: 687b ldr r3, [r7, #4]
  44355. 8013124: 681b ldr r3, [r3, #0]
  44356. 8013126: 60fb str r3, [r7, #12]
  44357. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44358. 8013128: 68fb ldr r3, [r7, #12]
  44359. 801312a: e853 3f00 ldrex r3, [r3]
  44360. 801312e: 60bb str r3, [r7, #8]
  44361. return(result);
  44362. 8013130: 68bb ldr r3, [r7, #8]
  44363. 8013132: f043 0340 orr.w r3, r3, #64 @ 0x40
  44364. 8013136: 633b str r3, [r7, #48] @ 0x30
  44365. 8013138: 687b ldr r3, [r7, #4]
  44366. 801313a: 681b ldr r3, [r3, #0]
  44367. 801313c: 461a mov r2, r3
  44368. 801313e: 6b3b ldr r3, [r7, #48] @ 0x30
  44369. 8013140: 61bb str r3, [r7, #24]
  44370. 8013142: 617a str r2, [r7, #20]
  44371. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44372. 8013144: 6979 ldr r1, [r7, #20]
  44373. 8013146: 69ba ldr r2, [r7, #24]
  44374. 8013148: e841 2300 strex r3, r2, [r1]
  44375. 801314c: 613b str r3, [r7, #16]
  44376. return(result);
  44377. 801314e: 693b ldr r3, [r7, #16]
  44378. 8013150: 2b00 cmp r3, #0
  44379. 8013152: d1e6 bne.n 8013122 <UART_TxISR_16BIT_FIFOEN+0x5c>
  44380. break; /* force exit loop */
  44381. 8013154: e026 b.n 80131a4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44382. }
  44383. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44384. 8013156: 687b ldr r3, [r7, #4]
  44385. 8013158: 681b ldr r3, [r3, #0]
  44386. 801315a: 69db ldr r3, [r3, #28]
  44387. 801315c: f003 0380 and.w r3, r3, #128 @ 0x80
  44388. 8013160: 2b00 cmp r3, #0
  44389. 8013162: d018 beq.n 8013196 <UART_TxISR_16BIT_FIFOEN+0xd0>
  44390. {
  44391. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44392. 8013164: 687b ldr r3, [r7, #4]
  44393. 8013166: 6d1b ldr r3, [r3, #80] @ 0x50
  44394. 8013168: 63bb str r3, [r7, #56] @ 0x38
  44395. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44396. 801316a: 6bbb ldr r3, [r7, #56] @ 0x38
  44397. 801316c: 881b ldrh r3, [r3, #0]
  44398. 801316e: 461a mov r2, r3
  44399. 8013170: 687b ldr r3, [r7, #4]
  44400. 8013172: 681b ldr r3, [r3, #0]
  44401. 8013174: f3c2 0208 ubfx r2, r2, #0, #9
  44402. 8013178: 629a str r2, [r3, #40] @ 0x28
  44403. huart->pTxBuffPtr += 2U;
  44404. 801317a: 687b ldr r3, [r7, #4]
  44405. 801317c: 6d1b ldr r3, [r3, #80] @ 0x50
  44406. 801317e: 1c9a adds r2, r3, #2
  44407. 8013180: 687b ldr r3, [r7, #4]
  44408. 8013182: 651a str r2, [r3, #80] @ 0x50
  44409. huart->TxXferCount--;
  44410. 8013184: 687b ldr r3, [r7, #4]
  44411. 8013186: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44412. 801318a: b29b uxth r3, r3
  44413. 801318c: 3b01 subs r3, #1
  44414. 801318e: b29a uxth r2, r3
  44415. 8013190: 687b ldr r3, [r7, #4]
  44416. 8013192: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44417. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44418. 8013196: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44419. 8013198: 3b01 subs r3, #1
  44420. 801319a: 87fb strh r3, [r7, #62] @ 0x3e
  44421. 801319c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44422. 801319e: 2b00 cmp r3, #0
  44423. 80131a0: d19f bne.n 80130e2 <UART_TxISR_16BIT_FIFOEN+0x1c>
  44424. {
  44425. /* Nothing to do */
  44426. }
  44427. }
  44428. }
  44429. }
  44430. 80131a2: e7ff b.n 80131a4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44431. 80131a4: bf00 nop
  44432. 80131a6: 3744 adds r7, #68 @ 0x44
  44433. 80131a8: 46bd mov sp, r7
  44434. 80131aa: f85d 7b04 ldr.w r7, [sp], #4
  44435. 80131ae: 4770 bx lr
  44436. 080131b0 <UART_EndTransmit_IT>:
  44437. * @param huart pointer to a UART_HandleTypeDef structure that contains
  44438. * the configuration information for the specified UART module.
  44439. * @retval None
  44440. */
  44441. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  44442. {
  44443. 80131b0: b580 push {r7, lr}
  44444. 80131b2: b088 sub sp, #32
  44445. 80131b4: af00 add r7, sp, #0
  44446. 80131b6: 6078 str r0, [r7, #4]
  44447. /* Disable the UART Transmit Complete Interrupt */
  44448. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44449. 80131b8: 687b ldr r3, [r7, #4]
  44450. 80131ba: 681b ldr r3, [r3, #0]
  44451. 80131bc: 60fb str r3, [r7, #12]
  44452. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44453. 80131be: 68fb ldr r3, [r7, #12]
  44454. 80131c0: e853 3f00 ldrex r3, [r3]
  44455. 80131c4: 60bb str r3, [r7, #8]
  44456. return(result);
  44457. 80131c6: 68bb ldr r3, [r7, #8]
  44458. 80131c8: f023 0340 bic.w r3, r3, #64 @ 0x40
  44459. 80131cc: 61fb str r3, [r7, #28]
  44460. 80131ce: 687b ldr r3, [r7, #4]
  44461. 80131d0: 681b ldr r3, [r3, #0]
  44462. 80131d2: 461a mov r2, r3
  44463. 80131d4: 69fb ldr r3, [r7, #28]
  44464. 80131d6: 61bb str r3, [r7, #24]
  44465. 80131d8: 617a str r2, [r7, #20]
  44466. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44467. 80131da: 6979 ldr r1, [r7, #20]
  44468. 80131dc: 69ba ldr r2, [r7, #24]
  44469. 80131de: e841 2300 strex r3, r2, [r1]
  44470. 80131e2: 613b str r3, [r7, #16]
  44471. return(result);
  44472. 80131e4: 693b ldr r3, [r7, #16]
  44473. 80131e6: 2b00 cmp r3, #0
  44474. 80131e8: d1e6 bne.n 80131b8 <UART_EndTransmit_IT+0x8>
  44475. /* Tx process is ended, restore huart->gState to Ready */
  44476. huart->gState = HAL_UART_STATE_READY;
  44477. 80131ea: 687b ldr r3, [r7, #4]
  44478. 80131ec: 2220 movs r2, #32
  44479. 80131ee: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44480. /* Cleat TxISR function pointer */
  44481. huart->TxISR = NULL;
  44482. 80131f2: 687b ldr r3, [r7, #4]
  44483. 80131f4: 2200 movs r2, #0
  44484. 80131f6: 679a str r2, [r3, #120] @ 0x78
  44485. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44486. /*Call registered Tx complete callback*/
  44487. huart->TxCpltCallback(huart);
  44488. #else
  44489. /*Call legacy weak Tx complete callback*/
  44490. HAL_UART_TxCpltCallback(huart);
  44491. 80131f8: 6878 ldr r0, [r7, #4]
  44492. 80131fa: f7f1 fc8d bl 8004b18 <HAL_UART_TxCpltCallback>
  44493. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44494. }
  44495. 80131fe: bf00 nop
  44496. 8013200: 3720 adds r7, #32
  44497. 8013202: 46bd mov sp, r7
  44498. 8013204: bd80 pop {r7, pc}
  44499. ...
  44500. 08013208 <UART_RxISR_8BIT>:
  44501. * @brief RX interrupt handler for 7 or 8 bits data word length .
  44502. * @param huart UART handle.
  44503. * @retval None
  44504. */
  44505. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  44506. {
  44507. 8013208: b580 push {r7, lr}
  44508. 801320a: b09c sub sp, #112 @ 0x70
  44509. 801320c: af00 add r7, sp, #0
  44510. 801320e: 6078 str r0, [r7, #4]
  44511. uint16_t uhMask = huart->Mask;
  44512. 8013210: 687b ldr r3, [r7, #4]
  44513. 8013212: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44514. 8013216: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44515. uint16_t uhdata;
  44516. /* Check that a Rx process is ongoing */
  44517. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44518. 801321a: 687b ldr r3, [r7, #4]
  44519. 801321c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44520. 8013220: 2b22 cmp r3, #34 @ 0x22
  44521. 8013222: f040 80be bne.w 80133a2 <UART_RxISR_8BIT+0x19a>
  44522. {
  44523. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44524. 8013226: 687b ldr r3, [r7, #4]
  44525. 8013228: 681b ldr r3, [r3, #0]
  44526. 801322a: 6a5b ldr r3, [r3, #36] @ 0x24
  44527. 801322c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44528. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44529. 8013230: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  44530. 8013234: b2d9 uxtb r1, r3
  44531. 8013236: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44532. 801323a: b2da uxtb r2, r3
  44533. 801323c: 687b ldr r3, [r7, #4]
  44534. 801323e: 6d9b ldr r3, [r3, #88] @ 0x58
  44535. 8013240: 400a ands r2, r1
  44536. 8013242: b2d2 uxtb r2, r2
  44537. 8013244: 701a strb r2, [r3, #0]
  44538. huart->pRxBuffPtr++;
  44539. 8013246: 687b ldr r3, [r7, #4]
  44540. 8013248: 6d9b ldr r3, [r3, #88] @ 0x58
  44541. 801324a: 1c5a adds r2, r3, #1
  44542. 801324c: 687b ldr r3, [r7, #4]
  44543. 801324e: 659a str r2, [r3, #88] @ 0x58
  44544. huart->RxXferCount--;
  44545. 8013250: 687b ldr r3, [r7, #4]
  44546. 8013252: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44547. 8013256: b29b uxth r3, r3
  44548. 8013258: 3b01 subs r3, #1
  44549. 801325a: b29a uxth r2, r3
  44550. 801325c: 687b ldr r3, [r7, #4]
  44551. 801325e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44552. if (huart->RxXferCount == 0U)
  44553. 8013262: 687b ldr r3, [r7, #4]
  44554. 8013264: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44555. 8013268: b29b uxth r3, r3
  44556. 801326a: 2b00 cmp r3, #0
  44557. 801326c: f040 80a1 bne.w 80133b2 <UART_RxISR_8BIT+0x1aa>
  44558. {
  44559. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  44560. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44561. 8013270: 687b ldr r3, [r7, #4]
  44562. 8013272: 681b ldr r3, [r3, #0]
  44563. 8013274: 64fb str r3, [r7, #76] @ 0x4c
  44564. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44565. 8013276: 6cfb ldr r3, [r7, #76] @ 0x4c
  44566. 8013278: e853 3f00 ldrex r3, [r3]
  44567. 801327c: 64bb str r3, [r7, #72] @ 0x48
  44568. return(result);
  44569. 801327e: 6cbb ldr r3, [r7, #72] @ 0x48
  44570. 8013280: f423 7390 bic.w r3, r3, #288 @ 0x120
  44571. 8013284: 66bb str r3, [r7, #104] @ 0x68
  44572. 8013286: 687b ldr r3, [r7, #4]
  44573. 8013288: 681b ldr r3, [r3, #0]
  44574. 801328a: 461a mov r2, r3
  44575. 801328c: 6ebb ldr r3, [r7, #104] @ 0x68
  44576. 801328e: 65bb str r3, [r7, #88] @ 0x58
  44577. 8013290: 657a str r2, [r7, #84] @ 0x54
  44578. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44579. 8013292: 6d79 ldr r1, [r7, #84] @ 0x54
  44580. 8013294: 6dba ldr r2, [r7, #88] @ 0x58
  44581. 8013296: e841 2300 strex r3, r2, [r1]
  44582. 801329a: 653b str r3, [r7, #80] @ 0x50
  44583. return(result);
  44584. 801329c: 6d3b ldr r3, [r7, #80] @ 0x50
  44585. 801329e: 2b00 cmp r3, #0
  44586. 80132a0: d1e6 bne.n 8013270 <UART_RxISR_8BIT+0x68>
  44587. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44588. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44589. 80132a2: 687b ldr r3, [r7, #4]
  44590. 80132a4: 681b ldr r3, [r3, #0]
  44591. 80132a6: 3308 adds r3, #8
  44592. 80132a8: 63bb str r3, [r7, #56] @ 0x38
  44593. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44594. 80132aa: 6bbb ldr r3, [r7, #56] @ 0x38
  44595. 80132ac: e853 3f00 ldrex r3, [r3]
  44596. 80132b0: 637b str r3, [r7, #52] @ 0x34
  44597. return(result);
  44598. 80132b2: 6b7b ldr r3, [r7, #52] @ 0x34
  44599. 80132b4: f023 0301 bic.w r3, r3, #1
  44600. 80132b8: 667b str r3, [r7, #100] @ 0x64
  44601. 80132ba: 687b ldr r3, [r7, #4]
  44602. 80132bc: 681b ldr r3, [r3, #0]
  44603. 80132be: 3308 adds r3, #8
  44604. 80132c0: 6e7a ldr r2, [r7, #100] @ 0x64
  44605. 80132c2: 647a str r2, [r7, #68] @ 0x44
  44606. 80132c4: 643b str r3, [r7, #64] @ 0x40
  44607. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44608. 80132c6: 6c39 ldr r1, [r7, #64] @ 0x40
  44609. 80132c8: 6c7a ldr r2, [r7, #68] @ 0x44
  44610. 80132ca: e841 2300 strex r3, r2, [r1]
  44611. 80132ce: 63fb str r3, [r7, #60] @ 0x3c
  44612. return(result);
  44613. 80132d0: 6bfb ldr r3, [r7, #60] @ 0x3c
  44614. 80132d2: 2b00 cmp r3, #0
  44615. 80132d4: d1e5 bne.n 80132a2 <UART_RxISR_8BIT+0x9a>
  44616. /* Rx process is completed, restore huart->RxState to Ready */
  44617. huart->RxState = HAL_UART_STATE_READY;
  44618. 80132d6: 687b ldr r3, [r7, #4]
  44619. 80132d8: 2220 movs r2, #32
  44620. 80132da: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44621. /* Clear RxISR function pointer */
  44622. huart->RxISR = NULL;
  44623. 80132de: 687b ldr r3, [r7, #4]
  44624. 80132e0: 2200 movs r2, #0
  44625. 80132e2: 675a str r2, [r3, #116] @ 0x74
  44626. /* Initialize type of RxEvent to Transfer Complete */
  44627. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44628. 80132e4: 687b ldr r3, [r7, #4]
  44629. 80132e6: 2200 movs r2, #0
  44630. 80132e8: 671a str r2, [r3, #112] @ 0x70
  44631. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44632. 80132ea: 687b ldr r3, [r7, #4]
  44633. 80132ec: 681b ldr r3, [r3, #0]
  44634. 80132ee: 4a33 ldr r2, [pc, #204] @ (80133bc <UART_RxISR_8BIT+0x1b4>)
  44635. 80132f0: 4293 cmp r3, r2
  44636. 80132f2: d01f beq.n 8013334 <UART_RxISR_8BIT+0x12c>
  44637. {
  44638. /* Check that USART RTOEN bit is set */
  44639. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44640. 80132f4: 687b ldr r3, [r7, #4]
  44641. 80132f6: 681b ldr r3, [r3, #0]
  44642. 80132f8: 685b ldr r3, [r3, #4]
  44643. 80132fa: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44644. 80132fe: 2b00 cmp r3, #0
  44645. 8013300: d018 beq.n 8013334 <UART_RxISR_8BIT+0x12c>
  44646. {
  44647. /* Enable the UART Receiver Timeout Interrupt */
  44648. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44649. 8013302: 687b ldr r3, [r7, #4]
  44650. 8013304: 681b ldr r3, [r3, #0]
  44651. 8013306: 627b str r3, [r7, #36] @ 0x24
  44652. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44653. 8013308: 6a7b ldr r3, [r7, #36] @ 0x24
  44654. 801330a: e853 3f00 ldrex r3, [r3]
  44655. 801330e: 623b str r3, [r7, #32]
  44656. return(result);
  44657. 8013310: 6a3b ldr r3, [r7, #32]
  44658. 8013312: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44659. 8013316: 663b str r3, [r7, #96] @ 0x60
  44660. 8013318: 687b ldr r3, [r7, #4]
  44661. 801331a: 681b ldr r3, [r3, #0]
  44662. 801331c: 461a mov r2, r3
  44663. 801331e: 6e3b ldr r3, [r7, #96] @ 0x60
  44664. 8013320: 633b str r3, [r7, #48] @ 0x30
  44665. 8013322: 62fa str r2, [r7, #44] @ 0x2c
  44666. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44667. 8013324: 6af9 ldr r1, [r7, #44] @ 0x2c
  44668. 8013326: 6b3a ldr r2, [r7, #48] @ 0x30
  44669. 8013328: e841 2300 strex r3, r2, [r1]
  44670. 801332c: 62bb str r3, [r7, #40] @ 0x28
  44671. return(result);
  44672. 801332e: 6abb ldr r3, [r7, #40] @ 0x28
  44673. 8013330: 2b00 cmp r3, #0
  44674. 8013332: d1e6 bne.n 8013302 <UART_RxISR_8BIT+0xfa>
  44675. }
  44676. }
  44677. /* Check current reception Mode :
  44678. If Reception till IDLE event has been selected : */
  44679. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44680. 8013334: 687b ldr r3, [r7, #4]
  44681. 8013336: 6edb ldr r3, [r3, #108] @ 0x6c
  44682. 8013338: 2b01 cmp r3, #1
  44683. 801333a: d12e bne.n 801339a <UART_RxISR_8BIT+0x192>
  44684. {
  44685. /* Set reception type to Standard */
  44686. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44687. 801333c: 687b ldr r3, [r7, #4]
  44688. 801333e: 2200 movs r2, #0
  44689. 8013340: 66da str r2, [r3, #108] @ 0x6c
  44690. /* Disable IDLE interrupt */
  44691. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44692. 8013342: 687b ldr r3, [r7, #4]
  44693. 8013344: 681b ldr r3, [r3, #0]
  44694. 8013346: 613b str r3, [r7, #16]
  44695. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44696. 8013348: 693b ldr r3, [r7, #16]
  44697. 801334a: e853 3f00 ldrex r3, [r3]
  44698. 801334e: 60fb str r3, [r7, #12]
  44699. return(result);
  44700. 8013350: 68fb ldr r3, [r7, #12]
  44701. 8013352: f023 0310 bic.w r3, r3, #16
  44702. 8013356: 65fb str r3, [r7, #92] @ 0x5c
  44703. 8013358: 687b ldr r3, [r7, #4]
  44704. 801335a: 681b ldr r3, [r3, #0]
  44705. 801335c: 461a mov r2, r3
  44706. 801335e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44707. 8013360: 61fb str r3, [r7, #28]
  44708. 8013362: 61ba str r2, [r7, #24]
  44709. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44710. 8013364: 69b9 ldr r1, [r7, #24]
  44711. 8013366: 69fa ldr r2, [r7, #28]
  44712. 8013368: e841 2300 strex r3, r2, [r1]
  44713. 801336c: 617b str r3, [r7, #20]
  44714. return(result);
  44715. 801336e: 697b ldr r3, [r7, #20]
  44716. 8013370: 2b00 cmp r3, #0
  44717. 8013372: d1e6 bne.n 8013342 <UART_RxISR_8BIT+0x13a>
  44718. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44719. 8013374: 687b ldr r3, [r7, #4]
  44720. 8013376: 681b ldr r3, [r3, #0]
  44721. 8013378: 69db ldr r3, [r3, #28]
  44722. 801337a: f003 0310 and.w r3, r3, #16
  44723. 801337e: 2b10 cmp r3, #16
  44724. 8013380: d103 bne.n 801338a <UART_RxISR_8BIT+0x182>
  44725. {
  44726. /* Clear IDLE Flag */
  44727. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44728. 8013382: 687b ldr r3, [r7, #4]
  44729. 8013384: 681b ldr r3, [r3, #0]
  44730. 8013386: 2210 movs r2, #16
  44731. 8013388: 621a str r2, [r3, #32]
  44732. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44733. /*Call registered Rx Event callback*/
  44734. huart->RxEventCallback(huart, huart->RxXferSize);
  44735. #else
  44736. /*Call legacy weak Rx Event callback*/
  44737. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44738. 801338a: 687b ldr r3, [r7, #4]
  44739. 801338c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44740. 8013390: 4619 mov r1, r3
  44741. 8013392: 6878 ldr r0, [r7, #4]
  44742. 8013394: f7f1 fb96 bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  44743. else
  44744. {
  44745. /* Clear RXNE interrupt flag */
  44746. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44747. }
  44748. }
  44749. 8013398: e00b b.n 80133b2 <UART_RxISR_8BIT+0x1aa>
  44750. HAL_UART_RxCpltCallback(huart);
  44751. 801339a: 6878 ldr r0, [r7, #4]
  44752. 801339c: f7f1 fb88 bl 8004ab0 <HAL_UART_RxCpltCallback>
  44753. }
  44754. 80133a0: e007 b.n 80133b2 <UART_RxISR_8BIT+0x1aa>
  44755. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44756. 80133a2: 687b ldr r3, [r7, #4]
  44757. 80133a4: 681b ldr r3, [r3, #0]
  44758. 80133a6: 699a ldr r2, [r3, #24]
  44759. 80133a8: 687b ldr r3, [r7, #4]
  44760. 80133aa: 681b ldr r3, [r3, #0]
  44761. 80133ac: f042 0208 orr.w r2, r2, #8
  44762. 80133b0: 619a str r2, [r3, #24]
  44763. }
  44764. 80133b2: bf00 nop
  44765. 80133b4: 3770 adds r7, #112 @ 0x70
  44766. 80133b6: 46bd mov sp, r7
  44767. 80133b8: bd80 pop {r7, pc}
  44768. 80133ba: bf00 nop
  44769. 80133bc: 58000c00 .word 0x58000c00
  44770. 080133c0 <UART_RxISR_16BIT>:
  44771. * interruptions have been enabled by HAL_UART_Receive_IT()
  44772. * @param huart UART handle.
  44773. * @retval None
  44774. */
  44775. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  44776. {
  44777. 80133c0: b580 push {r7, lr}
  44778. 80133c2: b09c sub sp, #112 @ 0x70
  44779. 80133c4: af00 add r7, sp, #0
  44780. 80133c6: 6078 str r0, [r7, #4]
  44781. uint16_t *tmp;
  44782. uint16_t uhMask = huart->Mask;
  44783. 80133c8: 687b ldr r3, [r7, #4]
  44784. 80133ca: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44785. 80133ce: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44786. uint16_t uhdata;
  44787. /* Check that a Rx process is ongoing */
  44788. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44789. 80133d2: 687b ldr r3, [r7, #4]
  44790. 80133d4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44791. 80133d8: 2b22 cmp r3, #34 @ 0x22
  44792. 80133da: f040 80be bne.w 801355a <UART_RxISR_16BIT+0x19a>
  44793. {
  44794. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44795. 80133de: 687b ldr r3, [r7, #4]
  44796. 80133e0: 681b ldr r3, [r3, #0]
  44797. 80133e2: 6a5b ldr r3, [r3, #36] @ 0x24
  44798. 80133e4: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44799. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44800. 80133e8: 687b ldr r3, [r7, #4]
  44801. 80133ea: 6d9b ldr r3, [r3, #88] @ 0x58
  44802. 80133ec: 66bb str r3, [r7, #104] @ 0x68
  44803. *tmp = (uint16_t)(uhdata & uhMask);
  44804. 80133ee: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  44805. 80133f2: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44806. 80133f6: 4013 ands r3, r2
  44807. 80133f8: b29a uxth r2, r3
  44808. 80133fa: 6ebb ldr r3, [r7, #104] @ 0x68
  44809. 80133fc: 801a strh r2, [r3, #0]
  44810. huart->pRxBuffPtr += 2U;
  44811. 80133fe: 687b ldr r3, [r7, #4]
  44812. 8013400: 6d9b ldr r3, [r3, #88] @ 0x58
  44813. 8013402: 1c9a adds r2, r3, #2
  44814. 8013404: 687b ldr r3, [r7, #4]
  44815. 8013406: 659a str r2, [r3, #88] @ 0x58
  44816. huart->RxXferCount--;
  44817. 8013408: 687b ldr r3, [r7, #4]
  44818. 801340a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44819. 801340e: b29b uxth r3, r3
  44820. 8013410: 3b01 subs r3, #1
  44821. 8013412: b29a uxth r2, r3
  44822. 8013414: 687b ldr r3, [r7, #4]
  44823. 8013416: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44824. if (huart->RxXferCount == 0U)
  44825. 801341a: 687b ldr r3, [r7, #4]
  44826. 801341c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44827. 8013420: b29b uxth r3, r3
  44828. 8013422: 2b00 cmp r3, #0
  44829. 8013424: f040 80a1 bne.w 801356a <UART_RxISR_16BIT+0x1aa>
  44830. {
  44831. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  44832. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44833. 8013428: 687b ldr r3, [r7, #4]
  44834. 801342a: 681b ldr r3, [r3, #0]
  44835. 801342c: 64bb str r3, [r7, #72] @ 0x48
  44836. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44837. 801342e: 6cbb ldr r3, [r7, #72] @ 0x48
  44838. 8013430: e853 3f00 ldrex r3, [r3]
  44839. 8013434: 647b str r3, [r7, #68] @ 0x44
  44840. return(result);
  44841. 8013436: 6c7b ldr r3, [r7, #68] @ 0x44
  44842. 8013438: f423 7390 bic.w r3, r3, #288 @ 0x120
  44843. 801343c: 667b str r3, [r7, #100] @ 0x64
  44844. 801343e: 687b ldr r3, [r7, #4]
  44845. 8013440: 681b ldr r3, [r3, #0]
  44846. 8013442: 461a mov r2, r3
  44847. 8013444: 6e7b ldr r3, [r7, #100] @ 0x64
  44848. 8013446: 657b str r3, [r7, #84] @ 0x54
  44849. 8013448: 653a str r2, [r7, #80] @ 0x50
  44850. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44851. 801344a: 6d39 ldr r1, [r7, #80] @ 0x50
  44852. 801344c: 6d7a ldr r2, [r7, #84] @ 0x54
  44853. 801344e: e841 2300 strex r3, r2, [r1]
  44854. 8013452: 64fb str r3, [r7, #76] @ 0x4c
  44855. return(result);
  44856. 8013454: 6cfb ldr r3, [r7, #76] @ 0x4c
  44857. 8013456: 2b00 cmp r3, #0
  44858. 8013458: d1e6 bne.n 8013428 <UART_RxISR_16BIT+0x68>
  44859. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44860. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44861. 801345a: 687b ldr r3, [r7, #4]
  44862. 801345c: 681b ldr r3, [r3, #0]
  44863. 801345e: 3308 adds r3, #8
  44864. 8013460: 637b str r3, [r7, #52] @ 0x34
  44865. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44866. 8013462: 6b7b ldr r3, [r7, #52] @ 0x34
  44867. 8013464: e853 3f00 ldrex r3, [r3]
  44868. 8013468: 633b str r3, [r7, #48] @ 0x30
  44869. return(result);
  44870. 801346a: 6b3b ldr r3, [r7, #48] @ 0x30
  44871. 801346c: f023 0301 bic.w r3, r3, #1
  44872. 8013470: 663b str r3, [r7, #96] @ 0x60
  44873. 8013472: 687b ldr r3, [r7, #4]
  44874. 8013474: 681b ldr r3, [r3, #0]
  44875. 8013476: 3308 adds r3, #8
  44876. 8013478: 6e3a ldr r2, [r7, #96] @ 0x60
  44877. 801347a: 643a str r2, [r7, #64] @ 0x40
  44878. 801347c: 63fb str r3, [r7, #60] @ 0x3c
  44879. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44880. 801347e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44881. 8013480: 6c3a ldr r2, [r7, #64] @ 0x40
  44882. 8013482: e841 2300 strex r3, r2, [r1]
  44883. 8013486: 63bb str r3, [r7, #56] @ 0x38
  44884. return(result);
  44885. 8013488: 6bbb ldr r3, [r7, #56] @ 0x38
  44886. 801348a: 2b00 cmp r3, #0
  44887. 801348c: d1e5 bne.n 801345a <UART_RxISR_16BIT+0x9a>
  44888. /* Rx process is completed, restore huart->RxState to Ready */
  44889. huart->RxState = HAL_UART_STATE_READY;
  44890. 801348e: 687b ldr r3, [r7, #4]
  44891. 8013490: 2220 movs r2, #32
  44892. 8013492: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44893. /* Clear RxISR function pointer */
  44894. huart->RxISR = NULL;
  44895. 8013496: 687b ldr r3, [r7, #4]
  44896. 8013498: 2200 movs r2, #0
  44897. 801349a: 675a str r2, [r3, #116] @ 0x74
  44898. /* Initialize type of RxEvent to Transfer Complete */
  44899. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44900. 801349c: 687b ldr r3, [r7, #4]
  44901. 801349e: 2200 movs r2, #0
  44902. 80134a0: 671a str r2, [r3, #112] @ 0x70
  44903. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44904. 80134a2: 687b ldr r3, [r7, #4]
  44905. 80134a4: 681b ldr r3, [r3, #0]
  44906. 80134a6: 4a33 ldr r2, [pc, #204] @ (8013574 <UART_RxISR_16BIT+0x1b4>)
  44907. 80134a8: 4293 cmp r3, r2
  44908. 80134aa: d01f beq.n 80134ec <UART_RxISR_16BIT+0x12c>
  44909. {
  44910. /* Check that USART RTOEN bit is set */
  44911. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44912. 80134ac: 687b ldr r3, [r7, #4]
  44913. 80134ae: 681b ldr r3, [r3, #0]
  44914. 80134b0: 685b ldr r3, [r3, #4]
  44915. 80134b2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44916. 80134b6: 2b00 cmp r3, #0
  44917. 80134b8: d018 beq.n 80134ec <UART_RxISR_16BIT+0x12c>
  44918. {
  44919. /* Enable the UART Receiver Timeout Interrupt */
  44920. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44921. 80134ba: 687b ldr r3, [r7, #4]
  44922. 80134bc: 681b ldr r3, [r3, #0]
  44923. 80134be: 623b str r3, [r7, #32]
  44924. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44925. 80134c0: 6a3b ldr r3, [r7, #32]
  44926. 80134c2: e853 3f00 ldrex r3, [r3]
  44927. 80134c6: 61fb str r3, [r7, #28]
  44928. return(result);
  44929. 80134c8: 69fb ldr r3, [r7, #28]
  44930. 80134ca: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44931. 80134ce: 65fb str r3, [r7, #92] @ 0x5c
  44932. 80134d0: 687b ldr r3, [r7, #4]
  44933. 80134d2: 681b ldr r3, [r3, #0]
  44934. 80134d4: 461a mov r2, r3
  44935. 80134d6: 6dfb ldr r3, [r7, #92] @ 0x5c
  44936. 80134d8: 62fb str r3, [r7, #44] @ 0x2c
  44937. 80134da: 62ba str r2, [r7, #40] @ 0x28
  44938. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44939. 80134dc: 6ab9 ldr r1, [r7, #40] @ 0x28
  44940. 80134de: 6afa ldr r2, [r7, #44] @ 0x2c
  44941. 80134e0: e841 2300 strex r3, r2, [r1]
  44942. 80134e4: 627b str r3, [r7, #36] @ 0x24
  44943. return(result);
  44944. 80134e6: 6a7b ldr r3, [r7, #36] @ 0x24
  44945. 80134e8: 2b00 cmp r3, #0
  44946. 80134ea: d1e6 bne.n 80134ba <UART_RxISR_16BIT+0xfa>
  44947. }
  44948. }
  44949. /* Check current reception Mode :
  44950. If Reception till IDLE event has been selected : */
  44951. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44952. 80134ec: 687b ldr r3, [r7, #4]
  44953. 80134ee: 6edb ldr r3, [r3, #108] @ 0x6c
  44954. 80134f0: 2b01 cmp r3, #1
  44955. 80134f2: d12e bne.n 8013552 <UART_RxISR_16BIT+0x192>
  44956. {
  44957. /* Set reception type to Standard */
  44958. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44959. 80134f4: 687b ldr r3, [r7, #4]
  44960. 80134f6: 2200 movs r2, #0
  44961. 80134f8: 66da str r2, [r3, #108] @ 0x6c
  44962. /* Disable IDLE interrupt */
  44963. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44964. 80134fa: 687b ldr r3, [r7, #4]
  44965. 80134fc: 681b ldr r3, [r3, #0]
  44966. 80134fe: 60fb str r3, [r7, #12]
  44967. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44968. 8013500: 68fb ldr r3, [r7, #12]
  44969. 8013502: e853 3f00 ldrex r3, [r3]
  44970. 8013506: 60bb str r3, [r7, #8]
  44971. return(result);
  44972. 8013508: 68bb ldr r3, [r7, #8]
  44973. 801350a: f023 0310 bic.w r3, r3, #16
  44974. 801350e: 65bb str r3, [r7, #88] @ 0x58
  44975. 8013510: 687b ldr r3, [r7, #4]
  44976. 8013512: 681b ldr r3, [r3, #0]
  44977. 8013514: 461a mov r2, r3
  44978. 8013516: 6dbb ldr r3, [r7, #88] @ 0x58
  44979. 8013518: 61bb str r3, [r7, #24]
  44980. 801351a: 617a str r2, [r7, #20]
  44981. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44982. 801351c: 6979 ldr r1, [r7, #20]
  44983. 801351e: 69ba ldr r2, [r7, #24]
  44984. 8013520: e841 2300 strex r3, r2, [r1]
  44985. 8013524: 613b str r3, [r7, #16]
  44986. return(result);
  44987. 8013526: 693b ldr r3, [r7, #16]
  44988. 8013528: 2b00 cmp r3, #0
  44989. 801352a: d1e6 bne.n 80134fa <UART_RxISR_16BIT+0x13a>
  44990. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44991. 801352c: 687b ldr r3, [r7, #4]
  44992. 801352e: 681b ldr r3, [r3, #0]
  44993. 8013530: 69db ldr r3, [r3, #28]
  44994. 8013532: f003 0310 and.w r3, r3, #16
  44995. 8013536: 2b10 cmp r3, #16
  44996. 8013538: d103 bne.n 8013542 <UART_RxISR_16BIT+0x182>
  44997. {
  44998. /* Clear IDLE Flag */
  44999. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45000. 801353a: 687b ldr r3, [r7, #4]
  45001. 801353c: 681b ldr r3, [r3, #0]
  45002. 801353e: 2210 movs r2, #16
  45003. 8013540: 621a str r2, [r3, #32]
  45004. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45005. /*Call registered Rx Event callback*/
  45006. huart->RxEventCallback(huart, huart->RxXferSize);
  45007. #else
  45008. /*Call legacy weak Rx Event callback*/
  45009. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45010. 8013542: 687b ldr r3, [r7, #4]
  45011. 8013544: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45012. 8013548: 4619 mov r1, r3
  45013. 801354a: 6878 ldr r0, [r7, #4]
  45014. 801354c: f7f1 faba bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  45015. else
  45016. {
  45017. /* Clear RXNE interrupt flag */
  45018. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45019. }
  45020. }
  45021. 8013550: e00b b.n 801356a <UART_RxISR_16BIT+0x1aa>
  45022. HAL_UART_RxCpltCallback(huart);
  45023. 8013552: 6878 ldr r0, [r7, #4]
  45024. 8013554: f7f1 faac bl 8004ab0 <HAL_UART_RxCpltCallback>
  45025. }
  45026. 8013558: e007 b.n 801356a <UART_RxISR_16BIT+0x1aa>
  45027. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45028. 801355a: 687b ldr r3, [r7, #4]
  45029. 801355c: 681b ldr r3, [r3, #0]
  45030. 801355e: 699a ldr r2, [r3, #24]
  45031. 8013560: 687b ldr r3, [r7, #4]
  45032. 8013562: 681b ldr r3, [r3, #0]
  45033. 8013564: f042 0208 orr.w r2, r2, #8
  45034. 8013568: 619a str r2, [r3, #24]
  45035. }
  45036. 801356a: bf00 nop
  45037. 801356c: 3770 adds r7, #112 @ 0x70
  45038. 801356e: 46bd mov sp, r7
  45039. 8013570: bd80 pop {r7, pc}
  45040. 8013572: bf00 nop
  45041. 8013574: 58000c00 .word 0x58000c00
  45042. 08013578 <UART_RxISR_8BIT_FIFOEN>:
  45043. * interruptions have been enabled by HAL_UART_Receive_IT()
  45044. * @param huart UART handle.
  45045. * @retval None
  45046. */
  45047. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  45048. {
  45049. 8013578: b580 push {r7, lr}
  45050. 801357a: b0ac sub sp, #176 @ 0xb0
  45051. 801357c: af00 add r7, sp, #0
  45052. 801357e: 6078 str r0, [r7, #4]
  45053. uint16_t uhMask = huart->Mask;
  45054. 8013580: 687b ldr r3, [r7, #4]
  45055. 8013582: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45056. 8013586: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  45057. uint16_t uhdata;
  45058. uint16_t nb_rx_data;
  45059. uint16_t rxdatacount;
  45060. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45061. 801358a: 687b ldr r3, [r7, #4]
  45062. 801358c: 681b ldr r3, [r3, #0]
  45063. 801358e: 69db ldr r3, [r3, #28]
  45064. 8013590: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45065. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45066. 8013594: 687b ldr r3, [r7, #4]
  45067. 8013596: 681b ldr r3, [r3, #0]
  45068. 8013598: 681b ldr r3, [r3, #0]
  45069. 801359a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  45070. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45071. 801359e: 687b ldr r3, [r7, #4]
  45072. 80135a0: 681b ldr r3, [r3, #0]
  45073. 80135a2: 689b ldr r3, [r3, #8]
  45074. 80135a4: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45075. /* Check that a Rx process is ongoing */
  45076. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45077. 80135a8: 687b ldr r3, [r7, #4]
  45078. 80135aa: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45079. 80135ae: 2b22 cmp r3, #34 @ 0x22
  45080. 80135b0: f040 8180 bne.w 80138b4 <UART_RxISR_8BIT_FIFOEN+0x33c>
  45081. {
  45082. nb_rx_data = huart->NbRxDataToProcess;
  45083. 80135b4: 687b ldr r3, [r7, #4]
  45084. 80135b6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45085. 80135ba: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  45086. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45087. 80135be: e123 b.n 8013808 <UART_RxISR_8BIT_FIFOEN+0x290>
  45088. {
  45089. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45090. 80135c0: 687b ldr r3, [r7, #4]
  45091. 80135c2: 681b ldr r3, [r3, #0]
  45092. 80135c4: 6a5b ldr r3, [r3, #36] @ 0x24
  45093. 80135c6: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  45094. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  45095. 80135ca: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  45096. 80135ce: b2d9 uxtb r1, r3
  45097. 80135d0: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  45098. 80135d4: b2da uxtb r2, r3
  45099. 80135d6: 687b ldr r3, [r7, #4]
  45100. 80135d8: 6d9b ldr r3, [r3, #88] @ 0x58
  45101. 80135da: 400a ands r2, r1
  45102. 80135dc: b2d2 uxtb r2, r2
  45103. 80135de: 701a strb r2, [r3, #0]
  45104. huart->pRxBuffPtr++;
  45105. 80135e0: 687b ldr r3, [r7, #4]
  45106. 80135e2: 6d9b ldr r3, [r3, #88] @ 0x58
  45107. 80135e4: 1c5a adds r2, r3, #1
  45108. 80135e6: 687b ldr r3, [r7, #4]
  45109. 80135e8: 659a str r2, [r3, #88] @ 0x58
  45110. huart->RxXferCount--;
  45111. 80135ea: 687b ldr r3, [r7, #4]
  45112. 80135ec: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45113. 80135f0: b29b uxth r3, r3
  45114. 80135f2: 3b01 subs r3, #1
  45115. 80135f4: b29a uxth r2, r3
  45116. 80135f6: 687b ldr r3, [r7, #4]
  45117. 80135f8: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45118. isrflags = READ_REG(huart->Instance->ISR);
  45119. 80135fc: 687b ldr r3, [r7, #4]
  45120. 80135fe: 681b ldr r3, [r3, #0]
  45121. 8013600: 69db ldr r3, [r3, #28]
  45122. 8013602: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45123. /* If some non blocking errors occurred */
  45124. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45125. 8013606: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45126. 801360a: f003 0307 and.w r3, r3, #7
  45127. 801360e: 2b00 cmp r3, #0
  45128. 8013610: d053 beq.n 80136ba <UART_RxISR_8BIT_FIFOEN+0x142>
  45129. {
  45130. /* UART parity error interrupt occurred -------------------------------------*/
  45131. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45132. 8013612: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45133. 8013616: f003 0301 and.w r3, r3, #1
  45134. 801361a: 2b00 cmp r3, #0
  45135. 801361c: d011 beq.n 8013642 <UART_RxISR_8BIT_FIFOEN+0xca>
  45136. 801361e: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  45137. 8013622: f403 7380 and.w r3, r3, #256 @ 0x100
  45138. 8013626: 2b00 cmp r3, #0
  45139. 8013628: d00b beq.n 8013642 <UART_RxISR_8BIT_FIFOEN+0xca>
  45140. {
  45141. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45142. 801362a: 687b ldr r3, [r7, #4]
  45143. 801362c: 681b ldr r3, [r3, #0]
  45144. 801362e: 2201 movs r2, #1
  45145. 8013630: 621a str r2, [r3, #32]
  45146. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45147. 8013632: 687b ldr r3, [r7, #4]
  45148. 8013634: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45149. 8013638: f043 0201 orr.w r2, r3, #1
  45150. 801363c: 687b ldr r3, [r7, #4]
  45151. 801363e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45152. }
  45153. /* UART frame error interrupt occurred --------------------------------------*/
  45154. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45155. 8013642: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45156. 8013646: f003 0302 and.w r3, r3, #2
  45157. 801364a: 2b00 cmp r3, #0
  45158. 801364c: d011 beq.n 8013672 <UART_RxISR_8BIT_FIFOEN+0xfa>
  45159. 801364e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45160. 8013652: f003 0301 and.w r3, r3, #1
  45161. 8013656: 2b00 cmp r3, #0
  45162. 8013658: d00b beq.n 8013672 <UART_RxISR_8BIT_FIFOEN+0xfa>
  45163. {
  45164. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45165. 801365a: 687b ldr r3, [r7, #4]
  45166. 801365c: 681b ldr r3, [r3, #0]
  45167. 801365e: 2202 movs r2, #2
  45168. 8013660: 621a str r2, [r3, #32]
  45169. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45170. 8013662: 687b ldr r3, [r7, #4]
  45171. 8013664: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45172. 8013668: f043 0204 orr.w r2, r3, #4
  45173. 801366c: 687b ldr r3, [r7, #4]
  45174. 801366e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45175. }
  45176. /* UART noise error interrupt occurred --------------------------------------*/
  45177. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45178. 8013672: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45179. 8013676: f003 0304 and.w r3, r3, #4
  45180. 801367a: 2b00 cmp r3, #0
  45181. 801367c: d011 beq.n 80136a2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  45182. 801367e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45183. 8013682: f003 0301 and.w r3, r3, #1
  45184. 8013686: 2b00 cmp r3, #0
  45185. 8013688: d00b beq.n 80136a2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  45186. {
  45187. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45188. 801368a: 687b ldr r3, [r7, #4]
  45189. 801368c: 681b ldr r3, [r3, #0]
  45190. 801368e: 2204 movs r2, #4
  45191. 8013690: 621a str r2, [r3, #32]
  45192. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45193. 8013692: 687b ldr r3, [r7, #4]
  45194. 8013694: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45195. 8013698: f043 0202 orr.w r2, r3, #2
  45196. 801369c: 687b ldr r3, [r7, #4]
  45197. 801369e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45198. }
  45199. /* Call UART Error Call back function if need be ----------------------------*/
  45200. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45201. 80136a2: 687b ldr r3, [r7, #4]
  45202. 80136a4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45203. 80136a8: 2b00 cmp r3, #0
  45204. 80136aa: d006 beq.n 80136ba <UART_RxISR_8BIT_FIFOEN+0x142>
  45205. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45206. /*Call registered error callback*/
  45207. huart->ErrorCallback(huart);
  45208. #else
  45209. /*Call legacy weak error callback*/
  45210. HAL_UART_ErrorCallback(huart);
  45211. 80136ac: 6878 ldr r0, [r7, #4]
  45212. 80136ae: f7fe fb13 bl 8011cd8 <HAL_UART_ErrorCallback>
  45213. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45214. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45215. 80136b2: 687b ldr r3, [r7, #4]
  45216. 80136b4: 2200 movs r2, #0
  45217. 80136b6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45218. }
  45219. }
  45220. if (huart->RxXferCount == 0U)
  45221. 80136ba: 687b ldr r3, [r7, #4]
  45222. 80136bc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45223. 80136c0: b29b uxth r3, r3
  45224. 80136c2: 2b00 cmp r3, #0
  45225. 80136c4: f040 80a0 bne.w 8013808 <UART_RxISR_8BIT_FIFOEN+0x290>
  45226. {
  45227. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45228. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45229. 80136c8: 687b ldr r3, [r7, #4]
  45230. 80136ca: 681b ldr r3, [r3, #0]
  45231. 80136cc: 673b str r3, [r7, #112] @ 0x70
  45232. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45233. 80136ce: 6f3b ldr r3, [r7, #112] @ 0x70
  45234. 80136d0: e853 3f00 ldrex r3, [r3]
  45235. 80136d4: 66fb str r3, [r7, #108] @ 0x6c
  45236. return(result);
  45237. 80136d6: 6efb ldr r3, [r7, #108] @ 0x6c
  45238. 80136d8: f423 7380 bic.w r3, r3, #256 @ 0x100
  45239. 80136dc: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45240. 80136e0: 687b ldr r3, [r7, #4]
  45241. 80136e2: 681b ldr r3, [r3, #0]
  45242. 80136e4: 461a mov r2, r3
  45243. 80136e6: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  45244. 80136ea: 67fb str r3, [r7, #124] @ 0x7c
  45245. 80136ec: 67ba str r2, [r7, #120] @ 0x78
  45246. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45247. 80136ee: 6fb9 ldr r1, [r7, #120] @ 0x78
  45248. 80136f0: 6ffa ldr r2, [r7, #124] @ 0x7c
  45249. 80136f2: e841 2300 strex r3, r2, [r1]
  45250. 80136f6: 677b str r3, [r7, #116] @ 0x74
  45251. return(result);
  45252. 80136f8: 6f7b ldr r3, [r7, #116] @ 0x74
  45253. 80136fa: 2b00 cmp r3, #0
  45254. 80136fc: d1e4 bne.n 80136c8 <UART_RxISR_8BIT_FIFOEN+0x150>
  45255. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45256. and RX FIFO Threshold interrupt */
  45257. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45258. 80136fe: 687b ldr r3, [r7, #4]
  45259. 8013700: 681b ldr r3, [r3, #0]
  45260. 8013702: 3308 adds r3, #8
  45261. 8013704: 65fb str r3, [r7, #92] @ 0x5c
  45262. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45263. 8013706: 6dfb ldr r3, [r7, #92] @ 0x5c
  45264. 8013708: e853 3f00 ldrex r3, [r3]
  45265. 801370c: 65bb str r3, [r7, #88] @ 0x58
  45266. return(result);
  45267. 801370e: 6dba ldr r2, [r7, #88] @ 0x58
  45268. 8013710: 4b6e ldr r3, [pc, #440] @ (80138cc <UART_RxISR_8BIT_FIFOEN+0x354>)
  45269. 8013712: 4013 ands r3, r2
  45270. 8013714: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45271. 8013718: 687b ldr r3, [r7, #4]
  45272. 801371a: 681b ldr r3, [r3, #0]
  45273. 801371c: 3308 adds r3, #8
  45274. 801371e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  45275. 8013722: 66ba str r2, [r7, #104] @ 0x68
  45276. 8013724: 667b str r3, [r7, #100] @ 0x64
  45277. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45278. 8013726: 6e79 ldr r1, [r7, #100] @ 0x64
  45279. 8013728: 6eba ldr r2, [r7, #104] @ 0x68
  45280. 801372a: e841 2300 strex r3, r2, [r1]
  45281. 801372e: 663b str r3, [r7, #96] @ 0x60
  45282. return(result);
  45283. 8013730: 6e3b ldr r3, [r7, #96] @ 0x60
  45284. 8013732: 2b00 cmp r3, #0
  45285. 8013734: d1e3 bne.n 80136fe <UART_RxISR_8BIT_FIFOEN+0x186>
  45286. /* Rx process is completed, restore huart->RxState to Ready */
  45287. huart->RxState = HAL_UART_STATE_READY;
  45288. 8013736: 687b ldr r3, [r7, #4]
  45289. 8013738: 2220 movs r2, #32
  45290. 801373a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45291. /* Clear RxISR function pointer */
  45292. huart->RxISR = NULL;
  45293. 801373e: 687b ldr r3, [r7, #4]
  45294. 8013740: 2200 movs r2, #0
  45295. 8013742: 675a str r2, [r3, #116] @ 0x74
  45296. /* Initialize type of RxEvent to Transfer Complete */
  45297. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45298. 8013744: 687b ldr r3, [r7, #4]
  45299. 8013746: 2200 movs r2, #0
  45300. 8013748: 671a str r2, [r3, #112] @ 0x70
  45301. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45302. 801374a: 687b ldr r3, [r7, #4]
  45303. 801374c: 681b ldr r3, [r3, #0]
  45304. 801374e: 4a60 ldr r2, [pc, #384] @ (80138d0 <UART_RxISR_8BIT_FIFOEN+0x358>)
  45305. 8013750: 4293 cmp r3, r2
  45306. 8013752: d021 beq.n 8013798 <UART_RxISR_8BIT_FIFOEN+0x220>
  45307. {
  45308. /* Check that USART RTOEN bit is set */
  45309. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45310. 8013754: 687b ldr r3, [r7, #4]
  45311. 8013756: 681b ldr r3, [r3, #0]
  45312. 8013758: 685b ldr r3, [r3, #4]
  45313. 801375a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45314. 801375e: 2b00 cmp r3, #0
  45315. 8013760: d01a beq.n 8013798 <UART_RxISR_8BIT_FIFOEN+0x220>
  45316. {
  45317. /* Enable the UART Receiver Timeout Interrupt */
  45318. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45319. 8013762: 687b ldr r3, [r7, #4]
  45320. 8013764: 681b ldr r3, [r3, #0]
  45321. 8013766: 64bb str r3, [r7, #72] @ 0x48
  45322. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45323. 8013768: 6cbb ldr r3, [r7, #72] @ 0x48
  45324. 801376a: e853 3f00 ldrex r3, [r3]
  45325. 801376e: 647b str r3, [r7, #68] @ 0x44
  45326. return(result);
  45327. 8013770: 6c7b ldr r3, [r7, #68] @ 0x44
  45328. 8013772: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45329. 8013776: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45330. 801377a: 687b ldr r3, [r7, #4]
  45331. 801377c: 681b ldr r3, [r3, #0]
  45332. 801377e: 461a mov r2, r3
  45333. 8013780: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45334. 8013784: 657b str r3, [r7, #84] @ 0x54
  45335. 8013786: 653a str r2, [r7, #80] @ 0x50
  45336. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45337. 8013788: 6d39 ldr r1, [r7, #80] @ 0x50
  45338. 801378a: 6d7a ldr r2, [r7, #84] @ 0x54
  45339. 801378c: e841 2300 strex r3, r2, [r1]
  45340. 8013790: 64fb str r3, [r7, #76] @ 0x4c
  45341. return(result);
  45342. 8013792: 6cfb ldr r3, [r7, #76] @ 0x4c
  45343. 8013794: 2b00 cmp r3, #0
  45344. 8013796: d1e4 bne.n 8013762 <UART_RxISR_8BIT_FIFOEN+0x1ea>
  45345. }
  45346. }
  45347. /* Check current reception Mode :
  45348. If Reception till IDLE event has been selected : */
  45349. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45350. 8013798: 687b ldr r3, [r7, #4]
  45351. 801379a: 6edb ldr r3, [r3, #108] @ 0x6c
  45352. 801379c: 2b01 cmp r3, #1
  45353. 801379e: d130 bne.n 8013802 <UART_RxISR_8BIT_FIFOEN+0x28a>
  45354. {
  45355. /* Set reception type to Standard */
  45356. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45357. 80137a0: 687b ldr r3, [r7, #4]
  45358. 80137a2: 2200 movs r2, #0
  45359. 80137a4: 66da str r2, [r3, #108] @ 0x6c
  45360. /* Disable IDLE interrupt */
  45361. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45362. 80137a6: 687b ldr r3, [r7, #4]
  45363. 80137a8: 681b ldr r3, [r3, #0]
  45364. 80137aa: 637b str r3, [r7, #52] @ 0x34
  45365. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45366. 80137ac: 6b7b ldr r3, [r7, #52] @ 0x34
  45367. 80137ae: e853 3f00 ldrex r3, [r3]
  45368. 80137b2: 633b str r3, [r7, #48] @ 0x30
  45369. return(result);
  45370. 80137b4: 6b3b ldr r3, [r7, #48] @ 0x30
  45371. 80137b6: f023 0310 bic.w r3, r3, #16
  45372. 80137ba: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  45373. 80137be: 687b ldr r3, [r7, #4]
  45374. 80137c0: 681b ldr r3, [r3, #0]
  45375. 80137c2: 461a mov r2, r3
  45376. 80137c4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  45377. 80137c8: 643b str r3, [r7, #64] @ 0x40
  45378. 80137ca: 63fa str r2, [r7, #60] @ 0x3c
  45379. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45380. 80137cc: 6bf9 ldr r1, [r7, #60] @ 0x3c
  45381. 80137ce: 6c3a ldr r2, [r7, #64] @ 0x40
  45382. 80137d0: e841 2300 strex r3, r2, [r1]
  45383. 80137d4: 63bb str r3, [r7, #56] @ 0x38
  45384. return(result);
  45385. 80137d6: 6bbb ldr r3, [r7, #56] @ 0x38
  45386. 80137d8: 2b00 cmp r3, #0
  45387. 80137da: d1e4 bne.n 80137a6 <UART_RxISR_8BIT_FIFOEN+0x22e>
  45388. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45389. 80137dc: 687b ldr r3, [r7, #4]
  45390. 80137de: 681b ldr r3, [r3, #0]
  45391. 80137e0: 69db ldr r3, [r3, #28]
  45392. 80137e2: f003 0310 and.w r3, r3, #16
  45393. 80137e6: 2b10 cmp r3, #16
  45394. 80137e8: d103 bne.n 80137f2 <UART_RxISR_8BIT_FIFOEN+0x27a>
  45395. {
  45396. /* Clear IDLE Flag */
  45397. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45398. 80137ea: 687b ldr r3, [r7, #4]
  45399. 80137ec: 681b ldr r3, [r3, #0]
  45400. 80137ee: 2210 movs r2, #16
  45401. 80137f0: 621a str r2, [r3, #32]
  45402. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45403. /*Call registered Rx Event callback*/
  45404. huart->RxEventCallback(huart, huart->RxXferSize);
  45405. #else
  45406. /*Call legacy weak Rx Event callback*/
  45407. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45408. 80137f2: 687b ldr r3, [r7, #4]
  45409. 80137f4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45410. 80137f8: 4619 mov r1, r3
  45411. 80137fa: 6878 ldr r0, [r7, #4]
  45412. 80137fc: f7f1 f962 bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  45413. 8013800: e002 b.n 8013808 <UART_RxISR_8BIT_FIFOEN+0x290>
  45414. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45415. /*Call registered Rx complete callback*/
  45416. huart->RxCpltCallback(huart);
  45417. #else
  45418. /*Call legacy weak Rx complete callback*/
  45419. HAL_UART_RxCpltCallback(huart);
  45420. 8013802: 6878 ldr r0, [r7, #4]
  45421. 8013804: f7f1 f954 bl 8004ab0 <HAL_UART_RxCpltCallback>
  45422. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45423. 8013808: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  45424. 801380c: 2b00 cmp r3, #0
  45425. 801380e: d006 beq.n 801381e <UART_RxISR_8BIT_FIFOEN+0x2a6>
  45426. 8013810: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45427. 8013814: f003 0320 and.w r3, r3, #32
  45428. 8013818: 2b00 cmp r3, #0
  45429. 801381a: f47f aed1 bne.w 80135c0 <UART_RxISR_8BIT_FIFOEN+0x48>
  45430. /* When remaining number of bytes to receive is less than the RX FIFO
  45431. threshold, next incoming frames are processed as if FIFO mode was
  45432. disabled (i.e. one interrupt per received frame).
  45433. */
  45434. rxdatacount = huart->RxXferCount;
  45435. 801381e: 687b ldr r3, [r7, #4]
  45436. 8013820: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45437. 8013824: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  45438. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45439. 8013828: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  45440. 801382c: 2b00 cmp r3, #0
  45441. 801382e: d049 beq.n 80138c4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45442. 8013830: 687b ldr r3, [r7, #4]
  45443. 8013832: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45444. 8013836: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  45445. 801383a: 429a cmp r2, r3
  45446. 801383c: d242 bcs.n 80138c4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45447. {
  45448. /* Disable the UART RXFT interrupt*/
  45449. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45450. 801383e: 687b ldr r3, [r7, #4]
  45451. 8013840: 681b ldr r3, [r3, #0]
  45452. 8013842: 3308 adds r3, #8
  45453. 8013844: 623b str r3, [r7, #32]
  45454. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45455. 8013846: 6a3b ldr r3, [r7, #32]
  45456. 8013848: e853 3f00 ldrex r3, [r3]
  45457. 801384c: 61fb str r3, [r7, #28]
  45458. return(result);
  45459. 801384e: 69fb ldr r3, [r7, #28]
  45460. 8013850: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45461. 8013854: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45462. 8013858: 687b ldr r3, [r7, #4]
  45463. 801385a: 681b ldr r3, [r3, #0]
  45464. 801385c: 3308 adds r3, #8
  45465. 801385e: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  45466. 8013862: 62fa str r2, [r7, #44] @ 0x2c
  45467. 8013864: 62bb str r3, [r7, #40] @ 0x28
  45468. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45469. 8013866: 6ab9 ldr r1, [r7, #40] @ 0x28
  45470. 8013868: 6afa ldr r2, [r7, #44] @ 0x2c
  45471. 801386a: e841 2300 strex r3, r2, [r1]
  45472. 801386e: 627b str r3, [r7, #36] @ 0x24
  45473. return(result);
  45474. 8013870: 6a7b ldr r3, [r7, #36] @ 0x24
  45475. 8013872: 2b00 cmp r3, #0
  45476. 8013874: d1e3 bne.n 801383e <UART_RxISR_8BIT_FIFOEN+0x2c6>
  45477. /* Update the RxISR function pointer */
  45478. huart->RxISR = UART_RxISR_8BIT;
  45479. 8013876: 687b ldr r3, [r7, #4]
  45480. 8013878: 4a16 ldr r2, [pc, #88] @ (80138d4 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  45481. 801387a: 675a str r2, [r3, #116] @ 0x74
  45482. /* Enable the UART Data Register Not Empty interrupt */
  45483. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45484. 801387c: 687b ldr r3, [r7, #4]
  45485. 801387e: 681b ldr r3, [r3, #0]
  45486. 8013880: 60fb str r3, [r7, #12]
  45487. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45488. 8013882: 68fb ldr r3, [r7, #12]
  45489. 8013884: e853 3f00 ldrex r3, [r3]
  45490. 8013888: 60bb str r3, [r7, #8]
  45491. return(result);
  45492. 801388a: 68bb ldr r3, [r7, #8]
  45493. 801388c: f043 0320 orr.w r3, r3, #32
  45494. 8013890: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45495. 8013894: 687b ldr r3, [r7, #4]
  45496. 8013896: 681b ldr r3, [r3, #0]
  45497. 8013898: 461a mov r2, r3
  45498. 801389a: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  45499. 801389e: 61bb str r3, [r7, #24]
  45500. 80138a0: 617a str r2, [r7, #20]
  45501. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45502. 80138a2: 6979 ldr r1, [r7, #20]
  45503. 80138a4: 69ba ldr r2, [r7, #24]
  45504. 80138a6: e841 2300 strex r3, r2, [r1]
  45505. 80138aa: 613b str r3, [r7, #16]
  45506. return(result);
  45507. 80138ac: 693b ldr r3, [r7, #16]
  45508. 80138ae: 2b00 cmp r3, #0
  45509. 80138b0: d1e4 bne.n 801387c <UART_RxISR_8BIT_FIFOEN+0x304>
  45510. else
  45511. {
  45512. /* Clear RXNE interrupt flag */
  45513. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45514. }
  45515. }
  45516. 80138b2: e007 b.n 80138c4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45517. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45518. 80138b4: 687b ldr r3, [r7, #4]
  45519. 80138b6: 681b ldr r3, [r3, #0]
  45520. 80138b8: 699a ldr r2, [r3, #24]
  45521. 80138ba: 687b ldr r3, [r7, #4]
  45522. 80138bc: 681b ldr r3, [r3, #0]
  45523. 80138be: f042 0208 orr.w r2, r2, #8
  45524. 80138c2: 619a str r2, [r3, #24]
  45525. }
  45526. 80138c4: bf00 nop
  45527. 80138c6: 37b0 adds r7, #176 @ 0xb0
  45528. 80138c8: 46bd mov sp, r7
  45529. 80138ca: bd80 pop {r7, pc}
  45530. 80138cc: effffffe .word 0xeffffffe
  45531. 80138d0: 58000c00 .word 0x58000c00
  45532. 80138d4: 08013209 .word 0x08013209
  45533. 080138d8 <UART_RxISR_16BIT_FIFOEN>:
  45534. * interruptions have been enabled by HAL_UART_Receive_IT()
  45535. * @param huart UART handle.
  45536. * @retval None
  45537. */
  45538. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  45539. {
  45540. 80138d8: b580 push {r7, lr}
  45541. 80138da: b0ae sub sp, #184 @ 0xb8
  45542. 80138dc: af00 add r7, sp, #0
  45543. 80138de: 6078 str r0, [r7, #4]
  45544. uint16_t *tmp;
  45545. uint16_t uhMask = huart->Mask;
  45546. 80138e0: 687b ldr r3, [r7, #4]
  45547. 80138e2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45548. 80138e6: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  45549. uint16_t uhdata;
  45550. uint16_t nb_rx_data;
  45551. uint16_t rxdatacount;
  45552. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45553. 80138ea: 687b ldr r3, [r7, #4]
  45554. 80138ec: 681b ldr r3, [r3, #0]
  45555. 80138ee: 69db ldr r3, [r3, #28]
  45556. 80138f0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45557. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45558. 80138f4: 687b ldr r3, [r7, #4]
  45559. 80138f6: 681b ldr r3, [r3, #0]
  45560. 80138f8: 681b ldr r3, [r3, #0]
  45561. 80138fa: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45562. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45563. 80138fe: 687b ldr r3, [r7, #4]
  45564. 8013900: 681b ldr r3, [r3, #0]
  45565. 8013902: 689b ldr r3, [r3, #8]
  45566. 8013904: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  45567. /* Check that a Rx process is ongoing */
  45568. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45569. 8013908: 687b ldr r3, [r7, #4]
  45570. 801390a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45571. 801390e: 2b22 cmp r3, #34 @ 0x22
  45572. 8013910: f040 8184 bne.w 8013c1c <UART_RxISR_16BIT_FIFOEN+0x344>
  45573. {
  45574. nb_rx_data = huart->NbRxDataToProcess;
  45575. 8013914: 687b ldr r3, [r7, #4]
  45576. 8013916: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45577. 801391a: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  45578. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45579. 801391e: e127 b.n 8013b70 <UART_RxISR_16BIT_FIFOEN+0x298>
  45580. {
  45581. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45582. 8013920: 687b ldr r3, [r7, #4]
  45583. 8013922: 681b ldr r3, [r3, #0]
  45584. 8013924: 6a5b ldr r3, [r3, #36] @ 0x24
  45585. 8013926: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  45586. tmp = (uint16_t *) huart->pRxBuffPtr ;
  45587. 801392a: 687b ldr r3, [r7, #4]
  45588. 801392c: 6d9b ldr r3, [r3, #88] @ 0x58
  45589. 801392e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45590. *tmp = (uint16_t)(uhdata & uhMask);
  45591. 8013932: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  45592. 8013936: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  45593. 801393a: 4013 ands r3, r2
  45594. 801393c: b29a uxth r2, r3
  45595. 801393e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45596. 8013942: 801a strh r2, [r3, #0]
  45597. huart->pRxBuffPtr += 2U;
  45598. 8013944: 687b ldr r3, [r7, #4]
  45599. 8013946: 6d9b ldr r3, [r3, #88] @ 0x58
  45600. 8013948: 1c9a adds r2, r3, #2
  45601. 801394a: 687b ldr r3, [r7, #4]
  45602. 801394c: 659a str r2, [r3, #88] @ 0x58
  45603. huart->RxXferCount--;
  45604. 801394e: 687b ldr r3, [r7, #4]
  45605. 8013950: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45606. 8013954: b29b uxth r3, r3
  45607. 8013956: 3b01 subs r3, #1
  45608. 8013958: b29a uxth r2, r3
  45609. 801395a: 687b ldr r3, [r7, #4]
  45610. 801395c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45611. isrflags = READ_REG(huart->Instance->ISR);
  45612. 8013960: 687b ldr r3, [r7, #4]
  45613. 8013962: 681b ldr r3, [r3, #0]
  45614. 8013964: 69db ldr r3, [r3, #28]
  45615. 8013966: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45616. /* If some non blocking errors occurred */
  45617. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45618. 801396a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45619. 801396e: f003 0307 and.w r3, r3, #7
  45620. 8013972: 2b00 cmp r3, #0
  45621. 8013974: d053 beq.n 8013a1e <UART_RxISR_16BIT_FIFOEN+0x146>
  45622. {
  45623. /* UART parity error interrupt occurred -------------------------------------*/
  45624. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45625. 8013976: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45626. 801397a: f003 0301 and.w r3, r3, #1
  45627. 801397e: 2b00 cmp r3, #0
  45628. 8013980: d011 beq.n 80139a6 <UART_RxISR_16BIT_FIFOEN+0xce>
  45629. 8013982: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45630. 8013986: f403 7380 and.w r3, r3, #256 @ 0x100
  45631. 801398a: 2b00 cmp r3, #0
  45632. 801398c: d00b beq.n 80139a6 <UART_RxISR_16BIT_FIFOEN+0xce>
  45633. {
  45634. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45635. 801398e: 687b ldr r3, [r7, #4]
  45636. 8013990: 681b ldr r3, [r3, #0]
  45637. 8013992: 2201 movs r2, #1
  45638. 8013994: 621a str r2, [r3, #32]
  45639. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45640. 8013996: 687b ldr r3, [r7, #4]
  45641. 8013998: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45642. 801399c: f043 0201 orr.w r2, r3, #1
  45643. 80139a0: 687b ldr r3, [r7, #4]
  45644. 80139a2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45645. }
  45646. /* UART frame error interrupt occurred --------------------------------------*/
  45647. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45648. 80139a6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45649. 80139aa: f003 0302 and.w r3, r3, #2
  45650. 80139ae: 2b00 cmp r3, #0
  45651. 80139b0: d011 beq.n 80139d6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  45652. 80139b2: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45653. 80139b6: f003 0301 and.w r3, r3, #1
  45654. 80139ba: 2b00 cmp r3, #0
  45655. 80139bc: d00b beq.n 80139d6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  45656. {
  45657. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45658. 80139be: 687b ldr r3, [r7, #4]
  45659. 80139c0: 681b ldr r3, [r3, #0]
  45660. 80139c2: 2202 movs r2, #2
  45661. 80139c4: 621a str r2, [r3, #32]
  45662. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45663. 80139c6: 687b ldr r3, [r7, #4]
  45664. 80139c8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45665. 80139cc: f043 0204 orr.w r2, r3, #4
  45666. 80139d0: 687b ldr r3, [r7, #4]
  45667. 80139d2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45668. }
  45669. /* UART noise error interrupt occurred --------------------------------------*/
  45670. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45671. 80139d6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45672. 80139da: f003 0304 and.w r3, r3, #4
  45673. 80139de: 2b00 cmp r3, #0
  45674. 80139e0: d011 beq.n 8013a06 <UART_RxISR_16BIT_FIFOEN+0x12e>
  45675. 80139e2: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45676. 80139e6: f003 0301 and.w r3, r3, #1
  45677. 80139ea: 2b00 cmp r3, #0
  45678. 80139ec: d00b beq.n 8013a06 <UART_RxISR_16BIT_FIFOEN+0x12e>
  45679. {
  45680. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45681. 80139ee: 687b ldr r3, [r7, #4]
  45682. 80139f0: 681b ldr r3, [r3, #0]
  45683. 80139f2: 2204 movs r2, #4
  45684. 80139f4: 621a str r2, [r3, #32]
  45685. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45686. 80139f6: 687b ldr r3, [r7, #4]
  45687. 80139f8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45688. 80139fc: f043 0202 orr.w r2, r3, #2
  45689. 8013a00: 687b ldr r3, [r7, #4]
  45690. 8013a02: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45691. }
  45692. /* Call UART Error Call back function if need be ----------------------------*/
  45693. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45694. 8013a06: 687b ldr r3, [r7, #4]
  45695. 8013a08: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45696. 8013a0c: 2b00 cmp r3, #0
  45697. 8013a0e: d006 beq.n 8013a1e <UART_RxISR_16BIT_FIFOEN+0x146>
  45698. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45699. /*Call registered error callback*/
  45700. huart->ErrorCallback(huart);
  45701. #else
  45702. /*Call legacy weak error callback*/
  45703. HAL_UART_ErrorCallback(huart);
  45704. 8013a10: 6878 ldr r0, [r7, #4]
  45705. 8013a12: f7fe f961 bl 8011cd8 <HAL_UART_ErrorCallback>
  45706. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45707. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45708. 8013a16: 687b ldr r3, [r7, #4]
  45709. 8013a18: 2200 movs r2, #0
  45710. 8013a1a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45711. }
  45712. }
  45713. if (huart->RxXferCount == 0U)
  45714. 8013a1e: 687b ldr r3, [r7, #4]
  45715. 8013a20: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45716. 8013a24: b29b uxth r3, r3
  45717. 8013a26: 2b00 cmp r3, #0
  45718. 8013a28: f040 80a2 bne.w 8013b70 <UART_RxISR_16BIT_FIFOEN+0x298>
  45719. {
  45720. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45721. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45722. 8013a2c: 687b ldr r3, [r7, #4]
  45723. 8013a2e: 681b ldr r3, [r3, #0]
  45724. 8013a30: 677b str r3, [r7, #116] @ 0x74
  45725. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45726. 8013a32: 6f7b ldr r3, [r7, #116] @ 0x74
  45727. 8013a34: e853 3f00 ldrex r3, [r3]
  45728. 8013a38: 673b str r3, [r7, #112] @ 0x70
  45729. return(result);
  45730. 8013a3a: 6f3b ldr r3, [r7, #112] @ 0x70
  45731. 8013a3c: f423 7380 bic.w r3, r3, #256 @ 0x100
  45732. 8013a40: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  45733. 8013a44: 687b ldr r3, [r7, #4]
  45734. 8013a46: 681b ldr r3, [r3, #0]
  45735. 8013a48: 461a mov r2, r3
  45736. 8013a4a: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  45737. 8013a4e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45738. 8013a52: 67fa str r2, [r7, #124] @ 0x7c
  45739. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45740. 8013a54: 6ff9 ldr r1, [r7, #124] @ 0x7c
  45741. 8013a56: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  45742. 8013a5a: e841 2300 strex r3, r2, [r1]
  45743. 8013a5e: 67bb str r3, [r7, #120] @ 0x78
  45744. return(result);
  45745. 8013a60: 6fbb ldr r3, [r7, #120] @ 0x78
  45746. 8013a62: 2b00 cmp r3, #0
  45747. 8013a64: d1e2 bne.n 8013a2c <UART_RxISR_16BIT_FIFOEN+0x154>
  45748. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45749. and RX FIFO Threshold interrupt */
  45750. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45751. 8013a66: 687b ldr r3, [r7, #4]
  45752. 8013a68: 681b ldr r3, [r3, #0]
  45753. 8013a6a: 3308 adds r3, #8
  45754. 8013a6c: 663b str r3, [r7, #96] @ 0x60
  45755. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45756. 8013a6e: 6e3b ldr r3, [r7, #96] @ 0x60
  45757. 8013a70: e853 3f00 ldrex r3, [r3]
  45758. 8013a74: 65fb str r3, [r7, #92] @ 0x5c
  45759. return(result);
  45760. 8013a76: 6dfa ldr r2, [r7, #92] @ 0x5c
  45761. 8013a78: 4b6e ldr r3, [pc, #440] @ (8013c34 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  45762. 8013a7a: 4013 ands r3, r2
  45763. 8013a7c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45764. 8013a80: 687b ldr r3, [r7, #4]
  45765. 8013a82: 681b ldr r3, [r3, #0]
  45766. 8013a84: 3308 adds r3, #8
  45767. 8013a86: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  45768. 8013a8a: 66fa str r2, [r7, #108] @ 0x6c
  45769. 8013a8c: 66bb str r3, [r7, #104] @ 0x68
  45770. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45771. 8013a8e: 6eb9 ldr r1, [r7, #104] @ 0x68
  45772. 8013a90: 6efa ldr r2, [r7, #108] @ 0x6c
  45773. 8013a92: e841 2300 strex r3, r2, [r1]
  45774. 8013a96: 667b str r3, [r7, #100] @ 0x64
  45775. return(result);
  45776. 8013a98: 6e7b ldr r3, [r7, #100] @ 0x64
  45777. 8013a9a: 2b00 cmp r3, #0
  45778. 8013a9c: d1e3 bne.n 8013a66 <UART_RxISR_16BIT_FIFOEN+0x18e>
  45779. /* Rx process is completed, restore huart->RxState to Ready */
  45780. huart->RxState = HAL_UART_STATE_READY;
  45781. 8013a9e: 687b ldr r3, [r7, #4]
  45782. 8013aa0: 2220 movs r2, #32
  45783. 8013aa2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45784. /* Clear RxISR function pointer */
  45785. huart->RxISR = NULL;
  45786. 8013aa6: 687b ldr r3, [r7, #4]
  45787. 8013aa8: 2200 movs r2, #0
  45788. 8013aaa: 675a str r2, [r3, #116] @ 0x74
  45789. /* Initialize type of RxEvent to Transfer Complete */
  45790. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45791. 8013aac: 687b ldr r3, [r7, #4]
  45792. 8013aae: 2200 movs r2, #0
  45793. 8013ab0: 671a str r2, [r3, #112] @ 0x70
  45794. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45795. 8013ab2: 687b ldr r3, [r7, #4]
  45796. 8013ab4: 681b ldr r3, [r3, #0]
  45797. 8013ab6: 4a60 ldr r2, [pc, #384] @ (8013c38 <UART_RxISR_16BIT_FIFOEN+0x360>)
  45798. 8013ab8: 4293 cmp r3, r2
  45799. 8013aba: d021 beq.n 8013b00 <UART_RxISR_16BIT_FIFOEN+0x228>
  45800. {
  45801. /* Check that USART RTOEN bit is set */
  45802. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45803. 8013abc: 687b ldr r3, [r7, #4]
  45804. 8013abe: 681b ldr r3, [r3, #0]
  45805. 8013ac0: 685b ldr r3, [r3, #4]
  45806. 8013ac2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45807. 8013ac6: 2b00 cmp r3, #0
  45808. 8013ac8: d01a beq.n 8013b00 <UART_RxISR_16BIT_FIFOEN+0x228>
  45809. {
  45810. /* Enable the UART Receiver Timeout Interrupt */
  45811. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45812. 8013aca: 687b ldr r3, [r7, #4]
  45813. 8013acc: 681b ldr r3, [r3, #0]
  45814. 8013ace: 64fb str r3, [r7, #76] @ 0x4c
  45815. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45816. 8013ad0: 6cfb ldr r3, [r7, #76] @ 0x4c
  45817. 8013ad2: e853 3f00 ldrex r3, [r3]
  45818. 8013ad6: 64bb str r3, [r7, #72] @ 0x48
  45819. return(result);
  45820. 8013ad8: 6cbb ldr r3, [r7, #72] @ 0x48
  45821. 8013ada: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45822. 8013ade: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45823. 8013ae2: 687b ldr r3, [r7, #4]
  45824. 8013ae4: 681b ldr r3, [r3, #0]
  45825. 8013ae6: 461a mov r2, r3
  45826. 8013ae8: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  45827. 8013aec: 65bb str r3, [r7, #88] @ 0x58
  45828. 8013aee: 657a str r2, [r7, #84] @ 0x54
  45829. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45830. 8013af0: 6d79 ldr r1, [r7, #84] @ 0x54
  45831. 8013af2: 6dba ldr r2, [r7, #88] @ 0x58
  45832. 8013af4: e841 2300 strex r3, r2, [r1]
  45833. 8013af8: 653b str r3, [r7, #80] @ 0x50
  45834. return(result);
  45835. 8013afa: 6d3b ldr r3, [r7, #80] @ 0x50
  45836. 8013afc: 2b00 cmp r3, #0
  45837. 8013afe: d1e4 bne.n 8013aca <UART_RxISR_16BIT_FIFOEN+0x1f2>
  45838. }
  45839. }
  45840. /* Check current reception Mode :
  45841. If Reception till IDLE event has been selected : */
  45842. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45843. 8013b00: 687b ldr r3, [r7, #4]
  45844. 8013b02: 6edb ldr r3, [r3, #108] @ 0x6c
  45845. 8013b04: 2b01 cmp r3, #1
  45846. 8013b06: d130 bne.n 8013b6a <UART_RxISR_16BIT_FIFOEN+0x292>
  45847. {
  45848. /* Set reception type to Standard */
  45849. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45850. 8013b08: 687b ldr r3, [r7, #4]
  45851. 8013b0a: 2200 movs r2, #0
  45852. 8013b0c: 66da str r2, [r3, #108] @ 0x6c
  45853. /* Disable IDLE interrupt */
  45854. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45855. 8013b0e: 687b ldr r3, [r7, #4]
  45856. 8013b10: 681b ldr r3, [r3, #0]
  45857. 8013b12: 63bb str r3, [r7, #56] @ 0x38
  45858. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45859. 8013b14: 6bbb ldr r3, [r7, #56] @ 0x38
  45860. 8013b16: e853 3f00 ldrex r3, [r3]
  45861. 8013b1a: 637b str r3, [r7, #52] @ 0x34
  45862. return(result);
  45863. 8013b1c: 6b7b ldr r3, [r7, #52] @ 0x34
  45864. 8013b1e: f023 0310 bic.w r3, r3, #16
  45865. 8013b22: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45866. 8013b26: 687b ldr r3, [r7, #4]
  45867. 8013b28: 681b ldr r3, [r3, #0]
  45868. 8013b2a: 461a mov r2, r3
  45869. 8013b2c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45870. 8013b30: 647b str r3, [r7, #68] @ 0x44
  45871. 8013b32: 643a str r2, [r7, #64] @ 0x40
  45872. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45873. 8013b34: 6c39 ldr r1, [r7, #64] @ 0x40
  45874. 8013b36: 6c7a ldr r2, [r7, #68] @ 0x44
  45875. 8013b38: e841 2300 strex r3, r2, [r1]
  45876. 8013b3c: 63fb str r3, [r7, #60] @ 0x3c
  45877. return(result);
  45878. 8013b3e: 6bfb ldr r3, [r7, #60] @ 0x3c
  45879. 8013b40: 2b00 cmp r3, #0
  45880. 8013b42: d1e4 bne.n 8013b0e <UART_RxISR_16BIT_FIFOEN+0x236>
  45881. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45882. 8013b44: 687b ldr r3, [r7, #4]
  45883. 8013b46: 681b ldr r3, [r3, #0]
  45884. 8013b48: 69db ldr r3, [r3, #28]
  45885. 8013b4a: f003 0310 and.w r3, r3, #16
  45886. 8013b4e: 2b10 cmp r3, #16
  45887. 8013b50: d103 bne.n 8013b5a <UART_RxISR_16BIT_FIFOEN+0x282>
  45888. {
  45889. /* Clear IDLE Flag */
  45890. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45891. 8013b52: 687b ldr r3, [r7, #4]
  45892. 8013b54: 681b ldr r3, [r3, #0]
  45893. 8013b56: 2210 movs r2, #16
  45894. 8013b58: 621a str r2, [r3, #32]
  45895. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45896. /*Call registered Rx Event callback*/
  45897. huart->RxEventCallback(huart, huart->RxXferSize);
  45898. #else
  45899. /*Call legacy weak Rx Event callback*/
  45900. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45901. 8013b5a: 687b ldr r3, [r7, #4]
  45902. 8013b5c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45903. 8013b60: 4619 mov r1, r3
  45904. 8013b62: 6878 ldr r0, [r7, #4]
  45905. 8013b64: f7f0 ffae bl 8004ac4 <HAL_UARTEx_RxEventCallback>
  45906. 8013b68: e002 b.n 8013b70 <UART_RxISR_16BIT_FIFOEN+0x298>
  45907. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45908. /*Call registered Rx complete callback*/
  45909. huart->RxCpltCallback(huart);
  45910. #else
  45911. /*Call legacy weak Rx complete callback*/
  45912. HAL_UART_RxCpltCallback(huart);
  45913. 8013b6a: 6878 ldr r0, [r7, #4]
  45914. 8013b6c: f7f0 ffa0 bl 8004ab0 <HAL_UART_RxCpltCallback>
  45915. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45916. 8013b70: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45917. 8013b74: 2b00 cmp r3, #0
  45918. 8013b76: d006 beq.n 8013b86 <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45919. 8013b78: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45920. 8013b7c: f003 0320 and.w r3, r3, #32
  45921. 8013b80: 2b00 cmp r3, #0
  45922. 8013b82: f47f aecd bne.w 8013920 <UART_RxISR_16BIT_FIFOEN+0x48>
  45923. /* When remaining number of bytes to receive is less than the RX FIFO
  45924. threshold, next incoming frames are processed as if FIFO mode was
  45925. disabled (i.e. one interrupt per received frame).
  45926. */
  45927. rxdatacount = huart->RxXferCount;
  45928. 8013b86: 687b ldr r3, [r7, #4]
  45929. 8013b88: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45930. 8013b8c: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45931. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45932. 8013b90: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45933. 8013b94: 2b00 cmp r3, #0
  45934. 8013b96: d049 beq.n 8013c2c <UART_RxISR_16BIT_FIFOEN+0x354>
  45935. 8013b98: 687b ldr r3, [r7, #4]
  45936. 8013b9a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45937. 8013b9e: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45938. 8013ba2: 429a cmp r2, r3
  45939. 8013ba4: d242 bcs.n 8013c2c <UART_RxISR_16BIT_FIFOEN+0x354>
  45940. {
  45941. /* Disable the UART RXFT interrupt*/
  45942. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45943. 8013ba6: 687b ldr r3, [r7, #4]
  45944. 8013ba8: 681b ldr r3, [r3, #0]
  45945. 8013baa: 3308 adds r3, #8
  45946. 8013bac: 627b str r3, [r7, #36] @ 0x24
  45947. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45948. 8013bae: 6a7b ldr r3, [r7, #36] @ 0x24
  45949. 8013bb0: e853 3f00 ldrex r3, [r3]
  45950. 8013bb4: 623b str r3, [r7, #32]
  45951. return(result);
  45952. 8013bb6: 6a3b ldr r3, [r7, #32]
  45953. 8013bb8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45954. 8013bbc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  45955. 8013bc0: 687b ldr r3, [r7, #4]
  45956. 8013bc2: 681b ldr r3, [r3, #0]
  45957. 8013bc4: 3308 adds r3, #8
  45958. 8013bc6: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  45959. 8013bca: 633a str r2, [r7, #48] @ 0x30
  45960. 8013bcc: 62fb str r3, [r7, #44] @ 0x2c
  45961. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45962. 8013bce: 6af9 ldr r1, [r7, #44] @ 0x2c
  45963. 8013bd0: 6b3a ldr r2, [r7, #48] @ 0x30
  45964. 8013bd2: e841 2300 strex r3, r2, [r1]
  45965. 8013bd6: 62bb str r3, [r7, #40] @ 0x28
  45966. return(result);
  45967. 8013bd8: 6abb ldr r3, [r7, #40] @ 0x28
  45968. 8013bda: 2b00 cmp r3, #0
  45969. 8013bdc: d1e3 bne.n 8013ba6 <UART_RxISR_16BIT_FIFOEN+0x2ce>
  45970. /* Update the RxISR function pointer */
  45971. huart->RxISR = UART_RxISR_16BIT;
  45972. 8013bde: 687b ldr r3, [r7, #4]
  45973. 8013be0: 4a16 ldr r2, [pc, #88] @ (8013c3c <UART_RxISR_16BIT_FIFOEN+0x364>)
  45974. 8013be2: 675a str r2, [r3, #116] @ 0x74
  45975. /* Enable the UART Data Register Not Empty interrupt */
  45976. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45977. 8013be4: 687b ldr r3, [r7, #4]
  45978. 8013be6: 681b ldr r3, [r3, #0]
  45979. 8013be8: 613b str r3, [r7, #16]
  45980. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45981. 8013bea: 693b ldr r3, [r7, #16]
  45982. 8013bec: e853 3f00 ldrex r3, [r3]
  45983. 8013bf0: 60fb str r3, [r7, #12]
  45984. return(result);
  45985. 8013bf2: 68fb ldr r3, [r7, #12]
  45986. 8013bf4: f043 0320 orr.w r3, r3, #32
  45987. 8013bf8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45988. 8013bfc: 687b ldr r3, [r7, #4]
  45989. 8013bfe: 681b ldr r3, [r3, #0]
  45990. 8013c00: 461a mov r2, r3
  45991. 8013c02: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  45992. 8013c06: 61fb str r3, [r7, #28]
  45993. 8013c08: 61ba str r2, [r7, #24]
  45994. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45995. 8013c0a: 69b9 ldr r1, [r7, #24]
  45996. 8013c0c: 69fa ldr r2, [r7, #28]
  45997. 8013c0e: e841 2300 strex r3, r2, [r1]
  45998. 8013c12: 617b str r3, [r7, #20]
  45999. return(result);
  46000. 8013c14: 697b ldr r3, [r7, #20]
  46001. 8013c16: 2b00 cmp r3, #0
  46002. 8013c18: d1e4 bne.n 8013be4 <UART_RxISR_16BIT_FIFOEN+0x30c>
  46003. else
  46004. {
  46005. /* Clear RXNE interrupt flag */
  46006. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46007. }
  46008. }
  46009. 8013c1a: e007 b.n 8013c2c <UART_RxISR_16BIT_FIFOEN+0x354>
  46010. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46011. 8013c1c: 687b ldr r3, [r7, #4]
  46012. 8013c1e: 681b ldr r3, [r3, #0]
  46013. 8013c20: 699a ldr r2, [r3, #24]
  46014. 8013c22: 687b ldr r3, [r7, #4]
  46015. 8013c24: 681b ldr r3, [r3, #0]
  46016. 8013c26: f042 0208 orr.w r2, r2, #8
  46017. 8013c2a: 619a str r2, [r3, #24]
  46018. }
  46019. 8013c2c: bf00 nop
  46020. 8013c2e: 37b8 adds r7, #184 @ 0xb8
  46021. 8013c30: 46bd mov sp, r7
  46022. 8013c32: bd80 pop {r7, pc}
  46023. 8013c34: effffffe .word 0xeffffffe
  46024. 8013c38: 58000c00 .word 0x58000c00
  46025. 8013c3c: 080133c1 .word 0x080133c1
  46026. 08013c40 <HAL_UARTEx_WakeupCallback>:
  46027. * @brief UART wakeup from Stop mode callback.
  46028. * @param huart UART handle.
  46029. * @retval None
  46030. */
  46031. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  46032. {
  46033. 8013c40: b480 push {r7}
  46034. 8013c42: b083 sub sp, #12
  46035. 8013c44: af00 add r7, sp, #0
  46036. 8013c46: 6078 str r0, [r7, #4]
  46037. UNUSED(huart);
  46038. /* NOTE : This function should not be modified, when the callback is needed,
  46039. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  46040. */
  46041. }
  46042. 8013c48: bf00 nop
  46043. 8013c4a: 370c adds r7, #12
  46044. 8013c4c: 46bd mov sp, r7
  46045. 8013c4e: f85d 7b04 ldr.w r7, [sp], #4
  46046. 8013c52: 4770 bx lr
  46047. 08013c54 <HAL_UARTEx_RxFifoFullCallback>:
  46048. * @brief UART RX Fifo full callback.
  46049. * @param huart UART handle.
  46050. * @retval None
  46051. */
  46052. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  46053. {
  46054. 8013c54: b480 push {r7}
  46055. 8013c56: b083 sub sp, #12
  46056. 8013c58: af00 add r7, sp, #0
  46057. 8013c5a: 6078 str r0, [r7, #4]
  46058. UNUSED(huart);
  46059. /* NOTE : This function should not be modified, when the callback is needed,
  46060. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  46061. */
  46062. }
  46063. 8013c5c: bf00 nop
  46064. 8013c5e: 370c adds r7, #12
  46065. 8013c60: 46bd mov sp, r7
  46066. 8013c62: f85d 7b04 ldr.w r7, [sp], #4
  46067. 8013c66: 4770 bx lr
  46068. 08013c68 <HAL_UARTEx_TxFifoEmptyCallback>:
  46069. * @brief UART TX Fifo empty callback.
  46070. * @param huart UART handle.
  46071. * @retval None
  46072. */
  46073. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  46074. {
  46075. 8013c68: b480 push {r7}
  46076. 8013c6a: b083 sub sp, #12
  46077. 8013c6c: af00 add r7, sp, #0
  46078. 8013c6e: 6078 str r0, [r7, #4]
  46079. UNUSED(huart);
  46080. /* NOTE : This function should not be modified, when the callback is needed,
  46081. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  46082. */
  46083. }
  46084. 8013c70: bf00 nop
  46085. 8013c72: 370c adds r7, #12
  46086. 8013c74: 46bd mov sp, r7
  46087. 8013c76: f85d 7b04 ldr.w r7, [sp], #4
  46088. 8013c7a: 4770 bx lr
  46089. 08013c7c <HAL_UARTEx_DisableFifoMode>:
  46090. * @brief Disable the FIFO mode.
  46091. * @param huart UART handle.
  46092. * @retval HAL status
  46093. */
  46094. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  46095. {
  46096. 8013c7c: b480 push {r7}
  46097. 8013c7e: b085 sub sp, #20
  46098. 8013c80: af00 add r7, sp, #0
  46099. 8013c82: 6078 str r0, [r7, #4]
  46100. /* Check parameters */
  46101. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46102. /* Process Locked */
  46103. __HAL_LOCK(huart);
  46104. 8013c84: 687b ldr r3, [r7, #4]
  46105. 8013c86: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46106. 8013c8a: 2b01 cmp r3, #1
  46107. 8013c8c: d101 bne.n 8013c92 <HAL_UARTEx_DisableFifoMode+0x16>
  46108. 8013c8e: 2302 movs r3, #2
  46109. 8013c90: e027 b.n 8013ce2 <HAL_UARTEx_DisableFifoMode+0x66>
  46110. 8013c92: 687b ldr r3, [r7, #4]
  46111. 8013c94: 2201 movs r2, #1
  46112. 8013c96: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46113. huart->gState = HAL_UART_STATE_BUSY;
  46114. 8013c9a: 687b ldr r3, [r7, #4]
  46115. 8013c9c: 2224 movs r2, #36 @ 0x24
  46116. 8013c9e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46117. /* Save actual UART configuration */
  46118. tmpcr1 = READ_REG(huart->Instance->CR1);
  46119. 8013ca2: 687b ldr r3, [r7, #4]
  46120. 8013ca4: 681b ldr r3, [r3, #0]
  46121. 8013ca6: 681b ldr r3, [r3, #0]
  46122. 8013ca8: 60fb str r3, [r7, #12]
  46123. /* Disable UART */
  46124. __HAL_UART_DISABLE(huart);
  46125. 8013caa: 687b ldr r3, [r7, #4]
  46126. 8013cac: 681b ldr r3, [r3, #0]
  46127. 8013cae: 681a ldr r2, [r3, #0]
  46128. 8013cb0: 687b ldr r3, [r7, #4]
  46129. 8013cb2: 681b ldr r3, [r3, #0]
  46130. 8013cb4: f022 0201 bic.w r2, r2, #1
  46131. 8013cb8: 601a str r2, [r3, #0]
  46132. /* Enable FIFO mode */
  46133. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  46134. 8013cba: 68fb ldr r3, [r7, #12]
  46135. 8013cbc: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  46136. 8013cc0: 60fb str r3, [r7, #12]
  46137. huart->FifoMode = UART_FIFOMODE_DISABLE;
  46138. 8013cc2: 687b ldr r3, [r7, #4]
  46139. 8013cc4: 2200 movs r2, #0
  46140. 8013cc6: 665a str r2, [r3, #100] @ 0x64
  46141. /* Restore UART configuration */
  46142. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46143. 8013cc8: 687b ldr r3, [r7, #4]
  46144. 8013cca: 681b ldr r3, [r3, #0]
  46145. 8013ccc: 68fa ldr r2, [r7, #12]
  46146. 8013cce: 601a str r2, [r3, #0]
  46147. huart->gState = HAL_UART_STATE_READY;
  46148. 8013cd0: 687b ldr r3, [r7, #4]
  46149. 8013cd2: 2220 movs r2, #32
  46150. 8013cd4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46151. /* Process Unlocked */
  46152. __HAL_UNLOCK(huart);
  46153. 8013cd8: 687b ldr r3, [r7, #4]
  46154. 8013cda: 2200 movs r2, #0
  46155. 8013cdc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46156. return HAL_OK;
  46157. 8013ce0: 2300 movs r3, #0
  46158. }
  46159. 8013ce2: 4618 mov r0, r3
  46160. 8013ce4: 3714 adds r7, #20
  46161. 8013ce6: 46bd mov sp, r7
  46162. 8013ce8: f85d 7b04 ldr.w r7, [sp], #4
  46163. 8013cec: 4770 bx lr
  46164. 08013cee <HAL_UARTEx_SetTxFifoThreshold>:
  46165. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  46166. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  46167. * @retval HAL status
  46168. */
  46169. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46170. {
  46171. 8013cee: b580 push {r7, lr}
  46172. 8013cf0: b084 sub sp, #16
  46173. 8013cf2: af00 add r7, sp, #0
  46174. 8013cf4: 6078 str r0, [r7, #4]
  46175. 8013cf6: 6039 str r1, [r7, #0]
  46176. /* Check parameters */
  46177. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46178. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  46179. /* Process Locked */
  46180. __HAL_LOCK(huart);
  46181. 8013cf8: 687b ldr r3, [r7, #4]
  46182. 8013cfa: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46183. 8013cfe: 2b01 cmp r3, #1
  46184. 8013d00: d101 bne.n 8013d06 <HAL_UARTEx_SetTxFifoThreshold+0x18>
  46185. 8013d02: 2302 movs r3, #2
  46186. 8013d04: e02d b.n 8013d62 <HAL_UARTEx_SetTxFifoThreshold+0x74>
  46187. 8013d06: 687b ldr r3, [r7, #4]
  46188. 8013d08: 2201 movs r2, #1
  46189. 8013d0a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46190. huart->gState = HAL_UART_STATE_BUSY;
  46191. 8013d0e: 687b ldr r3, [r7, #4]
  46192. 8013d10: 2224 movs r2, #36 @ 0x24
  46193. 8013d12: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46194. /* Save actual UART configuration */
  46195. tmpcr1 = READ_REG(huart->Instance->CR1);
  46196. 8013d16: 687b ldr r3, [r7, #4]
  46197. 8013d18: 681b ldr r3, [r3, #0]
  46198. 8013d1a: 681b ldr r3, [r3, #0]
  46199. 8013d1c: 60fb str r3, [r7, #12]
  46200. /* Disable UART */
  46201. __HAL_UART_DISABLE(huart);
  46202. 8013d1e: 687b ldr r3, [r7, #4]
  46203. 8013d20: 681b ldr r3, [r3, #0]
  46204. 8013d22: 681a ldr r2, [r3, #0]
  46205. 8013d24: 687b ldr r3, [r7, #4]
  46206. 8013d26: 681b ldr r3, [r3, #0]
  46207. 8013d28: f022 0201 bic.w r2, r2, #1
  46208. 8013d2c: 601a str r2, [r3, #0]
  46209. /* Update TX threshold configuration */
  46210. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  46211. 8013d2e: 687b ldr r3, [r7, #4]
  46212. 8013d30: 681b ldr r3, [r3, #0]
  46213. 8013d32: 689b ldr r3, [r3, #8]
  46214. 8013d34: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  46215. 8013d38: 687b ldr r3, [r7, #4]
  46216. 8013d3a: 681b ldr r3, [r3, #0]
  46217. 8013d3c: 683a ldr r2, [r7, #0]
  46218. 8013d3e: 430a orrs r2, r1
  46219. 8013d40: 609a str r2, [r3, #8]
  46220. /* Determine the number of data to process during RX/TX ISR execution */
  46221. UARTEx_SetNbDataToProcess(huart);
  46222. 8013d42: 6878 ldr r0, [r7, #4]
  46223. 8013d44: f000 f8a0 bl 8013e88 <UARTEx_SetNbDataToProcess>
  46224. /* Restore UART configuration */
  46225. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46226. 8013d48: 687b ldr r3, [r7, #4]
  46227. 8013d4a: 681b ldr r3, [r3, #0]
  46228. 8013d4c: 68fa ldr r2, [r7, #12]
  46229. 8013d4e: 601a str r2, [r3, #0]
  46230. huart->gState = HAL_UART_STATE_READY;
  46231. 8013d50: 687b ldr r3, [r7, #4]
  46232. 8013d52: 2220 movs r2, #32
  46233. 8013d54: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46234. /* Process Unlocked */
  46235. __HAL_UNLOCK(huart);
  46236. 8013d58: 687b ldr r3, [r7, #4]
  46237. 8013d5a: 2200 movs r2, #0
  46238. 8013d5c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46239. return HAL_OK;
  46240. 8013d60: 2300 movs r3, #0
  46241. }
  46242. 8013d62: 4618 mov r0, r3
  46243. 8013d64: 3710 adds r7, #16
  46244. 8013d66: 46bd mov sp, r7
  46245. 8013d68: bd80 pop {r7, pc}
  46246. 08013d6a <HAL_UARTEx_SetRxFifoThreshold>:
  46247. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  46248. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  46249. * @retval HAL status
  46250. */
  46251. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46252. {
  46253. 8013d6a: b580 push {r7, lr}
  46254. 8013d6c: b084 sub sp, #16
  46255. 8013d6e: af00 add r7, sp, #0
  46256. 8013d70: 6078 str r0, [r7, #4]
  46257. 8013d72: 6039 str r1, [r7, #0]
  46258. /* Check the parameters */
  46259. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46260. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  46261. /* Process Locked */
  46262. __HAL_LOCK(huart);
  46263. 8013d74: 687b ldr r3, [r7, #4]
  46264. 8013d76: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46265. 8013d7a: 2b01 cmp r3, #1
  46266. 8013d7c: d101 bne.n 8013d82 <HAL_UARTEx_SetRxFifoThreshold+0x18>
  46267. 8013d7e: 2302 movs r3, #2
  46268. 8013d80: e02d b.n 8013dde <HAL_UARTEx_SetRxFifoThreshold+0x74>
  46269. 8013d82: 687b ldr r3, [r7, #4]
  46270. 8013d84: 2201 movs r2, #1
  46271. 8013d86: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46272. huart->gState = HAL_UART_STATE_BUSY;
  46273. 8013d8a: 687b ldr r3, [r7, #4]
  46274. 8013d8c: 2224 movs r2, #36 @ 0x24
  46275. 8013d8e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46276. /* Save actual UART configuration */
  46277. tmpcr1 = READ_REG(huart->Instance->CR1);
  46278. 8013d92: 687b ldr r3, [r7, #4]
  46279. 8013d94: 681b ldr r3, [r3, #0]
  46280. 8013d96: 681b ldr r3, [r3, #0]
  46281. 8013d98: 60fb str r3, [r7, #12]
  46282. /* Disable UART */
  46283. __HAL_UART_DISABLE(huart);
  46284. 8013d9a: 687b ldr r3, [r7, #4]
  46285. 8013d9c: 681b ldr r3, [r3, #0]
  46286. 8013d9e: 681a ldr r2, [r3, #0]
  46287. 8013da0: 687b ldr r3, [r7, #4]
  46288. 8013da2: 681b ldr r3, [r3, #0]
  46289. 8013da4: f022 0201 bic.w r2, r2, #1
  46290. 8013da8: 601a str r2, [r3, #0]
  46291. /* Update RX threshold configuration */
  46292. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  46293. 8013daa: 687b ldr r3, [r7, #4]
  46294. 8013dac: 681b ldr r3, [r3, #0]
  46295. 8013dae: 689b ldr r3, [r3, #8]
  46296. 8013db0: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  46297. 8013db4: 687b ldr r3, [r7, #4]
  46298. 8013db6: 681b ldr r3, [r3, #0]
  46299. 8013db8: 683a ldr r2, [r7, #0]
  46300. 8013dba: 430a orrs r2, r1
  46301. 8013dbc: 609a str r2, [r3, #8]
  46302. /* Determine the number of data to process during RX/TX ISR execution */
  46303. UARTEx_SetNbDataToProcess(huart);
  46304. 8013dbe: 6878 ldr r0, [r7, #4]
  46305. 8013dc0: f000 f862 bl 8013e88 <UARTEx_SetNbDataToProcess>
  46306. /* Restore UART configuration */
  46307. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46308. 8013dc4: 687b ldr r3, [r7, #4]
  46309. 8013dc6: 681b ldr r3, [r3, #0]
  46310. 8013dc8: 68fa ldr r2, [r7, #12]
  46311. 8013dca: 601a str r2, [r3, #0]
  46312. huart->gState = HAL_UART_STATE_READY;
  46313. 8013dcc: 687b ldr r3, [r7, #4]
  46314. 8013dce: 2220 movs r2, #32
  46315. 8013dd0: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46316. /* Process Unlocked */
  46317. __HAL_UNLOCK(huart);
  46318. 8013dd4: 687b ldr r3, [r7, #4]
  46319. 8013dd6: 2200 movs r2, #0
  46320. 8013dd8: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46321. return HAL_OK;
  46322. 8013ddc: 2300 movs r3, #0
  46323. }
  46324. 8013dde: 4618 mov r0, r3
  46325. 8013de0: 3710 adds r7, #16
  46326. 8013de2: 46bd mov sp, r7
  46327. 8013de4: bd80 pop {r7, pc}
  46328. 08013de6 <HAL_UARTEx_ReceiveToIdle_IT>:
  46329. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  46330. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  46331. * @retval HAL status
  46332. */
  46333. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  46334. {
  46335. 8013de6: b580 push {r7, lr}
  46336. 8013de8: b08c sub sp, #48 @ 0x30
  46337. 8013dea: af00 add r7, sp, #0
  46338. 8013dec: 60f8 str r0, [r7, #12]
  46339. 8013dee: 60b9 str r1, [r7, #8]
  46340. 8013df0: 4613 mov r3, r2
  46341. 8013df2: 80fb strh r3, [r7, #6]
  46342. HAL_StatusTypeDef status = HAL_OK;
  46343. 8013df4: 2300 movs r3, #0
  46344. 8013df6: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46345. /* Check that a Rx process is not already ongoing */
  46346. if (huart->RxState == HAL_UART_STATE_READY)
  46347. 8013dfa: 68fb ldr r3, [r7, #12]
  46348. 8013dfc: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  46349. 8013e00: 2b20 cmp r3, #32
  46350. 8013e02: d13b bne.n 8013e7c <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  46351. {
  46352. if ((pData == NULL) || (Size == 0U))
  46353. 8013e04: 68bb ldr r3, [r7, #8]
  46354. 8013e06: 2b00 cmp r3, #0
  46355. 8013e08: d002 beq.n 8013e10 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  46356. 8013e0a: 88fb ldrh r3, [r7, #6]
  46357. 8013e0c: 2b00 cmp r3, #0
  46358. 8013e0e: d101 bne.n 8013e14 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  46359. {
  46360. return HAL_ERROR;
  46361. 8013e10: 2301 movs r3, #1
  46362. 8013e12: e034 b.n 8013e7e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46363. }
  46364. /* Set Reception type to reception till IDLE Event*/
  46365. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  46366. 8013e14: 68fb ldr r3, [r7, #12]
  46367. 8013e16: 2201 movs r2, #1
  46368. 8013e18: 66da str r2, [r3, #108] @ 0x6c
  46369. huart->RxEventType = HAL_UART_RXEVENT_TC;
  46370. 8013e1a: 68fb ldr r3, [r7, #12]
  46371. 8013e1c: 2200 movs r2, #0
  46372. 8013e1e: 671a str r2, [r3, #112] @ 0x70
  46373. (void)UART_Start_Receive_IT(huart, pData, Size);
  46374. 8013e20: 88fb ldrh r3, [r7, #6]
  46375. 8013e22: 461a mov r2, r3
  46376. 8013e24: 68b9 ldr r1, [r7, #8]
  46377. 8013e26: 68f8 ldr r0, [r7, #12]
  46378. 8013e28: f7fe fe82 bl 8012b30 <UART_Start_Receive_IT>
  46379. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  46380. 8013e2c: 68fb ldr r3, [r7, #12]
  46381. 8013e2e: 6edb ldr r3, [r3, #108] @ 0x6c
  46382. 8013e30: 2b01 cmp r3, #1
  46383. 8013e32: d11d bne.n 8013e70 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  46384. {
  46385. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  46386. 8013e34: 68fb ldr r3, [r7, #12]
  46387. 8013e36: 681b ldr r3, [r3, #0]
  46388. 8013e38: 2210 movs r2, #16
  46389. 8013e3a: 621a str r2, [r3, #32]
  46390. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  46391. 8013e3c: 68fb ldr r3, [r7, #12]
  46392. 8013e3e: 681b ldr r3, [r3, #0]
  46393. 8013e40: 61bb str r3, [r7, #24]
  46394. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46395. 8013e42: 69bb ldr r3, [r7, #24]
  46396. 8013e44: e853 3f00 ldrex r3, [r3]
  46397. 8013e48: 617b str r3, [r7, #20]
  46398. return(result);
  46399. 8013e4a: 697b ldr r3, [r7, #20]
  46400. 8013e4c: f043 0310 orr.w r3, r3, #16
  46401. 8013e50: 62bb str r3, [r7, #40] @ 0x28
  46402. 8013e52: 68fb ldr r3, [r7, #12]
  46403. 8013e54: 681b ldr r3, [r3, #0]
  46404. 8013e56: 461a mov r2, r3
  46405. 8013e58: 6abb ldr r3, [r7, #40] @ 0x28
  46406. 8013e5a: 627b str r3, [r7, #36] @ 0x24
  46407. 8013e5c: 623a str r2, [r7, #32]
  46408. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46409. 8013e5e: 6a39 ldr r1, [r7, #32]
  46410. 8013e60: 6a7a ldr r2, [r7, #36] @ 0x24
  46411. 8013e62: e841 2300 strex r3, r2, [r1]
  46412. 8013e66: 61fb str r3, [r7, #28]
  46413. return(result);
  46414. 8013e68: 69fb ldr r3, [r7, #28]
  46415. 8013e6a: 2b00 cmp r3, #0
  46416. 8013e6c: d1e6 bne.n 8013e3c <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  46417. 8013e6e: e002 b.n 8013e76 <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  46418. {
  46419. /* In case of errors already pending when reception is started,
  46420. Interrupts may have already been raised and lead to reception abortion.
  46421. (Overrun error for instance).
  46422. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  46423. status = HAL_ERROR;
  46424. 8013e70: 2301 movs r3, #1
  46425. 8013e72: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46426. }
  46427. return status;
  46428. 8013e76: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  46429. 8013e7a: e000 b.n 8013e7e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46430. }
  46431. else
  46432. {
  46433. return HAL_BUSY;
  46434. 8013e7c: 2302 movs r3, #2
  46435. }
  46436. }
  46437. 8013e7e: 4618 mov r0, r3
  46438. 8013e80: 3730 adds r7, #48 @ 0x30
  46439. 8013e82: 46bd mov sp, r7
  46440. 8013e84: bd80 pop {r7, pc}
  46441. ...
  46442. 08013e88 <UARTEx_SetNbDataToProcess>:
  46443. * the UART configuration registers.
  46444. * @param huart UART handle.
  46445. * @retval None
  46446. */
  46447. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  46448. {
  46449. 8013e88: b480 push {r7}
  46450. 8013e8a: b085 sub sp, #20
  46451. 8013e8c: af00 add r7, sp, #0
  46452. 8013e8e: 6078 str r0, [r7, #4]
  46453. uint8_t rx_fifo_threshold;
  46454. uint8_t tx_fifo_threshold;
  46455. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  46456. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  46457. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  46458. 8013e90: 687b ldr r3, [r7, #4]
  46459. 8013e92: 6e5b ldr r3, [r3, #100] @ 0x64
  46460. 8013e94: 2b00 cmp r3, #0
  46461. 8013e96: d108 bne.n 8013eaa <UARTEx_SetNbDataToProcess+0x22>
  46462. {
  46463. huart->NbTxDataToProcess = 1U;
  46464. 8013e98: 687b ldr r3, [r7, #4]
  46465. 8013e9a: 2201 movs r2, #1
  46466. 8013e9c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46467. huart->NbRxDataToProcess = 1U;
  46468. 8013ea0: 687b ldr r3, [r7, #4]
  46469. 8013ea2: 2201 movs r2, #1
  46470. 8013ea4: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46471. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46472. (uint16_t)denominator[tx_fifo_threshold];
  46473. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46474. (uint16_t)denominator[rx_fifo_threshold];
  46475. }
  46476. }
  46477. 8013ea8: e031 b.n 8013f0e <UARTEx_SetNbDataToProcess+0x86>
  46478. rx_fifo_depth = RX_FIFO_DEPTH;
  46479. 8013eaa: 2310 movs r3, #16
  46480. 8013eac: 73fb strb r3, [r7, #15]
  46481. tx_fifo_depth = TX_FIFO_DEPTH;
  46482. 8013eae: 2310 movs r3, #16
  46483. 8013eb0: 73bb strb r3, [r7, #14]
  46484. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  46485. 8013eb2: 687b ldr r3, [r7, #4]
  46486. 8013eb4: 681b ldr r3, [r3, #0]
  46487. 8013eb6: 689b ldr r3, [r3, #8]
  46488. 8013eb8: 0e5b lsrs r3, r3, #25
  46489. 8013eba: b2db uxtb r3, r3
  46490. 8013ebc: f003 0307 and.w r3, r3, #7
  46491. 8013ec0: 737b strb r3, [r7, #13]
  46492. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  46493. 8013ec2: 687b ldr r3, [r7, #4]
  46494. 8013ec4: 681b ldr r3, [r3, #0]
  46495. 8013ec6: 689b ldr r3, [r3, #8]
  46496. 8013ec8: 0f5b lsrs r3, r3, #29
  46497. 8013eca: b2db uxtb r3, r3
  46498. 8013ecc: f003 0307 and.w r3, r3, #7
  46499. 8013ed0: 733b strb r3, [r7, #12]
  46500. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46501. 8013ed2: 7bbb ldrb r3, [r7, #14]
  46502. 8013ed4: 7b3a ldrb r2, [r7, #12]
  46503. 8013ed6: 4911 ldr r1, [pc, #68] @ (8013f1c <UARTEx_SetNbDataToProcess+0x94>)
  46504. 8013ed8: 5c8a ldrb r2, [r1, r2]
  46505. 8013eda: fb02 f303 mul.w r3, r2, r3
  46506. (uint16_t)denominator[tx_fifo_threshold];
  46507. 8013ede: 7b3a ldrb r2, [r7, #12]
  46508. 8013ee0: 490f ldr r1, [pc, #60] @ (8013f20 <UARTEx_SetNbDataToProcess+0x98>)
  46509. 8013ee2: 5c8a ldrb r2, [r1, r2]
  46510. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46511. 8013ee4: fb93 f3f2 sdiv r3, r3, r2
  46512. 8013ee8: b29a uxth r2, r3
  46513. 8013eea: 687b ldr r3, [r7, #4]
  46514. 8013eec: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46515. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46516. 8013ef0: 7bfb ldrb r3, [r7, #15]
  46517. 8013ef2: 7b7a ldrb r2, [r7, #13]
  46518. 8013ef4: 4909 ldr r1, [pc, #36] @ (8013f1c <UARTEx_SetNbDataToProcess+0x94>)
  46519. 8013ef6: 5c8a ldrb r2, [r1, r2]
  46520. 8013ef8: fb02 f303 mul.w r3, r2, r3
  46521. (uint16_t)denominator[rx_fifo_threshold];
  46522. 8013efc: 7b7a ldrb r2, [r7, #13]
  46523. 8013efe: 4908 ldr r1, [pc, #32] @ (8013f20 <UARTEx_SetNbDataToProcess+0x98>)
  46524. 8013f00: 5c8a ldrb r2, [r1, r2]
  46525. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46526. 8013f02: fb93 f3f2 sdiv r3, r3, r2
  46527. 8013f06: b29a uxth r2, r3
  46528. 8013f08: 687b ldr r3, [r7, #4]
  46529. 8013f0a: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46530. }
  46531. 8013f0e: bf00 nop
  46532. 8013f10: 3714 adds r7, #20
  46533. 8013f12: 46bd mov sp, r7
  46534. 8013f14: f85d 7b04 ldr.w r7, [sp], #4
  46535. 8013f18: 4770 bx lr
  46536. 8013f1a: bf00 nop
  46537. 8013f1c: 0801870c .word 0x0801870c
  46538. 8013f20: 08018714 .word 0x08018714
  46539. 08013f24 <__NVIC_SetPriority>:
  46540. {
  46541. 8013f24: b480 push {r7}
  46542. 8013f26: b083 sub sp, #12
  46543. 8013f28: af00 add r7, sp, #0
  46544. 8013f2a: 4603 mov r3, r0
  46545. 8013f2c: 6039 str r1, [r7, #0]
  46546. 8013f2e: 80fb strh r3, [r7, #6]
  46547. if ((int32_t)(IRQn) >= 0)
  46548. 8013f30: f9b7 3006 ldrsh.w r3, [r7, #6]
  46549. 8013f34: 2b00 cmp r3, #0
  46550. 8013f36: db0a blt.n 8013f4e <__NVIC_SetPriority+0x2a>
  46551. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46552. 8013f38: 683b ldr r3, [r7, #0]
  46553. 8013f3a: b2da uxtb r2, r3
  46554. 8013f3c: 490c ldr r1, [pc, #48] @ (8013f70 <__NVIC_SetPriority+0x4c>)
  46555. 8013f3e: f9b7 3006 ldrsh.w r3, [r7, #6]
  46556. 8013f42: 0112 lsls r2, r2, #4
  46557. 8013f44: b2d2 uxtb r2, r2
  46558. 8013f46: 440b add r3, r1
  46559. 8013f48: f883 2300 strb.w r2, [r3, #768] @ 0x300
  46560. }
  46561. 8013f4c: e00a b.n 8013f64 <__NVIC_SetPriority+0x40>
  46562. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46563. 8013f4e: 683b ldr r3, [r7, #0]
  46564. 8013f50: b2da uxtb r2, r3
  46565. 8013f52: 4908 ldr r1, [pc, #32] @ (8013f74 <__NVIC_SetPriority+0x50>)
  46566. 8013f54: 88fb ldrh r3, [r7, #6]
  46567. 8013f56: f003 030f and.w r3, r3, #15
  46568. 8013f5a: 3b04 subs r3, #4
  46569. 8013f5c: 0112 lsls r2, r2, #4
  46570. 8013f5e: b2d2 uxtb r2, r2
  46571. 8013f60: 440b add r3, r1
  46572. 8013f62: 761a strb r2, [r3, #24]
  46573. }
  46574. 8013f64: bf00 nop
  46575. 8013f66: 370c adds r7, #12
  46576. 8013f68: 46bd mov sp, r7
  46577. 8013f6a: f85d 7b04 ldr.w r7, [sp], #4
  46578. 8013f6e: 4770 bx lr
  46579. 8013f70: e000e100 .word 0xe000e100
  46580. 8013f74: e000ed00 .word 0xe000ed00
  46581. 08013f78 <SysTick_Handler>:
  46582. /*
  46583. SysTick handler implementation that also clears overflow flag.
  46584. */
  46585. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  46586. void SysTick_Handler (void) {
  46587. 8013f78: b580 push {r7, lr}
  46588. 8013f7a: af00 add r7, sp, #0
  46589. /* Clear overflow flag */
  46590. SysTick->CTRL;
  46591. 8013f7c: 4b05 ldr r3, [pc, #20] @ (8013f94 <SysTick_Handler+0x1c>)
  46592. 8013f7e: 681b ldr r3, [r3, #0]
  46593. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  46594. 8013f80: f002 fd1e bl 80169c0 <xTaskGetSchedulerState>
  46595. 8013f84: 4603 mov r3, r0
  46596. 8013f86: 2b01 cmp r3, #1
  46597. 8013f88: d001 beq.n 8013f8e <SysTick_Handler+0x16>
  46598. /* Call tick handler */
  46599. xPortSysTickHandler();
  46600. 8013f8a: f003 ff2d bl 8017de8 <xPortSysTickHandler>
  46601. }
  46602. }
  46603. 8013f8e: bf00 nop
  46604. 8013f90: bd80 pop {r7, pc}
  46605. 8013f92: bf00 nop
  46606. 8013f94: e000e010 .word 0xe000e010
  46607. 08013f98 <SVC_Setup>:
  46608. #endif /* SysTick */
  46609. /*
  46610. Setup SVC to reset value.
  46611. */
  46612. __STATIC_INLINE void SVC_Setup (void) {
  46613. 8013f98: b580 push {r7, lr}
  46614. 8013f9a: af00 add r7, sp, #0
  46615. #if (__ARM_ARCH_7A__ == 0U)
  46616. /* Service Call interrupt might be configured before kernel start */
  46617. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  46618. /* causes a Hard Fault. */
  46619. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  46620. 8013f9c: 2100 movs r1, #0
  46621. 8013f9e: f06f 0004 mvn.w r0, #4
  46622. 8013fa2: f7ff ffbf bl 8013f24 <__NVIC_SetPriority>
  46623. #endif
  46624. }
  46625. 8013fa6: bf00 nop
  46626. 8013fa8: bd80 pop {r7, pc}
  46627. ...
  46628. 08013fac <osKernelInitialize>:
  46629. static uint32_t OS_Tick_GetOverflow (void);
  46630. /* Get OS Tick interval */
  46631. static uint32_t OS_Tick_GetInterval (void);
  46632. /*---------------------------------------------------------------------------*/
  46633. osStatus_t osKernelInitialize (void) {
  46634. 8013fac: b480 push {r7}
  46635. 8013fae: b083 sub sp, #12
  46636. 8013fb0: af00 add r7, sp, #0
  46637. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46638. 8013fb2: f3ef 8305 mrs r3, IPSR
  46639. 8013fb6: 603b str r3, [r7, #0]
  46640. return(result);
  46641. 8013fb8: 683b ldr r3, [r7, #0]
  46642. osStatus_t stat;
  46643. if (IS_IRQ()) {
  46644. 8013fba: 2b00 cmp r3, #0
  46645. 8013fbc: d003 beq.n 8013fc6 <osKernelInitialize+0x1a>
  46646. stat = osErrorISR;
  46647. 8013fbe: f06f 0305 mvn.w r3, #5
  46648. 8013fc2: 607b str r3, [r7, #4]
  46649. 8013fc4: e00c b.n 8013fe0 <osKernelInitialize+0x34>
  46650. }
  46651. else {
  46652. if (KernelState == osKernelInactive) {
  46653. 8013fc6: 4b0a ldr r3, [pc, #40] @ (8013ff0 <osKernelInitialize+0x44>)
  46654. 8013fc8: 681b ldr r3, [r3, #0]
  46655. 8013fca: 2b00 cmp r3, #0
  46656. 8013fcc: d105 bne.n 8013fda <osKernelInitialize+0x2e>
  46657. EvrFreeRTOSSetup(0U);
  46658. #endif
  46659. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  46660. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  46661. #endif
  46662. KernelState = osKernelReady;
  46663. 8013fce: 4b08 ldr r3, [pc, #32] @ (8013ff0 <osKernelInitialize+0x44>)
  46664. 8013fd0: 2201 movs r2, #1
  46665. 8013fd2: 601a str r2, [r3, #0]
  46666. stat = osOK;
  46667. 8013fd4: 2300 movs r3, #0
  46668. 8013fd6: 607b str r3, [r7, #4]
  46669. 8013fd8: e002 b.n 8013fe0 <osKernelInitialize+0x34>
  46670. } else {
  46671. stat = osError;
  46672. 8013fda: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46673. 8013fde: 607b str r3, [r7, #4]
  46674. }
  46675. }
  46676. return (stat);
  46677. 8013fe0: 687b ldr r3, [r7, #4]
  46678. }
  46679. 8013fe2: 4618 mov r0, r3
  46680. 8013fe4: 370c adds r7, #12
  46681. 8013fe6: 46bd mov sp, r7
  46682. 8013fe8: f85d 7b04 ldr.w r7, [sp], #4
  46683. 8013fec: 4770 bx lr
  46684. 8013fee: bf00 nop
  46685. 8013ff0: 24001064 .word 0x24001064
  46686. 08013ff4 <osKernelStart>:
  46687. }
  46688. return (state);
  46689. }
  46690. osStatus_t osKernelStart (void) {
  46691. 8013ff4: b580 push {r7, lr}
  46692. 8013ff6: b082 sub sp, #8
  46693. 8013ff8: af00 add r7, sp, #0
  46694. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46695. 8013ffa: f3ef 8305 mrs r3, IPSR
  46696. 8013ffe: 603b str r3, [r7, #0]
  46697. return(result);
  46698. 8014000: 683b ldr r3, [r7, #0]
  46699. osStatus_t stat;
  46700. if (IS_IRQ()) {
  46701. 8014002: 2b00 cmp r3, #0
  46702. 8014004: d003 beq.n 801400e <osKernelStart+0x1a>
  46703. stat = osErrorISR;
  46704. 8014006: f06f 0305 mvn.w r3, #5
  46705. 801400a: 607b str r3, [r7, #4]
  46706. 801400c: e010 b.n 8014030 <osKernelStart+0x3c>
  46707. }
  46708. else {
  46709. if (KernelState == osKernelReady) {
  46710. 801400e: 4b0b ldr r3, [pc, #44] @ (801403c <osKernelStart+0x48>)
  46711. 8014010: 681b ldr r3, [r3, #0]
  46712. 8014012: 2b01 cmp r3, #1
  46713. 8014014: d109 bne.n 801402a <osKernelStart+0x36>
  46714. /* Ensure SVC priority is at the reset value */
  46715. SVC_Setup();
  46716. 8014016: f7ff ffbf bl 8013f98 <SVC_Setup>
  46717. /* Change state to enable IRQ masking check */
  46718. KernelState = osKernelRunning;
  46719. 801401a: 4b08 ldr r3, [pc, #32] @ (801403c <osKernelStart+0x48>)
  46720. 801401c: 2202 movs r2, #2
  46721. 801401e: 601a str r2, [r3, #0]
  46722. /* Start the kernel scheduler */
  46723. vTaskStartScheduler();
  46724. 8014020: f002 f824 bl 801606c <vTaskStartScheduler>
  46725. stat = osOK;
  46726. 8014024: 2300 movs r3, #0
  46727. 8014026: 607b str r3, [r7, #4]
  46728. 8014028: e002 b.n 8014030 <osKernelStart+0x3c>
  46729. } else {
  46730. stat = osError;
  46731. 801402a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46732. 801402e: 607b str r3, [r7, #4]
  46733. }
  46734. }
  46735. return (stat);
  46736. 8014030: 687b ldr r3, [r7, #4]
  46737. }
  46738. 8014032: 4618 mov r0, r3
  46739. 8014034: 3708 adds r7, #8
  46740. 8014036: 46bd mov sp, r7
  46741. 8014038: bd80 pop {r7, pc}
  46742. 801403a: bf00 nop
  46743. 801403c: 24001064 .word 0x24001064
  46744. 08014040 <osThreadNew>:
  46745. return (configCPU_CLOCK_HZ);
  46746. }
  46747. /*---------------------------------------------------------------------------*/
  46748. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  46749. 8014040: b580 push {r7, lr}
  46750. 8014042: b08e sub sp, #56 @ 0x38
  46751. 8014044: af04 add r7, sp, #16
  46752. 8014046: 60f8 str r0, [r7, #12]
  46753. 8014048: 60b9 str r1, [r7, #8]
  46754. 801404a: 607a str r2, [r7, #4]
  46755. uint32_t stack;
  46756. TaskHandle_t hTask;
  46757. UBaseType_t prio;
  46758. int32_t mem;
  46759. hTask = NULL;
  46760. 801404c: 2300 movs r3, #0
  46761. 801404e: 613b str r3, [r7, #16]
  46762. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46763. 8014050: f3ef 8305 mrs r3, IPSR
  46764. 8014054: 617b str r3, [r7, #20]
  46765. return(result);
  46766. 8014056: 697b ldr r3, [r7, #20]
  46767. if (!IS_IRQ() && (func != NULL)) {
  46768. 8014058: 2b00 cmp r3, #0
  46769. 801405a: d17f bne.n 801415c <osThreadNew+0x11c>
  46770. 801405c: 68fb ldr r3, [r7, #12]
  46771. 801405e: 2b00 cmp r3, #0
  46772. 8014060: d07c beq.n 801415c <osThreadNew+0x11c>
  46773. stack = configMINIMAL_STACK_SIZE;
  46774. 8014062: f44f 7300 mov.w r3, #512 @ 0x200
  46775. 8014066: 623b str r3, [r7, #32]
  46776. prio = (UBaseType_t)osPriorityNormal;
  46777. 8014068: 2318 movs r3, #24
  46778. 801406a: 61fb str r3, [r7, #28]
  46779. name = NULL;
  46780. 801406c: 2300 movs r3, #0
  46781. 801406e: 627b str r3, [r7, #36] @ 0x24
  46782. mem = -1;
  46783. 8014070: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46784. 8014074: 61bb str r3, [r7, #24]
  46785. if (attr != NULL) {
  46786. 8014076: 687b ldr r3, [r7, #4]
  46787. 8014078: 2b00 cmp r3, #0
  46788. 801407a: d045 beq.n 8014108 <osThreadNew+0xc8>
  46789. if (attr->name != NULL) {
  46790. 801407c: 687b ldr r3, [r7, #4]
  46791. 801407e: 681b ldr r3, [r3, #0]
  46792. 8014080: 2b00 cmp r3, #0
  46793. 8014082: d002 beq.n 801408a <osThreadNew+0x4a>
  46794. name = attr->name;
  46795. 8014084: 687b ldr r3, [r7, #4]
  46796. 8014086: 681b ldr r3, [r3, #0]
  46797. 8014088: 627b str r3, [r7, #36] @ 0x24
  46798. }
  46799. if (attr->priority != osPriorityNone) {
  46800. 801408a: 687b ldr r3, [r7, #4]
  46801. 801408c: 699b ldr r3, [r3, #24]
  46802. 801408e: 2b00 cmp r3, #0
  46803. 8014090: d002 beq.n 8014098 <osThreadNew+0x58>
  46804. prio = (UBaseType_t)attr->priority;
  46805. 8014092: 687b ldr r3, [r7, #4]
  46806. 8014094: 699b ldr r3, [r3, #24]
  46807. 8014096: 61fb str r3, [r7, #28]
  46808. }
  46809. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  46810. 8014098: 69fb ldr r3, [r7, #28]
  46811. 801409a: 2b00 cmp r3, #0
  46812. 801409c: d008 beq.n 80140b0 <osThreadNew+0x70>
  46813. 801409e: 69fb ldr r3, [r7, #28]
  46814. 80140a0: 2b38 cmp r3, #56 @ 0x38
  46815. 80140a2: d805 bhi.n 80140b0 <osThreadNew+0x70>
  46816. 80140a4: 687b ldr r3, [r7, #4]
  46817. 80140a6: 685b ldr r3, [r3, #4]
  46818. 80140a8: f003 0301 and.w r3, r3, #1
  46819. 80140ac: 2b00 cmp r3, #0
  46820. 80140ae: d001 beq.n 80140b4 <osThreadNew+0x74>
  46821. return (NULL);
  46822. 80140b0: 2300 movs r3, #0
  46823. 80140b2: e054 b.n 801415e <osThreadNew+0x11e>
  46824. }
  46825. if (attr->stack_size > 0U) {
  46826. 80140b4: 687b ldr r3, [r7, #4]
  46827. 80140b6: 695b ldr r3, [r3, #20]
  46828. 80140b8: 2b00 cmp r3, #0
  46829. 80140ba: d003 beq.n 80140c4 <osThreadNew+0x84>
  46830. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  46831. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  46832. stack = attr->stack_size / sizeof(StackType_t);
  46833. 80140bc: 687b ldr r3, [r7, #4]
  46834. 80140be: 695b ldr r3, [r3, #20]
  46835. 80140c0: 089b lsrs r3, r3, #2
  46836. 80140c2: 623b str r3, [r7, #32]
  46837. }
  46838. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46839. 80140c4: 687b ldr r3, [r7, #4]
  46840. 80140c6: 689b ldr r3, [r3, #8]
  46841. 80140c8: 2b00 cmp r3, #0
  46842. 80140ca: d00e beq.n 80140ea <osThreadNew+0xaa>
  46843. 80140cc: 687b ldr r3, [r7, #4]
  46844. 80140ce: 68db ldr r3, [r3, #12]
  46845. 80140d0: 2ba7 cmp r3, #167 @ 0xa7
  46846. 80140d2: d90a bls.n 80140ea <osThreadNew+0xaa>
  46847. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46848. 80140d4: 687b ldr r3, [r7, #4]
  46849. 80140d6: 691b ldr r3, [r3, #16]
  46850. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46851. 80140d8: 2b00 cmp r3, #0
  46852. 80140da: d006 beq.n 80140ea <osThreadNew+0xaa>
  46853. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46854. 80140dc: 687b ldr r3, [r7, #4]
  46855. 80140de: 695b ldr r3, [r3, #20]
  46856. 80140e0: 2b00 cmp r3, #0
  46857. 80140e2: d002 beq.n 80140ea <osThreadNew+0xaa>
  46858. mem = 1;
  46859. 80140e4: 2301 movs r3, #1
  46860. 80140e6: 61bb str r3, [r7, #24]
  46861. 80140e8: e010 b.n 801410c <osThreadNew+0xcc>
  46862. }
  46863. else {
  46864. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  46865. 80140ea: 687b ldr r3, [r7, #4]
  46866. 80140ec: 689b ldr r3, [r3, #8]
  46867. 80140ee: 2b00 cmp r3, #0
  46868. 80140f0: d10c bne.n 801410c <osThreadNew+0xcc>
  46869. 80140f2: 687b ldr r3, [r7, #4]
  46870. 80140f4: 68db ldr r3, [r3, #12]
  46871. 80140f6: 2b00 cmp r3, #0
  46872. 80140f8: d108 bne.n 801410c <osThreadNew+0xcc>
  46873. 80140fa: 687b ldr r3, [r7, #4]
  46874. 80140fc: 691b ldr r3, [r3, #16]
  46875. 80140fe: 2b00 cmp r3, #0
  46876. 8014100: d104 bne.n 801410c <osThreadNew+0xcc>
  46877. mem = 0;
  46878. 8014102: 2300 movs r3, #0
  46879. 8014104: 61bb str r3, [r7, #24]
  46880. 8014106: e001 b.n 801410c <osThreadNew+0xcc>
  46881. }
  46882. }
  46883. }
  46884. else {
  46885. mem = 0;
  46886. 8014108: 2300 movs r3, #0
  46887. 801410a: 61bb str r3, [r7, #24]
  46888. }
  46889. if (mem == 1) {
  46890. 801410c: 69bb ldr r3, [r7, #24]
  46891. 801410e: 2b01 cmp r3, #1
  46892. 8014110: d110 bne.n 8014134 <osThreadNew+0xf4>
  46893. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46894. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46895. 8014112: 687b ldr r3, [r7, #4]
  46896. 8014114: 691b ldr r3, [r3, #16]
  46897. (StaticTask_t *)attr->cb_mem);
  46898. 8014116: 687a ldr r2, [r7, #4]
  46899. 8014118: 6892 ldr r2, [r2, #8]
  46900. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46901. 801411a: 9202 str r2, [sp, #8]
  46902. 801411c: 9301 str r3, [sp, #4]
  46903. 801411e: 69fb ldr r3, [r7, #28]
  46904. 8014120: 9300 str r3, [sp, #0]
  46905. 8014122: 68bb ldr r3, [r7, #8]
  46906. 8014124: 6a3a ldr r2, [r7, #32]
  46907. 8014126: 6a79 ldr r1, [r7, #36] @ 0x24
  46908. 8014128: 68f8 ldr r0, [r7, #12]
  46909. 801412a: f001 fdac bl 8015c86 <xTaskCreateStatic>
  46910. 801412e: 4603 mov r3, r0
  46911. 8014130: 613b str r3, [r7, #16]
  46912. 8014132: e013 b.n 801415c <osThreadNew+0x11c>
  46913. #endif
  46914. }
  46915. else {
  46916. if (mem == 0) {
  46917. 8014134: 69bb ldr r3, [r7, #24]
  46918. 8014136: 2b00 cmp r3, #0
  46919. 8014138: d110 bne.n 801415c <osThreadNew+0x11c>
  46920. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46921. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46922. 801413a: 6a3b ldr r3, [r7, #32]
  46923. 801413c: b29a uxth r2, r3
  46924. 801413e: f107 0310 add.w r3, r7, #16
  46925. 8014142: 9301 str r3, [sp, #4]
  46926. 8014144: 69fb ldr r3, [r7, #28]
  46927. 8014146: 9300 str r3, [sp, #0]
  46928. 8014148: 68bb ldr r3, [r7, #8]
  46929. 801414a: 6a79 ldr r1, [r7, #36] @ 0x24
  46930. 801414c: 68f8 ldr r0, [r7, #12]
  46931. 801414e: f001 fdfa bl 8015d46 <xTaskCreate>
  46932. 8014152: 4603 mov r3, r0
  46933. 8014154: 2b01 cmp r3, #1
  46934. 8014156: d001 beq.n 801415c <osThreadNew+0x11c>
  46935. hTask = NULL;
  46936. 8014158: 2300 movs r3, #0
  46937. 801415a: 613b str r3, [r7, #16]
  46938. #endif
  46939. }
  46940. }
  46941. }
  46942. return ((osThreadId_t)hTask);
  46943. 801415c: 693b ldr r3, [r7, #16]
  46944. }
  46945. 801415e: 4618 mov r0, r3
  46946. 8014160: 3728 adds r7, #40 @ 0x28
  46947. 8014162: 46bd mov sp, r7
  46948. 8014164: bd80 pop {r7, pc}
  46949. 08014166 <osDelay>:
  46950. /* Return flags before clearing */
  46951. return (rflags);
  46952. }
  46953. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  46954. osStatus_t osDelay (uint32_t ticks) {
  46955. 8014166: b580 push {r7, lr}
  46956. 8014168: b084 sub sp, #16
  46957. 801416a: af00 add r7, sp, #0
  46958. 801416c: 6078 str r0, [r7, #4]
  46959. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46960. 801416e: f3ef 8305 mrs r3, IPSR
  46961. 8014172: 60bb str r3, [r7, #8]
  46962. return(result);
  46963. 8014174: 68bb ldr r3, [r7, #8]
  46964. osStatus_t stat;
  46965. if (IS_IRQ()) {
  46966. 8014176: 2b00 cmp r3, #0
  46967. 8014178: d003 beq.n 8014182 <osDelay+0x1c>
  46968. stat = osErrorISR;
  46969. 801417a: f06f 0305 mvn.w r3, #5
  46970. 801417e: 60fb str r3, [r7, #12]
  46971. 8014180: e007 b.n 8014192 <osDelay+0x2c>
  46972. }
  46973. else {
  46974. stat = osOK;
  46975. 8014182: 2300 movs r3, #0
  46976. 8014184: 60fb str r3, [r7, #12]
  46977. if (ticks != 0U) {
  46978. 8014186: 687b ldr r3, [r7, #4]
  46979. 8014188: 2b00 cmp r3, #0
  46980. 801418a: d002 beq.n 8014192 <osDelay+0x2c>
  46981. vTaskDelay(ticks);
  46982. 801418c: 6878 ldr r0, [r7, #4]
  46983. 801418e: f001 ff37 bl 8016000 <vTaskDelay>
  46984. }
  46985. }
  46986. return (stat);
  46987. 8014192: 68fb ldr r3, [r7, #12]
  46988. }
  46989. 8014194: 4618 mov r0, r3
  46990. 8014196: 3710 adds r7, #16
  46991. 8014198: 46bd mov sp, r7
  46992. 801419a: bd80 pop {r7, pc}
  46993. 0801419c <TimerCallback>:
  46994. }
  46995. /*---------------------------------------------------------------------------*/
  46996. #if (configUSE_OS2_TIMER == 1)
  46997. static void TimerCallback (TimerHandle_t hTimer) {
  46998. 801419c: b580 push {r7, lr}
  46999. 801419e: b084 sub sp, #16
  47000. 80141a0: af00 add r7, sp, #0
  47001. 80141a2: 6078 str r0, [r7, #4]
  47002. TimerCallback_t *callb;
  47003. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  47004. 80141a4: 6878 ldr r0, [r7, #4]
  47005. 80141a6: f003 fc3d bl 8017a24 <pvTimerGetTimerID>
  47006. 80141aa: 60f8 str r0, [r7, #12]
  47007. if (callb != NULL) {
  47008. 80141ac: 68fb ldr r3, [r7, #12]
  47009. 80141ae: 2b00 cmp r3, #0
  47010. 80141b0: d005 beq.n 80141be <TimerCallback+0x22>
  47011. callb->func (callb->arg);
  47012. 80141b2: 68fb ldr r3, [r7, #12]
  47013. 80141b4: 681b ldr r3, [r3, #0]
  47014. 80141b6: 68fa ldr r2, [r7, #12]
  47015. 80141b8: 6852 ldr r2, [r2, #4]
  47016. 80141ba: 4610 mov r0, r2
  47017. 80141bc: 4798 blx r3
  47018. }
  47019. }
  47020. 80141be: bf00 nop
  47021. 80141c0: 3710 adds r7, #16
  47022. 80141c2: 46bd mov sp, r7
  47023. 80141c4: bd80 pop {r7, pc}
  47024. ...
  47025. 080141c8 <osTimerNew>:
  47026. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  47027. 80141c8: b580 push {r7, lr}
  47028. 80141ca: b08c sub sp, #48 @ 0x30
  47029. 80141cc: af02 add r7, sp, #8
  47030. 80141ce: 60f8 str r0, [r7, #12]
  47031. 80141d0: 607a str r2, [r7, #4]
  47032. 80141d2: 603b str r3, [r7, #0]
  47033. 80141d4: 460b mov r3, r1
  47034. 80141d6: 72fb strb r3, [r7, #11]
  47035. TimerHandle_t hTimer;
  47036. TimerCallback_t *callb;
  47037. UBaseType_t reload;
  47038. int32_t mem;
  47039. hTimer = NULL;
  47040. 80141d8: 2300 movs r3, #0
  47041. 80141da: 623b str r3, [r7, #32]
  47042. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47043. 80141dc: f3ef 8305 mrs r3, IPSR
  47044. 80141e0: 613b str r3, [r7, #16]
  47045. return(result);
  47046. 80141e2: 693b ldr r3, [r7, #16]
  47047. if (!IS_IRQ() && (func != NULL)) {
  47048. 80141e4: 2b00 cmp r3, #0
  47049. 80141e6: d163 bne.n 80142b0 <osTimerNew+0xe8>
  47050. 80141e8: 68fb ldr r3, [r7, #12]
  47051. 80141ea: 2b00 cmp r3, #0
  47052. 80141ec: d060 beq.n 80142b0 <osTimerNew+0xe8>
  47053. /* Allocate memory to store callback function and argument */
  47054. callb = pvPortMalloc (sizeof(TimerCallback_t));
  47055. 80141ee: 2008 movs r0, #8
  47056. 80141f0: f003 fe8c bl 8017f0c <pvPortMalloc>
  47057. 80141f4: 6178 str r0, [r7, #20]
  47058. if (callb != NULL) {
  47059. 80141f6: 697b ldr r3, [r7, #20]
  47060. 80141f8: 2b00 cmp r3, #0
  47061. 80141fa: d059 beq.n 80142b0 <osTimerNew+0xe8>
  47062. callb->func = func;
  47063. 80141fc: 697b ldr r3, [r7, #20]
  47064. 80141fe: 68fa ldr r2, [r7, #12]
  47065. 8014200: 601a str r2, [r3, #0]
  47066. callb->arg = argument;
  47067. 8014202: 697b ldr r3, [r7, #20]
  47068. 8014204: 687a ldr r2, [r7, #4]
  47069. 8014206: 605a str r2, [r3, #4]
  47070. if (type == osTimerOnce) {
  47071. 8014208: 7afb ldrb r3, [r7, #11]
  47072. 801420a: 2b00 cmp r3, #0
  47073. 801420c: d102 bne.n 8014214 <osTimerNew+0x4c>
  47074. reload = pdFALSE;
  47075. 801420e: 2300 movs r3, #0
  47076. 8014210: 61fb str r3, [r7, #28]
  47077. 8014212: e001 b.n 8014218 <osTimerNew+0x50>
  47078. } else {
  47079. reload = pdTRUE;
  47080. 8014214: 2301 movs r3, #1
  47081. 8014216: 61fb str r3, [r7, #28]
  47082. }
  47083. mem = -1;
  47084. 8014218: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47085. 801421c: 61bb str r3, [r7, #24]
  47086. name = NULL;
  47087. 801421e: 2300 movs r3, #0
  47088. 8014220: 627b str r3, [r7, #36] @ 0x24
  47089. if (attr != NULL) {
  47090. 8014222: 683b ldr r3, [r7, #0]
  47091. 8014224: 2b00 cmp r3, #0
  47092. 8014226: d01c beq.n 8014262 <osTimerNew+0x9a>
  47093. if (attr->name != NULL) {
  47094. 8014228: 683b ldr r3, [r7, #0]
  47095. 801422a: 681b ldr r3, [r3, #0]
  47096. 801422c: 2b00 cmp r3, #0
  47097. 801422e: d002 beq.n 8014236 <osTimerNew+0x6e>
  47098. name = attr->name;
  47099. 8014230: 683b ldr r3, [r7, #0]
  47100. 8014232: 681b ldr r3, [r3, #0]
  47101. 8014234: 627b str r3, [r7, #36] @ 0x24
  47102. }
  47103. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  47104. 8014236: 683b ldr r3, [r7, #0]
  47105. 8014238: 689b ldr r3, [r3, #8]
  47106. 801423a: 2b00 cmp r3, #0
  47107. 801423c: d006 beq.n 801424c <osTimerNew+0x84>
  47108. 801423e: 683b ldr r3, [r7, #0]
  47109. 8014240: 68db ldr r3, [r3, #12]
  47110. 8014242: 2b2b cmp r3, #43 @ 0x2b
  47111. 8014244: d902 bls.n 801424c <osTimerNew+0x84>
  47112. mem = 1;
  47113. 8014246: 2301 movs r3, #1
  47114. 8014248: 61bb str r3, [r7, #24]
  47115. 801424a: e00c b.n 8014266 <osTimerNew+0x9e>
  47116. }
  47117. else {
  47118. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47119. 801424c: 683b ldr r3, [r7, #0]
  47120. 801424e: 689b ldr r3, [r3, #8]
  47121. 8014250: 2b00 cmp r3, #0
  47122. 8014252: d108 bne.n 8014266 <osTimerNew+0x9e>
  47123. 8014254: 683b ldr r3, [r7, #0]
  47124. 8014256: 68db ldr r3, [r3, #12]
  47125. 8014258: 2b00 cmp r3, #0
  47126. 801425a: d104 bne.n 8014266 <osTimerNew+0x9e>
  47127. mem = 0;
  47128. 801425c: 2300 movs r3, #0
  47129. 801425e: 61bb str r3, [r7, #24]
  47130. 8014260: e001 b.n 8014266 <osTimerNew+0x9e>
  47131. }
  47132. }
  47133. }
  47134. else {
  47135. mem = 0;
  47136. 8014262: 2300 movs r3, #0
  47137. 8014264: 61bb str r3, [r7, #24]
  47138. }
  47139. if (mem == 1) {
  47140. 8014266: 69bb ldr r3, [r7, #24]
  47141. 8014268: 2b01 cmp r3, #1
  47142. 801426a: d10c bne.n 8014286 <osTimerNew+0xbe>
  47143. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47144. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  47145. 801426c: 683b ldr r3, [r7, #0]
  47146. 801426e: 689b ldr r3, [r3, #8]
  47147. 8014270: 9301 str r3, [sp, #4]
  47148. 8014272: 4b12 ldr r3, [pc, #72] @ (80142bc <osTimerNew+0xf4>)
  47149. 8014274: 9300 str r3, [sp, #0]
  47150. 8014276: 697b ldr r3, [r7, #20]
  47151. 8014278: 69fa ldr r2, [r7, #28]
  47152. 801427a: 2101 movs r1, #1
  47153. 801427c: 6a78 ldr r0, [r7, #36] @ 0x24
  47154. 801427e: f003 f81a bl 80172b6 <xTimerCreateStatic>
  47155. 8014282: 6238 str r0, [r7, #32]
  47156. 8014284: e00b b.n 801429e <osTimerNew+0xd6>
  47157. #endif
  47158. }
  47159. else {
  47160. if (mem == 0) {
  47161. 8014286: 69bb ldr r3, [r7, #24]
  47162. 8014288: 2b00 cmp r3, #0
  47163. 801428a: d108 bne.n 801429e <osTimerNew+0xd6>
  47164. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47165. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  47166. 801428c: 4b0b ldr r3, [pc, #44] @ (80142bc <osTimerNew+0xf4>)
  47167. 801428e: 9300 str r3, [sp, #0]
  47168. 8014290: 697b ldr r3, [r7, #20]
  47169. 8014292: 69fa ldr r2, [r7, #28]
  47170. 8014294: 2101 movs r1, #1
  47171. 8014296: 6a78 ldr r0, [r7, #36] @ 0x24
  47172. 8014298: f002 ffec bl 8017274 <xTimerCreate>
  47173. 801429c: 6238 str r0, [r7, #32]
  47174. #endif
  47175. }
  47176. }
  47177. if ((hTimer == NULL) && (callb != NULL)) {
  47178. 801429e: 6a3b ldr r3, [r7, #32]
  47179. 80142a0: 2b00 cmp r3, #0
  47180. 80142a2: d105 bne.n 80142b0 <osTimerNew+0xe8>
  47181. 80142a4: 697b ldr r3, [r7, #20]
  47182. 80142a6: 2b00 cmp r3, #0
  47183. 80142a8: d002 beq.n 80142b0 <osTimerNew+0xe8>
  47184. vPortFree (callb);
  47185. 80142aa: 6978 ldr r0, [r7, #20]
  47186. 80142ac: f003 fefc bl 80180a8 <vPortFree>
  47187. }
  47188. }
  47189. }
  47190. return ((osTimerId_t)hTimer);
  47191. 80142b0: 6a3b ldr r3, [r7, #32]
  47192. }
  47193. 80142b2: 4618 mov r0, r3
  47194. 80142b4: 3728 adds r7, #40 @ 0x28
  47195. 80142b6: 46bd mov sp, r7
  47196. 80142b8: bd80 pop {r7, pc}
  47197. 80142ba: bf00 nop
  47198. 80142bc: 0801419d .word 0x0801419d
  47199. 080142c0 <osTimerStart>:
  47200. }
  47201. return (p);
  47202. }
  47203. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  47204. 80142c0: b580 push {r7, lr}
  47205. 80142c2: b088 sub sp, #32
  47206. 80142c4: af02 add r7, sp, #8
  47207. 80142c6: 6078 str r0, [r7, #4]
  47208. 80142c8: 6039 str r1, [r7, #0]
  47209. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47210. 80142ca: 687b ldr r3, [r7, #4]
  47211. 80142cc: 613b str r3, [r7, #16]
  47212. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47213. 80142ce: f3ef 8305 mrs r3, IPSR
  47214. 80142d2: 60fb str r3, [r7, #12]
  47215. return(result);
  47216. 80142d4: 68fb ldr r3, [r7, #12]
  47217. osStatus_t stat;
  47218. if (IS_IRQ()) {
  47219. 80142d6: 2b00 cmp r3, #0
  47220. 80142d8: d003 beq.n 80142e2 <osTimerStart+0x22>
  47221. stat = osErrorISR;
  47222. 80142da: f06f 0305 mvn.w r3, #5
  47223. 80142de: 617b str r3, [r7, #20]
  47224. 80142e0: e017 b.n 8014312 <osTimerStart+0x52>
  47225. }
  47226. else if (hTimer == NULL) {
  47227. 80142e2: 693b ldr r3, [r7, #16]
  47228. 80142e4: 2b00 cmp r3, #0
  47229. 80142e6: d103 bne.n 80142f0 <osTimerStart+0x30>
  47230. stat = osErrorParameter;
  47231. 80142e8: f06f 0303 mvn.w r3, #3
  47232. 80142ec: 617b str r3, [r7, #20]
  47233. 80142ee: e010 b.n 8014312 <osTimerStart+0x52>
  47234. }
  47235. else {
  47236. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  47237. 80142f0: 2300 movs r3, #0
  47238. 80142f2: 9300 str r3, [sp, #0]
  47239. 80142f4: 2300 movs r3, #0
  47240. 80142f6: 683a ldr r2, [r7, #0]
  47241. 80142f8: 2104 movs r1, #4
  47242. 80142fa: 6938 ldr r0, [r7, #16]
  47243. 80142fc: f003 f858 bl 80173b0 <xTimerGenericCommand>
  47244. 8014300: 4603 mov r3, r0
  47245. 8014302: 2b01 cmp r3, #1
  47246. 8014304: d102 bne.n 801430c <osTimerStart+0x4c>
  47247. stat = osOK;
  47248. 8014306: 2300 movs r3, #0
  47249. 8014308: 617b str r3, [r7, #20]
  47250. 801430a: e002 b.n 8014312 <osTimerStart+0x52>
  47251. } else {
  47252. stat = osErrorResource;
  47253. 801430c: f06f 0302 mvn.w r3, #2
  47254. 8014310: 617b str r3, [r7, #20]
  47255. }
  47256. }
  47257. return (stat);
  47258. 8014312: 697b ldr r3, [r7, #20]
  47259. }
  47260. 8014314: 4618 mov r0, r3
  47261. 8014316: 3718 adds r7, #24
  47262. 8014318: 46bd mov sp, r7
  47263. 801431a: bd80 pop {r7, pc}
  47264. 0801431c <osTimerStop>:
  47265. osStatus_t osTimerStop (osTimerId_t timer_id) {
  47266. 801431c: b580 push {r7, lr}
  47267. 801431e: b088 sub sp, #32
  47268. 8014320: af02 add r7, sp, #8
  47269. 8014322: 6078 str r0, [r7, #4]
  47270. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47271. 8014324: 687b ldr r3, [r7, #4]
  47272. 8014326: 613b str r3, [r7, #16]
  47273. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47274. 8014328: f3ef 8305 mrs r3, IPSR
  47275. 801432c: 60fb str r3, [r7, #12]
  47276. return(result);
  47277. 801432e: 68fb ldr r3, [r7, #12]
  47278. osStatus_t stat;
  47279. if (IS_IRQ()) {
  47280. 8014330: 2b00 cmp r3, #0
  47281. 8014332: d003 beq.n 801433c <osTimerStop+0x20>
  47282. stat = osErrorISR;
  47283. 8014334: f06f 0305 mvn.w r3, #5
  47284. 8014338: 617b str r3, [r7, #20]
  47285. 801433a: e021 b.n 8014380 <osTimerStop+0x64>
  47286. }
  47287. else if (hTimer == NULL) {
  47288. 801433c: 693b ldr r3, [r7, #16]
  47289. 801433e: 2b00 cmp r3, #0
  47290. 8014340: d103 bne.n 801434a <osTimerStop+0x2e>
  47291. stat = osErrorParameter;
  47292. 8014342: f06f 0303 mvn.w r3, #3
  47293. 8014346: 617b str r3, [r7, #20]
  47294. 8014348: e01a b.n 8014380 <osTimerStop+0x64>
  47295. }
  47296. else {
  47297. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  47298. 801434a: 6938 ldr r0, [r7, #16]
  47299. 801434c: f003 fb40 bl 80179d0 <xTimerIsTimerActive>
  47300. 8014350: 4603 mov r3, r0
  47301. 8014352: 2b00 cmp r3, #0
  47302. 8014354: d103 bne.n 801435e <osTimerStop+0x42>
  47303. stat = osErrorResource;
  47304. 8014356: f06f 0302 mvn.w r3, #2
  47305. 801435a: 617b str r3, [r7, #20]
  47306. 801435c: e010 b.n 8014380 <osTimerStop+0x64>
  47307. }
  47308. else {
  47309. if (xTimerStop (hTimer, 0) == pdPASS) {
  47310. 801435e: 2300 movs r3, #0
  47311. 8014360: 9300 str r3, [sp, #0]
  47312. 8014362: 2300 movs r3, #0
  47313. 8014364: 2200 movs r2, #0
  47314. 8014366: 2103 movs r1, #3
  47315. 8014368: 6938 ldr r0, [r7, #16]
  47316. 801436a: f003 f821 bl 80173b0 <xTimerGenericCommand>
  47317. 801436e: 4603 mov r3, r0
  47318. 8014370: 2b01 cmp r3, #1
  47319. 8014372: d102 bne.n 801437a <osTimerStop+0x5e>
  47320. stat = osOK;
  47321. 8014374: 2300 movs r3, #0
  47322. 8014376: 617b str r3, [r7, #20]
  47323. 8014378: e002 b.n 8014380 <osTimerStop+0x64>
  47324. } else {
  47325. stat = osError;
  47326. 801437a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47327. 801437e: 617b str r3, [r7, #20]
  47328. }
  47329. }
  47330. }
  47331. return (stat);
  47332. 8014380: 697b ldr r3, [r7, #20]
  47333. }
  47334. 8014382: 4618 mov r0, r3
  47335. 8014384: 3718 adds r7, #24
  47336. 8014386: 46bd mov sp, r7
  47337. 8014388: bd80 pop {r7, pc}
  47338. 0801438a <osMutexNew>:
  47339. }
  47340. /*---------------------------------------------------------------------------*/
  47341. #if (configUSE_OS2_MUTEX == 1)
  47342. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  47343. 801438a: b580 push {r7, lr}
  47344. 801438c: b088 sub sp, #32
  47345. 801438e: af00 add r7, sp, #0
  47346. 8014390: 6078 str r0, [r7, #4]
  47347. int32_t mem;
  47348. #if (configQUEUE_REGISTRY_SIZE > 0)
  47349. const char *name;
  47350. #endif
  47351. hMutex = NULL;
  47352. 8014392: 2300 movs r3, #0
  47353. 8014394: 61fb str r3, [r7, #28]
  47354. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47355. 8014396: f3ef 8305 mrs r3, IPSR
  47356. 801439a: 60bb str r3, [r7, #8]
  47357. return(result);
  47358. 801439c: 68bb ldr r3, [r7, #8]
  47359. if (!IS_IRQ()) {
  47360. 801439e: 2b00 cmp r3, #0
  47361. 80143a0: d174 bne.n 801448c <osMutexNew+0x102>
  47362. if (attr != NULL) {
  47363. 80143a2: 687b ldr r3, [r7, #4]
  47364. 80143a4: 2b00 cmp r3, #0
  47365. 80143a6: d003 beq.n 80143b0 <osMutexNew+0x26>
  47366. type = attr->attr_bits;
  47367. 80143a8: 687b ldr r3, [r7, #4]
  47368. 80143aa: 685b ldr r3, [r3, #4]
  47369. 80143ac: 61bb str r3, [r7, #24]
  47370. 80143ae: e001 b.n 80143b4 <osMutexNew+0x2a>
  47371. } else {
  47372. type = 0U;
  47373. 80143b0: 2300 movs r3, #0
  47374. 80143b2: 61bb str r3, [r7, #24]
  47375. }
  47376. if ((type & osMutexRecursive) == osMutexRecursive) {
  47377. 80143b4: 69bb ldr r3, [r7, #24]
  47378. 80143b6: f003 0301 and.w r3, r3, #1
  47379. 80143ba: 2b00 cmp r3, #0
  47380. 80143bc: d002 beq.n 80143c4 <osMutexNew+0x3a>
  47381. rmtx = 1U;
  47382. 80143be: 2301 movs r3, #1
  47383. 80143c0: 617b str r3, [r7, #20]
  47384. 80143c2: e001 b.n 80143c8 <osMutexNew+0x3e>
  47385. } else {
  47386. rmtx = 0U;
  47387. 80143c4: 2300 movs r3, #0
  47388. 80143c6: 617b str r3, [r7, #20]
  47389. }
  47390. if ((type & osMutexRobust) != osMutexRobust) {
  47391. 80143c8: 69bb ldr r3, [r7, #24]
  47392. 80143ca: f003 0308 and.w r3, r3, #8
  47393. 80143ce: 2b00 cmp r3, #0
  47394. 80143d0: d15c bne.n 801448c <osMutexNew+0x102>
  47395. mem = -1;
  47396. 80143d2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47397. 80143d6: 613b str r3, [r7, #16]
  47398. if (attr != NULL) {
  47399. 80143d8: 687b ldr r3, [r7, #4]
  47400. 80143da: 2b00 cmp r3, #0
  47401. 80143dc: d015 beq.n 801440a <osMutexNew+0x80>
  47402. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  47403. 80143de: 687b ldr r3, [r7, #4]
  47404. 80143e0: 689b ldr r3, [r3, #8]
  47405. 80143e2: 2b00 cmp r3, #0
  47406. 80143e4: d006 beq.n 80143f4 <osMutexNew+0x6a>
  47407. 80143e6: 687b ldr r3, [r7, #4]
  47408. 80143e8: 68db ldr r3, [r3, #12]
  47409. 80143ea: 2b4f cmp r3, #79 @ 0x4f
  47410. 80143ec: d902 bls.n 80143f4 <osMutexNew+0x6a>
  47411. mem = 1;
  47412. 80143ee: 2301 movs r3, #1
  47413. 80143f0: 613b str r3, [r7, #16]
  47414. 80143f2: e00c b.n 801440e <osMutexNew+0x84>
  47415. }
  47416. else {
  47417. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47418. 80143f4: 687b ldr r3, [r7, #4]
  47419. 80143f6: 689b ldr r3, [r3, #8]
  47420. 80143f8: 2b00 cmp r3, #0
  47421. 80143fa: d108 bne.n 801440e <osMutexNew+0x84>
  47422. 80143fc: 687b ldr r3, [r7, #4]
  47423. 80143fe: 68db ldr r3, [r3, #12]
  47424. 8014400: 2b00 cmp r3, #0
  47425. 8014402: d104 bne.n 801440e <osMutexNew+0x84>
  47426. mem = 0;
  47427. 8014404: 2300 movs r3, #0
  47428. 8014406: 613b str r3, [r7, #16]
  47429. 8014408: e001 b.n 801440e <osMutexNew+0x84>
  47430. }
  47431. }
  47432. }
  47433. else {
  47434. mem = 0;
  47435. 801440a: 2300 movs r3, #0
  47436. 801440c: 613b str r3, [r7, #16]
  47437. }
  47438. if (mem == 1) {
  47439. 801440e: 693b ldr r3, [r7, #16]
  47440. 8014410: 2b01 cmp r3, #1
  47441. 8014412: d112 bne.n 801443a <osMutexNew+0xb0>
  47442. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47443. if (rmtx != 0U) {
  47444. 8014414: 697b ldr r3, [r7, #20]
  47445. 8014416: 2b00 cmp r3, #0
  47446. 8014418: d007 beq.n 801442a <osMutexNew+0xa0>
  47447. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47448. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  47449. 801441a: 687b ldr r3, [r7, #4]
  47450. 801441c: 689b ldr r3, [r3, #8]
  47451. 801441e: 4619 mov r1, r3
  47452. 8014420: 2004 movs r0, #4
  47453. 8014422: f000 fc50 bl 8014cc6 <xQueueCreateMutexStatic>
  47454. 8014426: 61f8 str r0, [r7, #28]
  47455. 8014428: e016 b.n 8014458 <osMutexNew+0xce>
  47456. #endif
  47457. }
  47458. else {
  47459. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  47460. 801442a: 687b ldr r3, [r7, #4]
  47461. 801442c: 689b ldr r3, [r3, #8]
  47462. 801442e: 4619 mov r1, r3
  47463. 8014430: 2001 movs r0, #1
  47464. 8014432: f000 fc48 bl 8014cc6 <xQueueCreateMutexStatic>
  47465. 8014436: 61f8 str r0, [r7, #28]
  47466. 8014438: e00e b.n 8014458 <osMutexNew+0xce>
  47467. }
  47468. #endif
  47469. }
  47470. else {
  47471. if (mem == 0) {
  47472. 801443a: 693b ldr r3, [r7, #16]
  47473. 801443c: 2b00 cmp r3, #0
  47474. 801443e: d10b bne.n 8014458 <osMutexNew+0xce>
  47475. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47476. if (rmtx != 0U) {
  47477. 8014440: 697b ldr r3, [r7, #20]
  47478. 8014442: 2b00 cmp r3, #0
  47479. 8014444: d004 beq.n 8014450 <osMutexNew+0xc6>
  47480. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47481. hMutex = xSemaphoreCreateRecursiveMutex ();
  47482. 8014446: 2004 movs r0, #4
  47483. 8014448: f000 fc25 bl 8014c96 <xQueueCreateMutex>
  47484. 801444c: 61f8 str r0, [r7, #28]
  47485. 801444e: e003 b.n 8014458 <osMutexNew+0xce>
  47486. #endif
  47487. } else {
  47488. hMutex = xSemaphoreCreateMutex ();
  47489. 8014450: 2001 movs r0, #1
  47490. 8014452: f000 fc20 bl 8014c96 <xQueueCreateMutex>
  47491. 8014456: 61f8 str r0, [r7, #28]
  47492. #endif
  47493. }
  47494. }
  47495. #if (configQUEUE_REGISTRY_SIZE > 0)
  47496. if (hMutex != NULL) {
  47497. 8014458: 69fb ldr r3, [r7, #28]
  47498. 801445a: 2b00 cmp r3, #0
  47499. 801445c: d00c beq.n 8014478 <osMutexNew+0xee>
  47500. if (attr != NULL) {
  47501. 801445e: 687b ldr r3, [r7, #4]
  47502. 8014460: 2b00 cmp r3, #0
  47503. 8014462: d003 beq.n 801446c <osMutexNew+0xe2>
  47504. name = attr->name;
  47505. 8014464: 687b ldr r3, [r7, #4]
  47506. 8014466: 681b ldr r3, [r3, #0]
  47507. 8014468: 60fb str r3, [r7, #12]
  47508. 801446a: e001 b.n 8014470 <osMutexNew+0xe6>
  47509. } else {
  47510. name = NULL;
  47511. 801446c: 2300 movs r3, #0
  47512. 801446e: 60fb str r3, [r7, #12]
  47513. }
  47514. vQueueAddToRegistry (hMutex, name);
  47515. 8014470: 68f9 ldr r1, [r7, #12]
  47516. 8014472: 69f8 ldr r0, [r7, #28]
  47517. 8014474: f001 f9ea bl 801584c <vQueueAddToRegistry>
  47518. }
  47519. #endif
  47520. if ((hMutex != NULL) && (rmtx != 0U)) {
  47521. 8014478: 69fb ldr r3, [r7, #28]
  47522. 801447a: 2b00 cmp r3, #0
  47523. 801447c: d006 beq.n 801448c <osMutexNew+0x102>
  47524. 801447e: 697b ldr r3, [r7, #20]
  47525. 8014480: 2b00 cmp r3, #0
  47526. 8014482: d003 beq.n 801448c <osMutexNew+0x102>
  47527. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  47528. 8014484: 69fb ldr r3, [r7, #28]
  47529. 8014486: f043 0301 orr.w r3, r3, #1
  47530. 801448a: 61fb str r3, [r7, #28]
  47531. }
  47532. }
  47533. }
  47534. return ((osMutexId_t)hMutex);
  47535. 801448c: 69fb ldr r3, [r7, #28]
  47536. }
  47537. 801448e: 4618 mov r0, r3
  47538. 8014490: 3720 adds r7, #32
  47539. 8014492: 46bd mov sp, r7
  47540. 8014494: bd80 pop {r7, pc}
  47541. 08014496 <osMutexAcquire>:
  47542. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  47543. 8014496: b580 push {r7, lr}
  47544. 8014498: b086 sub sp, #24
  47545. 801449a: af00 add r7, sp, #0
  47546. 801449c: 6078 str r0, [r7, #4]
  47547. 801449e: 6039 str r1, [r7, #0]
  47548. SemaphoreHandle_t hMutex;
  47549. osStatus_t stat;
  47550. uint32_t rmtx;
  47551. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47552. 80144a0: 687b ldr r3, [r7, #4]
  47553. 80144a2: f023 0301 bic.w r3, r3, #1
  47554. 80144a6: 613b str r3, [r7, #16]
  47555. rmtx = (uint32_t)mutex_id & 1U;
  47556. 80144a8: 687b ldr r3, [r7, #4]
  47557. 80144aa: f003 0301 and.w r3, r3, #1
  47558. 80144ae: 60fb str r3, [r7, #12]
  47559. stat = osOK;
  47560. 80144b0: 2300 movs r3, #0
  47561. 80144b2: 617b str r3, [r7, #20]
  47562. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47563. 80144b4: f3ef 8305 mrs r3, IPSR
  47564. 80144b8: 60bb str r3, [r7, #8]
  47565. return(result);
  47566. 80144ba: 68bb ldr r3, [r7, #8]
  47567. if (IS_IRQ()) {
  47568. 80144bc: 2b00 cmp r3, #0
  47569. 80144be: d003 beq.n 80144c8 <osMutexAcquire+0x32>
  47570. stat = osErrorISR;
  47571. 80144c0: f06f 0305 mvn.w r3, #5
  47572. 80144c4: 617b str r3, [r7, #20]
  47573. 80144c6: e02c b.n 8014522 <osMutexAcquire+0x8c>
  47574. }
  47575. else if (hMutex == NULL) {
  47576. 80144c8: 693b ldr r3, [r7, #16]
  47577. 80144ca: 2b00 cmp r3, #0
  47578. 80144cc: d103 bne.n 80144d6 <osMutexAcquire+0x40>
  47579. stat = osErrorParameter;
  47580. 80144ce: f06f 0303 mvn.w r3, #3
  47581. 80144d2: 617b str r3, [r7, #20]
  47582. 80144d4: e025 b.n 8014522 <osMutexAcquire+0x8c>
  47583. }
  47584. else {
  47585. if (rmtx != 0U) {
  47586. 80144d6: 68fb ldr r3, [r7, #12]
  47587. 80144d8: 2b00 cmp r3, #0
  47588. 80144da: d011 beq.n 8014500 <osMutexAcquire+0x6a>
  47589. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47590. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  47591. 80144dc: 6839 ldr r1, [r7, #0]
  47592. 80144de: 6938 ldr r0, [r7, #16]
  47593. 80144e0: f000 fc41 bl 8014d66 <xQueueTakeMutexRecursive>
  47594. 80144e4: 4603 mov r3, r0
  47595. 80144e6: 2b01 cmp r3, #1
  47596. 80144e8: d01b beq.n 8014522 <osMutexAcquire+0x8c>
  47597. if (timeout != 0U) {
  47598. 80144ea: 683b ldr r3, [r7, #0]
  47599. 80144ec: 2b00 cmp r3, #0
  47600. 80144ee: d003 beq.n 80144f8 <osMutexAcquire+0x62>
  47601. stat = osErrorTimeout;
  47602. 80144f0: f06f 0301 mvn.w r3, #1
  47603. 80144f4: 617b str r3, [r7, #20]
  47604. 80144f6: e014 b.n 8014522 <osMutexAcquire+0x8c>
  47605. } else {
  47606. stat = osErrorResource;
  47607. 80144f8: f06f 0302 mvn.w r3, #2
  47608. 80144fc: 617b str r3, [r7, #20]
  47609. 80144fe: e010 b.n 8014522 <osMutexAcquire+0x8c>
  47610. }
  47611. }
  47612. #endif
  47613. }
  47614. else {
  47615. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  47616. 8014500: 6839 ldr r1, [r7, #0]
  47617. 8014502: 6938 ldr r0, [r7, #16]
  47618. 8014504: f000 fee8 bl 80152d8 <xQueueSemaphoreTake>
  47619. 8014508: 4603 mov r3, r0
  47620. 801450a: 2b01 cmp r3, #1
  47621. 801450c: d009 beq.n 8014522 <osMutexAcquire+0x8c>
  47622. if (timeout != 0U) {
  47623. 801450e: 683b ldr r3, [r7, #0]
  47624. 8014510: 2b00 cmp r3, #0
  47625. 8014512: d003 beq.n 801451c <osMutexAcquire+0x86>
  47626. stat = osErrorTimeout;
  47627. 8014514: f06f 0301 mvn.w r3, #1
  47628. 8014518: 617b str r3, [r7, #20]
  47629. 801451a: e002 b.n 8014522 <osMutexAcquire+0x8c>
  47630. } else {
  47631. stat = osErrorResource;
  47632. 801451c: f06f 0302 mvn.w r3, #2
  47633. 8014520: 617b str r3, [r7, #20]
  47634. }
  47635. }
  47636. }
  47637. }
  47638. return (stat);
  47639. 8014522: 697b ldr r3, [r7, #20]
  47640. }
  47641. 8014524: 4618 mov r0, r3
  47642. 8014526: 3718 adds r7, #24
  47643. 8014528: 46bd mov sp, r7
  47644. 801452a: bd80 pop {r7, pc}
  47645. 0801452c <osMutexRelease>:
  47646. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  47647. 801452c: b580 push {r7, lr}
  47648. 801452e: b086 sub sp, #24
  47649. 8014530: af00 add r7, sp, #0
  47650. 8014532: 6078 str r0, [r7, #4]
  47651. SemaphoreHandle_t hMutex;
  47652. osStatus_t stat;
  47653. uint32_t rmtx;
  47654. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47655. 8014534: 687b ldr r3, [r7, #4]
  47656. 8014536: f023 0301 bic.w r3, r3, #1
  47657. 801453a: 613b str r3, [r7, #16]
  47658. rmtx = (uint32_t)mutex_id & 1U;
  47659. 801453c: 687b ldr r3, [r7, #4]
  47660. 801453e: f003 0301 and.w r3, r3, #1
  47661. 8014542: 60fb str r3, [r7, #12]
  47662. stat = osOK;
  47663. 8014544: 2300 movs r3, #0
  47664. 8014546: 617b str r3, [r7, #20]
  47665. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47666. 8014548: f3ef 8305 mrs r3, IPSR
  47667. 801454c: 60bb str r3, [r7, #8]
  47668. return(result);
  47669. 801454e: 68bb ldr r3, [r7, #8]
  47670. if (IS_IRQ()) {
  47671. 8014550: 2b00 cmp r3, #0
  47672. 8014552: d003 beq.n 801455c <osMutexRelease+0x30>
  47673. stat = osErrorISR;
  47674. 8014554: f06f 0305 mvn.w r3, #5
  47675. 8014558: 617b str r3, [r7, #20]
  47676. 801455a: e01f b.n 801459c <osMutexRelease+0x70>
  47677. }
  47678. else if (hMutex == NULL) {
  47679. 801455c: 693b ldr r3, [r7, #16]
  47680. 801455e: 2b00 cmp r3, #0
  47681. 8014560: d103 bne.n 801456a <osMutexRelease+0x3e>
  47682. stat = osErrorParameter;
  47683. 8014562: f06f 0303 mvn.w r3, #3
  47684. 8014566: 617b str r3, [r7, #20]
  47685. 8014568: e018 b.n 801459c <osMutexRelease+0x70>
  47686. }
  47687. else {
  47688. if (rmtx != 0U) {
  47689. 801456a: 68fb ldr r3, [r7, #12]
  47690. 801456c: 2b00 cmp r3, #0
  47691. 801456e: d009 beq.n 8014584 <osMutexRelease+0x58>
  47692. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47693. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  47694. 8014570: 6938 ldr r0, [r7, #16]
  47695. 8014572: f000 fbc3 bl 8014cfc <xQueueGiveMutexRecursive>
  47696. 8014576: 4603 mov r3, r0
  47697. 8014578: 2b01 cmp r3, #1
  47698. 801457a: d00f beq.n 801459c <osMutexRelease+0x70>
  47699. stat = osErrorResource;
  47700. 801457c: f06f 0302 mvn.w r3, #2
  47701. 8014580: 617b str r3, [r7, #20]
  47702. 8014582: e00b b.n 801459c <osMutexRelease+0x70>
  47703. }
  47704. #endif
  47705. }
  47706. else {
  47707. if (xSemaphoreGive (hMutex) != pdPASS) {
  47708. 8014584: 2300 movs r3, #0
  47709. 8014586: 2200 movs r2, #0
  47710. 8014588: 2100 movs r1, #0
  47711. 801458a: 6938 ldr r0, [r7, #16]
  47712. 801458c: f000 fc22 bl 8014dd4 <xQueueGenericSend>
  47713. 8014590: 4603 mov r3, r0
  47714. 8014592: 2b01 cmp r3, #1
  47715. 8014594: d002 beq.n 801459c <osMutexRelease+0x70>
  47716. stat = osErrorResource;
  47717. 8014596: f06f 0302 mvn.w r3, #2
  47718. 801459a: 617b str r3, [r7, #20]
  47719. }
  47720. }
  47721. }
  47722. return (stat);
  47723. 801459c: 697b ldr r3, [r7, #20]
  47724. }
  47725. 801459e: 4618 mov r0, r3
  47726. 80145a0: 3718 adds r7, #24
  47727. 80145a2: 46bd mov sp, r7
  47728. 80145a4: bd80 pop {r7, pc}
  47729. 080145a6 <osMessageQueueNew>:
  47730. return (stat);
  47731. }
  47732. /*---------------------------------------------------------------------------*/
  47733. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  47734. 80145a6: b580 push {r7, lr}
  47735. 80145a8: b08a sub sp, #40 @ 0x28
  47736. 80145aa: af02 add r7, sp, #8
  47737. 80145ac: 60f8 str r0, [r7, #12]
  47738. 80145ae: 60b9 str r1, [r7, #8]
  47739. 80145b0: 607a str r2, [r7, #4]
  47740. int32_t mem;
  47741. #if (configQUEUE_REGISTRY_SIZE > 0)
  47742. const char *name;
  47743. #endif
  47744. hQueue = NULL;
  47745. 80145b2: 2300 movs r3, #0
  47746. 80145b4: 61fb str r3, [r7, #28]
  47747. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47748. 80145b6: f3ef 8305 mrs r3, IPSR
  47749. 80145ba: 613b str r3, [r7, #16]
  47750. return(result);
  47751. 80145bc: 693b ldr r3, [r7, #16]
  47752. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  47753. 80145be: 2b00 cmp r3, #0
  47754. 80145c0: d15f bne.n 8014682 <osMessageQueueNew+0xdc>
  47755. 80145c2: 68fb ldr r3, [r7, #12]
  47756. 80145c4: 2b00 cmp r3, #0
  47757. 80145c6: d05c beq.n 8014682 <osMessageQueueNew+0xdc>
  47758. 80145c8: 68bb ldr r3, [r7, #8]
  47759. 80145ca: 2b00 cmp r3, #0
  47760. 80145cc: d059 beq.n 8014682 <osMessageQueueNew+0xdc>
  47761. mem = -1;
  47762. 80145ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47763. 80145d2: 61bb str r3, [r7, #24]
  47764. if (attr != NULL) {
  47765. 80145d4: 687b ldr r3, [r7, #4]
  47766. 80145d6: 2b00 cmp r3, #0
  47767. 80145d8: d029 beq.n 801462e <osMessageQueueNew+0x88>
  47768. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47769. 80145da: 687b ldr r3, [r7, #4]
  47770. 80145dc: 689b ldr r3, [r3, #8]
  47771. 80145de: 2b00 cmp r3, #0
  47772. 80145e0: d012 beq.n 8014608 <osMessageQueueNew+0x62>
  47773. 80145e2: 687b ldr r3, [r7, #4]
  47774. 80145e4: 68db ldr r3, [r3, #12]
  47775. 80145e6: 2b4f cmp r3, #79 @ 0x4f
  47776. 80145e8: d90e bls.n 8014608 <osMessageQueueNew+0x62>
  47777. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47778. 80145ea: 687b ldr r3, [r7, #4]
  47779. 80145ec: 691b ldr r3, [r3, #16]
  47780. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47781. 80145ee: 2b00 cmp r3, #0
  47782. 80145f0: d00a beq.n 8014608 <osMessageQueueNew+0x62>
  47783. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47784. 80145f2: 687b ldr r3, [r7, #4]
  47785. 80145f4: 695a ldr r2, [r3, #20]
  47786. 80145f6: 68fb ldr r3, [r7, #12]
  47787. 80145f8: 68b9 ldr r1, [r7, #8]
  47788. 80145fa: fb01 f303 mul.w r3, r1, r3
  47789. 80145fe: 429a cmp r2, r3
  47790. 8014600: d302 bcc.n 8014608 <osMessageQueueNew+0x62>
  47791. mem = 1;
  47792. 8014602: 2301 movs r3, #1
  47793. 8014604: 61bb str r3, [r7, #24]
  47794. 8014606: e014 b.n 8014632 <osMessageQueueNew+0x8c>
  47795. }
  47796. else {
  47797. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47798. 8014608: 687b ldr r3, [r7, #4]
  47799. 801460a: 689b ldr r3, [r3, #8]
  47800. 801460c: 2b00 cmp r3, #0
  47801. 801460e: d110 bne.n 8014632 <osMessageQueueNew+0x8c>
  47802. 8014610: 687b ldr r3, [r7, #4]
  47803. 8014612: 68db ldr r3, [r3, #12]
  47804. 8014614: 2b00 cmp r3, #0
  47805. 8014616: d10c bne.n 8014632 <osMessageQueueNew+0x8c>
  47806. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47807. 8014618: 687b ldr r3, [r7, #4]
  47808. 801461a: 691b ldr r3, [r3, #16]
  47809. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47810. 801461c: 2b00 cmp r3, #0
  47811. 801461e: d108 bne.n 8014632 <osMessageQueueNew+0x8c>
  47812. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47813. 8014620: 687b ldr r3, [r7, #4]
  47814. 8014622: 695b ldr r3, [r3, #20]
  47815. 8014624: 2b00 cmp r3, #0
  47816. 8014626: d104 bne.n 8014632 <osMessageQueueNew+0x8c>
  47817. mem = 0;
  47818. 8014628: 2300 movs r3, #0
  47819. 801462a: 61bb str r3, [r7, #24]
  47820. 801462c: e001 b.n 8014632 <osMessageQueueNew+0x8c>
  47821. }
  47822. }
  47823. }
  47824. else {
  47825. mem = 0;
  47826. 801462e: 2300 movs r3, #0
  47827. 8014630: 61bb str r3, [r7, #24]
  47828. }
  47829. if (mem == 1) {
  47830. 8014632: 69bb ldr r3, [r7, #24]
  47831. 8014634: 2b01 cmp r3, #1
  47832. 8014636: d10b bne.n 8014650 <osMessageQueueNew+0xaa>
  47833. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47834. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  47835. 8014638: 687b ldr r3, [r7, #4]
  47836. 801463a: 691a ldr r2, [r3, #16]
  47837. 801463c: 687b ldr r3, [r7, #4]
  47838. 801463e: 689b ldr r3, [r3, #8]
  47839. 8014640: 2100 movs r1, #0
  47840. 8014642: 9100 str r1, [sp, #0]
  47841. 8014644: 68b9 ldr r1, [r7, #8]
  47842. 8014646: 68f8 ldr r0, [r7, #12]
  47843. 8014648: f000 fa30 bl 8014aac <xQueueGenericCreateStatic>
  47844. 801464c: 61f8 str r0, [r7, #28]
  47845. 801464e: e008 b.n 8014662 <osMessageQueueNew+0xbc>
  47846. #endif
  47847. }
  47848. else {
  47849. if (mem == 0) {
  47850. 8014650: 69bb ldr r3, [r7, #24]
  47851. 8014652: 2b00 cmp r3, #0
  47852. 8014654: d105 bne.n 8014662 <osMessageQueueNew+0xbc>
  47853. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47854. hQueue = xQueueCreate (msg_count, msg_size);
  47855. 8014656: 2200 movs r2, #0
  47856. 8014658: 68b9 ldr r1, [r7, #8]
  47857. 801465a: 68f8 ldr r0, [r7, #12]
  47858. 801465c: f000 faa3 bl 8014ba6 <xQueueGenericCreate>
  47859. 8014660: 61f8 str r0, [r7, #28]
  47860. #endif
  47861. }
  47862. }
  47863. #if (configQUEUE_REGISTRY_SIZE > 0)
  47864. if (hQueue != NULL) {
  47865. 8014662: 69fb ldr r3, [r7, #28]
  47866. 8014664: 2b00 cmp r3, #0
  47867. 8014666: d00c beq.n 8014682 <osMessageQueueNew+0xdc>
  47868. if (attr != NULL) {
  47869. 8014668: 687b ldr r3, [r7, #4]
  47870. 801466a: 2b00 cmp r3, #0
  47871. 801466c: d003 beq.n 8014676 <osMessageQueueNew+0xd0>
  47872. name = attr->name;
  47873. 801466e: 687b ldr r3, [r7, #4]
  47874. 8014670: 681b ldr r3, [r3, #0]
  47875. 8014672: 617b str r3, [r7, #20]
  47876. 8014674: e001 b.n 801467a <osMessageQueueNew+0xd4>
  47877. } else {
  47878. name = NULL;
  47879. 8014676: 2300 movs r3, #0
  47880. 8014678: 617b str r3, [r7, #20]
  47881. }
  47882. vQueueAddToRegistry (hQueue, name);
  47883. 801467a: 6979 ldr r1, [r7, #20]
  47884. 801467c: 69f8 ldr r0, [r7, #28]
  47885. 801467e: f001 f8e5 bl 801584c <vQueueAddToRegistry>
  47886. }
  47887. #endif
  47888. }
  47889. return ((osMessageQueueId_t)hQueue);
  47890. 8014682: 69fb ldr r3, [r7, #28]
  47891. }
  47892. 8014684: 4618 mov r0, r3
  47893. 8014686: 3720 adds r7, #32
  47894. 8014688: 46bd mov sp, r7
  47895. 801468a: bd80 pop {r7, pc}
  47896. 0801468c <osMessageQueuePut>:
  47897. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47898. 801468c: b580 push {r7, lr}
  47899. 801468e: b088 sub sp, #32
  47900. 8014690: af00 add r7, sp, #0
  47901. 8014692: 60f8 str r0, [r7, #12]
  47902. 8014694: 60b9 str r1, [r7, #8]
  47903. 8014696: 603b str r3, [r7, #0]
  47904. 8014698: 4613 mov r3, r2
  47905. 801469a: 71fb strb r3, [r7, #7]
  47906. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47907. 801469c: 68fb ldr r3, [r7, #12]
  47908. 801469e: 61bb str r3, [r7, #24]
  47909. osStatus_t stat;
  47910. BaseType_t yield;
  47911. (void)msg_prio; /* Message priority is ignored */
  47912. stat = osOK;
  47913. 80146a0: 2300 movs r3, #0
  47914. 80146a2: 61fb str r3, [r7, #28]
  47915. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47916. 80146a4: f3ef 8305 mrs r3, IPSR
  47917. 80146a8: 617b str r3, [r7, #20]
  47918. return(result);
  47919. 80146aa: 697b ldr r3, [r7, #20]
  47920. if (IS_IRQ()) {
  47921. 80146ac: 2b00 cmp r3, #0
  47922. 80146ae: d028 beq.n 8014702 <osMessageQueuePut+0x76>
  47923. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47924. 80146b0: 69bb ldr r3, [r7, #24]
  47925. 80146b2: 2b00 cmp r3, #0
  47926. 80146b4: d005 beq.n 80146c2 <osMessageQueuePut+0x36>
  47927. 80146b6: 68bb ldr r3, [r7, #8]
  47928. 80146b8: 2b00 cmp r3, #0
  47929. 80146ba: d002 beq.n 80146c2 <osMessageQueuePut+0x36>
  47930. 80146bc: 683b ldr r3, [r7, #0]
  47931. 80146be: 2b00 cmp r3, #0
  47932. 80146c0: d003 beq.n 80146ca <osMessageQueuePut+0x3e>
  47933. stat = osErrorParameter;
  47934. 80146c2: f06f 0303 mvn.w r3, #3
  47935. 80146c6: 61fb str r3, [r7, #28]
  47936. 80146c8: e038 b.n 801473c <osMessageQueuePut+0xb0>
  47937. }
  47938. else {
  47939. yield = pdFALSE;
  47940. 80146ca: 2300 movs r3, #0
  47941. 80146cc: 613b str r3, [r7, #16]
  47942. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  47943. 80146ce: f107 0210 add.w r2, r7, #16
  47944. 80146d2: 2300 movs r3, #0
  47945. 80146d4: 68b9 ldr r1, [r7, #8]
  47946. 80146d6: 69b8 ldr r0, [r7, #24]
  47947. 80146d8: f000 fc7e bl 8014fd8 <xQueueGenericSendFromISR>
  47948. 80146dc: 4603 mov r3, r0
  47949. 80146de: 2b01 cmp r3, #1
  47950. 80146e0: d003 beq.n 80146ea <osMessageQueuePut+0x5e>
  47951. stat = osErrorResource;
  47952. 80146e2: f06f 0302 mvn.w r3, #2
  47953. 80146e6: 61fb str r3, [r7, #28]
  47954. 80146e8: e028 b.n 801473c <osMessageQueuePut+0xb0>
  47955. } else {
  47956. portYIELD_FROM_ISR (yield);
  47957. 80146ea: 693b ldr r3, [r7, #16]
  47958. 80146ec: 2b00 cmp r3, #0
  47959. 80146ee: d025 beq.n 801473c <osMessageQueuePut+0xb0>
  47960. 80146f0: 4b15 ldr r3, [pc, #84] @ (8014748 <osMessageQueuePut+0xbc>)
  47961. 80146f2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47962. 80146f6: 601a str r2, [r3, #0]
  47963. 80146f8: f3bf 8f4f dsb sy
  47964. 80146fc: f3bf 8f6f isb sy
  47965. 8014700: e01c b.n 801473c <osMessageQueuePut+0xb0>
  47966. }
  47967. }
  47968. }
  47969. else {
  47970. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47971. 8014702: 69bb ldr r3, [r7, #24]
  47972. 8014704: 2b00 cmp r3, #0
  47973. 8014706: d002 beq.n 801470e <osMessageQueuePut+0x82>
  47974. 8014708: 68bb ldr r3, [r7, #8]
  47975. 801470a: 2b00 cmp r3, #0
  47976. 801470c: d103 bne.n 8014716 <osMessageQueuePut+0x8a>
  47977. stat = osErrorParameter;
  47978. 801470e: f06f 0303 mvn.w r3, #3
  47979. 8014712: 61fb str r3, [r7, #28]
  47980. 8014714: e012 b.n 801473c <osMessageQueuePut+0xb0>
  47981. }
  47982. else {
  47983. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47984. 8014716: 2300 movs r3, #0
  47985. 8014718: 683a ldr r2, [r7, #0]
  47986. 801471a: 68b9 ldr r1, [r7, #8]
  47987. 801471c: 69b8 ldr r0, [r7, #24]
  47988. 801471e: f000 fb59 bl 8014dd4 <xQueueGenericSend>
  47989. 8014722: 4603 mov r3, r0
  47990. 8014724: 2b01 cmp r3, #1
  47991. 8014726: d009 beq.n 801473c <osMessageQueuePut+0xb0>
  47992. if (timeout != 0U) {
  47993. 8014728: 683b ldr r3, [r7, #0]
  47994. 801472a: 2b00 cmp r3, #0
  47995. 801472c: d003 beq.n 8014736 <osMessageQueuePut+0xaa>
  47996. stat = osErrorTimeout;
  47997. 801472e: f06f 0301 mvn.w r3, #1
  47998. 8014732: 61fb str r3, [r7, #28]
  47999. 8014734: e002 b.n 801473c <osMessageQueuePut+0xb0>
  48000. } else {
  48001. stat = osErrorResource;
  48002. 8014736: f06f 0302 mvn.w r3, #2
  48003. 801473a: 61fb str r3, [r7, #28]
  48004. }
  48005. }
  48006. }
  48007. }
  48008. return (stat);
  48009. 801473c: 69fb ldr r3, [r7, #28]
  48010. }
  48011. 801473e: 4618 mov r0, r3
  48012. 8014740: 3720 adds r7, #32
  48013. 8014742: 46bd mov sp, r7
  48014. 8014744: bd80 pop {r7, pc}
  48015. 8014746: bf00 nop
  48016. 8014748: e000ed04 .word 0xe000ed04
  48017. 0801474c <osMessageQueueGet>:
  48018. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  48019. 801474c: b580 push {r7, lr}
  48020. 801474e: b088 sub sp, #32
  48021. 8014750: af00 add r7, sp, #0
  48022. 8014752: 60f8 str r0, [r7, #12]
  48023. 8014754: 60b9 str r1, [r7, #8]
  48024. 8014756: 607a str r2, [r7, #4]
  48025. 8014758: 603b str r3, [r7, #0]
  48026. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  48027. 801475a: 68fb ldr r3, [r7, #12]
  48028. 801475c: 61bb str r3, [r7, #24]
  48029. osStatus_t stat;
  48030. BaseType_t yield;
  48031. (void)msg_prio; /* Message priority is ignored */
  48032. stat = osOK;
  48033. 801475e: 2300 movs r3, #0
  48034. 8014760: 61fb str r3, [r7, #28]
  48035. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  48036. 8014762: f3ef 8305 mrs r3, IPSR
  48037. 8014766: 617b str r3, [r7, #20]
  48038. return(result);
  48039. 8014768: 697b ldr r3, [r7, #20]
  48040. if (IS_IRQ()) {
  48041. 801476a: 2b00 cmp r3, #0
  48042. 801476c: d028 beq.n 80147c0 <osMessageQueueGet+0x74>
  48043. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  48044. 801476e: 69bb ldr r3, [r7, #24]
  48045. 8014770: 2b00 cmp r3, #0
  48046. 8014772: d005 beq.n 8014780 <osMessageQueueGet+0x34>
  48047. 8014774: 68bb ldr r3, [r7, #8]
  48048. 8014776: 2b00 cmp r3, #0
  48049. 8014778: d002 beq.n 8014780 <osMessageQueueGet+0x34>
  48050. 801477a: 683b ldr r3, [r7, #0]
  48051. 801477c: 2b00 cmp r3, #0
  48052. 801477e: d003 beq.n 8014788 <osMessageQueueGet+0x3c>
  48053. stat = osErrorParameter;
  48054. 8014780: f06f 0303 mvn.w r3, #3
  48055. 8014784: 61fb str r3, [r7, #28]
  48056. 8014786: e037 b.n 80147f8 <osMessageQueueGet+0xac>
  48057. }
  48058. else {
  48059. yield = pdFALSE;
  48060. 8014788: 2300 movs r3, #0
  48061. 801478a: 613b str r3, [r7, #16]
  48062. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  48063. 801478c: f107 0310 add.w r3, r7, #16
  48064. 8014790: 461a mov r2, r3
  48065. 8014792: 68b9 ldr r1, [r7, #8]
  48066. 8014794: 69b8 ldr r0, [r7, #24]
  48067. 8014796: f000 feaf bl 80154f8 <xQueueReceiveFromISR>
  48068. 801479a: 4603 mov r3, r0
  48069. 801479c: 2b01 cmp r3, #1
  48070. 801479e: d003 beq.n 80147a8 <osMessageQueueGet+0x5c>
  48071. stat = osErrorResource;
  48072. 80147a0: f06f 0302 mvn.w r3, #2
  48073. 80147a4: 61fb str r3, [r7, #28]
  48074. 80147a6: e027 b.n 80147f8 <osMessageQueueGet+0xac>
  48075. } else {
  48076. portYIELD_FROM_ISR (yield);
  48077. 80147a8: 693b ldr r3, [r7, #16]
  48078. 80147aa: 2b00 cmp r3, #0
  48079. 80147ac: d024 beq.n 80147f8 <osMessageQueueGet+0xac>
  48080. 80147ae: 4b15 ldr r3, [pc, #84] @ (8014804 <osMessageQueueGet+0xb8>)
  48081. 80147b0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48082. 80147b4: 601a str r2, [r3, #0]
  48083. 80147b6: f3bf 8f4f dsb sy
  48084. 80147ba: f3bf 8f6f isb sy
  48085. 80147be: e01b b.n 80147f8 <osMessageQueueGet+0xac>
  48086. }
  48087. }
  48088. }
  48089. else {
  48090. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  48091. 80147c0: 69bb ldr r3, [r7, #24]
  48092. 80147c2: 2b00 cmp r3, #0
  48093. 80147c4: d002 beq.n 80147cc <osMessageQueueGet+0x80>
  48094. 80147c6: 68bb ldr r3, [r7, #8]
  48095. 80147c8: 2b00 cmp r3, #0
  48096. 80147ca: d103 bne.n 80147d4 <osMessageQueueGet+0x88>
  48097. stat = osErrorParameter;
  48098. 80147cc: f06f 0303 mvn.w r3, #3
  48099. 80147d0: 61fb str r3, [r7, #28]
  48100. 80147d2: e011 b.n 80147f8 <osMessageQueueGet+0xac>
  48101. }
  48102. else {
  48103. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  48104. 80147d4: 683a ldr r2, [r7, #0]
  48105. 80147d6: 68b9 ldr r1, [r7, #8]
  48106. 80147d8: 69b8 ldr r0, [r7, #24]
  48107. 80147da: f000 fc9b bl 8015114 <xQueueReceive>
  48108. 80147de: 4603 mov r3, r0
  48109. 80147e0: 2b01 cmp r3, #1
  48110. 80147e2: d009 beq.n 80147f8 <osMessageQueueGet+0xac>
  48111. if (timeout != 0U) {
  48112. 80147e4: 683b ldr r3, [r7, #0]
  48113. 80147e6: 2b00 cmp r3, #0
  48114. 80147e8: d003 beq.n 80147f2 <osMessageQueueGet+0xa6>
  48115. stat = osErrorTimeout;
  48116. 80147ea: f06f 0301 mvn.w r3, #1
  48117. 80147ee: 61fb str r3, [r7, #28]
  48118. 80147f0: e002 b.n 80147f8 <osMessageQueueGet+0xac>
  48119. } else {
  48120. stat = osErrorResource;
  48121. 80147f2: f06f 0302 mvn.w r3, #2
  48122. 80147f6: 61fb str r3, [r7, #28]
  48123. }
  48124. }
  48125. }
  48126. }
  48127. return (stat);
  48128. 80147f8: 69fb ldr r3, [r7, #28]
  48129. }
  48130. 80147fa: 4618 mov r0, r3
  48131. 80147fc: 3720 adds r7, #32
  48132. 80147fe: 46bd mov sp, r7
  48133. 8014800: bd80 pop {r7, pc}
  48134. 8014802: bf00 nop
  48135. 8014804: e000ed04 .word 0xe000ed04
  48136. 08014808 <vApplicationGetIdleTaskMemory>:
  48137. /*
  48138. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48139. equals to 1 and is required for static memory allocation support.
  48140. */
  48141. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  48142. 8014808: b480 push {r7}
  48143. 801480a: b085 sub sp, #20
  48144. 801480c: af00 add r7, sp, #0
  48145. 801480e: 60f8 str r0, [r7, #12]
  48146. 8014810: 60b9 str r1, [r7, #8]
  48147. 8014812: 607a str r2, [r7, #4]
  48148. /* Idle task control block and stack */
  48149. static StaticTask_t Idle_TCB;
  48150. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  48151. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  48152. 8014814: 68fb ldr r3, [r7, #12]
  48153. 8014816: 4a07 ldr r2, [pc, #28] @ (8014834 <vApplicationGetIdleTaskMemory+0x2c>)
  48154. 8014818: 601a str r2, [r3, #0]
  48155. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  48156. 801481a: 68bb ldr r3, [r7, #8]
  48157. 801481c: 4a06 ldr r2, [pc, #24] @ (8014838 <vApplicationGetIdleTaskMemory+0x30>)
  48158. 801481e: 601a str r2, [r3, #0]
  48159. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  48160. 8014820: 687b ldr r3, [r7, #4]
  48161. 8014822: f44f 7200 mov.w r2, #512 @ 0x200
  48162. 8014826: 601a str r2, [r3, #0]
  48163. }
  48164. 8014828: bf00 nop
  48165. 801482a: 3714 adds r7, #20
  48166. 801482c: 46bd mov sp, r7
  48167. 801482e: f85d 7b04 ldr.w r7, [sp], #4
  48168. 8014832: 4770 bx lr
  48169. 8014834: 24001068 .word 0x24001068
  48170. 8014838: 24001110 .word 0x24001110
  48171. 0801483c <vApplicationGetTimerTaskMemory>:
  48172. /*
  48173. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48174. equals to 1 and is required for static memory allocation support.
  48175. */
  48176. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  48177. 801483c: b480 push {r7}
  48178. 801483e: b085 sub sp, #20
  48179. 8014840: af00 add r7, sp, #0
  48180. 8014842: 60f8 str r0, [r7, #12]
  48181. 8014844: 60b9 str r1, [r7, #8]
  48182. 8014846: 607a str r2, [r7, #4]
  48183. /* Timer task control block and stack */
  48184. static StaticTask_t Timer_TCB;
  48185. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  48186. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  48187. 8014848: 68fb ldr r3, [r7, #12]
  48188. 801484a: 4a07 ldr r2, [pc, #28] @ (8014868 <vApplicationGetTimerTaskMemory+0x2c>)
  48189. 801484c: 601a str r2, [r3, #0]
  48190. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  48191. 801484e: 68bb ldr r3, [r7, #8]
  48192. 8014850: 4a06 ldr r2, [pc, #24] @ (801486c <vApplicationGetTimerTaskMemory+0x30>)
  48193. 8014852: 601a str r2, [r3, #0]
  48194. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  48195. 8014854: 687b ldr r3, [r7, #4]
  48196. 8014856: f44f 6280 mov.w r2, #1024 @ 0x400
  48197. 801485a: 601a str r2, [r3, #0]
  48198. }
  48199. 801485c: bf00 nop
  48200. 801485e: 3714 adds r7, #20
  48201. 8014860: 46bd mov sp, r7
  48202. 8014862: f85d 7b04 ldr.w r7, [sp], #4
  48203. 8014866: 4770 bx lr
  48204. 8014868: 24001910 .word 0x24001910
  48205. 801486c: 240019b8 .word 0x240019b8
  48206. 08014870 <vListInitialise>:
  48207. /*-----------------------------------------------------------
  48208. * PUBLIC LIST API documented in list.h
  48209. *----------------------------------------------------------*/
  48210. void vListInitialise( List_t * const pxList )
  48211. {
  48212. 8014870: b480 push {r7}
  48213. 8014872: b083 sub sp, #12
  48214. 8014874: af00 add r7, sp, #0
  48215. 8014876: 6078 str r0, [r7, #4]
  48216. /* The list structure contains a list item which is used to mark the
  48217. end of the list. To initialise the list the list end is inserted
  48218. as the only list entry. */
  48219. 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. */
  48220. 8014878: 687b ldr r3, [r7, #4]
  48221. 801487a: f103 0208 add.w r2, r3, #8
  48222. 801487e: 687b ldr r3, [r7, #4]
  48223. 8014880: 605a str r2, [r3, #4]
  48224. /* The list end value is the highest possible value in the list to
  48225. ensure it remains at the end of the list. */
  48226. pxList->xListEnd.xItemValue = portMAX_DELAY;
  48227. 8014882: 687b ldr r3, [r7, #4]
  48228. 8014884: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48229. 8014888: 609a str r2, [r3, #8]
  48230. /* The list end next and previous pointers point to itself so we know
  48231. when the list is empty. */
  48232. 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. */
  48233. 801488a: 687b ldr r3, [r7, #4]
  48234. 801488c: f103 0208 add.w r2, r3, #8
  48235. 8014890: 687b ldr r3, [r7, #4]
  48236. 8014892: 60da str r2, [r3, #12]
  48237. 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. */
  48238. 8014894: 687b ldr r3, [r7, #4]
  48239. 8014896: f103 0208 add.w r2, r3, #8
  48240. 801489a: 687b ldr r3, [r7, #4]
  48241. 801489c: 611a str r2, [r3, #16]
  48242. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  48243. 801489e: 687b ldr r3, [r7, #4]
  48244. 80148a0: 2200 movs r2, #0
  48245. 80148a2: 601a str r2, [r3, #0]
  48246. /* Write known values into the list if
  48247. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48248. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  48249. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  48250. }
  48251. 80148a4: bf00 nop
  48252. 80148a6: 370c adds r7, #12
  48253. 80148a8: 46bd mov sp, r7
  48254. 80148aa: f85d 7b04 ldr.w r7, [sp], #4
  48255. 80148ae: 4770 bx lr
  48256. 080148b0 <vListInitialiseItem>:
  48257. /*-----------------------------------------------------------*/
  48258. void vListInitialiseItem( ListItem_t * const pxItem )
  48259. {
  48260. 80148b0: b480 push {r7}
  48261. 80148b2: b083 sub sp, #12
  48262. 80148b4: af00 add r7, sp, #0
  48263. 80148b6: 6078 str r0, [r7, #4]
  48264. /* Make sure the list item is not recorded as being on a list. */
  48265. pxItem->pxContainer = NULL;
  48266. 80148b8: 687b ldr r3, [r7, #4]
  48267. 80148ba: 2200 movs r2, #0
  48268. 80148bc: 611a str r2, [r3, #16]
  48269. /* Write known values into the list item if
  48270. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48271. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48272. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48273. }
  48274. 80148be: bf00 nop
  48275. 80148c0: 370c adds r7, #12
  48276. 80148c2: 46bd mov sp, r7
  48277. 80148c4: f85d 7b04 ldr.w r7, [sp], #4
  48278. 80148c8: 4770 bx lr
  48279. 080148ca <vListInsertEnd>:
  48280. /*-----------------------------------------------------------*/
  48281. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  48282. {
  48283. 80148ca: b480 push {r7}
  48284. 80148cc: b085 sub sp, #20
  48285. 80148ce: af00 add r7, sp, #0
  48286. 80148d0: 6078 str r0, [r7, #4]
  48287. 80148d2: 6039 str r1, [r7, #0]
  48288. ListItem_t * const pxIndex = pxList->pxIndex;
  48289. 80148d4: 687b ldr r3, [r7, #4]
  48290. 80148d6: 685b ldr r3, [r3, #4]
  48291. 80148d8: 60fb str r3, [r7, #12]
  48292. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  48293. /* Insert a new list item into pxList, but rather than sort the list,
  48294. makes the new list item the last item to be removed by a call to
  48295. listGET_OWNER_OF_NEXT_ENTRY(). */
  48296. pxNewListItem->pxNext = pxIndex;
  48297. 80148da: 683b ldr r3, [r7, #0]
  48298. 80148dc: 68fa ldr r2, [r7, #12]
  48299. 80148de: 605a str r2, [r3, #4]
  48300. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  48301. 80148e0: 68fb ldr r3, [r7, #12]
  48302. 80148e2: 689a ldr r2, [r3, #8]
  48303. 80148e4: 683b ldr r3, [r7, #0]
  48304. 80148e6: 609a str r2, [r3, #8]
  48305. /* Only used during decision coverage testing. */
  48306. mtCOVERAGE_TEST_DELAY();
  48307. pxIndex->pxPrevious->pxNext = pxNewListItem;
  48308. 80148e8: 68fb ldr r3, [r7, #12]
  48309. 80148ea: 689b ldr r3, [r3, #8]
  48310. 80148ec: 683a ldr r2, [r7, #0]
  48311. 80148ee: 605a str r2, [r3, #4]
  48312. pxIndex->pxPrevious = pxNewListItem;
  48313. 80148f0: 68fb ldr r3, [r7, #12]
  48314. 80148f2: 683a ldr r2, [r7, #0]
  48315. 80148f4: 609a str r2, [r3, #8]
  48316. /* Remember which list the item is in. */
  48317. pxNewListItem->pxContainer = pxList;
  48318. 80148f6: 683b ldr r3, [r7, #0]
  48319. 80148f8: 687a ldr r2, [r7, #4]
  48320. 80148fa: 611a str r2, [r3, #16]
  48321. ( pxList->uxNumberOfItems )++;
  48322. 80148fc: 687b ldr r3, [r7, #4]
  48323. 80148fe: 681b ldr r3, [r3, #0]
  48324. 8014900: 1c5a adds r2, r3, #1
  48325. 8014902: 687b ldr r3, [r7, #4]
  48326. 8014904: 601a str r2, [r3, #0]
  48327. }
  48328. 8014906: bf00 nop
  48329. 8014908: 3714 adds r7, #20
  48330. 801490a: 46bd mov sp, r7
  48331. 801490c: f85d 7b04 ldr.w r7, [sp], #4
  48332. 8014910: 4770 bx lr
  48333. 08014912 <vListInsert>:
  48334. /*-----------------------------------------------------------*/
  48335. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  48336. {
  48337. 8014912: b480 push {r7}
  48338. 8014914: b085 sub sp, #20
  48339. 8014916: af00 add r7, sp, #0
  48340. 8014918: 6078 str r0, [r7, #4]
  48341. 801491a: 6039 str r1, [r7, #0]
  48342. ListItem_t *pxIterator;
  48343. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  48344. 801491c: 683b ldr r3, [r7, #0]
  48345. 801491e: 681b ldr r3, [r3, #0]
  48346. 8014920: 60bb str r3, [r7, #8]
  48347. new list item should be placed after it. This ensures that TCBs which are
  48348. stored in ready lists (all of which have the same xItemValue value) get a
  48349. share of the CPU. However, if the xItemValue is the same as the back marker
  48350. the iteration loop below will not end. Therefore the value is checked
  48351. first, and the algorithm slightly modified if necessary. */
  48352. if( xValueOfInsertion == portMAX_DELAY )
  48353. 8014922: 68bb ldr r3, [r7, #8]
  48354. 8014924: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48355. 8014928: d103 bne.n 8014932 <vListInsert+0x20>
  48356. {
  48357. pxIterator = pxList->xListEnd.pxPrevious;
  48358. 801492a: 687b ldr r3, [r7, #4]
  48359. 801492c: 691b ldr r3, [r3, #16]
  48360. 801492e: 60fb str r3, [r7, #12]
  48361. 8014930: e00c b.n 801494c <vListInsert+0x3a>
  48362. 4) Using a queue or semaphore before it has been initialised or
  48363. before the scheduler has been started (are interrupts firing
  48364. before vTaskStartScheduler() has been called?).
  48365. **********************************************************************/
  48366. 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. */
  48367. 8014932: 687b ldr r3, [r7, #4]
  48368. 8014934: 3308 adds r3, #8
  48369. 8014936: 60fb str r3, [r7, #12]
  48370. 8014938: e002 b.n 8014940 <vListInsert+0x2e>
  48371. 801493a: 68fb ldr r3, [r7, #12]
  48372. 801493c: 685b ldr r3, [r3, #4]
  48373. 801493e: 60fb str r3, [r7, #12]
  48374. 8014940: 68fb ldr r3, [r7, #12]
  48375. 8014942: 685b ldr r3, [r3, #4]
  48376. 8014944: 681b ldr r3, [r3, #0]
  48377. 8014946: 68ba ldr r2, [r7, #8]
  48378. 8014948: 429a cmp r2, r3
  48379. 801494a: d2f6 bcs.n 801493a <vListInsert+0x28>
  48380. /* There is nothing to do here, just iterating to the wanted
  48381. insertion position. */
  48382. }
  48383. }
  48384. pxNewListItem->pxNext = pxIterator->pxNext;
  48385. 801494c: 68fb ldr r3, [r7, #12]
  48386. 801494e: 685a ldr r2, [r3, #4]
  48387. 8014950: 683b ldr r3, [r7, #0]
  48388. 8014952: 605a str r2, [r3, #4]
  48389. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  48390. 8014954: 683b ldr r3, [r7, #0]
  48391. 8014956: 685b ldr r3, [r3, #4]
  48392. 8014958: 683a ldr r2, [r7, #0]
  48393. 801495a: 609a str r2, [r3, #8]
  48394. pxNewListItem->pxPrevious = pxIterator;
  48395. 801495c: 683b ldr r3, [r7, #0]
  48396. 801495e: 68fa ldr r2, [r7, #12]
  48397. 8014960: 609a str r2, [r3, #8]
  48398. pxIterator->pxNext = pxNewListItem;
  48399. 8014962: 68fb ldr r3, [r7, #12]
  48400. 8014964: 683a ldr r2, [r7, #0]
  48401. 8014966: 605a str r2, [r3, #4]
  48402. /* Remember which list the item is in. This allows fast removal of the
  48403. item later. */
  48404. pxNewListItem->pxContainer = pxList;
  48405. 8014968: 683b ldr r3, [r7, #0]
  48406. 801496a: 687a ldr r2, [r7, #4]
  48407. 801496c: 611a str r2, [r3, #16]
  48408. ( pxList->uxNumberOfItems )++;
  48409. 801496e: 687b ldr r3, [r7, #4]
  48410. 8014970: 681b ldr r3, [r3, #0]
  48411. 8014972: 1c5a adds r2, r3, #1
  48412. 8014974: 687b ldr r3, [r7, #4]
  48413. 8014976: 601a str r2, [r3, #0]
  48414. }
  48415. 8014978: bf00 nop
  48416. 801497a: 3714 adds r7, #20
  48417. 801497c: 46bd mov sp, r7
  48418. 801497e: f85d 7b04 ldr.w r7, [sp], #4
  48419. 8014982: 4770 bx lr
  48420. 08014984 <uxListRemove>:
  48421. /*-----------------------------------------------------------*/
  48422. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  48423. {
  48424. 8014984: b480 push {r7}
  48425. 8014986: b085 sub sp, #20
  48426. 8014988: af00 add r7, sp, #0
  48427. 801498a: 6078 str r0, [r7, #4]
  48428. /* The list item knows which list it is in. Obtain the list from the list
  48429. item. */
  48430. List_t * const pxList = pxItemToRemove->pxContainer;
  48431. 801498c: 687b ldr r3, [r7, #4]
  48432. 801498e: 691b ldr r3, [r3, #16]
  48433. 8014990: 60fb str r3, [r7, #12]
  48434. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  48435. 8014992: 687b ldr r3, [r7, #4]
  48436. 8014994: 685b ldr r3, [r3, #4]
  48437. 8014996: 687a ldr r2, [r7, #4]
  48438. 8014998: 6892 ldr r2, [r2, #8]
  48439. 801499a: 609a str r2, [r3, #8]
  48440. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  48441. 801499c: 687b ldr r3, [r7, #4]
  48442. 801499e: 689b ldr r3, [r3, #8]
  48443. 80149a0: 687a ldr r2, [r7, #4]
  48444. 80149a2: 6852 ldr r2, [r2, #4]
  48445. 80149a4: 605a str r2, [r3, #4]
  48446. /* Only used during decision coverage testing. */
  48447. mtCOVERAGE_TEST_DELAY();
  48448. /* Make sure the index is left pointing to a valid item. */
  48449. if( pxList->pxIndex == pxItemToRemove )
  48450. 80149a6: 68fb ldr r3, [r7, #12]
  48451. 80149a8: 685b ldr r3, [r3, #4]
  48452. 80149aa: 687a ldr r2, [r7, #4]
  48453. 80149ac: 429a cmp r2, r3
  48454. 80149ae: d103 bne.n 80149b8 <uxListRemove+0x34>
  48455. {
  48456. pxList->pxIndex = pxItemToRemove->pxPrevious;
  48457. 80149b0: 687b ldr r3, [r7, #4]
  48458. 80149b2: 689a ldr r2, [r3, #8]
  48459. 80149b4: 68fb ldr r3, [r7, #12]
  48460. 80149b6: 605a str r2, [r3, #4]
  48461. else
  48462. {
  48463. mtCOVERAGE_TEST_MARKER();
  48464. }
  48465. pxItemToRemove->pxContainer = NULL;
  48466. 80149b8: 687b ldr r3, [r7, #4]
  48467. 80149ba: 2200 movs r2, #0
  48468. 80149bc: 611a str r2, [r3, #16]
  48469. ( pxList->uxNumberOfItems )--;
  48470. 80149be: 68fb ldr r3, [r7, #12]
  48471. 80149c0: 681b ldr r3, [r3, #0]
  48472. 80149c2: 1e5a subs r2, r3, #1
  48473. 80149c4: 68fb ldr r3, [r7, #12]
  48474. 80149c6: 601a str r2, [r3, #0]
  48475. return pxList->uxNumberOfItems;
  48476. 80149c8: 68fb ldr r3, [r7, #12]
  48477. 80149ca: 681b ldr r3, [r3, #0]
  48478. }
  48479. 80149cc: 4618 mov r0, r3
  48480. 80149ce: 3714 adds r7, #20
  48481. 80149d0: 46bd mov sp, r7
  48482. 80149d2: f85d 7b04 ldr.w r7, [sp], #4
  48483. 80149d6: 4770 bx lr
  48484. 080149d8 <xQueueGenericReset>:
  48485. } \
  48486. taskEXIT_CRITICAL()
  48487. /*-----------------------------------------------------------*/
  48488. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  48489. {
  48490. 80149d8: b580 push {r7, lr}
  48491. 80149da: b084 sub sp, #16
  48492. 80149dc: af00 add r7, sp, #0
  48493. 80149de: 6078 str r0, [r7, #4]
  48494. 80149e0: 6039 str r1, [r7, #0]
  48495. Queue_t * const pxQueue = xQueue;
  48496. 80149e2: 687b ldr r3, [r7, #4]
  48497. 80149e4: 60fb str r3, [r7, #12]
  48498. configASSERT( pxQueue );
  48499. 80149e6: 68fb ldr r3, [r7, #12]
  48500. 80149e8: 2b00 cmp r3, #0
  48501. 80149ea: d10b bne.n 8014a04 <xQueueGenericReset+0x2c>
  48502. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  48503. {
  48504. uint32_t ulNewBASEPRI;
  48505. __asm volatile
  48506. 80149ec: f04f 0350 mov.w r3, #80 @ 0x50
  48507. 80149f0: f383 8811 msr BASEPRI, r3
  48508. 80149f4: f3bf 8f6f isb sy
  48509. 80149f8: f3bf 8f4f dsb sy
  48510. 80149fc: 60bb str r3, [r7, #8]
  48511. " msr basepri, %0 \n" \
  48512. " isb \n" \
  48513. " dsb \n" \
  48514. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48515. );
  48516. }
  48517. 80149fe: bf00 nop
  48518. 8014a00: bf00 nop
  48519. 8014a02: e7fd b.n 8014a00 <xQueueGenericReset+0x28>
  48520. taskENTER_CRITICAL();
  48521. 8014a04: f003 f960 bl 8017cc8 <vPortEnterCritical>
  48522. {
  48523. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48524. 8014a08: 68fb ldr r3, [r7, #12]
  48525. 8014a0a: 681a ldr r2, [r3, #0]
  48526. 8014a0c: 68fb ldr r3, [r7, #12]
  48527. 8014a0e: 6bdb ldr r3, [r3, #60] @ 0x3c
  48528. 8014a10: 68f9 ldr r1, [r7, #12]
  48529. 8014a12: 6c09 ldr r1, [r1, #64] @ 0x40
  48530. 8014a14: fb01 f303 mul.w r3, r1, r3
  48531. 8014a18: 441a add r2, r3
  48532. 8014a1a: 68fb ldr r3, [r7, #12]
  48533. 8014a1c: 609a str r2, [r3, #8]
  48534. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  48535. 8014a1e: 68fb ldr r3, [r7, #12]
  48536. 8014a20: 2200 movs r2, #0
  48537. 8014a22: 639a str r2, [r3, #56] @ 0x38
  48538. pxQueue->pcWriteTo = pxQueue->pcHead;
  48539. 8014a24: 68fb ldr r3, [r7, #12]
  48540. 8014a26: 681a ldr r2, [r3, #0]
  48541. 8014a28: 68fb ldr r3, [r7, #12]
  48542. 8014a2a: 605a str r2, [r3, #4]
  48543. 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. */
  48544. 8014a2c: 68fb ldr r3, [r7, #12]
  48545. 8014a2e: 681a ldr r2, [r3, #0]
  48546. 8014a30: 68fb ldr r3, [r7, #12]
  48547. 8014a32: 6bdb ldr r3, [r3, #60] @ 0x3c
  48548. 8014a34: 3b01 subs r3, #1
  48549. 8014a36: 68f9 ldr r1, [r7, #12]
  48550. 8014a38: 6c09 ldr r1, [r1, #64] @ 0x40
  48551. 8014a3a: fb01 f303 mul.w r3, r1, r3
  48552. 8014a3e: 441a add r2, r3
  48553. 8014a40: 68fb ldr r3, [r7, #12]
  48554. 8014a42: 60da str r2, [r3, #12]
  48555. pxQueue->cRxLock = queueUNLOCKED;
  48556. 8014a44: 68fb ldr r3, [r7, #12]
  48557. 8014a46: 22ff movs r2, #255 @ 0xff
  48558. 8014a48: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48559. pxQueue->cTxLock = queueUNLOCKED;
  48560. 8014a4c: 68fb ldr r3, [r7, #12]
  48561. 8014a4e: 22ff movs r2, #255 @ 0xff
  48562. 8014a50: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48563. if( xNewQueue == pdFALSE )
  48564. 8014a54: 683b ldr r3, [r7, #0]
  48565. 8014a56: 2b00 cmp r3, #0
  48566. 8014a58: d114 bne.n 8014a84 <xQueueGenericReset+0xac>
  48567. /* If there are tasks blocked waiting to read from the queue, then
  48568. the tasks will remain blocked as after this function exits the queue
  48569. will still be empty. If there are tasks blocked waiting to write to
  48570. the queue, then one should be unblocked as after this function exits
  48571. it will be possible to write to it. */
  48572. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48573. 8014a5a: 68fb ldr r3, [r7, #12]
  48574. 8014a5c: 691b ldr r3, [r3, #16]
  48575. 8014a5e: 2b00 cmp r3, #0
  48576. 8014a60: d01a beq.n 8014a98 <xQueueGenericReset+0xc0>
  48577. {
  48578. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48579. 8014a62: 68fb ldr r3, [r7, #12]
  48580. 8014a64: 3310 adds r3, #16
  48581. 8014a66: 4618 mov r0, r3
  48582. 8014a68: f001 fdac bl 80165c4 <xTaskRemoveFromEventList>
  48583. 8014a6c: 4603 mov r3, r0
  48584. 8014a6e: 2b00 cmp r3, #0
  48585. 8014a70: d012 beq.n 8014a98 <xQueueGenericReset+0xc0>
  48586. {
  48587. queueYIELD_IF_USING_PREEMPTION();
  48588. 8014a72: 4b0d ldr r3, [pc, #52] @ (8014aa8 <xQueueGenericReset+0xd0>)
  48589. 8014a74: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48590. 8014a78: 601a str r2, [r3, #0]
  48591. 8014a7a: f3bf 8f4f dsb sy
  48592. 8014a7e: f3bf 8f6f isb sy
  48593. 8014a82: e009 b.n 8014a98 <xQueueGenericReset+0xc0>
  48594. }
  48595. }
  48596. else
  48597. {
  48598. /* Ensure the event queues start in the correct state. */
  48599. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  48600. 8014a84: 68fb ldr r3, [r7, #12]
  48601. 8014a86: 3310 adds r3, #16
  48602. 8014a88: 4618 mov r0, r3
  48603. 8014a8a: f7ff fef1 bl 8014870 <vListInitialise>
  48604. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  48605. 8014a8e: 68fb ldr r3, [r7, #12]
  48606. 8014a90: 3324 adds r3, #36 @ 0x24
  48607. 8014a92: 4618 mov r0, r3
  48608. 8014a94: f7ff feec bl 8014870 <vListInitialise>
  48609. }
  48610. }
  48611. taskEXIT_CRITICAL();
  48612. 8014a98: f003 f948 bl 8017d2c <vPortExitCritical>
  48613. /* A value is returned for calling semantic consistency with previous
  48614. versions. */
  48615. return pdPASS;
  48616. 8014a9c: 2301 movs r3, #1
  48617. }
  48618. 8014a9e: 4618 mov r0, r3
  48619. 8014aa0: 3710 adds r7, #16
  48620. 8014aa2: 46bd mov sp, r7
  48621. 8014aa4: bd80 pop {r7, pc}
  48622. 8014aa6: bf00 nop
  48623. 8014aa8: e000ed04 .word 0xe000ed04
  48624. 08014aac <xQueueGenericCreateStatic>:
  48625. /*-----------------------------------------------------------*/
  48626. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48627. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  48628. {
  48629. 8014aac: b580 push {r7, lr}
  48630. 8014aae: b08e sub sp, #56 @ 0x38
  48631. 8014ab0: af02 add r7, sp, #8
  48632. 8014ab2: 60f8 str r0, [r7, #12]
  48633. 8014ab4: 60b9 str r1, [r7, #8]
  48634. 8014ab6: 607a str r2, [r7, #4]
  48635. 8014ab8: 603b str r3, [r7, #0]
  48636. Queue_t *pxNewQueue;
  48637. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48638. 8014aba: 68fb ldr r3, [r7, #12]
  48639. 8014abc: 2b00 cmp r3, #0
  48640. 8014abe: d10b bne.n 8014ad8 <xQueueGenericCreateStatic+0x2c>
  48641. __asm volatile
  48642. 8014ac0: f04f 0350 mov.w r3, #80 @ 0x50
  48643. 8014ac4: f383 8811 msr BASEPRI, r3
  48644. 8014ac8: f3bf 8f6f isb sy
  48645. 8014acc: f3bf 8f4f dsb sy
  48646. 8014ad0: 62bb str r3, [r7, #40] @ 0x28
  48647. }
  48648. 8014ad2: bf00 nop
  48649. 8014ad4: bf00 nop
  48650. 8014ad6: e7fd b.n 8014ad4 <xQueueGenericCreateStatic+0x28>
  48651. /* The StaticQueue_t structure and the queue storage area must be
  48652. supplied. */
  48653. configASSERT( pxStaticQueue != NULL );
  48654. 8014ad8: 683b ldr r3, [r7, #0]
  48655. 8014ada: 2b00 cmp r3, #0
  48656. 8014adc: d10b bne.n 8014af6 <xQueueGenericCreateStatic+0x4a>
  48657. __asm volatile
  48658. 8014ade: f04f 0350 mov.w r3, #80 @ 0x50
  48659. 8014ae2: f383 8811 msr BASEPRI, r3
  48660. 8014ae6: f3bf 8f6f isb sy
  48661. 8014aea: f3bf 8f4f dsb sy
  48662. 8014aee: 627b str r3, [r7, #36] @ 0x24
  48663. }
  48664. 8014af0: bf00 nop
  48665. 8014af2: bf00 nop
  48666. 8014af4: e7fd b.n 8014af2 <xQueueGenericCreateStatic+0x46>
  48667. /* A queue storage area should be provided if the item size is not 0, and
  48668. should not be provided if the item size is 0. */
  48669. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  48670. 8014af6: 687b ldr r3, [r7, #4]
  48671. 8014af8: 2b00 cmp r3, #0
  48672. 8014afa: d002 beq.n 8014b02 <xQueueGenericCreateStatic+0x56>
  48673. 8014afc: 68bb ldr r3, [r7, #8]
  48674. 8014afe: 2b00 cmp r3, #0
  48675. 8014b00: d001 beq.n 8014b06 <xQueueGenericCreateStatic+0x5a>
  48676. 8014b02: 2301 movs r3, #1
  48677. 8014b04: e000 b.n 8014b08 <xQueueGenericCreateStatic+0x5c>
  48678. 8014b06: 2300 movs r3, #0
  48679. 8014b08: 2b00 cmp r3, #0
  48680. 8014b0a: d10b bne.n 8014b24 <xQueueGenericCreateStatic+0x78>
  48681. __asm volatile
  48682. 8014b0c: f04f 0350 mov.w r3, #80 @ 0x50
  48683. 8014b10: f383 8811 msr BASEPRI, r3
  48684. 8014b14: f3bf 8f6f isb sy
  48685. 8014b18: f3bf 8f4f dsb sy
  48686. 8014b1c: 623b str r3, [r7, #32]
  48687. }
  48688. 8014b1e: bf00 nop
  48689. 8014b20: bf00 nop
  48690. 8014b22: e7fd b.n 8014b20 <xQueueGenericCreateStatic+0x74>
  48691. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  48692. 8014b24: 687b ldr r3, [r7, #4]
  48693. 8014b26: 2b00 cmp r3, #0
  48694. 8014b28: d102 bne.n 8014b30 <xQueueGenericCreateStatic+0x84>
  48695. 8014b2a: 68bb ldr r3, [r7, #8]
  48696. 8014b2c: 2b00 cmp r3, #0
  48697. 8014b2e: d101 bne.n 8014b34 <xQueueGenericCreateStatic+0x88>
  48698. 8014b30: 2301 movs r3, #1
  48699. 8014b32: e000 b.n 8014b36 <xQueueGenericCreateStatic+0x8a>
  48700. 8014b34: 2300 movs r3, #0
  48701. 8014b36: 2b00 cmp r3, #0
  48702. 8014b38: d10b bne.n 8014b52 <xQueueGenericCreateStatic+0xa6>
  48703. __asm volatile
  48704. 8014b3a: f04f 0350 mov.w r3, #80 @ 0x50
  48705. 8014b3e: f383 8811 msr BASEPRI, r3
  48706. 8014b42: f3bf 8f6f isb sy
  48707. 8014b46: f3bf 8f4f dsb sy
  48708. 8014b4a: 61fb str r3, [r7, #28]
  48709. }
  48710. 8014b4c: bf00 nop
  48711. 8014b4e: bf00 nop
  48712. 8014b50: e7fd b.n 8014b4e <xQueueGenericCreateStatic+0xa2>
  48713. #if( configASSERT_DEFINED == 1 )
  48714. {
  48715. /* Sanity check that the size of the structure used to declare a
  48716. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  48717. the real queue and semaphore structures. */
  48718. volatile size_t xSize = sizeof( StaticQueue_t );
  48719. 8014b52: 2350 movs r3, #80 @ 0x50
  48720. 8014b54: 617b str r3, [r7, #20]
  48721. configASSERT( xSize == sizeof( Queue_t ) );
  48722. 8014b56: 697b ldr r3, [r7, #20]
  48723. 8014b58: 2b50 cmp r3, #80 @ 0x50
  48724. 8014b5a: d00b beq.n 8014b74 <xQueueGenericCreateStatic+0xc8>
  48725. __asm volatile
  48726. 8014b5c: f04f 0350 mov.w r3, #80 @ 0x50
  48727. 8014b60: f383 8811 msr BASEPRI, r3
  48728. 8014b64: f3bf 8f6f isb sy
  48729. 8014b68: f3bf 8f4f dsb sy
  48730. 8014b6c: 61bb str r3, [r7, #24]
  48731. }
  48732. 8014b6e: bf00 nop
  48733. 8014b70: bf00 nop
  48734. 8014b72: e7fd b.n 8014b70 <xQueueGenericCreateStatic+0xc4>
  48735. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  48736. 8014b74: 697b ldr r3, [r7, #20]
  48737. #endif /* configASSERT_DEFINED */
  48738. /* The address of a statically allocated queue was passed in, use it.
  48739. The address of a statically allocated storage area was also passed in
  48740. but is already set. */
  48741. 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. */
  48742. 8014b76: 683b ldr r3, [r7, #0]
  48743. 8014b78: 62fb str r3, [r7, #44] @ 0x2c
  48744. if( pxNewQueue != NULL )
  48745. 8014b7a: 6afb ldr r3, [r7, #44] @ 0x2c
  48746. 8014b7c: 2b00 cmp r3, #0
  48747. 8014b7e: d00d beq.n 8014b9c <xQueueGenericCreateStatic+0xf0>
  48748. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48749. {
  48750. /* Queues can be allocated wither statically or dynamically, so
  48751. note this queue was allocated statically in case the queue is
  48752. later deleted. */
  48753. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  48754. 8014b80: 6afb ldr r3, [r7, #44] @ 0x2c
  48755. 8014b82: 2201 movs r2, #1
  48756. 8014b84: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48757. }
  48758. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48759. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48760. 8014b88: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  48761. 8014b8c: 6afb ldr r3, [r7, #44] @ 0x2c
  48762. 8014b8e: 9300 str r3, [sp, #0]
  48763. 8014b90: 4613 mov r3, r2
  48764. 8014b92: 687a ldr r2, [r7, #4]
  48765. 8014b94: 68b9 ldr r1, [r7, #8]
  48766. 8014b96: 68f8 ldr r0, [r7, #12]
  48767. 8014b98: f000 f840 bl 8014c1c <prvInitialiseNewQueue>
  48768. {
  48769. traceQUEUE_CREATE_FAILED( ucQueueType );
  48770. mtCOVERAGE_TEST_MARKER();
  48771. }
  48772. return pxNewQueue;
  48773. 8014b9c: 6afb ldr r3, [r7, #44] @ 0x2c
  48774. }
  48775. 8014b9e: 4618 mov r0, r3
  48776. 8014ba0: 3730 adds r7, #48 @ 0x30
  48777. 8014ba2: 46bd mov sp, r7
  48778. 8014ba4: bd80 pop {r7, pc}
  48779. 08014ba6 <xQueueGenericCreate>:
  48780. /*-----------------------------------------------------------*/
  48781. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48782. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  48783. {
  48784. 8014ba6: b580 push {r7, lr}
  48785. 8014ba8: b08a sub sp, #40 @ 0x28
  48786. 8014baa: af02 add r7, sp, #8
  48787. 8014bac: 60f8 str r0, [r7, #12]
  48788. 8014bae: 60b9 str r1, [r7, #8]
  48789. 8014bb0: 4613 mov r3, r2
  48790. 8014bb2: 71fb strb r3, [r7, #7]
  48791. Queue_t *pxNewQueue;
  48792. size_t xQueueSizeInBytes;
  48793. uint8_t *pucQueueStorage;
  48794. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48795. 8014bb4: 68fb ldr r3, [r7, #12]
  48796. 8014bb6: 2b00 cmp r3, #0
  48797. 8014bb8: d10b bne.n 8014bd2 <xQueueGenericCreate+0x2c>
  48798. __asm volatile
  48799. 8014bba: f04f 0350 mov.w r3, #80 @ 0x50
  48800. 8014bbe: f383 8811 msr BASEPRI, r3
  48801. 8014bc2: f3bf 8f6f isb sy
  48802. 8014bc6: f3bf 8f4f dsb sy
  48803. 8014bca: 613b str r3, [r7, #16]
  48804. }
  48805. 8014bcc: bf00 nop
  48806. 8014bce: bf00 nop
  48807. 8014bd0: e7fd b.n 8014bce <xQueueGenericCreate+0x28>
  48808. /* Allocate enough space to hold the maximum number of items that
  48809. can be in the queue at any time. It is valid for uxItemSize to be
  48810. zero in the case the queue is used as a semaphore. */
  48811. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  48812. 8014bd2: 68fb ldr r3, [r7, #12]
  48813. 8014bd4: 68ba ldr r2, [r7, #8]
  48814. 8014bd6: fb02 f303 mul.w r3, r2, r3
  48815. 8014bda: 61fb str r3, [r7, #28]
  48816. alignment requirements of the Queue_t structure - which in this case
  48817. is an int8_t *. Therefore, whenever the stack alignment requirements
  48818. are greater than or equal to the pointer to char requirements the cast
  48819. is safe. In other cases alignment requirements are not strict (one or
  48820. two bytes). */
  48821. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  48822. 8014bdc: 69fb ldr r3, [r7, #28]
  48823. 8014bde: 3350 adds r3, #80 @ 0x50
  48824. 8014be0: 4618 mov r0, r3
  48825. 8014be2: f003 f993 bl 8017f0c <pvPortMalloc>
  48826. 8014be6: 61b8 str r0, [r7, #24]
  48827. if( pxNewQueue != NULL )
  48828. 8014be8: 69bb ldr r3, [r7, #24]
  48829. 8014bea: 2b00 cmp r3, #0
  48830. 8014bec: d011 beq.n 8014c12 <xQueueGenericCreate+0x6c>
  48831. {
  48832. /* Jump past the queue structure to find the location of the queue
  48833. storage area. */
  48834. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  48835. 8014bee: 69bb ldr r3, [r7, #24]
  48836. 8014bf0: 617b str r3, [r7, #20]
  48837. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48838. 8014bf2: 697b ldr r3, [r7, #20]
  48839. 8014bf4: 3350 adds r3, #80 @ 0x50
  48840. 8014bf6: 617b str r3, [r7, #20]
  48841. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48842. {
  48843. /* Queues can be created either statically or dynamically, so
  48844. note this task was created dynamically in case it is later
  48845. deleted. */
  48846. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  48847. 8014bf8: 69bb ldr r3, [r7, #24]
  48848. 8014bfa: 2200 movs r2, #0
  48849. 8014bfc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48850. }
  48851. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48852. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48853. 8014c00: 79fa ldrb r2, [r7, #7]
  48854. 8014c02: 69bb ldr r3, [r7, #24]
  48855. 8014c04: 9300 str r3, [sp, #0]
  48856. 8014c06: 4613 mov r3, r2
  48857. 8014c08: 697a ldr r2, [r7, #20]
  48858. 8014c0a: 68b9 ldr r1, [r7, #8]
  48859. 8014c0c: 68f8 ldr r0, [r7, #12]
  48860. 8014c0e: f000 f805 bl 8014c1c <prvInitialiseNewQueue>
  48861. {
  48862. traceQUEUE_CREATE_FAILED( ucQueueType );
  48863. mtCOVERAGE_TEST_MARKER();
  48864. }
  48865. return pxNewQueue;
  48866. 8014c12: 69bb ldr r3, [r7, #24]
  48867. }
  48868. 8014c14: 4618 mov r0, r3
  48869. 8014c16: 3720 adds r7, #32
  48870. 8014c18: 46bd mov sp, r7
  48871. 8014c1a: bd80 pop {r7, pc}
  48872. 08014c1c <prvInitialiseNewQueue>:
  48873. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48874. /*-----------------------------------------------------------*/
  48875. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48876. {
  48877. 8014c1c: b580 push {r7, lr}
  48878. 8014c1e: b084 sub sp, #16
  48879. 8014c20: af00 add r7, sp, #0
  48880. 8014c22: 60f8 str r0, [r7, #12]
  48881. 8014c24: 60b9 str r1, [r7, #8]
  48882. 8014c26: 607a str r2, [r7, #4]
  48883. 8014c28: 70fb strb r3, [r7, #3]
  48884. /* Remove compiler warnings about unused parameters should
  48885. configUSE_TRACE_FACILITY not be set to 1. */
  48886. ( void ) ucQueueType;
  48887. if( uxItemSize == ( UBaseType_t ) 0 )
  48888. 8014c2a: 68bb ldr r3, [r7, #8]
  48889. 8014c2c: 2b00 cmp r3, #0
  48890. 8014c2e: d103 bne.n 8014c38 <prvInitialiseNewQueue+0x1c>
  48891. {
  48892. /* No RAM was allocated for the queue storage area, but PC head cannot
  48893. be set to NULL because NULL is used as a key to say the queue is used as
  48894. a mutex. Therefore just set pcHead to point to the queue as a benign
  48895. value that is known to be within the memory map. */
  48896. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48897. 8014c30: 69bb ldr r3, [r7, #24]
  48898. 8014c32: 69ba ldr r2, [r7, #24]
  48899. 8014c34: 601a str r2, [r3, #0]
  48900. 8014c36: e002 b.n 8014c3e <prvInitialiseNewQueue+0x22>
  48901. }
  48902. else
  48903. {
  48904. /* Set the head to the start of the queue storage area. */
  48905. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48906. 8014c38: 69bb ldr r3, [r7, #24]
  48907. 8014c3a: 687a ldr r2, [r7, #4]
  48908. 8014c3c: 601a str r2, [r3, #0]
  48909. }
  48910. /* Initialise the queue members as described where the queue type is
  48911. defined. */
  48912. pxNewQueue->uxLength = uxQueueLength;
  48913. 8014c3e: 69bb ldr r3, [r7, #24]
  48914. 8014c40: 68fa ldr r2, [r7, #12]
  48915. 8014c42: 63da str r2, [r3, #60] @ 0x3c
  48916. pxNewQueue->uxItemSize = uxItemSize;
  48917. 8014c44: 69bb ldr r3, [r7, #24]
  48918. 8014c46: 68ba ldr r2, [r7, #8]
  48919. 8014c48: 641a str r2, [r3, #64] @ 0x40
  48920. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48921. 8014c4a: 2101 movs r1, #1
  48922. 8014c4c: 69b8 ldr r0, [r7, #24]
  48923. 8014c4e: f7ff fec3 bl 80149d8 <xQueueGenericReset>
  48924. #if ( configUSE_TRACE_FACILITY == 1 )
  48925. {
  48926. pxNewQueue->ucQueueType = ucQueueType;
  48927. 8014c52: 69bb ldr r3, [r7, #24]
  48928. 8014c54: 78fa ldrb r2, [r7, #3]
  48929. 8014c56: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48930. pxNewQueue->pxQueueSetContainer = NULL;
  48931. }
  48932. #endif /* configUSE_QUEUE_SETS */
  48933. traceQUEUE_CREATE( pxNewQueue );
  48934. }
  48935. 8014c5a: bf00 nop
  48936. 8014c5c: 3710 adds r7, #16
  48937. 8014c5e: 46bd mov sp, r7
  48938. 8014c60: bd80 pop {r7, pc}
  48939. 08014c62 <prvInitialiseMutex>:
  48940. /*-----------------------------------------------------------*/
  48941. #if( configUSE_MUTEXES == 1 )
  48942. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  48943. {
  48944. 8014c62: b580 push {r7, lr}
  48945. 8014c64: b082 sub sp, #8
  48946. 8014c66: af00 add r7, sp, #0
  48947. 8014c68: 6078 str r0, [r7, #4]
  48948. if( pxNewQueue != NULL )
  48949. 8014c6a: 687b ldr r3, [r7, #4]
  48950. 8014c6c: 2b00 cmp r3, #0
  48951. 8014c6e: d00e beq.n 8014c8e <prvInitialiseMutex+0x2c>
  48952. {
  48953. /* The queue create function will set all the queue structure members
  48954. correctly for a generic queue, but this function is creating a
  48955. mutex. Overwrite those members that need to be set differently -
  48956. in particular the information required for priority inheritance. */
  48957. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  48958. 8014c70: 687b ldr r3, [r7, #4]
  48959. 8014c72: 2200 movs r2, #0
  48960. 8014c74: 609a str r2, [r3, #8]
  48961. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  48962. 8014c76: 687b ldr r3, [r7, #4]
  48963. 8014c78: 2200 movs r2, #0
  48964. 8014c7a: 601a str r2, [r3, #0]
  48965. /* In case this is a recursive mutex. */
  48966. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  48967. 8014c7c: 687b ldr r3, [r7, #4]
  48968. 8014c7e: 2200 movs r2, #0
  48969. 8014c80: 60da str r2, [r3, #12]
  48970. traceCREATE_MUTEX( pxNewQueue );
  48971. /* Start with the semaphore in the expected state. */
  48972. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  48973. 8014c82: 2300 movs r3, #0
  48974. 8014c84: 2200 movs r2, #0
  48975. 8014c86: 2100 movs r1, #0
  48976. 8014c88: 6878 ldr r0, [r7, #4]
  48977. 8014c8a: f000 f8a3 bl 8014dd4 <xQueueGenericSend>
  48978. }
  48979. else
  48980. {
  48981. traceCREATE_MUTEX_FAILED();
  48982. }
  48983. }
  48984. 8014c8e: bf00 nop
  48985. 8014c90: 3708 adds r7, #8
  48986. 8014c92: 46bd mov sp, r7
  48987. 8014c94: bd80 pop {r7, pc}
  48988. 08014c96 <xQueueCreateMutex>:
  48989. /*-----------------------------------------------------------*/
  48990. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  48991. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  48992. {
  48993. 8014c96: b580 push {r7, lr}
  48994. 8014c98: b086 sub sp, #24
  48995. 8014c9a: af00 add r7, sp, #0
  48996. 8014c9c: 4603 mov r3, r0
  48997. 8014c9e: 71fb strb r3, [r7, #7]
  48998. QueueHandle_t xNewQueue;
  48999. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49000. 8014ca0: 2301 movs r3, #1
  49001. 8014ca2: 617b str r3, [r7, #20]
  49002. 8014ca4: 2300 movs r3, #0
  49003. 8014ca6: 613b str r3, [r7, #16]
  49004. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  49005. 8014ca8: 79fb ldrb r3, [r7, #7]
  49006. 8014caa: 461a mov r2, r3
  49007. 8014cac: 6939 ldr r1, [r7, #16]
  49008. 8014cae: 6978 ldr r0, [r7, #20]
  49009. 8014cb0: f7ff ff79 bl 8014ba6 <xQueueGenericCreate>
  49010. 8014cb4: 60f8 str r0, [r7, #12]
  49011. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49012. 8014cb6: 68f8 ldr r0, [r7, #12]
  49013. 8014cb8: f7ff ffd3 bl 8014c62 <prvInitialiseMutex>
  49014. return xNewQueue;
  49015. 8014cbc: 68fb ldr r3, [r7, #12]
  49016. }
  49017. 8014cbe: 4618 mov r0, r3
  49018. 8014cc0: 3718 adds r7, #24
  49019. 8014cc2: 46bd mov sp, r7
  49020. 8014cc4: bd80 pop {r7, pc}
  49021. 08014cc6 <xQueueCreateMutexStatic>:
  49022. /*-----------------------------------------------------------*/
  49023. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  49024. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  49025. {
  49026. 8014cc6: b580 push {r7, lr}
  49027. 8014cc8: b088 sub sp, #32
  49028. 8014cca: af02 add r7, sp, #8
  49029. 8014ccc: 4603 mov r3, r0
  49030. 8014cce: 6039 str r1, [r7, #0]
  49031. 8014cd0: 71fb strb r3, [r7, #7]
  49032. QueueHandle_t xNewQueue;
  49033. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49034. 8014cd2: 2301 movs r3, #1
  49035. 8014cd4: 617b str r3, [r7, #20]
  49036. 8014cd6: 2300 movs r3, #0
  49037. 8014cd8: 613b str r3, [r7, #16]
  49038. /* Prevent compiler warnings about unused parameters if
  49039. configUSE_TRACE_FACILITY does not equal 1. */
  49040. ( void ) ucQueueType;
  49041. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  49042. 8014cda: 79fb ldrb r3, [r7, #7]
  49043. 8014cdc: 9300 str r3, [sp, #0]
  49044. 8014cde: 683b ldr r3, [r7, #0]
  49045. 8014ce0: 2200 movs r2, #0
  49046. 8014ce2: 6939 ldr r1, [r7, #16]
  49047. 8014ce4: 6978 ldr r0, [r7, #20]
  49048. 8014ce6: f7ff fee1 bl 8014aac <xQueueGenericCreateStatic>
  49049. 8014cea: 60f8 str r0, [r7, #12]
  49050. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49051. 8014cec: 68f8 ldr r0, [r7, #12]
  49052. 8014cee: f7ff ffb8 bl 8014c62 <prvInitialiseMutex>
  49053. return xNewQueue;
  49054. 8014cf2: 68fb ldr r3, [r7, #12]
  49055. }
  49056. 8014cf4: 4618 mov r0, r3
  49057. 8014cf6: 3718 adds r7, #24
  49058. 8014cf8: 46bd mov sp, r7
  49059. 8014cfa: bd80 pop {r7, pc}
  49060. 08014cfc <xQueueGiveMutexRecursive>:
  49061. /*-----------------------------------------------------------*/
  49062. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49063. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  49064. {
  49065. 8014cfc: b590 push {r4, r7, lr}
  49066. 8014cfe: b087 sub sp, #28
  49067. 8014d00: af00 add r7, sp, #0
  49068. 8014d02: 6078 str r0, [r7, #4]
  49069. BaseType_t xReturn;
  49070. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49071. 8014d04: 687b ldr r3, [r7, #4]
  49072. 8014d06: 613b str r3, [r7, #16]
  49073. configASSERT( pxMutex );
  49074. 8014d08: 693b ldr r3, [r7, #16]
  49075. 8014d0a: 2b00 cmp r3, #0
  49076. 8014d0c: d10b bne.n 8014d26 <xQueueGiveMutexRecursive+0x2a>
  49077. __asm volatile
  49078. 8014d0e: f04f 0350 mov.w r3, #80 @ 0x50
  49079. 8014d12: f383 8811 msr BASEPRI, r3
  49080. 8014d16: f3bf 8f6f isb sy
  49081. 8014d1a: f3bf 8f4f dsb sy
  49082. 8014d1e: 60fb str r3, [r7, #12]
  49083. }
  49084. 8014d20: bf00 nop
  49085. 8014d22: bf00 nop
  49086. 8014d24: e7fd b.n 8014d22 <xQueueGiveMutexRecursive+0x26>
  49087. change outside of this task. If this task does not hold the mutex then
  49088. pxMutexHolder can never coincidentally equal the tasks handle, and as
  49089. this is the only condition we are interested in it does not matter if
  49090. pxMutexHolder is accessed simultaneously by another task. Therefore no
  49091. mutual exclusion is required to test the pxMutexHolder variable. */
  49092. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49093. 8014d26: 693b ldr r3, [r7, #16]
  49094. 8014d28: 689c ldr r4, [r3, #8]
  49095. 8014d2a: f001 fe39 bl 80169a0 <xTaskGetCurrentTaskHandle>
  49096. 8014d2e: 4603 mov r3, r0
  49097. 8014d30: 429c cmp r4, r3
  49098. 8014d32: d111 bne.n 8014d58 <xQueueGiveMutexRecursive+0x5c>
  49099. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  49100. the task handle, therefore no underflow check is required. Also,
  49101. uxRecursiveCallCount is only modified by the mutex holder, and as
  49102. there can only be one, no mutual exclusion is required to modify the
  49103. uxRecursiveCallCount member. */
  49104. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  49105. 8014d34: 693b ldr r3, [r7, #16]
  49106. 8014d36: 68db ldr r3, [r3, #12]
  49107. 8014d38: 1e5a subs r2, r3, #1
  49108. 8014d3a: 693b ldr r3, [r7, #16]
  49109. 8014d3c: 60da str r2, [r3, #12]
  49110. /* Has the recursive call count unwound to 0? */
  49111. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  49112. 8014d3e: 693b ldr r3, [r7, #16]
  49113. 8014d40: 68db ldr r3, [r3, #12]
  49114. 8014d42: 2b00 cmp r3, #0
  49115. 8014d44: d105 bne.n 8014d52 <xQueueGiveMutexRecursive+0x56>
  49116. {
  49117. /* Return the mutex. This will automatically unblock any other
  49118. task that might be waiting to access the mutex. */
  49119. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  49120. 8014d46: 2300 movs r3, #0
  49121. 8014d48: 2200 movs r2, #0
  49122. 8014d4a: 2100 movs r1, #0
  49123. 8014d4c: 6938 ldr r0, [r7, #16]
  49124. 8014d4e: f000 f841 bl 8014dd4 <xQueueGenericSend>
  49125. else
  49126. {
  49127. mtCOVERAGE_TEST_MARKER();
  49128. }
  49129. xReturn = pdPASS;
  49130. 8014d52: 2301 movs r3, #1
  49131. 8014d54: 617b str r3, [r7, #20]
  49132. 8014d56: e001 b.n 8014d5c <xQueueGiveMutexRecursive+0x60>
  49133. }
  49134. else
  49135. {
  49136. /* The mutex cannot be given because the calling task is not the
  49137. holder. */
  49138. xReturn = pdFAIL;
  49139. 8014d58: 2300 movs r3, #0
  49140. 8014d5a: 617b str r3, [r7, #20]
  49141. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49142. }
  49143. return xReturn;
  49144. 8014d5c: 697b ldr r3, [r7, #20]
  49145. }
  49146. 8014d5e: 4618 mov r0, r3
  49147. 8014d60: 371c adds r7, #28
  49148. 8014d62: 46bd mov sp, r7
  49149. 8014d64: bd90 pop {r4, r7, pc}
  49150. 08014d66 <xQueueTakeMutexRecursive>:
  49151. /*-----------------------------------------------------------*/
  49152. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49153. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  49154. {
  49155. 8014d66: b590 push {r4, r7, lr}
  49156. 8014d68: b087 sub sp, #28
  49157. 8014d6a: af00 add r7, sp, #0
  49158. 8014d6c: 6078 str r0, [r7, #4]
  49159. 8014d6e: 6039 str r1, [r7, #0]
  49160. BaseType_t xReturn;
  49161. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49162. 8014d70: 687b ldr r3, [r7, #4]
  49163. 8014d72: 613b str r3, [r7, #16]
  49164. configASSERT( pxMutex );
  49165. 8014d74: 693b ldr r3, [r7, #16]
  49166. 8014d76: 2b00 cmp r3, #0
  49167. 8014d78: d10b bne.n 8014d92 <xQueueTakeMutexRecursive+0x2c>
  49168. __asm volatile
  49169. 8014d7a: f04f 0350 mov.w r3, #80 @ 0x50
  49170. 8014d7e: f383 8811 msr BASEPRI, r3
  49171. 8014d82: f3bf 8f6f isb sy
  49172. 8014d86: f3bf 8f4f dsb sy
  49173. 8014d8a: 60fb str r3, [r7, #12]
  49174. }
  49175. 8014d8c: bf00 nop
  49176. 8014d8e: bf00 nop
  49177. 8014d90: e7fd b.n 8014d8e <xQueueTakeMutexRecursive+0x28>
  49178. /* Comments regarding mutual exclusion as per those within
  49179. xQueueGiveMutexRecursive(). */
  49180. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  49181. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49182. 8014d92: 693b ldr r3, [r7, #16]
  49183. 8014d94: 689c ldr r4, [r3, #8]
  49184. 8014d96: f001 fe03 bl 80169a0 <xTaskGetCurrentTaskHandle>
  49185. 8014d9a: 4603 mov r3, r0
  49186. 8014d9c: 429c cmp r4, r3
  49187. 8014d9e: d107 bne.n 8014db0 <xQueueTakeMutexRecursive+0x4a>
  49188. {
  49189. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49190. 8014da0: 693b ldr r3, [r7, #16]
  49191. 8014da2: 68db ldr r3, [r3, #12]
  49192. 8014da4: 1c5a adds r2, r3, #1
  49193. 8014da6: 693b ldr r3, [r7, #16]
  49194. 8014da8: 60da str r2, [r3, #12]
  49195. xReturn = pdPASS;
  49196. 8014daa: 2301 movs r3, #1
  49197. 8014dac: 617b str r3, [r7, #20]
  49198. 8014dae: e00c b.n 8014dca <xQueueTakeMutexRecursive+0x64>
  49199. }
  49200. else
  49201. {
  49202. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  49203. 8014db0: 6839 ldr r1, [r7, #0]
  49204. 8014db2: 6938 ldr r0, [r7, #16]
  49205. 8014db4: f000 fa90 bl 80152d8 <xQueueSemaphoreTake>
  49206. 8014db8: 6178 str r0, [r7, #20]
  49207. /* pdPASS will only be returned if the mutex was successfully
  49208. obtained. The calling task may have entered the Blocked state
  49209. before reaching here. */
  49210. if( xReturn != pdFAIL )
  49211. 8014dba: 697b ldr r3, [r7, #20]
  49212. 8014dbc: 2b00 cmp r3, #0
  49213. 8014dbe: d004 beq.n 8014dca <xQueueTakeMutexRecursive+0x64>
  49214. {
  49215. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49216. 8014dc0: 693b ldr r3, [r7, #16]
  49217. 8014dc2: 68db ldr r3, [r3, #12]
  49218. 8014dc4: 1c5a adds r2, r3, #1
  49219. 8014dc6: 693b ldr r3, [r7, #16]
  49220. 8014dc8: 60da str r2, [r3, #12]
  49221. {
  49222. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49223. }
  49224. }
  49225. return xReturn;
  49226. 8014dca: 697b ldr r3, [r7, #20]
  49227. }
  49228. 8014dcc: 4618 mov r0, r3
  49229. 8014dce: 371c adds r7, #28
  49230. 8014dd0: 46bd mov sp, r7
  49231. 8014dd2: bd90 pop {r4, r7, pc}
  49232. 08014dd4 <xQueueGenericSend>:
  49233. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  49234. /*-----------------------------------------------------------*/
  49235. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  49236. {
  49237. 8014dd4: b580 push {r7, lr}
  49238. 8014dd6: b08e sub sp, #56 @ 0x38
  49239. 8014dd8: af00 add r7, sp, #0
  49240. 8014dda: 60f8 str r0, [r7, #12]
  49241. 8014ddc: 60b9 str r1, [r7, #8]
  49242. 8014dde: 607a str r2, [r7, #4]
  49243. 8014de0: 603b str r3, [r7, #0]
  49244. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  49245. 8014de2: 2300 movs r3, #0
  49246. 8014de4: 637b str r3, [r7, #52] @ 0x34
  49247. TimeOut_t xTimeOut;
  49248. Queue_t * const pxQueue = xQueue;
  49249. 8014de6: 68fb ldr r3, [r7, #12]
  49250. 8014de8: 633b str r3, [r7, #48] @ 0x30
  49251. configASSERT( pxQueue );
  49252. 8014dea: 6b3b ldr r3, [r7, #48] @ 0x30
  49253. 8014dec: 2b00 cmp r3, #0
  49254. 8014dee: d10b bne.n 8014e08 <xQueueGenericSend+0x34>
  49255. __asm volatile
  49256. 8014df0: f04f 0350 mov.w r3, #80 @ 0x50
  49257. 8014df4: f383 8811 msr BASEPRI, r3
  49258. 8014df8: f3bf 8f6f isb sy
  49259. 8014dfc: f3bf 8f4f dsb sy
  49260. 8014e00: 62bb str r3, [r7, #40] @ 0x28
  49261. }
  49262. 8014e02: bf00 nop
  49263. 8014e04: bf00 nop
  49264. 8014e06: e7fd b.n 8014e04 <xQueueGenericSend+0x30>
  49265. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49266. 8014e08: 68bb ldr r3, [r7, #8]
  49267. 8014e0a: 2b00 cmp r3, #0
  49268. 8014e0c: d103 bne.n 8014e16 <xQueueGenericSend+0x42>
  49269. 8014e0e: 6b3b ldr r3, [r7, #48] @ 0x30
  49270. 8014e10: 6c1b ldr r3, [r3, #64] @ 0x40
  49271. 8014e12: 2b00 cmp r3, #0
  49272. 8014e14: d101 bne.n 8014e1a <xQueueGenericSend+0x46>
  49273. 8014e16: 2301 movs r3, #1
  49274. 8014e18: e000 b.n 8014e1c <xQueueGenericSend+0x48>
  49275. 8014e1a: 2300 movs r3, #0
  49276. 8014e1c: 2b00 cmp r3, #0
  49277. 8014e1e: d10b bne.n 8014e38 <xQueueGenericSend+0x64>
  49278. __asm volatile
  49279. 8014e20: f04f 0350 mov.w r3, #80 @ 0x50
  49280. 8014e24: f383 8811 msr BASEPRI, r3
  49281. 8014e28: f3bf 8f6f isb sy
  49282. 8014e2c: f3bf 8f4f dsb sy
  49283. 8014e30: 627b str r3, [r7, #36] @ 0x24
  49284. }
  49285. 8014e32: bf00 nop
  49286. 8014e34: bf00 nop
  49287. 8014e36: e7fd b.n 8014e34 <xQueueGenericSend+0x60>
  49288. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49289. 8014e38: 683b ldr r3, [r7, #0]
  49290. 8014e3a: 2b02 cmp r3, #2
  49291. 8014e3c: d103 bne.n 8014e46 <xQueueGenericSend+0x72>
  49292. 8014e3e: 6b3b ldr r3, [r7, #48] @ 0x30
  49293. 8014e40: 6bdb ldr r3, [r3, #60] @ 0x3c
  49294. 8014e42: 2b01 cmp r3, #1
  49295. 8014e44: d101 bne.n 8014e4a <xQueueGenericSend+0x76>
  49296. 8014e46: 2301 movs r3, #1
  49297. 8014e48: e000 b.n 8014e4c <xQueueGenericSend+0x78>
  49298. 8014e4a: 2300 movs r3, #0
  49299. 8014e4c: 2b00 cmp r3, #0
  49300. 8014e4e: d10b bne.n 8014e68 <xQueueGenericSend+0x94>
  49301. __asm volatile
  49302. 8014e50: f04f 0350 mov.w r3, #80 @ 0x50
  49303. 8014e54: f383 8811 msr BASEPRI, r3
  49304. 8014e58: f3bf 8f6f isb sy
  49305. 8014e5c: f3bf 8f4f dsb sy
  49306. 8014e60: 623b str r3, [r7, #32]
  49307. }
  49308. 8014e62: bf00 nop
  49309. 8014e64: bf00 nop
  49310. 8014e66: e7fd b.n 8014e64 <xQueueGenericSend+0x90>
  49311. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49312. {
  49313. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49314. 8014e68: f001 fdaa bl 80169c0 <xTaskGetSchedulerState>
  49315. 8014e6c: 4603 mov r3, r0
  49316. 8014e6e: 2b00 cmp r3, #0
  49317. 8014e70: d102 bne.n 8014e78 <xQueueGenericSend+0xa4>
  49318. 8014e72: 687b ldr r3, [r7, #4]
  49319. 8014e74: 2b00 cmp r3, #0
  49320. 8014e76: d101 bne.n 8014e7c <xQueueGenericSend+0xa8>
  49321. 8014e78: 2301 movs r3, #1
  49322. 8014e7a: e000 b.n 8014e7e <xQueueGenericSend+0xaa>
  49323. 8014e7c: 2300 movs r3, #0
  49324. 8014e7e: 2b00 cmp r3, #0
  49325. 8014e80: d10b bne.n 8014e9a <xQueueGenericSend+0xc6>
  49326. __asm volatile
  49327. 8014e82: f04f 0350 mov.w r3, #80 @ 0x50
  49328. 8014e86: f383 8811 msr BASEPRI, r3
  49329. 8014e8a: f3bf 8f6f isb sy
  49330. 8014e8e: f3bf 8f4f dsb sy
  49331. 8014e92: 61fb str r3, [r7, #28]
  49332. }
  49333. 8014e94: bf00 nop
  49334. 8014e96: bf00 nop
  49335. 8014e98: e7fd b.n 8014e96 <xQueueGenericSend+0xc2>
  49336. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49337. allow return statements within the function itself. This is done in the
  49338. interest of execution time efficiency. */
  49339. for( ;; )
  49340. {
  49341. taskENTER_CRITICAL();
  49342. 8014e9a: f002 ff15 bl 8017cc8 <vPortEnterCritical>
  49343. {
  49344. /* Is there room on the queue now? The running task must be the
  49345. highest priority task wanting to access the queue. If the head item
  49346. in the queue is to be overwritten then it does not matter if the
  49347. queue is full. */
  49348. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49349. 8014e9e: 6b3b ldr r3, [r7, #48] @ 0x30
  49350. 8014ea0: 6b9a ldr r2, [r3, #56] @ 0x38
  49351. 8014ea2: 6b3b ldr r3, [r7, #48] @ 0x30
  49352. 8014ea4: 6bdb ldr r3, [r3, #60] @ 0x3c
  49353. 8014ea6: 429a cmp r2, r3
  49354. 8014ea8: d302 bcc.n 8014eb0 <xQueueGenericSend+0xdc>
  49355. 8014eaa: 683b ldr r3, [r7, #0]
  49356. 8014eac: 2b02 cmp r3, #2
  49357. 8014eae: d129 bne.n 8014f04 <xQueueGenericSend+0x130>
  49358. }
  49359. }
  49360. }
  49361. #else /* configUSE_QUEUE_SETS */
  49362. {
  49363. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49364. 8014eb0: 683a ldr r2, [r7, #0]
  49365. 8014eb2: 68b9 ldr r1, [r7, #8]
  49366. 8014eb4: 6b38 ldr r0, [r7, #48] @ 0x30
  49367. 8014eb6: f000 fbb9 bl 801562c <prvCopyDataToQueue>
  49368. 8014eba: 62f8 str r0, [r7, #44] @ 0x2c
  49369. /* If there was a task waiting for data to arrive on the
  49370. queue then unblock it now. */
  49371. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49372. 8014ebc: 6b3b ldr r3, [r7, #48] @ 0x30
  49373. 8014ebe: 6a5b ldr r3, [r3, #36] @ 0x24
  49374. 8014ec0: 2b00 cmp r3, #0
  49375. 8014ec2: d010 beq.n 8014ee6 <xQueueGenericSend+0x112>
  49376. {
  49377. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49378. 8014ec4: 6b3b ldr r3, [r7, #48] @ 0x30
  49379. 8014ec6: 3324 adds r3, #36 @ 0x24
  49380. 8014ec8: 4618 mov r0, r3
  49381. 8014eca: f001 fb7b bl 80165c4 <xTaskRemoveFromEventList>
  49382. 8014ece: 4603 mov r3, r0
  49383. 8014ed0: 2b00 cmp r3, #0
  49384. 8014ed2: d013 beq.n 8014efc <xQueueGenericSend+0x128>
  49385. {
  49386. /* The unblocked task has a priority higher than
  49387. our own so yield immediately. Yes it is ok to do
  49388. this from within the critical section - the kernel
  49389. takes care of that. */
  49390. queueYIELD_IF_USING_PREEMPTION();
  49391. 8014ed4: 4b3f ldr r3, [pc, #252] @ (8014fd4 <xQueueGenericSend+0x200>)
  49392. 8014ed6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49393. 8014eda: 601a str r2, [r3, #0]
  49394. 8014edc: f3bf 8f4f dsb sy
  49395. 8014ee0: f3bf 8f6f isb sy
  49396. 8014ee4: e00a b.n 8014efc <xQueueGenericSend+0x128>
  49397. else
  49398. {
  49399. mtCOVERAGE_TEST_MARKER();
  49400. }
  49401. }
  49402. else if( xYieldRequired != pdFALSE )
  49403. 8014ee6: 6afb ldr r3, [r7, #44] @ 0x2c
  49404. 8014ee8: 2b00 cmp r3, #0
  49405. 8014eea: d007 beq.n 8014efc <xQueueGenericSend+0x128>
  49406. {
  49407. /* This path is a special case that will only get
  49408. executed if the task was holding multiple mutexes and
  49409. the mutexes were given back in an order that is
  49410. different to that in which they were taken. */
  49411. queueYIELD_IF_USING_PREEMPTION();
  49412. 8014eec: 4b39 ldr r3, [pc, #228] @ (8014fd4 <xQueueGenericSend+0x200>)
  49413. 8014eee: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49414. 8014ef2: 601a str r2, [r3, #0]
  49415. 8014ef4: f3bf 8f4f dsb sy
  49416. 8014ef8: f3bf 8f6f isb sy
  49417. mtCOVERAGE_TEST_MARKER();
  49418. }
  49419. }
  49420. #endif /* configUSE_QUEUE_SETS */
  49421. taskEXIT_CRITICAL();
  49422. 8014efc: f002 ff16 bl 8017d2c <vPortExitCritical>
  49423. return pdPASS;
  49424. 8014f00: 2301 movs r3, #1
  49425. 8014f02: e063 b.n 8014fcc <xQueueGenericSend+0x1f8>
  49426. }
  49427. else
  49428. {
  49429. if( xTicksToWait == ( TickType_t ) 0 )
  49430. 8014f04: 687b ldr r3, [r7, #4]
  49431. 8014f06: 2b00 cmp r3, #0
  49432. 8014f08: d103 bne.n 8014f12 <xQueueGenericSend+0x13e>
  49433. {
  49434. /* The queue was full and no block time is specified (or
  49435. the block time has expired) so leave now. */
  49436. taskEXIT_CRITICAL();
  49437. 8014f0a: f002 ff0f bl 8017d2c <vPortExitCritical>
  49438. /* Return to the original privilege level before exiting
  49439. the function. */
  49440. traceQUEUE_SEND_FAILED( pxQueue );
  49441. return errQUEUE_FULL;
  49442. 8014f0e: 2300 movs r3, #0
  49443. 8014f10: e05c b.n 8014fcc <xQueueGenericSend+0x1f8>
  49444. }
  49445. else if( xEntryTimeSet == pdFALSE )
  49446. 8014f12: 6b7b ldr r3, [r7, #52] @ 0x34
  49447. 8014f14: 2b00 cmp r3, #0
  49448. 8014f16: d106 bne.n 8014f26 <xQueueGenericSend+0x152>
  49449. {
  49450. /* The queue was full and a block time was specified so
  49451. configure the timeout structure. */
  49452. vTaskInternalSetTimeOutState( &xTimeOut );
  49453. 8014f18: f107 0314 add.w r3, r7, #20
  49454. 8014f1c: 4618 mov r0, r3
  49455. 8014f1e: f001 fbdd bl 80166dc <vTaskInternalSetTimeOutState>
  49456. xEntryTimeSet = pdTRUE;
  49457. 8014f22: 2301 movs r3, #1
  49458. 8014f24: 637b str r3, [r7, #52] @ 0x34
  49459. /* Entry time was already set. */
  49460. mtCOVERAGE_TEST_MARKER();
  49461. }
  49462. }
  49463. }
  49464. taskEXIT_CRITICAL();
  49465. 8014f26: f002 ff01 bl 8017d2c <vPortExitCritical>
  49466. /* Interrupts and other tasks can send to and receive from the queue
  49467. now the critical section has been exited. */
  49468. vTaskSuspendAll();
  49469. 8014f2a: f001 f90f bl 801614c <vTaskSuspendAll>
  49470. prvLockQueue( pxQueue );
  49471. 8014f2e: f002 fecb bl 8017cc8 <vPortEnterCritical>
  49472. 8014f32: 6b3b ldr r3, [r7, #48] @ 0x30
  49473. 8014f34: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49474. 8014f38: b25b sxtb r3, r3
  49475. 8014f3a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49476. 8014f3e: d103 bne.n 8014f48 <xQueueGenericSend+0x174>
  49477. 8014f40: 6b3b ldr r3, [r7, #48] @ 0x30
  49478. 8014f42: 2200 movs r2, #0
  49479. 8014f44: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49480. 8014f48: 6b3b ldr r3, [r7, #48] @ 0x30
  49481. 8014f4a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49482. 8014f4e: b25b sxtb r3, r3
  49483. 8014f50: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49484. 8014f54: d103 bne.n 8014f5e <xQueueGenericSend+0x18a>
  49485. 8014f56: 6b3b ldr r3, [r7, #48] @ 0x30
  49486. 8014f58: 2200 movs r2, #0
  49487. 8014f5a: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49488. 8014f5e: f002 fee5 bl 8017d2c <vPortExitCritical>
  49489. /* Update the timeout state to see if it has expired yet. */
  49490. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49491. 8014f62: 1d3a adds r2, r7, #4
  49492. 8014f64: f107 0314 add.w r3, r7, #20
  49493. 8014f68: 4611 mov r1, r2
  49494. 8014f6a: 4618 mov r0, r3
  49495. 8014f6c: f001 fbcc bl 8016708 <xTaskCheckForTimeOut>
  49496. 8014f70: 4603 mov r3, r0
  49497. 8014f72: 2b00 cmp r3, #0
  49498. 8014f74: d124 bne.n 8014fc0 <xQueueGenericSend+0x1ec>
  49499. {
  49500. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  49501. 8014f76: 6b38 ldr r0, [r7, #48] @ 0x30
  49502. 8014f78: f000 fc50 bl 801581c <prvIsQueueFull>
  49503. 8014f7c: 4603 mov r3, r0
  49504. 8014f7e: 2b00 cmp r3, #0
  49505. 8014f80: d018 beq.n 8014fb4 <xQueueGenericSend+0x1e0>
  49506. {
  49507. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  49508. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  49509. 8014f82: 6b3b ldr r3, [r7, #48] @ 0x30
  49510. 8014f84: 3310 adds r3, #16
  49511. 8014f86: 687a ldr r2, [r7, #4]
  49512. 8014f88: 4611 mov r1, r2
  49513. 8014f8a: 4618 mov r0, r3
  49514. 8014f8c: f001 fac8 bl 8016520 <vTaskPlaceOnEventList>
  49515. /* Unlocking the queue means queue events can effect the
  49516. event list. It is possible that interrupts occurring now
  49517. remove this task from the event list again - but as the
  49518. scheduler is suspended the task will go onto the pending
  49519. ready last instead of the actual ready list. */
  49520. prvUnlockQueue( pxQueue );
  49521. 8014f90: 6b38 ldr r0, [r7, #48] @ 0x30
  49522. 8014f92: f000 fbdb bl 801574c <prvUnlockQueue>
  49523. /* Resuming the scheduler will move tasks from the pending
  49524. ready list into the ready list - so it is feasible that this
  49525. task is already in a ready list before it yields - in which
  49526. case the yield will not cause a context switch unless there
  49527. is also a higher priority task in the pending ready list. */
  49528. if( xTaskResumeAll() == pdFALSE )
  49529. 8014f96: f001 f8e7 bl 8016168 <xTaskResumeAll>
  49530. 8014f9a: 4603 mov r3, r0
  49531. 8014f9c: 2b00 cmp r3, #0
  49532. 8014f9e: f47f af7c bne.w 8014e9a <xQueueGenericSend+0xc6>
  49533. {
  49534. portYIELD_WITHIN_API();
  49535. 8014fa2: 4b0c ldr r3, [pc, #48] @ (8014fd4 <xQueueGenericSend+0x200>)
  49536. 8014fa4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49537. 8014fa8: 601a str r2, [r3, #0]
  49538. 8014faa: f3bf 8f4f dsb sy
  49539. 8014fae: f3bf 8f6f isb sy
  49540. 8014fb2: e772 b.n 8014e9a <xQueueGenericSend+0xc6>
  49541. }
  49542. }
  49543. else
  49544. {
  49545. /* Try again. */
  49546. prvUnlockQueue( pxQueue );
  49547. 8014fb4: 6b38 ldr r0, [r7, #48] @ 0x30
  49548. 8014fb6: f000 fbc9 bl 801574c <prvUnlockQueue>
  49549. ( void ) xTaskResumeAll();
  49550. 8014fba: f001 f8d5 bl 8016168 <xTaskResumeAll>
  49551. 8014fbe: e76c b.n 8014e9a <xQueueGenericSend+0xc6>
  49552. }
  49553. }
  49554. else
  49555. {
  49556. /* The timeout has expired. */
  49557. prvUnlockQueue( pxQueue );
  49558. 8014fc0: 6b38 ldr r0, [r7, #48] @ 0x30
  49559. 8014fc2: f000 fbc3 bl 801574c <prvUnlockQueue>
  49560. ( void ) xTaskResumeAll();
  49561. 8014fc6: f001 f8cf bl 8016168 <xTaskResumeAll>
  49562. traceQUEUE_SEND_FAILED( pxQueue );
  49563. return errQUEUE_FULL;
  49564. 8014fca: 2300 movs r3, #0
  49565. }
  49566. } /*lint -restore */
  49567. }
  49568. 8014fcc: 4618 mov r0, r3
  49569. 8014fce: 3738 adds r7, #56 @ 0x38
  49570. 8014fd0: 46bd mov sp, r7
  49571. 8014fd2: bd80 pop {r7, pc}
  49572. 8014fd4: e000ed04 .word 0xe000ed04
  49573. 08014fd8 <xQueueGenericSendFromISR>:
  49574. /*-----------------------------------------------------------*/
  49575. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  49576. {
  49577. 8014fd8: b580 push {r7, lr}
  49578. 8014fda: b090 sub sp, #64 @ 0x40
  49579. 8014fdc: af00 add r7, sp, #0
  49580. 8014fde: 60f8 str r0, [r7, #12]
  49581. 8014fe0: 60b9 str r1, [r7, #8]
  49582. 8014fe2: 607a str r2, [r7, #4]
  49583. 8014fe4: 603b str r3, [r7, #0]
  49584. BaseType_t xReturn;
  49585. UBaseType_t uxSavedInterruptStatus;
  49586. Queue_t * const pxQueue = xQueue;
  49587. 8014fe6: 68fb ldr r3, [r7, #12]
  49588. 8014fe8: 63bb str r3, [r7, #56] @ 0x38
  49589. configASSERT( pxQueue );
  49590. 8014fea: 6bbb ldr r3, [r7, #56] @ 0x38
  49591. 8014fec: 2b00 cmp r3, #0
  49592. 8014fee: d10b bne.n 8015008 <xQueueGenericSendFromISR+0x30>
  49593. __asm volatile
  49594. 8014ff0: f04f 0350 mov.w r3, #80 @ 0x50
  49595. 8014ff4: f383 8811 msr BASEPRI, r3
  49596. 8014ff8: f3bf 8f6f isb sy
  49597. 8014ffc: f3bf 8f4f dsb sy
  49598. 8015000: 62bb str r3, [r7, #40] @ 0x28
  49599. }
  49600. 8015002: bf00 nop
  49601. 8015004: bf00 nop
  49602. 8015006: e7fd b.n 8015004 <xQueueGenericSendFromISR+0x2c>
  49603. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49604. 8015008: 68bb ldr r3, [r7, #8]
  49605. 801500a: 2b00 cmp r3, #0
  49606. 801500c: d103 bne.n 8015016 <xQueueGenericSendFromISR+0x3e>
  49607. 801500e: 6bbb ldr r3, [r7, #56] @ 0x38
  49608. 8015010: 6c1b ldr r3, [r3, #64] @ 0x40
  49609. 8015012: 2b00 cmp r3, #0
  49610. 8015014: d101 bne.n 801501a <xQueueGenericSendFromISR+0x42>
  49611. 8015016: 2301 movs r3, #1
  49612. 8015018: e000 b.n 801501c <xQueueGenericSendFromISR+0x44>
  49613. 801501a: 2300 movs r3, #0
  49614. 801501c: 2b00 cmp r3, #0
  49615. 801501e: d10b bne.n 8015038 <xQueueGenericSendFromISR+0x60>
  49616. __asm volatile
  49617. 8015020: f04f 0350 mov.w r3, #80 @ 0x50
  49618. 8015024: f383 8811 msr BASEPRI, r3
  49619. 8015028: f3bf 8f6f isb sy
  49620. 801502c: f3bf 8f4f dsb sy
  49621. 8015030: 627b str r3, [r7, #36] @ 0x24
  49622. }
  49623. 8015032: bf00 nop
  49624. 8015034: bf00 nop
  49625. 8015036: e7fd b.n 8015034 <xQueueGenericSendFromISR+0x5c>
  49626. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49627. 8015038: 683b ldr r3, [r7, #0]
  49628. 801503a: 2b02 cmp r3, #2
  49629. 801503c: d103 bne.n 8015046 <xQueueGenericSendFromISR+0x6e>
  49630. 801503e: 6bbb ldr r3, [r7, #56] @ 0x38
  49631. 8015040: 6bdb ldr r3, [r3, #60] @ 0x3c
  49632. 8015042: 2b01 cmp r3, #1
  49633. 8015044: d101 bne.n 801504a <xQueueGenericSendFromISR+0x72>
  49634. 8015046: 2301 movs r3, #1
  49635. 8015048: e000 b.n 801504c <xQueueGenericSendFromISR+0x74>
  49636. 801504a: 2300 movs r3, #0
  49637. 801504c: 2b00 cmp r3, #0
  49638. 801504e: d10b bne.n 8015068 <xQueueGenericSendFromISR+0x90>
  49639. __asm volatile
  49640. 8015050: f04f 0350 mov.w r3, #80 @ 0x50
  49641. 8015054: f383 8811 msr BASEPRI, r3
  49642. 8015058: f3bf 8f6f isb sy
  49643. 801505c: f3bf 8f4f dsb sy
  49644. 8015060: 623b str r3, [r7, #32]
  49645. }
  49646. 8015062: bf00 nop
  49647. 8015064: bf00 nop
  49648. 8015066: e7fd b.n 8015064 <xQueueGenericSendFromISR+0x8c>
  49649. that have been assigned a priority at or (logically) below the maximum
  49650. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49651. safe API to ensure interrupt entry is as fast and as simple as possible.
  49652. More information (albeit Cortex-M specific) is provided on the following
  49653. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49654. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49655. 8015068: f002 ff0e bl 8017e88 <vPortValidateInterruptPriority>
  49656. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  49657. {
  49658. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  49659. __asm volatile
  49660. 801506c: f3ef 8211 mrs r2, BASEPRI
  49661. 8015070: f04f 0350 mov.w r3, #80 @ 0x50
  49662. 8015074: f383 8811 msr BASEPRI, r3
  49663. 8015078: f3bf 8f6f isb sy
  49664. 801507c: f3bf 8f4f dsb sy
  49665. 8015080: 61fa str r2, [r7, #28]
  49666. 8015082: 61bb str r3, [r7, #24]
  49667. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  49668. );
  49669. /* This return will not be reached but is necessary to prevent compiler
  49670. warnings. */
  49671. return ulOriginalBASEPRI;
  49672. 8015084: 69fb ldr r3, [r7, #28]
  49673. /* Similar to xQueueGenericSend, except without blocking if there is no room
  49674. in the queue. Also don't directly wake a task that was blocked on a queue
  49675. read, instead return a flag to say whether a context switch is required or
  49676. not (i.e. has a task with a higher priority than us been woken by this
  49677. post). */
  49678. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49679. 8015086: 637b str r3, [r7, #52] @ 0x34
  49680. {
  49681. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49682. 8015088: 6bbb ldr r3, [r7, #56] @ 0x38
  49683. 801508a: 6b9a ldr r2, [r3, #56] @ 0x38
  49684. 801508c: 6bbb ldr r3, [r7, #56] @ 0x38
  49685. 801508e: 6bdb ldr r3, [r3, #60] @ 0x3c
  49686. 8015090: 429a cmp r2, r3
  49687. 8015092: d302 bcc.n 801509a <xQueueGenericSendFromISR+0xc2>
  49688. 8015094: 683b ldr r3, [r7, #0]
  49689. 8015096: 2b02 cmp r3, #2
  49690. 8015098: d12f bne.n 80150fa <xQueueGenericSendFromISR+0x122>
  49691. {
  49692. const int8_t cTxLock = pxQueue->cTxLock;
  49693. 801509a: 6bbb ldr r3, [r7, #56] @ 0x38
  49694. 801509c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49695. 80150a0: f887 3033 strb.w r3, [r7, #51] @ 0x33
  49696. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  49697. 80150a4: 6bbb ldr r3, [r7, #56] @ 0x38
  49698. 80150a6: 6b9b ldr r3, [r3, #56] @ 0x38
  49699. 80150a8: 62fb str r3, [r7, #44] @ 0x2c
  49700. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  49701. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  49702. in a task disinheriting a priority and prvCopyDataToQueue() can be
  49703. called here even though the disinherit function does not check if
  49704. the scheduler is suspended before accessing the ready lists. */
  49705. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49706. 80150aa: 683a ldr r2, [r7, #0]
  49707. 80150ac: 68b9 ldr r1, [r7, #8]
  49708. 80150ae: 6bb8 ldr r0, [r7, #56] @ 0x38
  49709. 80150b0: f000 fabc bl 801562c <prvCopyDataToQueue>
  49710. /* The event list is not altered if the queue is locked. This will
  49711. be done when the queue is unlocked later. */
  49712. if( cTxLock == queueUNLOCKED )
  49713. 80150b4: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  49714. 80150b8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49715. 80150bc: d112 bne.n 80150e4 <xQueueGenericSendFromISR+0x10c>
  49716. }
  49717. }
  49718. }
  49719. #else /* configUSE_QUEUE_SETS */
  49720. {
  49721. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49722. 80150be: 6bbb ldr r3, [r7, #56] @ 0x38
  49723. 80150c0: 6a5b ldr r3, [r3, #36] @ 0x24
  49724. 80150c2: 2b00 cmp r3, #0
  49725. 80150c4: d016 beq.n 80150f4 <xQueueGenericSendFromISR+0x11c>
  49726. {
  49727. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49728. 80150c6: 6bbb ldr r3, [r7, #56] @ 0x38
  49729. 80150c8: 3324 adds r3, #36 @ 0x24
  49730. 80150ca: 4618 mov r0, r3
  49731. 80150cc: f001 fa7a bl 80165c4 <xTaskRemoveFromEventList>
  49732. 80150d0: 4603 mov r3, r0
  49733. 80150d2: 2b00 cmp r3, #0
  49734. 80150d4: d00e beq.n 80150f4 <xQueueGenericSendFromISR+0x11c>
  49735. {
  49736. /* The task waiting has a higher priority so record that a
  49737. context switch is required. */
  49738. if( pxHigherPriorityTaskWoken != NULL )
  49739. 80150d6: 687b ldr r3, [r7, #4]
  49740. 80150d8: 2b00 cmp r3, #0
  49741. 80150da: d00b beq.n 80150f4 <xQueueGenericSendFromISR+0x11c>
  49742. {
  49743. *pxHigherPriorityTaskWoken = pdTRUE;
  49744. 80150dc: 687b ldr r3, [r7, #4]
  49745. 80150de: 2201 movs r2, #1
  49746. 80150e0: 601a str r2, [r3, #0]
  49747. 80150e2: e007 b.n 80150f4 <xQueueGenericSendFromISR+0x11c>
  49748. }
  49749. else
  49750. {
  49751. /* Increment the lock count so the task that unlocks the queue
  49752. knows that data was posted while it was locked. */
  49753. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  49754. 80150e4: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  49755. 80150e8: 3301 adds r3, #1
  49756. 80150ea: b2db uxtb r3, r3
  49757. 80150ec: b25a sxtb r2, r3
  49758. 80150ee: 6bbb ldr r3, [r7, #56] @ 0x38
  49759. 80150f0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49760. }
  49761. xReturn = pdPASS;
  49762. 80150f4: 2301 movs r3, #1
  49763. 80150f6: 63fb str r3, [r7, #60] @ 0x3c
  49764. {
  49765. 80150f8: e001 b.n 80150fe <xQueueGenericSendFromISR+0x126>
  49766. }
  49767. else
  49768. {
  49769. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  49770. xReturn = errQUEUE_FULL;
  49771. 80150fa: 2300 movs r3, #0
  49772. 80150fc: 63fb str r3, [r7, #60] @ 0x3c
  49773. 80150fe: 6b7b ldr r3, [r7, #52] @ 0x34
  49774. 8015100: 617b str r3, [r7, #20]
  49775. }
  49776. /*-----------------------------------------------------------*/
  49777. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  49778. {
  49779. __asm volatile
  49780. 8015102: 697b ldr r3, [r7, #20]
  49781. 8015104: f383 8811 msr BASEPRI, r3
  49782. (
  49783. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  49784. );
  49785. }
  49786. 8015108: bf00 nop
  49787. }
  49788. }
  49789. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49790. return xReturn;
  49791. 801510a: 6bfb ldr r3, [r7, #60] @ 0x3c
  49792. }
  49793. 801510c: 4618 mov r0, r3
  49794. 801510e: 3740 adds r7, #64 @ 0x40
  49795. 8015110: 46bd mov sp, r7
  49796. 8015112: bd80 pop {r7, pc}
  49797. 08015114 <xQueueReceive>:
  49798. return xReturn;
  49799. }
  49800. /*-----------------------------------------------------------*/
  49801. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  49802. {
  49803. 8015114: b580 push {r7, lr}
  49804. 8015116: b08c sub sp, #48 @ 0x30
  49805. 8015118: af00 add r7, sp, #0
  49806. 801511a: 60f8 str r0, [r7, #12]
  49807. 801511c: 60b9 str r1, [r7, #8]
  49808. 801511e: 607a str r2, [r7, #4]
  49809. BaseType_t xEntryTimeSet = pdFALSE;
  49810. 8015120: 2300 movs r3, #0
  49811. 8015122: 62fb str r3, [r7, #44] @ 0x2c
  49812. TimeOut_t xTimeOut;
  49813. Queue_t * const pxQueue = xQueue;
  49814. 8015124: 68fb ldr r3, [r7, #12]
  49815. 8015126: 62bb str r3, [r7, #40] @ 0x28
  49816. /* Check the pointer is not NULL. */
  49817. configASSERT( ( pxQueue ) );
  49818. 8015128: 6abb ldr r3, [r7, #40] @ 0x28
  49819. 801512a: 2b00 cmp r3, #0
  49820. 801512c: d10b bne.n 8015146 <xQueueReceive+0x32>
  49821. __asm volatile
  49822. 801512e: f04f 0350 mov.w r3, #80 @ 0x50
  49823. 8015132: f383 8811 msr BASEPRI, r3
  49824. 8015136: f3bf 8f6f isb sy
  49825. 801513a: f3bf 8f4f dsb sy
  49826. 801513e: 623b str r3, [r7, #32]
  49827. }
  49828. 8015140: bf00 nop
  49829. 8015142: bf00 nop
  49830. 8015144: e7fd b.n 8015142 <xQueueReceive+0x2e>
  49831. /* The buffer into which data is received can only be NULL if the data size
  49832. is zero (so no data is copied into the buffer. */
  49833. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49834. 8015146: 68bb ldr r3, [r7, #8]
  49835. 8015148: 2b00 cmp r3, #0
  49836. 801514a: d103 bne.n 8015154 <xQueueReceive+0x40>
  49837. 801514c: 6abb ldr r3, [r7, #40] @ 0x28
  49838. 801514e: 6c1b ldr r3, [r3, #64] @ 0x40
  49839. 8015150: 2b00 cmp r3, #0
  49840. 8015152: d101 bne.n 8015158 <xQueueReceive+0x44>
  49841. 8015154: 2301 movs r3, #1
  49842. 8015156: e000 b.n 801515a <xQueueReceive+0x46>
  49843. 8015158: 2300 movs r3, #0
  49844. 801515a: 2b00 cmp r3, #0
  49845. 801515c: d10b bne.n 8015176 <xQueueReceive+0x62>
  49846. __asm volatile
  49847. 801515e: f04f 0350 mov.w r3, #80 @ 0x50
  49848. 8015162: f383 8811 msr BASEPRI, r3
  49849. 8015166: f3bf 8f6f isb sy
  49850. 801516a: f3bf 8f4f dsb sy
  49851. 801516e: 61fb str r3, [r7, #28]
  49852. }
  49853. 8015170: bf00 nop
  49854. 8015172: bf00 nop
  49855. 8015174: e7fd b.n 8015172 <xQueueReceive+0x5e>
  49856. /* Cannot block if the scheduler is suspended. */
  49857. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49858. {
  49859. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49860. 8015176: f001 fc23 bl 80169c0 <xTaskGetSchedulerState>
  49861. 801517a: 4603 mov r3, r0
  49862. 801517c: 2b00 cmp r3, #0
  49863. 801517e: d102 bne.n 8015186 <xQueueReceive+0x72>
  49864. 8015180: 687b ldr r3, [r7, #4]
  49865. 8015182: 2b00 cmp r3, #0
  49866. 8015184: d101 bne.n 801518a <xQueueReceive+0x76>
  49867. 8015186: 2301 movs r3, #1
  49868. 8015188: e000 b.n 801518c <xQueueReceive+0x78>
  49869. 801518a: 2300 movs r3, #0
  49870. 801518c: 2b00 cmp r3, #0
  49871. 801518e: d10b bne.n 80151a8 <xQueueReceive+0x94>
  49872. __asm volatile
  49873. 8015190: f04f 0350 mov.w r3, #80 @ 0x50
  49874. 8015194: f383 8811 msr BASEPRI, r3
  49875. 8015198: f3bf 8f6f isb sy
  49876. 801519c: f3bf 8f4f dsb sy
  49877. 80151a0: 61bb str r3, [r7, #24]
  49878. }
  49879. 80151a2: bf00 nop
  49880. 80151a4: bf00 nop
  49881. 80151a6: e7fd b.n 80151a4 <xQueueReceive+0x90>
  49882. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49883. allow return statements within the function itself. This is done in the
  49884. interest of execution time efficiency. */
  49885. for( ;; )
  49886. {
  49887. taskENTER_CRITICAL();
  49888. 80151a8: f002 fd8e bl 8017cc8 <vPortEnterCritical>
  49889. {
  49890. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49891. 80151ac: 6abb ldr r3, [r7, #40] @ 0x28
  49892. 80151ae: 6b9b ldr r3, [r3, #56] @ 0x38
  49893. 80151b0: 627b str r3, [r7, #36] @ 0x24
  49894. /* Is there data in the queue now? To be running the calling task
  49895. must be the highest priority task wanting to access the queue. */
  49896. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49897. 80151b2: 6a7b ldr r3, [r7, #36] @ 0x24
  49898. 80151b4: 2b00 cmp r3, #0
  49899. 80151b6: d01f beq.n 80151f8 <xQueueReceive+0xe4>
  49900. {
  49901. /* Data available, remove one item. */
  49902. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49903. 80151b8: 68b9 ldr r1, [r7, #8]
  49904. 80151ba: 6ab8 ldr r0, [r7, #40] @ 0x28
  49905. 80151bc: f000 faa0 bl 8015700 <prvCopyDataFromQueue>
  49906. traceQUEUE_RECEIVE( pxQueue );
  49907. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49908. 80151c0: 6a7b ldr r3, [r7, #36] @ 0x24
  49909. 80151c2: 1e5a subs r2, r3, #1
  49910. 80151c4: 6abb ldr r3, [r7, #40] @ 0x28
  49911. 80151c6: 639a str r2, [r3, #56] @ 0x38
  49912. /* There is now space in the queue, were any tasks waiting to
  49913. post to the queue? If so, unblock the highest priority waiting
  49914. task. */
  49915. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49916. 80151c8: 6abb ldr r3, [r7, #40] @ 0x28
  49917. 80151ca: 691b ldr r3, [r3, #16]
  49918. 80151cc: 2b00 cmp r3, #0
  49919. 80151ce: d00f beq.n 80151f0 <xQueueReceive+0xdc>
  49920. {
  49921. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49922. 80151d0: 6abb ldr r3, [r7, #40] @ 0x28
  49923. 80151d2: 3310 adds r3, #16
  49924. 80151d4: 4618 mov r0, r3
  49925. 80151d6: f001 f9f5 bl 80165c4 <xTaskRemoveFromEventList>
  49926. 80151da: 4603 mov r3, r0
  49927. 80151dc: 2b00 cmp r3, #0
  49928. 80151de: d007 beq.n 80151f0 <xQueueReceive+0xdc>
  49929. {
  49930. queueYIELD_IF_USING_PREEMPTION();
  49931. 80151e0: 4b3c ldr r3, [pc, #240] @ (80152d4 <xQueueReceive+0x1c0>)
  49932. 80151e2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49933. 80151e6: 601a str r2, [r3, #0]
  49934. 80151e8: f3bf 8f4f dsb sy
  49935. 80151ec: f3bf 8f6f isb sy
  49936. else
  49937. {
  49938. mtCOVERAGE_TEST_MARKER();
  49939. }
  49940. taskEXIT_CRITICAL();
  49941. 80151f0: f002 fd9c bl 8017d2c <vPortExitCritical>
  49942. return pdPASS;
  49943. 80151f4: 2301 movs r3, #1
  49944. 80151f6: e069 b.n 80152cc <xQueueReceive+0x1b8>
  49945. }
  49946. else
  49947. {
  49948. if( xTicksToWait == ( TickType_t ) 0 )
  49949. 80151f8: 687b ldr r3, [r7, #4]
  49950. 80151fa: 2b00 cmp r3, #0
  49951. 80151fc: d103 bne.n 8015206 <xQueueReceive+0xf2>
  49952. {
  49953. /* The queue was empty and no block time is specified (or
  49954. the block time has expired) so leave now. */
  49955. taskEXIT_CRITICAL();
  49956. 80151fe: f002 fd95 bl 8017d2c <vPortExitCritical>
  49957. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49958. return errQUEUE_EMPTY;
  49959. 8015202: 2300 movs r3, #0
  49960. 8015204: e062 b.n 80152cc <xQueueReceive+0x1b8>
  49961. }
  49962. else if( xEntryTimeSet == pdFALSE )
  49963. 8015206: 6afb ldr r3, [r7, #44] @ 0x2c
  49964. 8015208: 2b00 cmp r3, #0
  49965. 801520a: d106 bne.n 801521a <xQueueReceive+0x106>
  49966. {
  49967. /* The queue was empty and a block time was specified so
  49968. configure the timeout structure. */
  49969. vTaskInternalSetTimeOutState( &xTimeOut );
  49970. 801520c: f107 0310 add.w r3, r7, #16
  49971. 8015210: 4618 mov r0, r3
  49972. 8015212: f001 fa63 bl 80166dc <vTaskInternalSetTimeOutState>
  49973. xEntryTimeSet = pdTRUE;
  49974. 8015216: 2301 movs r3, #1
  49975. 8015218: 62fb str r3, [r7, #44] @ 0x2c
  49976. /* Entry time was already set. */
  49977. mtCOVERAGE_TEST_MARKER();
  49978. }
  49979. }
  49980. }
  49981. taskEXIT_CRITICAL();
  49982. 801521a: f002 fd87 bl 8017d2c <vPortExitCritical>
  49983. /* Interrupts and other tasks can send to and receive from the queue
  49984. now the critical section has been exited. */
  49985. vTaskSuspendAll();
  49986. 801521e: f000 ff95 bl 801614c <vTaskSuspendAll>
  49987. prvLockQueue( pxQueue );
  49988. 8015222: f002 fd51 bl 8017cc8 <vPortEnterCritical>
  49989. 8015226: 6abb ldr r3, [r7, #40] @ 0x28
  49990. 8015228: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49991. 801522c: b25b sxtb r3, r3
  49992. 801522e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49993. 8015232: d103 bne.n 801523c <xQueueReceive+0x128>
  49994. 8015234: 6abb ldr r3, [r7, #40] @ 0x28
  49995. 8015236: 2200 movs r2, #0
  49996. 8015238: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49997. 801523c: 6abb ldr r3, [r7, #40] @ 0x28
  49998. 801523e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49999. 8015242: b25b sxtb r3, r3
  50000. 8015244: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50001. 8015248: d103 bne.n 8015252 <xQueueReceive+0x13e>
  50002. 801524a: 6abb ldr r3, [r7, #40] @ 0x28
  50003. 801524c: 2200 movs r2, #0
  50004. 801524e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50005. 8015252: f002 fd6b bl 8017d2c <vPortExitCritical>
  50006. /* Update the timeout state to see if it has expired yet. */
  50007. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50008. 8015256: 1d3a adds r2, r7, #4
  50009. 8015258: f107 0310 add.w r3, r7, #16
  50010. 801525c: 4611 mov r1, r2
  50011. 801525e: 4618 mov r0, r3
  50012. 8015260: f001 fa52 bl 8016708 <xTaskCheckForTimeOut>
  50013. 8015264: 4603 mov r3, r0
  50014. 8015266: 2b00 cmp r3, #0
  50015. 8015268: d123 bne.n 80152b2 <xQueueReceive+0x19e>
  50016. {
  50017. /* The timeout has not expired. If the queue is still empty place
  50018. the task on the list of tasks waiting to receive from the queue. */
  50019. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50020. 801526a: 6ab8 ldr r0, [r7, #40] @ 0x28
  50021. 801526c: f000 fac0 bl 80157f0 <prvIsQueueEmpty>
  50022. 8015270: 4603 mov r3, r0
  50023. 8015272: 2b00 cmp r3, #0
  50024. 8015274: d017 beq.n 80152a6 <xQueueReceive+0x192>
  50025. {
  50026. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50027. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50028. 8015276: 6abb ldr r3, [r7, #40] @ 0x28
  50029. 8015278: 3324 adds r3, #36 @ 0x24
  50030. 801527a: 687a ldr r2, [r7, #4]
  50031. 801527c: 4611 mov r1, r2
  50032. 801527e: 4618 mov r0, r3
  50033. 8015280: f001 f94e bl 8016520 <vTaskPlaceOnEventList>
  50034. prvUnlockQueue( pxQueue );
  50035. 8015284: 6ab8 ldr r0, [r7, #40] @ 0x28
  50036. 8015286: f000 fa61 bl 801574c <prvUnlockQueue>
  50037. if( xTaskResumeAll() == pdFALSE )
  50038. 801528a: f000 ff6d bl 8016168 <xTaskResumeAll>
  50039. 801528e: 4603 mov r3, r0
  50040. 8015290: 2b00 cmp r3, #0
  50041. 8015292: d189 bne.n 80151a8 <xQueueReceive+0x94>
  50042. {
  50043. portYIELD_WITHIN_API();
  50044. 8015294: 4b0f ldr r3, [pc, #60] @ (80152d4 <xQueueReceive+0x1c0>)
  50045. 8015296: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50046. 801529a: 601a str r2, [r3, #0]
  50047. 801529c: f3bf 8f4f dsb sy
  50048. 80152a0: f3bf 8f6f isb sy
  50049. 80152a4: e780 b.n 80151a8 <xQueueReceive+0x94>
  50050. }
  50051. else
  50052. {
  50053. /* The queue contains data again. Loop back to try and read the
  50054. data. */
  50055. prvUnlockQueue( pxQueue );
  50056. 80152a6: 6ab8 ldr r0, [r7, #40] @ 0x28
  50057. 80152a8: f000 fa50 bl 801574c <prvUnlockQueue>
  50058. ( void ) xTaskResumeAll();
  50059. 80152ac: f000 ff5c bl 8016168 <xTaskResumeAll>
  50060. 80152b0: e77a b.n 80151a8 <xQueueReceive+0x94>
  50061. }
  50062. else
  50063. {
  50064. /* Timed out. If there is no data in the queue exit, otherwise loop
  50065. back and attempt to read the data. */
  50066. prvUnlockQueue( pxQueue );
  50067. 80152b2: 6ab8 ldr r0, [r7, #40] @ 0x28
  50068. 80152b4: f000 fa4a bl 801574c <prvUnlockQueue>
  50069. ( void ) xTaskResumeAll();
  50070. 80152b8: f000 ff56 bl 8016168 <xTaskResumeAll>
  50071. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50072. 80152bc: 6ab8 ldr r0, [r7, #40] @ 0x28
  50073. 80152be: f000 fa97 bl 80157f0 <prvIsQueueEmpty>
  50074. 80152c2: 4603 mov r3, r0
  50075. 80152c4: 2b00 cmp r3, #0
  50076. 80152c6: f43f af6f beq.w 80151a8 <xQueueReceive+0x94>
  50077. {
  50078. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50079. return errQUEUE_EMPTY;
  50080. 80152ca: 2300 movs r3, #0
  50081. {
  50082. mtCOVERAGE_TEST_MARKER();
  50083. }
  50084. }
  50085. } /*lint -restore */
  50086. }
  50087. 80152cc: 4618 mov r0, r3
  50088. 80152ce: 3730 adds r7, #48 @ 0x30
  50089. 80152d0: 46bd mov sp, r7
  50090. 80152d2: bd80 pop {r7, pc}
  50091. 80152d4: e000ed04 .word 0xe000ed04
  50092. 080152d8 <xQueueSemaphoreTake>:
  50093. /*-----------------------------------------------------------*/
  50094. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  50095. {
  50096. 80152d8: b580 push {r7, lr}
  50097. 80152da: b08e sub sp, #56 @ 0x38
  50098. 80152dc: af00 add r7, sp, #0
  50099. 80152de: 6078 str r0, [r7, #4]
  50100. 80152e0: 6039 str r1, [r7, #0]
  50101. BaseType_t xEntryTimeSet = pdFALSE;
  50102. 80152e2: 2300 movs r3, #0
  50103. 80152e4: 637b str r3, [r7, #52] @ 0x34
  50104. TimeOut_t xTimeOut;
  50105. Queue_t * const pxQueue = xQueue;
  50106. 80152e6: 687b ldr r3, [r7, #4]
  50107. 80152e8: 62fb str r3, [r7, #44] @ 0x2c
  50108. #if( configUSE_MUTEXES == 1 )
  50109. BaseType_t xInheritanceOccurred = pdFALSE;
  50110. 80152ea: 2300 movs r3, #0
  50111. 80152ec: 633b str r3, [r7, #48] @ 0x30
  50112. #endif
  50113. /* Check the queue pointer is not NULL. */
  50114. configASSERT( ( pxQueue ) );
  50115. 80152ee: 6afb ldr r3, [r7, #44] @ 0x2c
  50116. 80152f0: 2b00 cmp r3, #0
  50117. 80152f2: d10b bne.n 801530c <xQueueSemaphoreTake+0x34>
  50118. __asm volatile
  50119. 80152f4: f04f 0350 mov.w r3, #80 @ 0x50
  50120. 80152f8: f383 8811 msr BASEPRI, r3
  50121. 80152fc: f3bf 8f6f isb sy
  50122. 8015300: f3bf 8f4f dsb sy
  50123. 8015304: 623b str r3, [r7, #32]
  50124. }
  50125. 8015306: bf00 nop
  50126. 8015308: bf00 nop
  50127. 801530a: e7fd b.n 8015308 <xQueueSemaphoreTake+0x30>
  50128. /* Check this really is a semaphore, in which case the item size will be
  50129. 0. */
  50130. configASSERT( pxQueue->uxItemSize == 0 );
  50131. 801530c: 6afb ldr r3, [r7, #44] @ 0x2c
  50132. 801530e: 6c1b ldr r3, [r3, #64] @ 0x40
  50133. 8015310: 2b00 cmp r3, #0
  50134. 8015312: d00b beq.n 801532c <xQueueSemaphoreTake+0x54>
  50135. __asm volatile
  50136. 8015314: f04f 0350 mov.w r3, #80 @ 0x50
  50137. 8015318: f383 8811 msr BASEPRI, r3
  50138. 801531c: f3bf 8f6f isb sy
  50139. 8015320: f3bf 8f4f dsb sy
  50140. 8015324: 61fb str r3, [r7, #28]
  50141. }
  50142. 8015326: bf00 nop
  50143. 8015328: bf00 nop
  50144. 801532a: e7fd b.n 8015328 <xQueueSemaphoreTake+0x50>
  50145. /* Cannot block if the scheduler is suspended. */
  50146. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  50147. {
  50148. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  50149. 801532c: f001 fb48 bl 80169c0 <xTaskGetSchedulerState>
  50150. 8015330: 4603 mov r3, r0
  50151. 8015332: 2b00 cmp r3, #0
  50152. 8015334: d102 bne.n 801533c <xQueueSemaphoreTake+0x64>
  50153. 8015336: 683b ldr r3, [r7, #0]
  50154. 8015338: 2b00 cmp r3, #0
  50155. 801533a: d101 bne.n 8015340 <xQueueSemaphoreTake+0x68>
  50156. 801533c: 2301 movs r3, #1
  50157. 801533e: e000 b.n 8015342 <xQueueSemaphoreTake+0x6a>
  50158. 8015340: 2300 movs r3, #0
  50159. 8015342: 2b00 cmp r3, #0
  50160. 8015344: d10b bne.n 801535e <xQueueSemaphoreTake+0x86>
  50161. __asm volatile
  50162. 8015346: f04f 0350 mov.w r3, #80 @ 0x50
  50163. 801534a: f383 8811 msr BASEPRI, r3
  50164. 801534e: f3bf 8f6f isb sy
  50165. 8015352: f3bf 8f4f dsb sy
  50166. 8015356: 61bb str r3, [r7, #24]
  50167. }
  50168. 8015358: bf00 nop
  50169. 801535a: bf00 nop
  50170. 801535c: e7fd b.n 801535a <xQueueSemaphoreTake+0x82>
  50171. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  50172. statements within the function itself. This is done in the interest
  50173. of execution time efficiency. */
  50174. for( ;; )
  50175. {
  50176. taskENTER_CRITICAL();
  50177. 801535e: f002 fcb3 bl 8017cc8 <vPortEnterCritical>
  50178. {
  50179. /* Semaphores are queues with an item size of 0, and where the
  50180. number of messages in the queue is the semaphore's count value. */
  50181. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  50182. 8015362: 6afb ldr r3, [r7, #44] @ 0x2c
  50183. 8015364: 6b9b ldr r3, [r3, #56] @ 0x38
  50184. 8015366: 62bb str r3, [r7, #40] @ 0x28
  50185. /* Is there data in the queue now? To be running the calling task
  50186. must be the highest priority task wanting to access the queue. */
  50187. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  50188. 8015368: 6abb ldr r3, [r7, #40] @ 0x28
  50189. 801536a: 2b00 cmp r3, #0
  50190. 801536c: d024 beq.n 80153b8 <xQueueSemaphoreTake+0xe0>
  50191. {
  50192. traceQUEUE_RECEIVE( pxQueue );
  50193. /* Semaphores are queues with a data size of zero and where the
  50194. messages waiting is the semaphore's count. Reduce the count. */
  50195. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  50196. 801536e: 6abb ldr r3, [r7, #40] @ 0x28
  50197. 8015370: 1e5a subs r2, r3, #1
  50198. 8015372: 6afb ldr r3, [r7, #44] @ 0x2c
  50199. 8015374: 639a str r2, [r3, #56] @ 0x38
  50200. #if ( configUSE_MUTEXES == 1 )
  50201. {
  50202. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50203. 8015376: 6afb ldr r3, [r7, #44] @ 0x2c
  50204. 8015378: 681b ldr r3, [r3, #0]
  50205. 801537a: 2b00 cmp r3, #0
  50206. 801537c: d104 bne.n 8015388 <xQueueSemaphoreTake+0xb0>
  50207. {
  50208. /* Record the information required to implement
  50209. priority inheritance should it become necessary. */
  50210. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  50211. 801537e: f001 fc99 bl 8016cb4 <pvTaskIncrementMutexHeldCount>
  50212. 8015382: 4602 mov r2, r0
  50213. 8015384: 6afb ldr r3, [r7, #44] @ 0x2c
  50214. 8015386: 609a str r2, [r3, #8]
  50215. }
  50216. #endif /* configUSE_MUTEXES */
  50217. /* Check to see if other tasks are blocked waiting to give the
  50218. semaphore, and if so, unblock the highest priority such task. */
  50219. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50220. 8015388: 6afb ldr r3, [r7, #44] @ 0x2c
  50221. 801538a: 691b ldr r3, [r3, #16]
  50222. 801538c: 2b00 cmp r3, #0
  50223. 801538e: d00f beq.n 80153b0 <xQueueSemaphoreTake+0xd8>
  50224. {
  50225. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50226. 8015390: 6afb ldr r3, [r7, #44] @ 0x2c
  50227. 8015392: 3310 adds r3, #16
  50228. 8015394: 4618 mov r0, r3
  50229. 8015396: f001 f915 bl 80165c4 <xTaskRemoveFromEventList>
  50230. 801539a: 4603 mov r3, r0
  50231. 801539c: 2b00 cmp r3, #0
  50232. 801539e: d007 beq.n 80153b0 <xQueueSemaphoreTake+0xd8>
  50233. {
  50234. queueYIELD_IF_USING_PREEMPTION();
  50235. 80153a0: 4b54 ldr r3, [pc, #336] @ (80154f4 <xQueueSemaphoreTake+0x21c>)
  50236. 80153a2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50237. 80153a6: 601a str r2, [r3, #0]
  50238. 80153a8: f3bf 8f4f dsb sy
  50239. 80153ac: f3bf 8f6f isb sy
  50240. else
  50241. {
  50242. mtCOVERAGE_TEST_MARKER();
  50243. }
  50244. taskEXIT_CRITICAL();
  50245. 80153b0: f002 fcbc bl 8017d2c <vPortExitCritical>
  50246. return pdPASS;
  50247. 80153b4: 2301 movs r3, #1
  50248. 80153b6: e098 b.n 80154ea <xQueueSemaphoreTake+0x212>
  50249. }
  50250. else
  50251. {
  50252. if( xTicksToWait == ( TickType_t ) 0 )
  50253. 80153b8: 683b ldr r3, [r7, #0]
  50254. 80153ba: 2b00 cmp r3, #0
  50255. 80153bc: d112 bne.n 80153e4 <xQueueSemaphoreTake+0x10c>
  50256. /* For inheritance to have occurred there must have been an
  50257. initial timeout, and an adjusted timeout cannot become 0, as
  50258. if it were 0 the function would have exited. */
  50259. #if( configUSE_MUTEXES == 1 )
  50260. {
  50261. configASSERT( xInheritanceOccurred == pdFALSE );
  50262. 80153be: 6b3b ldr r3, [r7, #48] @ 0x30
  50263. 80153c0: 2b00 cmp r3, #0
  50264. 80153c2: d00b beq.n 80153dc <xQueueSemaphoreTake+0x104>
  50265. __asm volatile
  50266. 80153c4: f04f 0350 mov.w r3, #80 @ 0x50
  50267. 80153c8: f383 8811 msr BASEPRI, r3
  50268. 80153cc: f3bf 8f6f isb sy
  50269. 80153d0: f3bf 8f4f dsb sy
  50270. 80153d4: 617b str r3, [r7, #20]
  50271. }
  50272. 80153d6: bf00 nop
  50273. 80153d8: bf00 nop
  50274. 80153da: e7fd b.n 80153d8 <xQueueSemaphoreTake+0x100>
  50275. }
  50276. #endif /* configUSE_MUTEXES */
  50277. /* The semaphore count was 0 and no block time is specified
  50278. (or the block time has expired) so exit now. */
  50279. taskEXIT_CRITICAL();
  50280. 80153dc: f002 fca6 bl 8017d2c <vPortExitCritical>
  50281. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50282. return errQUEUE_EMPTY;
  50283. 80153e0: 2300 movs r3, #0
  50284. 80153e2: e082 b.n 80154ea <xQueueSemaphoreTake+0x212>
  50285. }
  50286. else if( xEntryTimeSet == pdFALSE )
  50287. 80153e4: 6b7b ldr r3, [r7, #52] @ 0x34
  50288. 80153e6: 2b00 cmp r3, #0
  50289. 80153e8: d106 bne.n 80153f8 <xQueueSemaphoreTake+0x120>
  50290. {
  50291. /* The semaphore count was 0 and a block time was specified
  50292. so configure the timeout structure ready to block. */
  50293. vTaskInternalSetTimeOutState( &xTimeOut );
  50294. 80153ea: f107 030c add.w r3, r7, #12
  50295. 80153ee: 4618 mov r0, r3
  50296. 80153f0: f001 f974 bl 80166dc <vTaskInternalSetTimeOutState>
  50297. xEntryTimeSet = pdTRUE;
  50298. 80153f4: 2301 movs r3, #1
  50299. 80153f6: 637b str r3, [r7, #52] @ 0x34
  50300. /* Entry time was already set. */
  50301. mtCOVERAGE_TEST_MARKER();
  50302. }
  50303. }
  50304. }
  50305. taskEXIT_CRITICAL();
  50306. 80153f8: f002 fc98 bl 8017d2c <vPortExitCritical>
  50307. /* Interrupts and other tasks can give to and take from the semaphore
  50308. now the critical section has been exited. */
  50309. vTaskSuspendAll();
  50310. 80153fc: f000 fea6 bl 801614c <vTaskSuspendAll>
  50311. prvLockQueue( pxQueue );
  50312. 8015400: f002 fc62 bl 8017cc8 <vPortEnterCritical>
  50313. 8015404: 6afb ldr r3, [r7, #44] @ 0x2c
  50314. 8015406: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50315. 801540a: b25b sxtb r3, r3
  50316. 801540c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50317. 8015410: d103 bne.n 801541a <xQueueSemaphoreTake+0x142>
  50318. 8015412: 6afb ldr r3, [r7, #44] @ 0x2c
  50319. 8015414: 2200 movs r2, #0
  50320. 8015416: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50321. 801541a: 6afb ldr r3, [r7, #44] @ 0x2c
  50322. 801541c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50323. 8015420: b25b sxtb r3, r3
  50324. 8015422: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50325. 8015426: d103 bne.n 8015430 <xQueueSemaphoreTake+0x158>
  50326. 8015428: 6afb ldr r3, [r7, #44] @ 0x2c
  50327. 801542a: 2200 movs r2, #0
  50328. 801542c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50329. 8015430: f002 fc7c bl 8017d2c <vPortExitCritical>
  50330. /* Update the timeout state to see if it has expired yet. */
  50331. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50332. 8015434: 463a mov r2, r7
  50333. 8015436: f107 030c add.w r3, r7, #12
  50334. 801543a: 4611 mov r1, r2
  50335. 801543c: 4618 mov r0, r3
  50336. 801543e: f001 f963 bl 8016708 <xTaskCheckForTimeOut>
  50337. 8015442: 4603 mov r3, r0
  50338. 8015444: 2b00 cmp r3, #0
  50339. 8015446: d132 bne.n 80154ae <xQueueSemaphoreTake+0x1d6>
  50340. {
  50341. /* A block time is specified and not expired. If the semaphore
  50342. count is 0 then enter the Blocked state to wait for a semaphore to
  50343. become available. As semaphores are implemented with queues the
  50344. queue being empty is equivalent to the semaphore count being 0. */
  50345. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50346. 8015448: 6af8 ldr r0, [r7, #44] @ 0x2c
  50347. 801544a: f000 f9d1 bl 80157f0 <prvIsQueueEmpty>
  50348. 801544e: 4603 mov r3, r0
  50349. 8015450: 2b00 cmp r3, #0
  50350. 8015452: d026 beq.n 80154a2 <xQueueSemaphoreTake+0x1ca>
  50351. {
  50352. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50353. #if ( configUSE_MUTEXES == 1 )
  50354. {
  50355. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50356. 8015454: 6afb ldr r3, [r7, #44] @ 0x2c
  50357. 8015456: 681b ldr r3, [r3, #0]
  50358. 8015458: 2b00 cmp r3, #0
  50359. 801545a: d109 bne.n 8015470 <xQueueSemaphoreTake+0x198>
  50360. {
  50361. taskENTER_CRITICAL();
  50362. 801545c: f002 fc34 bl 8017cc8 <vPortEnterCritical>
  50363. {
  50364. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  50365. 8015460: 6afb ldr r3, [r7, #44] @ 0x2c
  50366. 8015462: 689b ldr r3, [r3, #8]
  50367. 8015464: 4618 mov r0, r3
  50368. 8015466: f001 fac9 bl 80169fc <xTaskPriorityInherit>
  50369. 801546a: 6338 str r0, [r7, #48] @ 0x30
  50370. }
  50371. taskEXIT_CRITICAL();
  50372. 801546c: f002 fc5e bl 8017d2c <vPortExitCritical>
  50373. mtCOVERAGE_TEST_MARKER();
  50374. }
  50375. }
  50376. #endif
  50377. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50378. 8015470: 6afb ldr r3, [r7, #44] @ 0x2c
  50379. 8015472: 3324 adds r3, #36 @ 0x24
  50380. 8015474: 683a ldr r2, [r7, #0]
  50381. 8015476: 4611 mov r1, r2
  50382. 8015478: 4618 mov r0, r3
  50383. 801547a: f001 f851 bl 8016520 <vTaskPlaceOnEventList>
  50384. prvUnlockQueue( pxQueue );
  50385. 801547e: 6af8 ldr r0, [r7, #44] @ 0x2c
  50386. 8015480: f000 f964 bl 801574c <prvUnlockQueue>
  50387. if( xTaskResumeAll() == pdFALSE )
  50388. 8015484: f000 fe70 bl 8016168 <xTaskResumeAll>
  50389. 8015488: 4603 mov r3, r0
  50390. 801548a: 2b00 cmp r3, #0
  50391. 801548c: f47f af67 bne.w 801535e <xQueueSemaphoreTake+0x86>
  50392. {
  50393. portYIELD_WITHIN_API();
  50394. 8015490: 4b18 ldr r3, [pc, #96] @ (80154f4 <xQueueSemaphoreTake+0x21c>)
  50395. 8015492: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50396. 8015496: 601a str r2, [r3, #0]
  50397. 8015498: f3bf 8f4f dsb sy
  50398. 801549c: f3bf 8f6f isb sy
  50399. 80154a0: e75d b.n 801535e <xQueueSemaphoreTake+0x86>
  50400. }
  50401. else
  50402. {
  50403. /* There was no timeout and the semaphore count was not 0, so
  50404. attempt to take the semaphore again. */
  50405. prvUnlockQueue( pxQueue );
  50406. 80154a2: 6af8 ldr r0, [r7, #44] @ 0x2c
  50407. 80154a4: f000 f952 bl 801574c <prvUnlockQueue>
  50408. ( void ) xTaskResumeAll();
  50409. 80154a8: f000 fe5e bl 8016168 <xTaskResumeAll>
  50410. 80154ac: e757 b.n 801535e <xQueueSemaphoreTake+0x86>
  50411. }
  50412. }
  50413. else
  50414. {
  50415. /* Timed out. */
  50416. prvUnlockQueue( pxQueue );
  50417. 80154ae: 6af8 ldr r0, [r7, #44] @ 0x2c
  50418. 80154b0: f000 f94c bl 801574c <prvUnlockQueue>
  50419. ( void ) xTaskResumeAll();
  50420. 80154b4: f000 fe58 bl 8016168 <xTaskResumeAll>
  50421. /* If the semaphore count is 0 exit now as the timeout has
  50422. expired. Otherwise return to attempt to take the semaphore that is
  50423. known to be available. As semaphores are implemented by queues the
  50424. queue being empty is equivalent to the semaphore count being 0. */
  50425. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50426. 80154b8: 6af8 ldr r0, [r7, #44] @ 0x2c
  50427. 80154ba: f000 f999 bl 80157f0 <prvIsQueueEmpty>
  50428. 80154be: 4603 mov r3, r0
  50429. 80154c0: 2b00 cmp r3, #0
  50430. 80154c2: f43f af4c beq.w 801535e <xQueueSemaphoreTake+0x86>
  50431. #if ( configUSE_MUTEXES == 1 )
  50432. {
  50433. /* xInheritanceOccurred could only have be set if
  50434. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  50435. test the mutex type again to check it is actually a mutex. */
  50436. if( xInheritanceOccurred != pdFALSE )
  50437. 80154c6: 6b3b ldr r3, [r7, #48] @ 0x30
  50438. 80154c8: 2b00 cmp r3, #0
  50439. 80154ca: d00d beq.n 80154e8 <xQueueSemaphoreTake+0x210>
  50440. {
  50441. taskENTER_CRITICAL();
  50442. 80154cc: f002 fbfc bl 8017cc8 <vPortEnterCritical>
  50443. /* This task blocking on the mutex caused another
  50444. task to inherit this task's priority. Now this task
  50445. has timed out the priority should be disinherited
  50446. again, but only as low as the next highest priority
  50447. task that is waiting for the same mutex. */
  50448. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  50449. 80154d0: 6af8 ldr r0, [r7, #44] @ 0x2c
  50450. 80154d2: f000 f893 bl 80155fc <prvGetDisinheritPriorityAfterTimeout>
  50451. 80154d6: 6278 str r0, [r7, #36] @ 0x24
  50452. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  50453. 80154d8: 6afb ldr r3, [r7, #44] @ 0x2c
  50454. 80154da: 689b ldr r3, [r3, #8]
  50455. 80154dc: 6a79 ldr r1, [r7, #36] @ 0x24
  50456. 80154de: 4618 mov r0, r3
  50457. 80154e0: f001 fb64 bl 8016bac <vTaskPriorityDisinheritAfterTimeout>
  50458. }
  50459. taskEXIT_CRITICAL();
  50460. 80154e4: f002 fc22 bl 8017d2c <vPortExitCritical>
  50461. }
  50462. }
  50463. #endif /* configUSE_MUTEXES */
  50464. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50465. return errQUEUE_EMPTY;
  50466. 80154e8: 2300 movs r3, #0
  50467. {
  50468. mtCOVERAGE_TEST_MARKER();
  50469. }
  50470. }
  50471. } /*lint -restore */
  50472. }
  50473. 80154ea: 4618 mov r0, r3
  50474. 80154ec: 3738 adds r7, #56 @ 0x38
  50475. 80154ee: 46bd mov sp, r7
  50476. 80154f0: bd80 pop {r7, pc}
  50477. 80154f2: bf00 nop
  50478. 80154f4: e000ed04 .word 0xe000ed04
  50479. 080154f8 <xQueueReceiveFromISR>:
  50480. } /*lint -restore */
  50481. }
  50482. /*-----------------------------------------------------------*/
  50483. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  50484. {
  50485. 80154f8: b580 push {r7, lr}
  50486. 80154fa: b08e sub sp, #56 @ 0x38
  50487. 80154fc: af00 add r7, sp, #0
  50488. 80154fe: 60f8 str r0, [r7, #12]
  50489. 8015500: 60b9 str r1, [r7, #8]
  50490. 8015502: 607a str r2, [r7, #4]
  50491. BaseType_t xReturn;
  50492. UBaseType_t uxSavedInterruptStatus;
  50493. Queue_t * const pxQueue = xQueue;
  50494. 8015504: 68fb ldr r3, [r7, #12]
  50495. 8015506: 633b str r3, [r7, #48] @ 0x30
  50496. configASSERT( pxQueue );
  50497. 8015508: 6b3b ldr r3, [r7, #48] @ 0x30
  50498. 801550a: 2b00 cmp r3, #0
  50499. 801550c: d10b bne.n 8015526 <xQueueReceiveFromISR+0x2e>
  50500. __asm volatile
  50501. 801550e: f04f 0350 mov.w r3, #80 @ 0x50
  50502. 8015512: f383 8811 msr BASEPRI, r3
  50503. 8015516: f3bf 8f6f isb sy
  50504. 801551a: f3bf 8f4f dsb sy
  50505. 801551e: 623b str r3, [r7, #32]
  50506. }
  50507. 8015520: bf00 nop
  50508. 8015522: bf00 nop
  50509. 8015524: e7fd b.n 8015522 <xQueueReceiveFromISR+0x2a>
  50510. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  50511. 8015526: 68bb ldr r3, [r7, #8]
  50512. 8015528: 2b00 cmp r3, #0
  50513. 801552a: d103 bne.n 8015534 <xQueueReceiveFromISR+0x3c>
  50514. 801552c: 6b3b ldr r3, [r7, #48] @ 0x30
  50515. 801552e: 6c1b ldr r3, [r3, #64] @ 0x40
  50516. 8015530: 2b00 cmp r3, #0
  50517. 8015532: d101 bne.n 8015538 <xQueueReceiveFromISR+0x40>
  50518. 8015534: 2301 movs r3, #1
  50519. 8015536: e000 b.n 801553a <xQueueReceiveFromISR+0x42>
  50520. 8015538: 2300 movs r3, #0
  50521. 801553a: 2b00 cmp r3, #0
  50522. 801553c: d10b bne.n 8015556 <xQueueReceiveFromISR+0x5e>
  50523. __asm volatile
  50524. 801553e: f04f 0350 mov.w r3, #80 @ 0x50
  50525. 8015542: f383 8811 msr BASEPRI, r3
  50526. 8015546: f3bf 8f6f isb sy
  50527. 801554a: f3bf 8f4f dsb sy
  50528. 801554e: 61fb str r3, [r7, #28]
  50529. }
  50530. 8015550: bf00 nop
  50531. 8015552: bf00 nop
  50532. 8015554: e7fd b.n 8015552 <xQueueReceiveFromISR+0x5a>
  50533. that have been assigned a priority at or (logically) below the maximum
  50534. system call interrupt priority. FreeRTOS maintains a separate interrupt
  50535. safe API to ensure interrupt entry is as fast and as simple as possible.
  50536. More information (albeit Cortex-M specific) is provided on the following
  50537. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  50538. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  50539. 8015556: f002 fc97 bl 8017e88 <vPortValidateInterruptPriority>
  50540. __asm volatile
  50541. 801555a: f3ef 8211 mrs r2, BASEPRI
  50542. 801555e: f04f 0350 mov.w r3, #80 @ 0x50
  50543. 8015562: f383 8811 msr BASEPRI, r3
  50544. 8015566: f3bf 8f6f isb sy
  50545. 801556a: f3bf 8f4f dsb sy
  50546. 801556e: 61ba str r2, [r7, #24]
  50547. 8015570: 617b str r3, [r7, #20]
  50548. return ulOriginalBASEPRI;
  50549. 8015572: 69bb ldr r3, [r7, #24]
  50550. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  50551. 8015574: 62fb str r3, [r7, #44] @ 0x2c
  50552. {
  50553. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50554. 8015576: 6b3b ldr r3, [r7, #48] @ 0x30
  50555. 8015578: 6b9b ldr r3, [r3, #56] @ 0x38
  50556. 801557a: 62bb str r3, [r7, #40] @ 0x28
  50557. /* Cannot block in an ISR, so check there is data available. */
  50558. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50559. 801557c: 6abb ldr r3, [r7, #40] @ 0x28
  50560. 801557e: 2b00 cmp r3, #0
  50561. 8015580: d02f beq.n 80155e2 <xQueueReceiveFromISR+0xea>
  50562. {
  50563. const int8_t cRxLock = pxQueue->cRxLock;
  50564. 8015582: 6b3b ldr r3, [r7, #48] @ 0x30
  50565. 8015584: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50566. 8015588: f887 3027 strb.w r3, [r7, #39] @ 0x27
  50567. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  50568. prvCopyDataFromQueue( pxQueue, pvBuffer );
  50569. 801558c: 68b9 ldr r1, [r7, #8]
  50570. 801558e: 6b38 ldr r0, [r7, #48] @ 0x30
  50571. 8015590: f000 f8b6 bl 8015700 <prvCopyDataFromQueue>
  50572. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  50573. 8015594: 6abb ldr r3, [r7, #40] @ 0x28
  50574. 8015596: 1e5a subs r2, r3, #1
  50575. 8015598: 6b3b ldr r3, [r7, #48] @ 0x30
  50576. 801559a: 639a str r2, [r3, #56] @ 0x38
  50577. /* If the queue is locked the event list will not be modified.
  50578. Instead update the lock count so the task that unlocks the queue
  50579. will know that an ISR has removed data while the queue was
  50580. locked. */
  50581. if( cRxLock == queueUNLOCKED )
  50582. 801559c: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  50583. 80155a0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50584. 80155a4: d112 bne.n 80155cc <xQueueReceiveFromISR+0xd4>
  50585. {
  50586. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50587. 80155a6: 6b3b ldr r3, [r7, #48] @ 0x30
  50588. 80155a8: 691b ldr r3, [r3, #16]
  50589. 80155aa: 2b00 cmp r3, #0
  50590. 80155ac: d016 beq.n 80155dc <xQueueReceiveFromISR+0xe4>
  50591. {
  50592. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50593. 80155ae: 6b3b ldr r3, [r7, #48] @ 0x30
  50594. 80155b0: 3310 adds r3, #16
  50595. 80155b2: 4618 mov r0, r3
  50596. 80155b4: f001 f806 bl 80165c4 <xTaskRemoveFromEventList>
  50597. 80155b8: 4603 mov r3, r0
  50598. 80155ba: 2b00 cmp r3, #0
  50599. 80155bc: d00e beq.n 80155dc <xQueueReceiveFromISR+0xe4>
  50600. {
  50601. /* The task waiting has a higher priority than us so
  50602. force a context switch. */
  50603. if( pxHigherPriorityTaskWoken != NULL )
  50604. 80155be: 687b ldr r3, [r7, #4]
  50605. 80155c0: 2b00 cmp r3, #0
  50606. 80155c2: d00b beq.n 80155dc <xQueueReceiveFromISR+0xe4>
  50607. {
  50608. *pxHigherPriorityTaskWoken = pdTRUE;
  50609. 80155c4: 687b ldr r3, [r7, #4]
  50610. 80155c6: 2201 movs r2, #1
  50611. 80155c8: 601a str r2, [r3, #0]
  50612. 80155ca: e007 b.n 80155dc <xQueueReceiveFromISR+0xe4>
  50613. }
  50614. else
  50615. {
  50616. /* Increment the lock count so the task that unlocks the queue
  50617. knows that data was removed while it was locked. */
  50618. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  50619. 80155cc: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  50620. 80155d0: 3301 adds r3, #1
  50621. 80155d2: b2db uxtb r3, r3
  50622. 80155d4: b25a sxtb r2, r3
  50623. 80155d6: 6b3b ldr r3, [r7, #48] @ 0x30
  50624. 80155d8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50625. }
  50626. xReturn = pdPASS;
  50627. 80155dc: 2301 movs r3, #1
  50628. 80155de: 637b str r3, [r7, #52] @ 0x34
  50629. 80155e0: e001 b.n 80155e6 <xQueueReceiveFromISR+0xee>
  50630. }
  50631. else
  50632. {
  50633. xReturn = pdFAIL;
  50634. 80155e2: 2300 movs r3, #0
  50635. 80155e4: 637b str r3, [r7, #52] @ 0x34
  50636. 80155e6: 6afb ldr r3, [r7, #44] @ 0x2c
  50637. 80155e8: 613b str r3, [r7, #16]
  50638. __asm volatile
  50639. 80155ea: 693b ldr r3, [r7, #16]
  50640. 80155ec: f383 8811 msr BASEPRI, r3
  50641. }
  50642. 80155f0: bf00 nop
  50643. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  50644. }
  50645. }
  50646. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  50647. return xReturn;
  50648. 80155f2: 6b7b ldr r3, [r7, #52] @ 0x34
  50649. }
  50650. 80155f4: 4618 mov r0, r3
  50651. 80155f6: 3738 adds r7, #56 @ 0x38
  50652. 80155f8: 46bd mov sp, r7
  50653. 80155fa: bd80 pop {r7, pc}
  50654. 080155fc <prvGetDisinheritPriorityAfterTimeout>:
  50655. /*-----------------------------------------------------------*/
  50656. #if( configUSE_MUTEXES == 1 )
  50657. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  50658. {
  50659. 80155fc: b480 push {r7}
  50660. 80155fe: b085 sub sp, #20
  50661. 8015600: af00 add r7, sp, #0
  50662. 8015602: 6078 str r0, [r7, #4]
  50663. priority, but the waiting task times out, then the holder should
  50664. disinherit the priority - but only down to the highest priority of any
  50665. other tasks that are waiting for the same mutex. For this purpose,
  50666. return the priority of the highest priority task that is waiting for the
  50667. mutex. */
  50668. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  50669. 8015604: 687b ldr r3, [r7, #4]
  50670. 8015606: 6a5b ldr r3, [r3, #36] @ 0x24
  50671. 8015608: 2b00 cmp r3, #0
  50672. 801560a: d006 beq.n 801561a <prvGetDisinheritPriorityAfterTimeout+0x1e>
  50673. {
  50674. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  50675. 801560c: 687b ldr r3, [r7, #4]
  50676. 801560e: 6b1b ldr r3, [r3, #48] @ 0x30
  50677. 8015610: 681b ldr r3, [r3, #0]
  50678. 8015612: f1c3 0338 rsb r3, r3, #56 @ 0x38
  50679. 8015616: 60fb str r3, [r7, #12]
  50680. 8015618: e001 b.n 801561e <prvGetDisinheritPriorityAfterTimeout+0x22>
  50681. }
  50682. else
  50683. {
  50684. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  50685. 801561a: 2300 movs r3, #0
  50686. 801561c: 60fb str r3, [r7, #12]
  50687. }
  50688. return uxHighestPriorityOfWaitingTasks;
  50689. 801561e: 68fb ldr r3, [r7, #12]
  50690. }
  50691. 8015620: 4618 mov r0, r3
  50692. 8015622: 3714 adds r7, #20
  50693. 8015624: 46bd mov sp, r7
  50694. 8015626: f85d 7b04 ldr.w r7, [sp], #4
  50695. 801562a: 4770 bx lr
  50696. 0801562c <prvCopyDataToQueue>:
  50697. #endif /* configUSE_MUTEXES */
  50698. /*-----------------------------------------------------------*/
  50699. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  50700. {
  50701. 801562c: b580 push {r7, lr}
  50702. 801562e: b086 sub sp, #24
  50703. 8015630: af00 add r7, sp, #0
  50704. 8015632: 60f8 str r0, [r7, #12]
  50705. 8015634: 60b9 str r1, [r7, #8]
  50706. 8015636: 607a str r2, [r7, #4]
  50707. BaseType_t xReturn = pdFALSE;
  50708. 8015638: 2300 movs r3, #0
  50709. 801563a: 617b str r3, [r7, #20]
  50710. UBaseType_t uxMessagesWaiting;
  50711. /* This function is called from a critical section. */
  50712. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50713. 801563c: 68fb ldr r3, [r7, #12]
  50714. 801563e: 6b9b ldr r3, [r3, #56] @ 0x38
  50715. 8015640: 613b str r3, [r7, #16]
  50716. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  50717. 8015642: 68fb ldr r3, [r7, #12]
  50718. 8015644: 6c1b ldr r3, [r3, #64] @ 0x40
  50719. 8015646: 2b00 cmp r3, #0
  50720. 8015648: d10d bne.n 8015666 <prvCopyDataToQueue+0x3a>
  50721. {
  50722. #if ( configUSE_MUTEXES == 1 )
  50723. {
  50724. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50725. 801564a: 68fb ldr r3, [r7, #12]
  50726. 801564c: 681b ldr r3, [r3, #0]
  50727. 801564e: 2b00 cmp r3, #0
  50728. 8015650: d14d bne.n 80156ee <prvCopyDataToQueue+0xc2>
  50729. {
  50730. /* The mutex is no longer being held. */
  50731. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  50732. 8015652: 68fb ldr r3, [r7, #12]
  50733. 8015654: 689b ldr r3, [r3, #8]
  50734. 8015656: 4618 mov r0, r3
  50735. 8015658: f001 fa38 bl 8016acc <xTaskPriorityDisinherit>
  50736. 801565c: 6178 str r0, [r7, #20]
  50737. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  50738. 801565e: 68fb ldr r3, [r7, #12]
  50739. 8015660: 2200 movs r2, #0
  50740. 8015662: 609a str r2, [r3, #8]
  50741. 8015664: e043 b.n 80156ee <prvCopyDataToQueue+0xc2>
  50742. mtCOVERAGE_TEST_MARKER();
  50743. }
  50744. }
  50745. #endif /* configUSE_MUTEXES */
  50746. }
  50747. else if( xPosition == queueSEND_TO_BACK )
  50748. 8015666: 687b ldr r3, [r7, #4]
  50749. 8015668: 2b00 cmp r3, #0
  50750. 801566a: d119 bne.n 80156a0 <prvCopyDataToQueue+0x74>
  50751. {
  50752. ( 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. */
  50753. 801566c: 68fb ldr r3, [r7, #12]
  50754. 801566e: 6858 ldr r0, [r3, #4]
  50755. 8015670: 68fb ldr r3, [r7, #12]
  50756. 8015672: 6c1b ldr r3, [r3, #64] @ 0x40
  50757. 8015674: 461a mov r2, r3
  50758. 8015676: 68b9 ldr r1, [r7, #8]
  50759. 8015678: f002 fec0 bl 80183fc <memcpy>
  50760. 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. */
  50761. 801567c: 68fb ldr r3, [r7, #12]
  50762. 801567e: 685a ldr r2, [r3, #4]
  50763. 8015680: 68fb ldr r3, [r7, #12]
  50764. 8015682: 6c1b ldr r3, [r3, #64] @ 0x40
  50765. 8015684: 441a add r2, r3
  50766. 8015686: 68fb ldr r3, [r7, #12]
  50767. 8015688: 605a str r2, [r3, #4]
  50768. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50769. 801568a: 68fb ldr r3, [r7, #12]
  50770. 801568c: 685a ldr r2, [r3, #4]
  50771. 801568e: 68fb ldr r3, [r7, #12]
  50772. 8015690: 689b ldr r3, [r3, #8]
  50773. 8015692: 429a cmp r2, r3
  50774. 8015694: d32b bcc.n 80156ee <prvCopyDataToQueue+0xc2>
  50775. {
  50776. pxQueue->pcWriteTo = pxQueue->pcHead;
  50777. 8015696: 68fb ldr r3, [r7, #12]
  50778. 8015698: 681a ldr r2, [r3, #0]
  50779. 801569a: 68fb ldr r3, [r7, #12]
  50780. 801569c: 605a str r2, [r3, #4]
  50781. 801569e: e026 b.n 80156ee <prvCopyDataToQueue+0xc2>
  50782. mtCOVERAGE_TEST_MARKER();
  50783. }
  50784. }
  50785. else
  50786. {
  50787. ( 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. */
  50788. 80156a0: 68fb ldr r3, [r7, #12]
  50789. 80156a2: 68d8 ldr r0, [r3, #12]
  50790. 80156a4: 68fb ldr r3, [r7, #12]
  50791. 80156a6: 6c1b ldr r3, [r3, #64] @ 0x40
  50792. 80156a8: 461a mov r2, r3
  50793. 80156aa: 68b9 ldr r1, [r7, #8]
  50794. 80156ac: f002 fea6 bl 80183fc <memcpy>
  50795. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  50796. 80156b0: 68fb ldr r3, [r7, #12]
  50797. 80156b2: 68da ldr r2, [r3, #12]
  50798. 80156b4: 68fb ldr r3, [r7, #12]
  50799. 80156b6: 6c1b ldr r3, [r3, #64] @ 0x40
  50800. 80156b8: 425b negs r3, r3
  50801. 80156ba: 441a add r2, r3
  50802. 80156bc: 68fb ldr r3, [r7, #12]
  50803. 80156be: 60da str r2, [r3, #12]
  50804. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50805. 80156c0: 68fb ldr r3, [r7, #12]
  50806. 80156c2: 68da ldr r2, [r3, #12]
  50807. 80156c4: 68fb ldr r3, [r7, #12]
  50808. 80156c6: 681b ldr r3, [r3, #0]
  50809. 80156c8: 429a cmp r2, r3
  50810. 80156ca: d207 bcs.n 80156dc <prvCopyDataToQueue+0xb0>
  50811. {
  50812. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  50813. 80156cc: 68fb ldr r3, [r7, #12]
  50814. 80156ce: 689a ldr r2, [r3, #8]
  50815. 80156d0: 68fb ldr r3, [r7, #12]
  50816. 80156d2: 6c1b ldr r3, [r3, #64] @ 0x40
  50817. 80156d4: 425b negs r3, r3
  50818. 80156d6: 441a add r2, r3
  50819. 80156d8: 68fb ldr r3, [r7, #12]
  50820. 80156da: 60da str r2, [r3, #12]
  50821. else
  50822. {
  50823. mtCOVERAGE_TEST_MARKER();
  50824. }
  50825. if( xPosition == queueOVERWRITE )
  50826. 80156dc: 687b ldr r3, [r7, #4]
  50827. 80156de: 2b02 cmp r3, #2
  50828. 80156e0: d105 bne.n 80156ee <prvCopyDataToQueue+0xc2>
  50829. {
  50830. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50831. 80156e2: 693b ldr r3, [r7, #16]
  50832. 80156e4: 2b00 cmp r3, #0
  50833. 80156e6: d002 beq.n 80156ee <prvCopyDataToQueue+0xc2>
  50834. {
  50835. /* An item is not being added but overwritten, so subtract
  50836. one from the recorded number of items in the queue so when
  50837. one is added again below the number of recorded items remains
  50838. correct. */
  50839. --uxMessagesWaiting;
  50840. 80156e8: 693b ldr r3, [r7, #16]
  50841. 80156ea: 3b01 subs r3, #1
  50842. 80156ec: 613b str r3, [r7, #16]
  50843. {
  50844. mtCOVERAGE_TEST_MARKER();
  50845. }
  50846. }
  50847. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  50848. 80156ee: 693b ldr r3, [r7, #16]
  50849. 80156f0: 1c5a adds r2, r3, #1
  50850. 80156f2: 68fb ldr r3, [r7, #12]
  50851. 80156f4: 639a str r2, [r3, #56] @ 0x38
  50852. return xReturn;
  50853. 80156f6: 697b ldr r3, [r7, #20]
  50854. }
  50855. 80156f8: 4618 mov r0, r3
  50856. 80156fa: 3718 adds r7, #24
  50857. 80156fc: 46bd mov sp, r7
  50858. 80156fe: bd80 pop {r7, pc}
  50859. 08015700 <prvCopyDataFromQueue>:
  50860. /*-----------------------------------------------------------*/
  50861. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  50862. {
  50863. 8015700: b580 push {r7, lr}
  50864. 8015702: b082 sub sp, #8
  50865. 8015704: af00 add r7, sp, #0
  50866. 8015706: 6078 str r0, [r7, #4]
  50867. 8015708: 6039 str r1, [r7, #0]
  50868. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50869. 801570a: 687b ldr r3, [r7, #4]
  50870. 801570c: 6c1b ldr r3, [r3, #64] @ 0x40
  50871. 801570e: 2b00 cmp r3, #0
  50872. 8015710: d018 beq.n 8015744 <prvCopyDataFromQueue+0x44>
  50873. {
  50874. 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. */
  50875. 8015712: 687b ldr r3, [r7, #4]
  50876. 8015714: 68da ldr r2, [r3, #12]
  50877. 8015716: 687b ldr r3, [r7, #4]
  50878. 8015718: 6c1b ldr r3, [r3, #64] @ 0x40
  50879. 801571a: 441a add r2, r3
  50880. 801571c: 687b ldr r3, [r7, #4]
  50881. 801571e: 60da str r2, [r3, #12]
  50882. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50883. 8015720: 687b ldr r3, [r7, #4]
  50884. 8015722: 68da ldr r2, [r3, #12]
  50885. 8015724: 687b ldr r3, [r7, #4]
  50886. 8015726: 689b ldr r3, [r3, #8]
  50887. 8015728: 429a cmp r2, r3
  50888. 801572a: d303 bcc.n 8015734 <prvCopyDataFromQueue+0x34>
  50889. {
  50890. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50891. 801572c: 687b ldr r3, [r7, #4]
  50892. 801572e: 681a ldr r2, [r3, #0]
  50893. 8015730: 687b ldr r3, [r7, #4]
  50894. 8015732: 60da str r2, [r3, #12]
  50895. }
  50896. else
  50897. {
  50898. mtCOVERAGE_TEST_MARKER();
  50899. }
  50900. ( 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. */
  50901. 8015734: 687b ldr r3, [r7, #4]
  50902. 8015736: 68d9 ldr r1, [r3, #12]
  50903. 8015738: 687b ldr r3, [r7, #4]
  50904. 801573a: 6c1b ldr r3, [r3, #64] @ 0x40
  50905. 801573c: 461a mov r2, r3
  50906. 801573e: 6838 ldr r0, [r7, #0]
  50907. 8015740: f002 fe5c bl 80183fc <memcpy>
  50908. }
  50909. }
  50910. 8015744: bf00 nop
  50911. 8015746: 3708 adds r7, #8
  50912. 8015748: 46bd mov sp, r7
  50913. 801574a: bd80 pop {r7, pc}
  50914. 0801574c <prvUnlockQueue>:
  50915. /*-----------------------------------------------------------*/
  50916. static void prvUnlockQueue( Queue_t * const pxQueue )
  50917. {
  50918. 801574c: b580 push {r7, lr}
  50919. 801574e: b084 sub sp, #16
  50920. 8015750: af00 add r7, sp, #0
  50921. 8015752: 6078 str r0, [r7, #4]
  50922. /* The lock counts contains the number of extra data items placed or
  50923. removed from the queue while the queue was locked. When a queue is
  50924. locked items can be added or removed, but the event lists cannot be
  50925. updated. */
  50926. taskENTER_CRITICAL();
  50927. 8015754: f002 fab8 bl 8017cc8 <vPortEnterCritical>
  50928. {
  50929. int8_t cTxLock = pxQueue->cTxLock;
  50930. 8015758: 687b ldr r3, [r7, #4]
  50931. 801575a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50932. 801575e: 73fb strb r3, [r7, #15]
  50933. /* See if data was added to the queue while it was locked. */
  50934. while( cTxLock > queueLOCKED_UNMODIFIED )
  50935. 8015760: e011 b.n 8015786 <prvUnlockQueue+0x3a>
  50936. }
  50937. #else /* configUSE_QUEUE_SETS */
  50938. {
  50939. /* Tasks that are removed from the event list will get added to
  50940. the pending ready list as the scheduler is still suspended. */
  50941. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  50942. 8015762: 687b ldr r3, [r7, #4]
  50943. 8015764: 6a5b ldr r3, [r3, #36] @ 0x24
  50944. 8015766: 2b00 cmp r3, #0
  50945. 8015768: d012 beq.n 8015790 <prvUnlockQueue+0x44>
  50946. {
  50947. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  50948. 801576a: 687b ldr r3, [r7, #4]
  50949. 801576c: 3324 adds r3, #36 @ 0x24
  50950. 801576e: 4618 mov r0, r3
  50951. 8015770: f000 ff28 bl 80165c4 <xTaskRemoveFromEventList>
  50952. 8015774: 4603 mov r3, r0
  50953. 8015776: 2b00 cmp r3, #0
  50954. 8015778: d001 beq.n 801577e <prvUnlockQueue+0x32>
  50955. {
  50956. /* The task waiting has a higher priority so record that
  50957. a context switch is required. */
  50958. vTaskMissedYield();
  50959. 801577a: f001 f829 bl 80167d0 <vTaskMissedYield>
  50960. break;
  50961. }
  50962. }
  50963. #endif /* configUSE_QUEUE_SETS */
  50964. --cTxLock;
  50965. 801577e: 7bfb ldrb r3, [r7, #15]
  50966. 8015780: 3b01 subs r3, #1
  50967. 8015782: b2db uxtb r3, r3
  50968. 8015784: 73fb strb r3, [r7, #15]
  50969. while( cTxLock > queueLOCKED_UNMODIFIED )
  50970. 8015786: f997 300f ldrsb.w r3, [r7, #15]
  50971. 801578a: 2b00 cmp r3, #0
  50972. 801578c: dce9 bgt.n 8015762 <prvUnlockQueue+0x16>
  50973. 801578e: e000 b.n 8015792 <prvUnlockQueue+0x46>
  50974. break;
  50975. 8015790: bf00 nop
  50976. }
  50977. pxQueue->cTxLock = queueUNLOCKED;
  50978. 8015792: 687b ldr r3, [r7, #4]
  50979. 8015794: 22ff movs r2, #255 @ 0xff
  50980. 8015796: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50981. }
  50982. taskEXIT_CRITICAL();
  50983. 801579a: f002 fac7 bl 8017d2c <vPortExitCritical>
  50984. /* Do the same for the Rx lock. */
  50985. taskENTER_CRITICAL();
  50986. 801579e: f002 fa93 bl 8017cc8 <vPortEnterCritical>
  50987. {
  50988. int8_t cRxLock = pxQueue->cRxLock;
  50989. 80157a2: 687b ldr r3, [r7, #4]
  50990. 80157a4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50991. 80157a8: 73bb strb r3, [r7, #14]
  50992. while( cRxLock > queueLOCKED_UNMODIFIED )
  50993. 80157aa: e011 b.n 80157d0 <prvUnlockQueue+0x84>
  50994. {
  50995. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50996. 80157ac: 687b ldr r3, [r7, #4]
  50997. 80157ae: 691b ldr r3, [r3, #16]
  50998. 80157b0: 2b00 cmp r3, #0
  50999. 80157b2: d012 beq.n 80157da <prvUnlockQueue+0x8e>
  51000. {
  51001. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  51002. 80157b4: 687b ldr r3, [r7, #4]
  51003. 80157b6: 3310 adds r3, #16
  51004. 80157b8: 4618 mov r0, r3
  51005. 80157ba: f000 ff03 bl 80165c4 <xTaskRemoveFromEventList>
  51006. 80157be: 4603 mov r3, r0
  51007. 80157c0: 2b00 cmp r3, #0
  51008. 80157c2: d001 beq.n 80157c8 <prvUnlockQueue+0x7c>
  51009. {
  51010. vTaskMissedYield();
  51011. 80157c4: f001 f804 bl 80167d0 <vTaskMissedYield>
  51012. else
  51013. {
  51014. mtCOVERAGE_TEST_MARKER();
  51015. }
  51016. --cRxLock;
  51017. 80157c8: 7bbb ldrb r3, [r7, #14]
  51018. 80157ca: 3b01 subs r3, #1
  51019. 80157cc: b2db uxtb r3, r3
  51020. 80157ce: 73bb strb r3, [r7, #14]
  51021. while( cRxLock > queueLOCKED_UNMODIFIED )
  51022. 80157d0: f997 300e ldrsb.w r3, [r7, #14]
  51023. 80157d4: 2b00 cmp r3, #0
  51024. 80157d6: dce9 bgt.n 80157ac <prvUnlockQueue+0x60>
  51025. 80157d8: e000 b.n 80157dc <prvUnlockQueue+0x90>
  51026. }
  51027. else
  51028. {
  51029. break;
  51030. 80157da: bf00 nop
  51031. }
  51032. }
  51033. pxQueue->cRxLock = queueUNLOCKED;
  51034. 80157dc: 687b ldr r3, [r7, #4]
  51035. 80157de: 22ff movs r2, #255 @ 0xff
  51036. 80157e0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51037. }
  51038. taskEXIT_CRITICAL();
  51039. 80157e4: f002 faa2 bl 8017d2c <vPortExitCritical>
  51040. }
  51041. 80157e8: bf00 nop
  51042. 80157ea: 3710 adds r7, #16
  51043. 80157ec: 46bd mov sp, r7
  51044. 80157ee: bd80 pop {r7, pc}
  51045. 080157f0 <prvIsQueueEmpty>:
  51046. /*-----------------------------------------------------------*/
  51047. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  51048. {
  51049. 80157f0: b580 push {r7, lr}
  51050. 80157f2: b084 sub sp, #16
  51051. 80157f4: af00 add r7, sp, #0
  51052. 80157f6: 6078 str r0, [r7, #4]
  51053. BaseType_t xReturn;
  51054. taskENTER_CRITICAL();
  51055. 80157f8: f002 fa66 bl 8017cc8 <vPortEnterCritical>
  51056. {
  51057. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  51058. 80157fc: 687b ldr r3, [r7, #4]
  51059. 80157fe: 6b9b ldr r3, [r3, #56] @ 0x38
  51060. 8015800: 2b00 cmp r3, #0
  51061. 8015802: d102 bne.n 801580a <prvIsQueueEmpty+0x1a>
  51062. {
  51063. xReturn = pdTRUE;
  51064. 8015804: 2301 movs r3, #1
  51065. 8015806: 60fb str r3, [r7, #12]
  51066. 8015808: e001 b.n 801580e <prvIsQueueEmpty+0x1e>
  51067. }
  51068. else
  51069. {
  51070. xReturn = pdFALSE;
  51071. 801580a: 2300 movs r3, #0
  51072. 801580c: 60fb str r3, [r7, #12]
  51073. }
  51074. }
  51075. taskEXIT_CRITICAL();
  51076. 801580e: f002 fa8d bl 8017d2c <vPortExitCritical>
  51077. return xReturn;
  51078. 8015812: 68fb ldr r3, [r7, #12]
  51079. }
  51080. 8015814: 4618 mov r0, r3
  51081. 8015816: 3710 adds r7, #16
  51082. 8015818: 46bd mov sp, r7
  51083. 801581a: bd80 pop {r7, pc}
  51084. 0801581c <prvIsQueueFull>:
  51085. return xReturn;
  51086. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  51087. /*-----------------------------------------------------------*/
  51088. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  51089. {
  51090. 801581c: b580 push {r7, lr}
  51091. 801581e: b084 sub sp, #16
  51092. 8015820: af00 add r7, sp, #0
  51093. 8015822: 6078 str r0, [r7, #4]
  51094. BaseType_t xReturn;
  51095. taskENTER_CRITICAL();
  51096. 8015824: f002 fa50 bl 8017cc8 <vPortEnterCritical>
  51097. {
  51098. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  51099. 8015828: 687b ldr r3, [r7, #4]
  51100. 801582a: 6b9a ldr r2, [r3, #56] @ 0x38
  51101. 801582c: 687b ldr r3, [r7, #4]
  51102. 801582e: 6bdb ldr r3, [r3, #60] @ 0x3c
  51103. 8015830: 429a cmp r2, r3
  51104. 8015832: d102 bne.n 801583a <prvIsQueueFull+0x1e>
  51105. {
  51106. xReturn = pdTRUE;
  51107. 8015834: 2301 movs r3, #1
  51108. 8015836: 60fb str r3, [r7, #12]
  51109. 8015838: e001 b.n 801583e <prvIsQueueFull+0x22>
  51110. }
  51111. else
  51112. {
  51113. xReturn = pdFALSE;
  51114. 801583a: 2300 movs r3, #0
  51115. 801583c: 60fb str r3, [r7, #12]
  51116. }
  51117. }
  51118. taskEXIT_CRITICAL();
  51119. 801583e: f002 fa75 bl 8017d2c <vPortExitCritical>
  51120. return xReturn;
  51121. 8015842: 68fb ldr r3, [r7, #12]
  51122. }
  51123. 8015844: 4618 mov r0, r3
  51124. 8015846: 3710 adds r7, #16
  51125. 8015848: 46bd mov sp, r7
  51126. 801584a: bd80 pop {r7, pc}
  51127. 0801584c <vQueueAddToRegistry>:
  51128. /*-----------------------------------------------------------*/
  51129. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  51130. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51131. {
  51132. 801584c: b480 push {r7}
  51133. 801584e: b085 sub sp, #20
  51134. 8015850: af00 add r7, sp, #0
  51135. 8015852: 6078 str r0, [r7, #4]
  51136. 8015854: 6039 str r1, [r7, #0]
  51137. UBaseType_t ux;
  51138. /* See if there is an empty space in the registry. A NULL name denotes
  51139. a free slot. */
  51140. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51141. 8015856: 2300 movs r3, #0
  51142. 8015858: 60fb str r3, [r7, #12]
  51143. 801585a: e014 b.n 8015886 <vQueueAddToRegistry+0x3a>
  51144. {
  51145. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  51146. 801585c: 4a0f ldr r2, [pc, #60] @ (801589c <vQueueAddToRegistry+0x50>)
  51147. 801585e: 68fb ldr r3, [r7, #12]
  51148. 8015860: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  51149. 8015864: 2b00 cmp r3, #0
  51150. 8015866: d10b bne.n 8015880 <vQueueAddToRegistry+0x34>
  51151. {
  51152. /* Store the information on this queue. */
  51153. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  51154. 8015868: 490c ldr r1, [pc, #48] @ (801589c <vQueueAddToRegistry+0x50>)
  51155. 801586a: 68fb ldr r3, [r7, #12]
  51156. 801586c: 683a ldr r2, [r7, #0]
  51157. 801586e: f841 2033 str.w r2, [r1, r3, lsl #3]
  51158. xQueueRegistry[ ux ].xHandle = xQueue;
  51159. 8015872: 4a0a ldr r2, [pc, #40] @ (801589c <vQueueAddToRegistry+0x50>)
  51160. 8015874: 68fb ldr r3, [r7, #12]
  51161. 8015876: 00db lsls r3, r3, #3
  51162. 8015878: 4413 add r3, r2
  51163. 801587a: 687a ldr r2, [r7, #4]
  51164. 801587c: 605a str r2, [r3, #4]
  51165. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  51166. break;
  51167. 801587e: e006 b.n 801588e <vQueueAddToRegistry+0x42>
  51168. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51169. 8015880: 68fb ldr r3, [r7, #12]
  51170. 8015882: 3301 adds r3, #1
  51171. 8015884: 60fb str r3, [r7, #12]
  51172. 8015886: 68fb ldr r3, [r7, #12]
  51173. 8015888: 2b07 cmp r3, #7
  51174. 801588a: d9e7 bls.n 801585c <vQueueAddToRegistry+0x10>
  51175. else
  51176. {
  51177. mtCOVERAGE_TEST_MARKER();
  51178. }
  51179. }
  51180. }
  51181. 801588c: bf00 nop
  51182. 801588e: bf00 nop
  51183. 8015890: 3714 adds r7, #20
  51184. 8015892: 46bd mov sp, r7
  51185. 8015894: f85d 7b04 ldr.w r7, [sp], #4
  51186. 8015898: 4770 bx lr
  51187. 801589a: bf00 nop
  51188. 801589c: 240029b8 .word 0x240029b8
  51189. 080158a0 <vQueueWaitForMessageRestricted>:
  51190. /*-----------------------------------------------------------*/
  51191. #if ( configUSE_TIMERS == 1 )
  51192. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  51193. {
  51194. 80158a0: b580 push {r7, lr}
  51195. 80158a2: b086 sub sp, #24
  51196. 80158a4: af00 add r7, sp, #0
  51197. 80158a6: 60f8 str r0, [r7, #12]
  51198. 80158a8: 60b9 str r1, [r7, #8]
  51199. 80158aa: 607a str r2, [r7, #4]
  51200. Queue_t * const pxQueue = xQueue;
  51201. 80158ac: 68fb ldr r3, [r7, #12]
  51202. 80158ae: 617b str r3, [r7, #20]
  51203. will not actually cause the task to block, just place it on a blocked
  51204. list. It will not block until the scheduler is unlocked - at which
  51205. time a yield will be performed. If an item is added to the queue while
  51206. the queue is locked, and the calling task blocks on the queue, then the
  51207. calling task will be immediately unblocked when the queue is unlocked. */
  51208. prvLockQueue( pxQueue );
  51209. 80158b0: f002 fa0a bl 8017cc8 <vPortEnterCritical>
  51210. 80158b4: 697b ldr r3, [r7, #20]
  51211. 80158b6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51212. 80158ba: b25b sxtb r3, r3
  51213. 80158bc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51214. 80158c0: d103 bne.n 80158ca <vQueueWaitForMessageRestricted+0x2a>
  51215. 80158c2: 697b ldr r3, [r7, #20]
  51216. 80158c4: 2200 movs r2, #0
  51217. 80158c6: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51218. 80158ca: 697b ldr r3, [r7, #20]
  51219. 80158cc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  51220. 80158d0: b25b sxtb r3, r3
  51221. 80158d2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51222. 80158d6: d103 bne.n 80158e0 <vQueueWaitForMessageRestricted+0x40>
  51223. 80158d8: 697b ldr r3, [r7, #20]
  51224. 80158da: 2200 movs r2, #0
  51225. 80158dc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  51226. 80158e0: f002 fa24 bl 8017d2c <vPortExitCritical>
  51227. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  51228. 80158e4: 697b ldr r3, [r7, #20]
  51229. 80158e6: 6b9b ldr r3, [r3, #56] @ 0x38
  51230. 80158e8: 2b00 cmp r3, #0
  51231. 80158ea: d106 bne.n 80158fa <vQueueWaitForMessageRestricted+0x5a>
  51232. {
  51233. /* There is nothing in the queue, block for the specified period. */
  51234. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  51235. 80158ec: 697b ldr r3, [r7, #20]
  51236. 80158ee: 3324 adds r3, #36 @ 0x24
  51237. 80158f0: 687a ldr r2, [r7, #4]
  51238. 80158f2: 68b9 ldr r1, [r7, #8]
  51239. 80158f4: 4618 mov r0, r3
  51240. 80158f6: f000 fe39 bl 801656c <vTaskPlaceOnEventListRestricted>
  51241. }
  51242. else
  51243. {
  51244. mtCOVERAGE_TEST_MARKER();
  51245. }
  51246. prvUnlockQueue( pxQueue );
  51247. 80158fa: 6978 ldr r0, [r7, #20]
  51248. 80158fc: f7ff ff26 bl 801574c <prvUnlockQueue>
  51249. }
  51250. 8015900: bf00 nop
  51251. 8015902: 3718 adds r7, #24
  51252. 8015904: 46bd mov sp, r7
  51253. 8015906: bd80 pop {r7, pc}
  51254. 08015908 <xStreamBufferSpacesAvailable>:
  51255. return xReturn;
  51256. }
  51257. /*-----------------------------------------------------------*/
  51258. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  51259. {
  51260. 8015908: b480 push {r7}
  51261. 801590a: b087 sub sp, #28
  51262. 801590c: af00 add r7, sp, #0
  51263. 801590e: 6078 str r0, [r7, #4]
  51264. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51265. 8015910: 687b ldr r3, [r7, #4]
  51266. 8015912: 613b str r3, [r7, #16]
  51267. size_t xSpace;
  51268. configASSERT( pxStreamBuffer );
  51269. 8015914: 693b ldr r3, [r7, #16]
  51270. 8015916: 2b00 cmp r3, #0
  51271. 8015918: d10b bne.n 8015932 <xStreamBufferSpacesAvailable+0x2a>
  51272. __asm volatile
  51273. 801591a: f04f 0350 mov.w r3, #80 @ 0x50
  51274. 801591e: f383 8811 msr BASEPRI, r3
  51275. 8015922: f3bf 8f6f isb sy
  51276. 8015926: f3bf 8f4f dsb sy
  51277. 801592a: 60fb str r3, [r7, #12]
  51278. }
  51279. 801592c: bf00 nop
  51280. 801592e: bf00 nop
  51281. 8015930: e7fd b.n 801592e <xStreamBufferSpacesAvailable+0x26>
  51282. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  51283. 8015932: 693b ldr r3, [r7, #16]
  51284. 8015934: 689a ldr r2, [r3, #8]
  51285. 8015936: 693b ldr r3, [r7, #16]
  51286. 8015938: 681b ldr r3, [r3, #0]
  51287. 801593a: 4413 add r3, r2
  51288. 801593c: 617b str r3, [r7, #20]
  51289. xSpace -= pxStreamBuffer->xHead;
  51290. 801593e: 693b ldr r3, [r7, #16]
  51291. 8015940: 685b ldr r3, [r3, #4]
  51292. 8015942: 697a ldr r2, [r7, #20]
  51293. 8015944: 1ad3 subs r3, r2, r3
  51294. 8015946: 617b str r3, [r7, #20]
  51295. xSpace -= ( size_t ) 1;
  51296. 8015948: 697b ldr r3, [r7, #20]
  51297. 801594a: 3b01 subs r3, #1
  51298. 801594c: 617b str r3, [r7, #20]
  51299. if( xSpace >= pxStreamBuffer->xLength )
  51300. 801594e: 693b ldr r3, [r7, #16]
  51301. 8015950: 689b ldr r3, [r3, #8]
  51302. 8015952: 697a ldr r2, [r7, #20]
  51303. 8015954: 429a cmp r2, r3
  51304. 8015956: d304 bcc.n 8015962 <xStreamBufferSpacesAvailable+0x5a>
  51305. {
  51306. xSpace -= pxStreamBuffer->xLength;
  51307. 8015958: 693b ldr r3, [r7, #16]
  51308. 801595a: 689b ldr r3, [r3, #8]
  51309. 801595c: 697a ldr r2, [r7, #20]
  51310. 801595e: 1ad3 subs r3, r2, r3
  51311. 8015960: 617b str r3, [r7, #20]
  51312. else
  51313. {
  51314. mtCOVERAGE_TEST_MARKER();
  51315. }
  51316. return xSpace;
  51317. 8015962: 697b ldr r3, [r7, #20]
  51318. }
  51319. 8015964: 4618 mov r0, r3
  51320. 8015966: 371c adds r7, #28
  51321. 8015968: 46bd mov sp, r7
  51322. 801596a: f85d 7b04 ldr.w r7, [sp], #4
  51323. 801596e: 4770 bx lr
  51324. 08015970 <xStreamBufferSend>:
  51325. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  51326. const void *pvTxData,
  51327. size_t xDataLengthBytes,
  51328. TickType_t xTicksToWait )
  51329. {
  51330. 8015970: b580 push {r7, lr}
  51331. 8015972: b090 sub sp, #64 @ 0x40
  51332. 8015974: af02 add r7, sp, #8
  51333. 8015976: 60f8 str r0, [r7, #12]
  51334. 8015978: 60b9 str r1, [r7, #8]
  51335. 801597a: 607a str r2, [r7, #4]
  51336. 801597c: 603b str r3, [r7, #0]
  51337. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51338. 801597e: 68fb ldr r3, [r7, #12]
  51339. 8015980: 62fb str r3, [r7, #44] @ 0x2c
  51340. size_t xReturn, xSpace = 0;
  51341. 8015982: 2300 movs r3, #0
  51342. 8015984: 637b str r3, [r7, #52] @ 0x34
  51343. size_t xRequiredSpace = xDataLengthBytes;
  51344. 8015986: 687b ldr r3, [r7, #4]
  51345. 8015988: 633b str r3, [r7, #48] @ 0x30
  51346. TimeOut_t xTimeOut;
  51347. configASSERT( pvTxData );
  51348. 801598a: 68bb ldr r3, [r7, #8]
  51349. 801598c: 2b00 cmp r3, #0
  51350. 801598e: d10b bne.n 80159a8 <xStreamBufferSend+0x38>
  51351. __asm volatile
  51352. 8015990: f04f 0350 mov.w r3, #80 @ 0x50
  51353. 8015994: f383 8811 msr BASEPRI, r3
  51354. 8015998: f3bf 8f6f isb sy
  51355. 801599c: f3bf 8f4f dsb sy
  51356. 80159a0: 627b str r3, [r7, #36] @ 0x24
  51357. }
  51358. 80159a2: bf00 nop
  51359. 80159a4: bf00 nop
  51360. 80159a6: e7fd b.n 80159a4 <xStreamBufferSend+0x34>
  51361. configASSERT( pxStreamBuffer );
  51362. 80159a8: 6afb ldr r3, [r7, #44] @ 0x2c
  51363. 80159aa: 2b00 cmp r3, #0
  51364. 80159ac: d10b bne.n 80159c6 <xStreamBufferSend+0x56>
  51365. __asm volatile
  51366. 80159ae: f04f 0350 mov.w r3, #80 @ 0x50
  51367. 80159b2: f383 8811 msr BASEPRI, r3
  51368. 80159b6: f3bf 8f6f isb sy
  51369. 80159ba: f3bf 8f4f dsb sy
  51370. 80159be: 623b str r3, [r7, #32]
  51371. }
  51372. 80159c0: bf00 nop
  51373. 80159c2: bf00 nop
  51374. 80159c4: e7fd b.n 80159c2 <xStreamBufferSend+0x52>
  51375. /* This send function is used to write to both message buffers and stream
  51376. buffers. If this is a message buffer then the space needed must be
  51377. increased by the amount of bytes needed to store the length of the
  51378. message. */
  51379. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  51380. 80159c6: 6afb ldr r3, [r7, #44] @ 0x2c
  51381. 80159c8: 7f1b ldrb r3, [r3, #28]
  51382. 80159ca: f003 0301 and.w r3, r3, #1
  51383. 80159ce: 2b00 cmp r3, #0
  51384. 80159d0: d012 beq.n 80159f8 <xStreamBufferSend+0x88>
  51385. {
  51386. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  51387. 80159d2: 6b3b ldr r3, [r7, #48] @ 0x30
  51388. 80159d4: 3304 adds r3, #4
  51389. 80159d6: 633b str r3, [r7, #48] @ 0x30
  51390. /* Overflow? */
  51391. configASSERT( xRequiredSpace > xDataLengthBytes );
  51392. 80159d8: 6b3a ldr r2, [r7, #48] @ 0x30
  51393. 80159da: 687b ldr r3, [r7, #4]
  51394. 80159dc: 429a cmp r2, r3
  51395. 80159de: d80b bhi.n 80159f8 <xStreamBufferSend+0x88>
  51396. __asm volatile
  51397. 80159e0: f04f 0350 mov.w r3, #80 @ 0x50
  51398. 80159e4: f383 8811 msr BASEPRI, r3
  51399. 80159e8: f3bf 8f6f isb sy
  51400. 80159ec: f3bf 8f4f dsb sy
  51401. 80159f0: 61fb str r3, [r7, #28]
  51402. }
  51403. 80159f2: bf00 nop
  51404. 80159f4: bf00 nop
  51405. 80159f6: e7fd b.n 80159f4 <xStreamBufferSend+0x84>
  51406. else
  51407. {
  51408. mtCOVERAGE_TEST_MARKER();
  51409. }
  51410. if( xTicksToWait != ( TickType_t ) 0 )
  51411. 80159f8: 683b ldr r3, [r7, #0]
  51412. 80159fa: 2b00 cmp r3, #0
  51413. 80159fc: d03f beq.n 8015a7e <xStreamBufferSend+0x10e>
  51414. {
  51415. vTaskSetTimeOutState( &xTimeOut );
  51416. 80159fe: f107 0310 add.w r3, r7, #16
  51417. 8015a02: 4618 mov r0, r3
  51418. 8015a04: f000 fe42 bl 801668c <vTaskSetTimeOutState>
  51419. do
  51420. {
  51421. /* Wait until the required number of bytes are free in the message
  51422. buffer. */
  51423. taskENTER_CRITICAL();
  51424. 8015a08: f002 f95e bl 8017cc8 <vPortEnterCritical>
  51425. {
  51426. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51427. 8015a0c: 6af8 ldr r0, [r7, #44] @ 0x2c
  51428. 8015a0e: f7ff ff7b bl 8015908 <xStreamBufferSpacesAvailable>
  51429. 8015a12: 6378 str r0, [r7, #52] @ 0x34
  51430. if( xSpace < xRequiredSpace )
  51431. 8015a14: 6b7a ldr r2, [r7, #52] @ 0x34
  51432. 8015a16: 6b3b ldr r3, [r7, #48] @ 0x30
  51433. 8015a18: 429a cmp r2, r3
  51434. 8015a1a: d218 bcs.n 8015a4e <xStreamBufferSend+0xde>
  51435. {
  51436. /* Clear notification state as going to wait for space. */
  51437. ( void ) xTaskNotifyStateClear( NULL );
  51438. 8015a1c: 2000 movs r0, #0
  51439. 8015a1e: f001 fb65 bl 80170ec <xTaskNotifyStateClear>
  51440. /* Should only be one writer. */
  51441. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  51442. 8015a22: 6afb ldr r3, [r7, #44] @ 0x2c
  51443. 8015a24: 695b ldr r3, [r3, #20]
  51444. 8015a26: 2b00 cmp r3, #0
  51445. 8015a28: d00b beq.n 8015a42 <xStreamBufferSend+0xd2>
  51446. __asm volatile
  51447. 8015a2a: f04f 0350 mov.w r3, #80 @ 0x50
  51448. 8015a2e: f383 8811 msr BASEPRI, r3
  51449. 8015a32: f3bf 8f6f isb sy
  51450. 8015a36: f3bf 8f4f dsb sy
  51451. 8015a3a: 61bb str r3, [r7, #24]
  51452. }
  51453. 8015a3c: bf00 nop
  51454. 8015a3e: bf00 nop
  51455. 8015a40: e7fd b.n 8015a3e <xStreamBufferSend+0xce>
  51456. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  51457. 8015a42: f000 ffad bl 80169a0 <xTaskGetCurrentTaskHandle>
  51458. 8015a46: 4602 mov r2, r0
  51459. 8015a48: 6afb ldr r3, [r7, #44] @ 0x2c
  51460. 8015a4a: 615a str r2, [r3, #20]
  51461. 8015a4c: e002 b.n 8015a54 <xStreamBufferSend+0xe4>
  51462. }
  51463. else
  51464. {
  51465. taskEXIT_CRITICAL();
  51466. 8015a4e: f002 f96d bl 8017d2c <vPortExitCritical>
  51467. break;
  51468. 8015a52: e014 b.n 8015a7e <xStreamBufferSend+0x10e>
  51469. }
  51470. }
  51471. taskEXIT_CRITICAL();
  51472. 8015a54: f002 f96a bl 8017d2c <vPortExitCritical>
  51473. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  51474. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  51475. 8015a58: 683b ldr r3, [r7, #0]
  51476. 8015a5a: 2200 movs r2, #0
  51477. 8015a5c: 2100 movs r1, #0
  51478. 8015a5e: 2000 movs r0, #0
  51479. 8015a60: f001 f93c bl 8016cdc <xTaskNotifyWait>
  51480. pxStreamBuffer->xTaskWaitingToSend = NULL;
  51481. 8015a64: 6afb ldr r3, [r7, #44] @ 0x2c
  51482. 8015a66: 2200 movs r2, #0
  51483. 8015a68: 615a str r2, [r3, #20]
  51484. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  51485. 8015a6a: 463a mov r2, r7
  51486. 8015a6c: f107 0310 add.w r3, r7, #16
  51487. 8015a70: 4611 mov r1, r2
  51488. 8015a72: 4618 mov r0, r3
  51489. 8015a74: f000 fe48 bl 8016708 <xTaskCheckForTimeOut>
  51490. 8015a78: 4603 mov r3, r0
  51491. 8015a7a: 2b00 cmp r3, #0
  51492. 8015a7c: d0c4 beq.n 8015a08 <xStreamBufferSend+0x98>
  51493. else
  51494. {
  51495. mtCOVERAGE_TEST_MARKER();
  51496. }
  51497. if( xSpace == ( size_t ) 0 )
  51498. 8015a7e: 6b7b ldr r3, [r7, #52] @ 0x34
  51499. 8015a80: 2b00 cmp r3, #0
  51500. 8015a82: d103 bne.n 8015a8c <xStreamBufferSend+0x11c>
  51501. {
  51502. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51503. 8015a84: 6af8 ldr r0, [r7, #44] @ 0x2c
  51504. 8015a86: f7ff ff3f bl 8015908 <xStreamBufferSpacesAvailable>
  51505. 8015a8a: 6378 str r0, [r7, #52] @ 0x34
  51506. else
  51507. {
  51508. mtCOVERAGE_TEST_MARKER();
  51509. }
  51510. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  51511. 8015a8c: 6b3b ldr r3, [r7, #48] @ 0x30
  51512. 8015a8e: 9300 str r3, [sp, #0]
  51513. 8015a90: 6b7b ldr r3, [r7, #52] @ 0x34
  51514. 8015a92: 687a ldr r2, [r7, #4]
  51515. 8015a94: 68b9 ldr r1, [r7, #8]
  51516. 8015a96: 6af8 ldr r0, [r7, #44] @ 0x2c
  51517. 8015a98: f000 f823 bl 8015ae2 <prvWriteMessageToBuffer>
  51518. 8015a9c: 62b8 str r0, [r7, #40] @ 0x28
  51519. if( xReturn > ( size_t ) 0 )
  51520. 8015a9e: 6abb ldr r3, [r7, #40] @ 0x28
  51521. 8015aa0: 2b00 cmp r3, #0
  51522. 8015aa2: d019 beq.n 8015ad8 <xStreamBufferSend+0x168>
  51523. {
  51524. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  51525. /* Was a task waiting for the data? */
  51526. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  51527. 8015aa4: 6af8 ldr r0, [r7, #44] @ 0x2c
  51528. 8015aa6: f000 f8ce bl 8015c46 <prvBytesInBuffer>
  51529. 8015aaa: 4602 mov r2, r0
  51530. 8015aac: 6afb ldr r3, [r7, #44] @ 0x2c
  51531. 8015aae: 68db ldr r3, [r3, #12]
  51532. 8015ab0: 429a cmp r2, r3
  51533. 8015ab2: d311 bcc.n 8015ad8 <xStreamBufferSend+0x168>
  51534. {
  51535. sbSEND_COMPLETED( pxStreamBuffer );
  51536. 8015ab4: f000 fb4a bl 801614c <vTaskSuspendAll>
  51537. 8015ab8: 6afb ldr r3, [r7, #44] @ 0x2c
  51538. 8015aba: 691b ldr r3, [r3, #16]
  51539. 8015abc: 2b00 cmp r3, #0
  51540. 8015abe: d009 beq.n 8015ad4 <xStreamBufferSend+0x164>
  51541. 8015ac0: 6afb ldr r3, [r7, #44] @ 0x2c
  51542. 8015ac2: 6918 ldr r0, [r3, #16]
  51543. 8015ac4: 2300 movs r3, #0
  51544. 8015ac6: 2200 movs r2, #0
  51545. 8015ac8: 2100 movs r1, #0
  51546. 8015aca: f001 f967 bl 8016d9c <xTaskGenericNotify>
  51547. 8015ace: 6afb ldr r3, [r7, #44] @ 0x2c
  51548. 8015ad0: 2200 movs r2, #0
  51549. 8015ad2: 611a str r2, [r3, #16]
  51550. 8015ad4: f000 fb48 bl 8016168 <xTaskResumeAll>
  51551. {
  51552. mtCOVERAGE_TEST_MARKER();
  51553. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  51554. }
  51555. return xReturn;
  51556. 8015ad8: 6abb ldr r3, [r7, #40] @ 0x28
  51557. }
  51558. 8015ada: 4618 mov r0, r3
  51559. 8015adc: 3738 adds r7, #56 @ 0x38
  51560. 8015ade: 46bd mov sp, r7
  51561. 8015ae0: bd80 pop {r7, pc}
  51562. 08015ae2 <prvWriteMessageToBuffer>:
  51563. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  51564. const void * pvTxData,
  51565. size_t xDataLengthBytes,
  51566. size_t xSpace,
  51567. size_t xRequiredSpace )
  51568. {
  51569. 8015ae2: b580 push {r7, lr}
  51570. 8015ae4: b086 sub sp, #24
  51571. 8015ae6: af00 add r7, sp, #0
  51572. 8015ae8: 60f8 str r0, [r7, #12]
  51573. 8015aea: 60b9 str r1, [r7, #8]
  51574. 8015aec: 607a str r2, [r7, #4]
  51575. 8015aee: 603b str r3, [r7, #0]
  51576. BaseType_t xShouldWrite;
  51577. size_t xReturn;
  51578. if( xSpace == ( size_t ) 0 )
  51579. 8015af0: 683b ldr r3, [r7, #0]
  51580. 8015af2: 2b00 cmp r3, #0
  51581. 8015af4: d102 bne.n 8015afc <prvWriteMessageToBuffer+0x1a>
  51582. {
  51583. /* Doesn't matter if this is a stream buffer or a message buffer, there
  51584. is no space to write. */
  51585. xShouldWrite = pdFALSE;
  51586. 8015af6: 2300 movs r3, #0
  51587. 8015af8: 617b str r3, [r7, #20]
  51588. 8015afa: e01d b.n 8015b38 <prvWriteMessageToBuffer+0x56>
  51589. }
  51590. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  51591. 8015afc: 68fb ldr r3, [r7, #12]
  51592. 8015afe: 7f1b ldrb r3, [r3, #28]
  51593. 8015b00: f003 0301 and.w r3, r3, #1
  51594. 8015b04: 2b00 cmp r3, #0
  51595. 8015b06: d108 bne.n 8015b1a <prvWriteMessageToBuffer+0x38>
  51596. {
  51597. /* This is a stream buffer, as opposed to a message buffer, so writing a
  51598. stream of bytes rather than discrete messages. Write as many bytes as
  51599. possible. */
  51600. xShouldWrite = pdTRUE;
  51601. 8015b08: 2301 movs r3, #1
  51602. 8015b0a: 617b str r3, [r7, #20]
  51603. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  51604. 8015b0c: 687a ldr r2, [r7, #4]
  51605. 8015b0e: 683b ldr r3, [r7, #0]
  51606. 8015b10: 4293 cmp r3, r2
  51607. 8015b12: bf28 it cs
  51608. 8015b14: 4613 movcs r3, r2
  51609. 8015b16: 607b str r3, [r7, #4]
  51610. 8015b18: e00e b.n 8015b38 <prvWriteMessageToBuffer+0x56>
  51611. }
  51612. else if( xSpace >= xRequiredSpace )
  51613. 8015b1a: 683a ldr r2, [r7, #0]
  51614. 8015b1c: 6a3b ldr r3, [r7, #32]
  51615. 8015b1e: 429a cmp r2, r3
  51616. 8015b20: d308 bcc.n 8015b34 <prvWriteMessageToBuffer+0x52>
  51617. {
  51618. /* This is a message buffer, as opposed to a stream buffer, and there
  51619. is enough space to write both the message length and the message itself
  51620. into the buffer. Start by writing the length of the data, the data
  51621. itself will be written later in this function. */
  51622. xShouldWrite = pdTRUE;
  51623. 8015b22: 2301 movs r3, #1
  51624. 8015b24: 617b str r3, [r7, #20]
  51625. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  51626. 8015b26: 1d3b adds r3, r7, #4
  51627. 8015b28: 2204 movs r2, #4
  51628. 8015b2a: 4619 mov r1, r3
  51629. 8015b2c: 68f8 ldr r0, [r7, #12]
  51630. 8015b2e: f000 f815 bl 8015b5c <prvWriteBytesToBuffer>
  51631. 8015b32: e001 b.n 8015b38 <prvWriteMessageToBuffer+0x56>
  51632. }
  51633. else
  51634. {
  51635. /* There is space available, but not enough space. */
  51636. xShouldWrite = pdFALSE;
  51637. 8015b34: 2300 movs r3, #0
  51638. 8015b36: 617b str r3, [r7, #20]
  51639. }
  51640. if( xShouldWrite != pdFALSE )
  51641. 8015b38: 697b ldr r3, [r7, #20]
  51642. 8015b3a: 2b00 cmp r3, #0
  51643. 8015b3c: d007 beq.n 8015b4e <prvWriteMessageToBuffer+0x6c>
  51644. {
  51645. /* Writes the data itself. */
  51646. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  51647. 8015b3e: 687b ldr r3, [r7, #4]
  51648. 8015b40: 461a mov r2, r3
  51649. 8015b42: 68b9 ldr r1, [r7, #8]
  51650. 8015b44: 68f8 ldr r0, [r7, #12]
  51651. 8015b46: f000 f809 bl 8015b5c <prvWriteBytesToBuffer>
  51652. 8015b4a: 6138 str r0, [r7, #16]
  51653. 8015b4c: e001 b.n 8015b52 <prvWriteMessageToBuffer+0x70>
  51654. }
  51655. else
  51656. {
  51657. xReturn = 0;
  51658. 8015b4e: 2300 movs r3, #0
  51659. 8015b50: 613b str r3, [r7, #16]
  51660. }
  51661. return xReturn;
  51662. 8015b52: 693b ldr r3, [r7, #16]
  51663. }
  51664. 8015b54: 4618 mov r0, r3
  51665. 8015b56: 3718 adds r7, #24
  51666. 8015b58: 46bd mov sp, r7
  51667. 8015b5a: bd80 pop {r7, pc}
  51668. 08015b5c <prvWriteBytesToBuffer>:
  51669. return xReturn;
  51670. }
  51671. /*-----------------------------------------------------------*/
  51672. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  51673. {
  51674. 8015b5c: b580 push {r7, lr}
  51675. 8015b5e: b08a sub sp, #40 @ 0x28
  51676. 8015b60: af00 add r7, sp, #0
  51677. 8015b62: 60f8 str r0, [r7, #12]
  51678. 8015b64: 60b9 str r1, [r7, #8]
  51679. 8015b66: 607a str r2, [r7, #4]
  51680. size_t xNextHead, xFirstLength;
  51681. configASSERT( xCount > ( size_t ) 0 );
  51682. 8015b68: 687b ldr r3, [r7, #4]
  51683. 8015b6a: 2b00 cmp r3, #0
  51684. 8015b6c: d10b bne.n 8015b86 <prvWriteBytesToBuffer+0x2a>
  51685. __asm volatile
  51686. 8015b6e: f04f 0350 mov.w r3, #80 @ 0x50
  51687. 8015b72: f383 8811 msr BASEPRI, r3
  51688. 8015b76: f3bf 8f6f isb sy
  51689. 8015b7a: f3bf 8f4f dsb sy
  51690. 8015b7e: 61fb str r3, [r7, #28]
  51691. }
  51692. 8015b80: bf00 nop
  51693. 8015b82: bf00 nop
  51694. 8015b84: e7fd b.n 8015b82 <prvWriteBytesToBuffer+0x26>
  51695. xNextHead = pxStreamBuffer->xHead;
  51696. 8015b86: 68fb ldr r3, [r7, #12]
  51697. 8015b88: 685b ldr r3, [r3, #4]
  51698. 8015b8a: 627b str r3, [r7, #36] @ 0x24
  51699. /* Calculate the number of bytes that can be added in the first write -
  51700. which may be less than the total number of bytes that need to be added if
  51701. the buffer will wrap back to the beginning. */
  51702. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  51703. 8015b8c: 68fb ldr r3, [r7, #12]
  51704. 8015b8e: 689a ldr r2, [r3, #8]
  51705. 8015b90: 6a7b ldr r3, [r7, #36] @ 0x24
  51706. 8015b92: 1ad3 subs r3, r2, r3
  51707. 8015b94: 687a ldr r2, [r7, #4]
  51708. 8015b96: 4293 cmp r3, r2
  51709. 8015b98: bf28 it cs
  51710. 8015b9a: 4613 movcs r3, r2
  51711. 8015b9c: 623b str r3, [r7, #32]
  51712. /* Write as many bytes as can be written in the first write. */
  51713. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  51714. 8015b9e: 6a7a ldr r2, [r7, #36] @ 0x24
  51715. 8015ba0: 6a3b ldr r3, [r7, #32]
  51716. 8015ba2: 441a add r2, r3
  51717. 8015ba4: 68fb ldr r3, [r7, #12]
  51718. 8015ba6: 689b ldr r3, [r3, #8]
  51719. 8015ba8: 429a cmp r2, r3
  51720. 8015baa: d90b bls.n 8015bc4 <prvWriteBytesToBuffer+0x68>
  51721. __asm volatile
  51722. 8015bac: f04f 0350 mov.w r3, #80 @ 0x50
  51723. 8015bb0: f383 8811 msr BASEPRI, r3
  51724. 8015bb4: f3bf 8f6f isb sy
  51725. 8015bb8: f3bf 8f4f dsb sy
  51726. 8015bbc: 61bb str r3, [r7, #24]
  51727. }
  51728. 8015bbe: bf00 nop
  51729. 8015bc0: bf00 nop
  51730. 8015bc2: e7fd b.n 8015bc0 <prvWriteBytesToBuffer+0x64>
  51731. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51732. 8015bc4: 68fb ldr r3, [r7, #12]
  51733. 8015bc6: 699a ldr r2, [r3, #24]
  51734. 8015bc8: 6a7b ldr r3, [r7, #36] @ 0x24
  51735. 8015bca: 4413 add r3, r2
  51736. 8015bcc: 6a3a ldr r2, [r7, #32]
  51737. 8015bce: 68b9 ldr r1, [r7, #8]
  51738. 8015bd0: 4618 mov r0, r3
  51739. 8015bd2: f002 fc13 bl 80183fc <memcpy>
  51740. /* If the number of bytes written was less than the number that could be
  51741. written in the first write... */
  51742. if( xCount > xFirstLength )
  51743. 8015bd6: 687a ldr r2, [r7, #4]
  51744. 8015bd8: 6a3b ldr r3, [r7, #32]
  51745. 8015bda: 429a cmp r2, r3
  51746. 8015bdc: d91d bls.n 8015c1a <prvWriteBytesToBuffer+0xbe>
  51747. {
  51748. /* ...then write the remaining bytes to the start of the buffer. */
  51749. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  51750. 8015bde: 687a ldr r2, [r7, #4]
  51751. 8015be0: 6a3b ldr r3, [r7, #32]
  51752. 8015be2: 1ad2 subs r2, r2, r3
  51753. 8015be4: 68fb ldr r3, [r7, #12]
  51754. 8015be6: 689b ldr r3, [r3, #8]
  51755. 8015be8: 429a cmp r2, r3
  51756. 8015bea: d90b bls.n 8015c04 <prvWriteBytesToBuffer+0xa8>
  51757. __asm volatile
  51758. 8015bec: f04f 0350 mov.w r3, #80 @ 0x50
  51759. 8015bf0: f383 8811 msr BASEPRI, r3
  51760. 8015bf4: f3bf 8f6f isb sy
  51761. 8015bf8: f3bf 8f4f dsb sy
  51762. 8015bfc: 617b str r3, [r7, #20]
  51763. }
  51764. 8015bfe: bf00 nop
  51765. 8015c00: bf00 nop
  51766. 8015c02: e7fd b.n 8015c00 <prvWriteBytesToBuffer+0xa4>
  51767. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51768. 8015c04: 68fb ldr r3, [r7, #12]
  51769. 8015c06: 6998 ldr r0, [r3, #24]
  51770. 8015c08: 68ba ldr r2, [r7, #8]
  51771. 8015c0a: 6a3b ldr r3, [r7, #32]
  51772. 8015c0c: 18d1 adds r1, r2, r3
  51773. 8015c0e: 687a ldr r2, [r7, #4]
  51774. 8015c10: 6a3b ldr r3, [r7, #32]
  51775. 8015c12: 1ad3 subs r3, r2, r3
  51776. 8015c14: 461a mov r2, r3
  51777. 8015c16: f002 fbf1 bl 80183fc <memcpy>
  51778. else
  51779. {
  51780. mtCOVERAGE_TEST_MARKER();
  51781. }
  51782. xNextHead += xCount;
  51783. 8015c1a: 6a7a ldr r2, [r7, #36] @ 0x24
  51784. 8015c1c: 687b ldr r3, [r7, #4]
  51785. 8015c1e: 4413 add r3, r2
  51786. 8015c20: 627b str r3, [r7, #36] @ 0x24
  51787. if( xNextHead >= pxStreamBuffer->xLength )
  51788. 8015c22: 68fb ldr r3, [r7, #12]
  51789. 8015c24: 689b ldr r3, [r3, #8]
  51790. 8015c26: 6a7a ldr r2, [r7, #36] @ 0x24
  51791. 8015c28: 429a cmp r2, r3
  51792. 8015c2a: d304 bcc.n 8015c36 <prvWriteBytesToBuffer+0xda>
  51793. {
  51794. xNextHead -= pxStreamBuffer->xLength;
  51795. 8015c2c: 68fb ldr r3, [r7, #12]
  51796. 8015c2e: 689b ldr r3, [r3, #8]
  51797. 8015c30: 6a7a ldr r2, [r7, #36] @ 0x24
  51798. 8015c32: 1ad3 subs r3, r2, r3
  51799. 8015c34: 627b str r3, [r7, #36] @ 0x24
  51800. else
  51801. {
  51802. mtCOVERAGE_TEST_MARKER();
  51803. }
  51804. pxStreamBuffer->xHead = xNextHead;
  51805. 8015c36: 68fb ldr r3, [r7, #12]
  51806. 8015c38: 6a7a ldr r2, [r7, #36] @ 0x24
  51807. 8015c3a: 605a str r2, [r3, #4]
  51808. return xCount;
  51809. 8015c3c: 687b ldr r3, [r7, #4]
  51810. }
  51811. 8015c3e: 4618 mov r0, r3
  51812. 8015c40: 3728 adds r7, #40 @ 0x28
  51813. 8015c42: 46bd mov sp, r7
  51814. 8015c44: bd80 pop {r7, pc}
  51815. 08015c46 <prvBytesInBuffer>:
  51816. return xCount;
  51817. }
  51818. /*-----------------------------------------------------------*/
  51819. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  51820. {
  51821. 8015c46: b480 push {r7}
  51822. 8015c48: b085 sub sp, #20
  51823. 8015c4a: af00 add r7, sp, #0
  51824. 8015c4c: 6078 str r0, [r7, #4]
  51825. /* Returns the distance between xTail and xHead. */
  51826. size_t xCount;
  51827. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  51828. 8015c4e: 687b ldr r3, [r7, #4]
  51829. 8015c50: 689a ldr r2, [r3, #8]
  51830. 8015c52: 687b ldr r3, [r7, #4]
  51831. 8015c54: 685b ldr r3, [r3, #4]
  51832. 8015c56: 4413 add r3, r2
  51833. 8015c58: 60fb str r3, [r7, #12]
  51834. xCount -= pxStreamBuffer->xTail;
  51835. 8015c5a: 687b ldr r3, [r7, #4]
  51836. 8015c5c: 681b ldr r3, [r3, #0]
  51837. 8015c5e: 68fa ldr r2, [r7, #12]
  51838. 8015c60: 1ad3 subs r3, r2, r3
  51839. 8015c62: 60fb str r3, [r7, #12]
  51840. if ( xCount >= pxStreamBuffer->xLength )
  51841. 8015c64: 687b ldr r3, [r7, #4]
  51842. 8015c66: 689b ldr r3, [r3, #8]
  51843. 8015c68: 68fa ldr r2, [r7, #12]
  51844. 8015c6a: 429a cmp r2, r3
  51845. 8015c6c: d304 bcc.n 8015c78 <prvBytesInBuffer+0x32>
  51846. {
  51847. xCount -= pxStreamBuffer->xLength;
  51848. 8015c6e: 687b ldr r3, [r7, #4]
  51849. 8015c70: 689b ldr r3, [r3, #8]
  51850. 8015c72: 68fa ldr r2, [r7, #12]
  51851. 8015c74: 1ad3 subs r3, r2, r3
  51852. 8015c76: 60fb str r3, [r7, #12]
  51853. else
  51854. {
  51855. mtCOVERAGE_TEST_MARKER();
  51856. }
  51857. return xCount;
  51858. 8015c78: 68fb ldr r3, [r7, #12]
  51859. }
  51860. 8015c7a: 4618 mov r0, r3
  51861. 8015c7c: 3714 adds r7, #20
  51862. 8015c7e: 46bd mov sp, r7
  51863. 8015c80: f85d 7b04 ldr.w r7, [sp], #4
  51864. 8015c84: 4770 bx lr
  51865. 08015c86 <xTaskCreateStatic>:
  51866. const uint32_t ulStackDepth,
  51867. void * const pvParameters,
  51868. UBaseType_t uxPriority,
  51869. StackType_t * const puxStackBuffer,
  51870. StaticTask_t * const pxTaskBuffer )
  51871. {
  51872. 8015c86: b580 push {r7, lr}
  51873. 8015c88: b08e sub sp, #56 @ 0x38
  51874. 8015c8a: af04 add r7, sp, #16
  51875. 8015c8c: 60f8 str r0, [r7, #12]
  51876. 8015c8e: 60b9 str r1, [r7, #8]
  51877. 8015c90: 607a str r2, [r7, #4]
  51878. 8015c92: 603b str r3, [r7, #0]
  51879. TCB_t *pxNewTCB;
  51880. TaskHandle_t xReturn;
  51881. configASSERT( puxStackBuffer != NULL );
  51882. 8015c94: 6b7b ldr r3, [r7, #52] @ 0x34
  51883. 8015c96: 2b00 cmp r3, #0
  51884. 8015c98: d10b bne.n 8015cb2 <xTaskCreateStatic+0x2c>
  51885. __asm volatile
  51886. 8015c9a: f04f 0350 mov.w r3, #80 @ 0x50
  51887. 8015c9e: f383 8811 msr BASEPRI, r3
  51888. 8015ca2: f3bf 8f6f isb sy
  51889. 8015ca6: f3bf 8f4f dsb sy
  51890. 8015caa: 623b str r3, [r7, #32]
  51891. }
  51892. 8015cac: bf00 nop
  51893. 8015cae: bf00 nop
  51894. 8015cb0: e7fd b.n 8015cae <xTaskCreateStatic+0x28>
  51895. configASSERT( pxTaskBuffer != NULL );
  51896. 8015cb2: 6bbb ldr r3, [r7, #56] @ 0x38
  51897. 8015cb4: 2b00 cmp r3, #0
  51898. 8015cb6: d10b bne.n 8015cd0 <xTaskCreateStatic+0x4a>
  51899. __asm volatile
  51900. 8015cb8: f04f 0350 mov.w r3, #80 @ 0x50
  51901. 8015cbc: f383 8811 msr BASEPRI, r3
  51902. 8015cc0: f3bf 8f6f isb sy
  51903. 8015cc4: f3bf 8f4f dsb sy
  51904. 8015cc8: 61fb str r3, [r7, #28]
  51905. }
  51906. 8015cca: bf00 nop
  51907. 8015ccc: bf00 nop
  51908. 8015cce: e7fd b.n 8015ccc <xTaskCreateStatic+0x46>
  51909. #if( configASSERT_DEFINED == 1 )
  51910. {
  51911. /* Sanity check that the size of the structure used to declare a
  51912. variable of type StaticTask_t equals the size of the real task
  51913. structure. */
  51914. volatile size_t xSize = sizeof( StaticTask_t );
  51915. 8015cd0: 23a8 movs r3, #168 @ 0xa8
  51916. 8015cd2: 613b str r3, [r7, #16]
  51917. configASSERT( xSize == sizeof( TCB_t ) );
  51918. 8015cd4: 693b ldr r3, [r7, #16]
  51919. 8015cd6: 2ba8 cmp r3, #168 @ 0xa8
  51920. 8015cd8: d00b beq.n 8015cf2 <xTaskCreateStatic+0x6c>
  51921. __asm volatile
  51922. 8015cda: f04f 0350 mov.w r3, #80 @ 0x50
  51923. 8015cde: f383 8811 msr BASEPRI, r3
  51924. 8015ce2: f3bf 8f6f isb sy
  51925. 8015ce6: f3bf 8f4f dsb sy
  51926. 8015cea: 61bb str r3, [r7, #24]
  51927. }
  51928. 8015cec: bf00 nop
  51929. 8015cee: bf00 nop
  51930. 8015cf0: e7fd b.n 8015cee <xTaskCreateStatic+0x68>
  51931. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51932. 8015cf2: 693b ldr r3, [r7, #16]
  51933. }
  51934. #endif /* configASSERT_DEFINED */
  51935. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51936. 8015cf4: 6bbb ldr r3, [r7, #56] @ 0x38
  51937. 8015cf6: 2b00 cmp r3, #0
  51938. 8015cf8: d01e beq.n 8015d38 <xTaskCreateStatic+0xb2>
  51939. 8015cfa: 6b7b ldr r3, [r7, #52] @ 0x34
  51940. 8015cfc: 2b00 cmp r3, #0
  51941. 8015cfe: d01b beq.n 8015d38 <xTaskCreateStatic+0xb2>
  51942. {
  51943. /* The memory used for the task's TCB and stack are passed into this
  51944. function - use them. */
  51945. 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. */
  51946. 8015d00: 6bbb ldr r3, [r7, #56] @ 0x38
  51947. 8015d02: 627b str r3, [r7, #36] @ 0x24
  51948. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  51949. 8015d04: 6a7b ldr r3, [r7, #36] @ 0x24
  51950. 8015d06: 6b7a ldr r2, [r7, #52] @ 0x34
  51951. 8015d08: 631a str r2, [r3, #48] @ 0x30
  51952. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  51953. {
  51954. /* Tasks can be created statically or dynamically, so note this
  51955. task was created statically in case the task is later deleted. */
  51956. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  51957. 8015d0a: 6a7b ldr r3, [r7, #36] @ 0x24
  51958. 8015d0c: 2202 movs r2, #2
  51959. 8015d0e: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51960. }
  51961. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51962. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  51963. 8015d12: 2300 movs r3, #0
  51964. 8015d14: 9303 str r3, [sp, #12]
  51965. 8015d16: 6a7b ldr r3, [r7, #36] @ 0x24
  51966. 8015d18: 9302 str r3, [sp, #8]
  51967. 8015d1a: f107 0314 add.w r3, r7, #20
  51968. 8015d1e: 9301 str r3, [sp, #4]
  51969. 8015d20: 6b3b ldr r3, [r7, #48] @ 0x30
  51970. 8015d22: 9300 str r3, [sp, #0]
  51971. 8015d24: 683b ldr r3, [r7, #0]
  51972. 8015d26: 687a ldr r2, [r7, #4]
  51973. 8015d28: 68b9 ldr r1, [r7, #8]
  51974. 8015d2a: 68f8 ldr r0, [r7, #12]
  51975. 8015d2c: f000 f850 bl 8015dd0 <prvInitialiseNewTask>
  51976. prvAddNewTaskToReadyList( pxNewTCB );
  51977. 8015d30: 6a78 ldr r0, [r7, #36] @ 0x24
  51978. 8015d32: f000 f8f5 bl 8015f20 <prvAddNewTaskToReadyList>
  51979. 8015d36: e001 b.n 8015d3c <xTaskCreateStatic+0xb6>
  51980. }
  51981. else
  51982. {
  51983. xReturn = NULL;
  51984. 8015d38: 2300 movs r3, #0
  51985. 8015d3a: 617b str r3, [r7, #20]
  51986. }
  51987. return xReturn;
  51988. 8015d3c: 697b ldr r3, [r7, #20]
  51989. }
  51990. 8015d3e: 4618 mov r0, r3
  51991. 8015d40: 3728 adds r7, #40 @ 0x28
  51992. 8015d42: 46bd mov sp, r7
  51993. 8015d44: bd80 pop {r7, pc}
  51994. 08015d46 <xTaskCreate>:
  51995. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51996. const configSTACK_DEPTH_TYPE usStackDepth,
  51997. void * const pvParameters,
  51998. UBaseType_t uxPriority,
  51999. TaskHandle_t * const pxCreatedTask )
  52000. {
  52001. 8015d46: b580 push {r7, lr}
  52002. 8015d48: b08c sub sp, #48 @ 0x30
  52003. 8015d4a: af04 add r7, sp, #16
  52004. 8015d4c: 60f8 str r0, [r7, #12]
  52005. 8015d4e: 60b9 str r1, [r7, #8]
  52006. 8015d50: 603b str r3, [r7, #0]
  52007. 8015d52: 4613 mov r3, r2
  52008. 8015d54: 80fb strh r3, [r7, #6]
  52009. #else /* portSTACK_GROWTH */
  52010. {
  52011. StackType_t *pxStack;
  52012. /* Allocate space for the stack used by the task being created. */
  52013. 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. */
  52014. 8015d56: 88fb ldrh r3, [r7, #6]
  52015. 8015d58: 009b lsls r3, r3, #2
  52016. 8015d5a: 4618 mov r0, r3
  52017. 8015d5c: f002 f8d6 bl 8017f0c <pvPortMalloc>
  52018. 8015d60: 6178 str r0, [r7, #20]
  52019. if( pxStack != NULL )
  52020. 8015d62: 697b ldr r3, [r7, #20]
  52021. 8015d64: 2b00 cmp r3, #0
  52022. 8015d66: d00e beq.n 8015d86 <xTaskCreate+0x40>
  52023. {
  52024. /* Allocate space for the TCB. */
  52025. 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. */
  52026. 8015d68: 20a8 movs r0, #168 @ 0xa8
  52027. 8015d6a: f002 f8cf bl 8017f0c <pvPortMalloc>
  52028. 8015d6e: 61f8 str r0, [r7, #28]
  52029. if( pxNewTCB != NULL )
  52030. 8015d70: 69fb ldr r3, [r7, #28]
  52031. 8015d72: 2b00 cmp r3, #0
  52032. 8015d74: d003 beq.n 8015d7e <xTaskCreate+0x38>
  52033. {
  52034. /* Store the stack location in the TCB. */
  52035. pxNewTCB->pxStack = pxStack;
  52036. 8015d76: 69fb ldr r3, [r7, #28]
  52037. 8015d78: 697a ldr r2, [r7, #20]
  52038. 8015d7a: 631a str r2, [r3, #48] @ 0x30
  52039. 8015d7c: e005 b.n 8015d8a <xTaskCreate+0x44>
  52040. }
  52041. else
  52042. {
  52043. /* The stack cannot be used as the TCB was not created. Free
  52044. it again. */
  52045. vPortFree( pxStack );
  52046. 8015d7e: 6978 ldr r0, [r7, #20]
  52047. 8015d80: f002 f992 bl 80180a8 <vPortFree>
  52048. 8015d84: e001 b.n 8015d8a <xTaskCreate+0x44>
  52049. }
  52050. }
  52051. else
  52052. {
  52053. pxNewTCB = NULL;
  52054. 8015d86: 2300 movs r3, #0
  52055. 8015d88: 61fb str r3, [r7, #28]
  52056. }
  52057. }
  52058. #endif /* portSTACK_GROWTH */
  52059. if( pxNewTCB != NULL )
  52060. 8015d8a: 69fb ldr r3, [r7, #28]
  52061. 8015d8c: 2b00 cmp r3, #0
  52062. 8015d8e: d017 beq.n 8015dc0 <xTaskCreate+0x7a>
  52063. {
  52064. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  52065. {
  52066. /* Tasks can be created statically or dynamically, so note this
  52067. task was created dynamically in case it is later deleted. */
  52068. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  52069. 8015d90: 69fb ldr r3, [r7, #28]
  52070. 8015d92: 2200 movs r2, #0
  52071. 8015d94: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  52072. }
  52073. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  52074. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  52075. 8015d98: 88fa ldrh r2, [r7, #6]
  52076. 8015d9a: 2300 movs r3, #0
  52077. 8015d9c: 9303 str r3, [sp, #12]
  52078. 8015d9e: 69fb ldr r3, [r7, #28]
  52079. 8015da0: 9302 str r3, [sp, #8]
  52080. 8015da2: 6afb ldr r3, [r7, #44] @ 0x2c
  52081. 8015da4: 9301 str r3, [sp, #4]
  52082. 8015da6: 6abb ldr r3, [r7, #40] @ 0x28
  52083. 8015da8: 9300 str r3, [sp, #0]
  52084. 8015daa: 683b ldr r3, [r7, #0]
  52085. 8015dac: 68b9 ldr r1, [r7, #8]
  52086. 8015dae: 68f8 ldr r0, [r7, #12]
  52087. 8015db0: f000 f80e bl 8015dd0 <prvInitialiseNewTask>
  52088. prvAddNewTaskToReadyList( pxNewTCB );
  52089. 8015db4: 69f8 ldr r0, [r7, #28]
  52090. 8015db6: f000 f8b3 bl 8015f20 <prvAddNewTaskToReadyList>
  52091. xReturn = pdPASS;
  52092. 8015dba: 2301 movs r3, #1
  52093. 8015dbc: 61bb str r3, [r7, #24]
  52094. 8015dbe: e002 b.n 8015dc6 <xTaskCreate+0x80>
  52095. }
  52096. else
  52097. {
  52098. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  52099. 8015dc0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52100. 8015dc4: 61bb str r3, [r7, #24]
  52101. }
  52102. return xReturn;
  52103. 8015dc6: 69bb ldr r3, [r7, #24]
  52104. }
  52105. 8015dc8: 4618 mov r0, r3
  52106. 8015dca: 3720 adds r7, #32
  52107. 8015dcc: 46bd mov sp, r7
  52108. 8015dce: bd80 pop {r7, pc}
  52109. 08015dd0 <prvInitialiseNewTask>:
  52110. void * const pvParameters,
  52111. UBaseType_t uxPriority,
  52112. TaskHandle_t * const pxCreatedTask,
  52113. TCB_t *pxNewTCB,
  52114. const MemoryRegion_t * const xRegions )
  52115. {
  52116. 8015dd0: b580 push {r7, lr}
  52117. 8015dd2: b088 sub sp, #32
  52118. 8015dd4: af00 add r7, sp, #0
  52119. 8015dd6: 60f8 str r0, [r7, #12]
  52120. 8015dd8: 60b9 str r1, [r7, #8]
  52121. 8015dda: 607a str r2, [r7, #4]
  52122. 8015ddc: 603b str r3, [r7, #0]
  52123. /* Avoid dependency on memset() if it is not required. */
  52124. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  52125. {
  52126. /* Fill the stack with a known value to assist debugging. */
  52127. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  52128. 8015dde: 6b3b ldr r3, [r7, #48] @ 0x30
  52129. 8015de0: 6b18 ldr r0, [r3, #48] @ 0x30
  52130. 8015de2: 687b ldr r3, [r7, #4]
  52131. 8015de4: 009b lsls r3, r3, #2
  52132. 8015de6: 461a mov r2, r3
  52133. 8015de8: 21a5 movs r1, #165 @ 0xa5
  52134. 8015dea: f002 fa7d bl 80182e8 <memset>
  52135. grows from high memory to low (as per the 80x86) or vice versa.
  52136. portSTACK_GROWTH is used to make the result positive or negative as required
  52137. by the port. */
  52138. #if( portSTACK_GROWTH < 0 )
  52139. {
  52140. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  52141. 8015dee: 6b3b ldr r3, [r7, #48] @ 0x30
  52142. 8015df0: 6b1a ldr r2, [r3, #48] @ 0x30
  52143. 8015df2: 6879 ldr r1, [r7, #4]
  52144. 8015df4: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  52145. 8015df8: 440b add r3, r1
  52146. 8015dfa: 009b lsls r3, r3, #2
  52147. 8015dfc: 4413 add r3, r2
  52148. 8015dfe: 61bb str r3, [r7, #24]
  52149. 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(). */
  52150. 8015e00: 69bb ldr r3, [r7, #24]
  52151. 8015e02: f023 0307 bic.w r3, r3, #7
  52152. 8015e06: 61bb str r3, [r7, #24]
  52153. /* Check the alignment of the calculated top of stack is correct. */
  52154. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  52155. 8015e08: 69bb ldr r3, [r7, #24]
  52156. 8015e0a: f003 0307 and.w r3, r3, #7
  52157. 8015e0e: 2b00 cmp r3, #0
  52158. 8015e10: d00b beq.n 8015e2a <prvInitialiseNewTask+0x5a>
  52159. __asm volatile
  52160. 8015e12: f04f 0350 mov.w r3, #80 @ 0x50
  52161. 8015e16: f383 8811 msr BASEPRI, r3
  52162. 8015e1a: f3bf 8f6f isb sy
  52163. 8015e1e: f3bf 8f4f dsb sy
  52164. 8015e22: 617b str r3, [r7, #20]
  52165. }
  52166. 8015e24: bf00 nop
  52167. 8015e26: bf00 nop
  52168. 8015e28: e7fd b.n 8015e26 <prvInitialiseNewTask+0x56>
  52169. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  52170. }
  52171. #endif /* portSTACK_GROWTH */
  52172. /* Store the task name in the TCB. */
  52173. if( pcName != NULL )
  52174. 8015e2a: 68bb ldr r3, [r7, #8]
  52175. 8015e2c: 2b00 cmp r3, #0
  52176. 8015e2e: d01f beq.n 8015e70 <prvInitialiseNewTask+0xa0>
  52177. {
  52178. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52179. 8015e30: 2300 movs r3, #0
  52180. 8015e32: 61fb str r3, [r7, #28]
  52181. 8015e34: e012 b.n 8015e5c <prvInitialiseNewTask+0x8c>
  52182. {
  52183. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  52184. 8015e36: 68ba ldr r2, [r7, #8]
  52185. 8015e38: 69fb ldr r3, [r7, #28]
  52186. 8015e3a: 4413 add r3, r2
  52187. 8015e3c: 7819 ldrb r1, [r3, #0]
  52188. 8015e3e: 6b3a ldr r2, [r7, #48] @ 0x30
  52189. 8015e40: 69fb ldr r3, [r7, #28]
  52190. 8015e42: 4413 add r3, r2
  52191. 8015e44: 3334 adds r3, #52 @ 0x34
  52192. 8015e46: 460a mov r2, r1
  52193. 8015e48: 701a strb r2, [r3, #0]
  52194. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  52195. configMAX_TASK_NAME_LEN characters just in case the memory after the
  52196. string is not accessible (extremely unlikely). */
  52197. if( pcName[ x ] == ( char ) 0x00 )
  52198. 8015e4a: 68ba ldr r2, [r7, #8]
  52199. 8015e4c: 69fb ldr r3, [r7, #28]
  52200. 8015e4e: 4413 add r3, r2
  52201. 8015e50: 781b ldrb r3, [r3, #0]
  52202. 8015e52: 2b00 cmp r3, #0
  52203. 8015e54: d006 beq.n 8015e64 <prvInitialiseNewTask+0x94>
  52204. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52205. 8015e56: 69fb ldr r3, [r7, #28]
  52206. 8015e58: 3301 adds r3, #1
  52207. 8015e5a: 61fb str r3, [r7, #28]
  52208. 8015e5c: 69fb ldr r3, [r7, #28]
  52209. 8015e5e: 2b0f cmp r3, #15
  52210. 8015e60: d9e9 bls.n 8015e36 <prvInitialiseNewTask+0x66>
  52211. 8015e62: e000 b.n 8015e66 <prvInitialiseNewTask+0x96>
  52212. {
  52213. break;
  52214. 8015e64: bf00 nop
  52215. }
  52216. }
  52217. /* Ensure the name string is terminated in the case that the string length
  52218. was greater or equal to configMAX_TASK_NAME_LEN. */
  52219. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  52220. 8015e66: 6b3b ldr r3, [r7, #48] @ 0x30
  52221. 8015e68: 2200 movs r2, #0
  52222. 8015e6a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  52223. 8015e6e: e003 b.n 8015e78 <prvInitialiseNewTask+0xa8>
  52224. }
  52225. else
  52226. {
  52227. /* The task has not been given a name, so just ensure there is a NULL
  52228. terminator when it is read out. */
  52229. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  52230. 8015e70: 6b3b ldr r3, [r7, #48] @ 0x30
  52231. 8015e72: 2200 movs r2, #0
  52232. 8015e74: f883 2034 strb.w r2, [r3, #52] @ 0x34
  52233. }
  52234. /* This is used as an array index so must ensure it's not too large. First
  52235. remove the privilege bit if one is present. */
  52236. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  52237. 8015e78: 6abb ldr r3, [r7, #40] @ 0x28
  52238. 8015e7a: 2b37 cmp r3, #55 @ 0x37
  52239. 8015e7c: d901 bls.n 8015e82 <prvInitialiseNewTask+0xb2>
  52240. {
  52241. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  52242. 8015e7e: 2337 movs r3, #55 @ 0x37
  52243. 8015e80: 62bb str r3, [r7, #40] @ 0x28
  52244. else
  52245. {
  52246. mtCOVERAGE_TEST_MARKER();
  52247. }
  52248. pxNewTCB->uxPriority = uxPriority;
  52249. 8015e82: 6b3b ldr r3, [r7, #48] @ 0x30
  52250. 8015e84: 6aba ldr r2, [r7, #40] @ 0x28
  52251. 8015e86: 62da str r2, [r3, #44] @ 0x2c
  52252. #if ( configUSE_MUTEXES == 1 )
  52253. {
  52254. pxNewTCB->uxBasePriority = uxPriority;
  52255. 8015e88: 6b3b ldr r3, [r7, #48] @ 0x30
  52256. 8015e8a: 6aba ldr r2, [r7, #40] @ 0x28
  52257. 8015e8c: 64da str r2, [r3, #76] @ 0x4c
  52258. pxNewTCB->uxMutexesHeld = 0;
  52259. 8015e8e: 6b3b ldr r3, [r7, #48] @ 0x30
  52260. 8015e90: 2200 movs r2, #0
  52261. 8015e92: 651a str r2, [r3, #80] @ 0x50
  52262. }
  52263. #endif /* configUSE_MUTEXES */
  52264. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  52265. 8015e94: 6b3b ldr r3, [r7, #48] @ 0x30
  52266. 8015e96: 3304 adds r3, #4
  52267. 8015e98: 4618 mov r0, r3
  52268. 8015e9a: f7fe fd09 bl 80148b0 <vListInitialiseItem>
  52269. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  52270. 8015e9e: 6b3b ldr r3, [r7, #48] @ 0x30
  52271. 8015ea0: 3318 adds r3, #24
  52272. 8015ea2: 4618 mov r0, r3
  52273. 8015ea4: f7fe fd04 bl 80148b0 <vListInitialiseItem>
  52274. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  52275. back to the containing TCB from a generic item in a list. */
  52276. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  52277. 8015ea8: 6b3b ldr r3, [r7, #48] @ 0x30
  52278. 8015eaa: 6b3a ldr r2, [r7, #48] @ 0x30
  52279. 8015eac: 611a str r2, [r3, #16]
  52280. /* Event lists are always in priority order. */
  52281. 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. */
  52282. 8015eae: 6abb ldr r3, [r7, #40] @ 0x28
  52283. 8015eb0: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52284. 8015eb4: 6b3b ldr r3, [r7, #48] @ 0x30
  52285. 8015eb6: 619a str r2, [r3, #24]
  52286. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  52287. 8015eb8: 6b3b ldr r3, [r7, #48] @ 0x30
  52288. 8015eba: 6b3a ldr r2, [r7, #48] @ 0x30
  52289. 8015ebc: 625a str r2, [r3, #36] @ 0x24
  52290. }
  52291. #endif
  52292. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  52293. {
  52294. pxNewTCB->ulNotifiedValue = 0;
  52295. 8015ebe: 6b3b ldr r3, [r7, #48] @ 0x30
  52296. 8015ec0: 2200 movs r2, #0
  52297. 8015ec2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  52298. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  52299. 8015ec6: 6b3b ldr r3, [r7, #48] @ 0x30
  52300. 8015ec8: 2200 movs r2, #0
  52301. 8015eca: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  52302. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52303. {
  52304. /* Initialise this task's Newlib reent structure.
  52305. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52306. for additional information. */
  52307. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  52308. 8015ece: 6b3b ldr r3, [r7, #48] @ 0x30
  52309. 8015ed0: 3354 adds r3, #84 @ 0x54
  52310. 8015ed2: 224c movs r2, #76 @ 0x4c
  52311. 8015ed4: 2100 movs r1, #0
  52312. 8015ed6: 4618 mov r0, r3
  52313. 8015ed8: f002 fa06 bl 80182e8 <memset>
  52314. 8015edc: 6b3b ldr r3, [r7, #48] @ 0x30
  52315. 8015ede: 4a0d ldr r2, [pc, #52] @ (8015f14 <prvInitialiseNewTask+0x144>)
  52316. 8015ee0: 659a str r2, [r3, #88] @ 0x58
  52317. 8015ee2: 6b3b ldr r3, [r7, #48] @ 0x30
  52318. 8015ee4: 4a0c ldr r2, [pc, #48] @ (8015f18 <prvInitialiseNewTask+0x148>)
  52319. 8015ee6: 65da str r2, [r3, #92] @ 0x5c
  52320. 8015ee8: 6b3b ldr r3, [r7, #48] @ 0x30
  52321. 8015eea: 4a0c ldr r2, [pc, #48] @ (8015f1c <prvInitialiseNewTask+0x14c>)
  52322. 8015eec: 661a str r2, [r3, #96] @ 0x60
  52323. }
  52324. #endif /* portSTACK_GROWTH */
  52325. }
  52326. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  52327. {
  52328. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  52329. 8015eee: 683a ldr r2, [r7, #0]
  52330. 8015ef0: 68f9 ldr r1, [r7, #12]
  52331. 8015ef2: 69b8 ldr r0, [r7, #24]
  52332. 8015ef4: f001 fdb8 bl 8017a68 <pxPortInitialiseStack>
  52333. 8015ef8: 4602 mov r2, r0
  52334. 8015efa: 6b3b ldr r3, [r7, #48] @ 0x30
  52335. 8015efc: 601a str r2, [r3, #0]
  52336. }
  52337. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  52338. }
  52339. #endif /* portUSING_MPU_WRAPPERS */
  52340. if( pxCreatedTask != NULL )
  52341. 8015efe: 6afb ldr r3, [r7, #44] @ 0x2c
  52342. 8015f00: 2b00 cmp r3, #0
  52343. 8015f02: d002 beq.n 8015f0a <prvInitialiseNewTask+0x13a>
  52344. {
  52345. /* Pass the handle out in an anonymous way. The handle can be used to
  52346. change the created task's priority, delete the created task, etc.*/
  52347. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  52348. 8015f04: 6afb ldr r3, [r7, #44] @ 0x2c
  52349. 8015f06: 6b3a ldr r2, [r7, #48] @ 0x30
  52350. 8015f08: 601a str r2, [r3, #0]
  52351. }
  52352. else
  52353. {
  52354. mtCOVERAGE_TEST_MARKER();
  52355. }
  52356. }
  52357. 8015f0a: bf00 nop
  52358. 8015f0c: 3720 adds r7, #32
  52359. 8015f0e: 46bd mov sp, r7
  52360. 8015f10: bd80 pop {r7, pc}
  52361. 8015f12: bf00 nop
  52362. 8015f14: 2401304c .word 0x2401304c
  52363. 8015f18: 240130b4 .word 0x240130b4
  52364. 8015f1c: 2401311c .word 0x2401311c
  52365. 08015f20 <prvAddNewTaskToReadyList>:
  52366. /*-----------------------------------------------------------*/
  52367. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  52368. {
  52369. 8015f20: b580 push {r7, lr}
  52370. 8015f22: b082 sub sp, #8
  52371. 8015f24: af00 add r7, sp, #0
  52372. 8015f26: 6078 str r0, [r7, #4]
  52373. /* Ensure interrupts don't access the task lists while the lists are being
  52374. updated. */
  52375. taskENTER_CRITICAL();
  52376. 8015f28: f001 fece bl 8017cc8 <vPortEnterCritical>
  52377. {
  52378. uxCurrentNumberOfTasks++;
  52379. 8015f2c: 4b2d ldr r3, [pc, #180] @ (8015fe4 <prvAddNewTaskToReadyList+0xc4>)
  52380. 8015f2e: 681b ldr r3, [r3, #0]
  52381. 8015f30: 3301 adds r3, #1
  52382. 8015f32: 4a2c ldr r2, [pc, #176] @ (8015fe4 <prvAddNewTaskToReadyList+0xc4>)
  52383. 8015f34: 6013 str r3, [r2, #0]
  52384. if( pxCurrentTCB == NULL )
  52385. 8015f36: 4b2c ldr r3, [pc, #176] @ (8015fe8 <prvAddNewTaskToReadyList+0xc8>)
  52386. 8015f38: 681b ldr r3, [r3, #0]
  52387. 8015f3a: 2b00 cmp r3, #0
  52388. 8015f3c: d109 bne.n 8015f52 <prvAddNewTaskToReadyList+0x32>
  52389. {
  52390. /* There are no other tasks, or all the other tasks are in
  52391. the suspended state - make this the current task. */
  52392. pxCurrentTCB = pxNewTCB;
  52393. 8015f3e: 4a2a ldr r2, [pc, #168] @ (8015fe8 <prvAddNewTaskToReadyList+0xc8>)
  52394. 8015f40: 687b ldr r3, [r7, #4]
  52395. 8015f42: 6013 str r3, [r2, #0]
  52396. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  52397. 8015f44: 4b27 ldr r3, [pc, #156] @ (8015fe4 <prvAddNewTaskToReadyList+0xc4>)
  52398. 8015f46: 681b ldr r3, [r3, #0]
  52399. 8015f48: 2b01 cmp r3, #1
  52400. 8015f4a: d110 bne.n 8015f6e <prvAddNewTaskToReadyList+0x4e>
  52401. {
  52402. /* This is the first task to be created so do the preliminary
  52403. initialisation required. We will not recover if this call
  52404. fails, but we will report the failure. */
  52405. prvInitialiseTaskLists();
  52406. 8015f4c: f000 fc64 bl 8016818 <prvInitialiseTaskLists>
  52407. 8015f50: e00d b.n 8015f6e <prvAddNewTaskToReadyList+0x4e>
  52408. else
  52409. {
  52410. /* If the scheduler is not already running, make this task the
  52411. current task if it is the highest priority task to be created
  52412. so far. */
  52413. if( xSchedulerRunning == pdFALSE )
  52414. 8015f52: 4b26 ldr r3, [pc, #152] @ (8015fec <prvAddNewTaskToReadyList+0xcc>)
  52415. 8015f54: 681b ldr r3, [r3, #0]
  52416. 8015f56: 2b00 cmp r3, #0
  52417. 8015f58: d109 bne.n 8015f6e <prvAddNewTaskToReadyList+0x4e>
  52418. {
  52419. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  52420. 8015f5a: 4b23 ldr r3, [pc, #140] @ (8015fe8 <prvAddNewTaskToReadyList+0xc8>)
  52421. 8015f5c: 681b ldr r3, [r3, #0]
  52422. 8015f5e: 6ada ldr r2, [r3, #44] @ 0x2c
  52423. 8015f60: 687b ldr r3, [r7, #4]
  52424. 8015f62: 6adb ldr r3, [r3, #44] @ 0x2c
  52425. 8015f64: 429a cmp r2, r3
  52426. 8015f66: d802 bhi.n 8015f6e <prvAddNewTaskToReadyList+0x4e>
  52427. {
  52428. pxCurrentTCB = pxNewTCB;
  52429. 8015f68: 4a1f ldr r2, [pc, #124] @ (8015fe8 <prvAddNewTaskToReadyList+0xc8>)
  52430. 8015f6a: 687b ldr r3, [r7, #4]
  52431. 8015f6c: 6013 str r3, [r2, #0]
  52432. {
  52433. mtCOVERAGE_TEST_MARKER();
  52434. }
  52435. }
  52436. uxTaskNumber++;
  52437. 8015f6e: 4b20 ldr r3, [pc, #128] @ (8015ff0 <prvAddNewTaskToReadyList+0xd0>)
  52438. 8015f70: 681b ldr r3, [r3, #0]
  52439. 8015f72: 3301 adds r3, #1
  52440. 8015f74: 4a1e ldr r2, [pc, #120] @ (8015ff0 <prvAddNewTaskToReadyList+0xd0>)
  52441. 8015f76: 6013 str r3, [r2, #0]
  52442. #if ( configUSE_TRACE_FACILITY == 1 )
  52443. {
  52444. /* Add a counter into the TCB for tracing only. */
  52445. pxNewTCB->uxTCBNumber = uxTaskNumber;
  52446. 8015f78: 4b1d ldr r3, [pc, #116] @ (8015ff0 <prvAddNewTaskToReadyList+0xd0>)
  52447. 8015f7a: 681a ldr r2, [r3, #0]
  52448. 8015f7c: 687b ldr r3, [r7, #4]
  52449. 8015f7e: 645a str r2, [r3, #68] @ 0x44
  52450. }
  52451. #endif /* configUSE_TRACE_FACILITY */
  52452. traceTASK_CREATE( pxNewTCB );
  52453. prvAddTaskToReadyList( pxNewTCB );
  52454. 8015f80: 687b ldr r3, [r7, #4]
  52455. 8015f82: 6ada ldr r2, [r3, #44] @ 0x2c
  52456. 8015f84: 4b1b ldr r3, [pc, #108] @ (8015ff4 <prvAddNewTaskToReadyList+0xd4>)
  52457. 8015f86: 681b ldr r3, [r3, #0]
  52458. 8015f88: 429a cmp r2, r3
  52459. 8015f8a: d903 bls.n 8015f94 <prvAddNewTaskToReadyList+0x74>
  52460. 8015f8c: 687b ldr r3, [r7, #4]
  52461. 8015f8e: 6adb ldr r3, [r3, #44] @ 0x2c
  52462. 8015f90: 4a18 ldr r2, [pc, #96] @ (8015ff4 <prvAddNewTaskToReadyList+0xd4>)
  52463. 8015f92: 6013 str r3, [r2, #0]
  52464. 8015f94: 687b ldr r3, [r7, #4]
  52465. 8015f96: 6ada ldr r2, [r3, #44] @ 0x2c
  52466. 8015f98: 4613 mov r3, r2
  52467. 8015f9a: 009b lsls r3, r3, #2
  52468. 8015f9c: 4413 add r3, r2
  52469. 8015f9e: 009b lsls r3, r3, #2
  52470. 8015fa0: 4a15 ldr r2, [pc, #84] @ (8015ff8 <prvAddNewTaskToReadyList+0xd8>)
  52471. 8015fa2: 441a add r2, r3
  52472. 8015fa4: 687b ldr r3, [r7, #4]
  52473. 8015fa6: 3304 adds r3, #4
  52474. 8015fa8: 4619 mov r1, r3
  52475. 8015faa: 4610 mov r0, r2
  52476. 8015fac: f7fe fc8d bl 80148ca <vListInsertEnd>
  52477. portSETUP_TCB( pxNewTCB );
  52478. }
  52479. taskEXIT_CRITICAL();
  52480. 8015fb0: f001 febc bl 8017d2c <vPortExitCritical>
  52481. if( xSchedulerRunning != pdFALSE )
  52482. 8015fb4: 4b0d ldr r3, [pc, #52] @ (8015fec <prvAddNewTaskToReadyList+0xcc>)
  52483. 8015fb6: 681b ldr r3, [r3, #0]
  52484. 8015fb8: 2b00 cmp r3, #0
  52485. 8015fba: d00e beq.n 8015fda <prvAddNewTaskToReadyList+0xba>
  52486. {
  52487. /* If the created task is of a higher priority than the current task
  52488. then it should run now. */
  52489. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  52490. 8015fbc: 4b0a ldr r3, [pc, #40] @ (8015fe8 <prvAddNewTaskToReadyList+0xc8>)
  52491. 8015fbe: 681b ldr r3, [r3, #0]
  52492. 8015fc0: 6ada ldr r2, [r3, #44] @ 0x2c
  52493. 8015fc2: 687b ldr r3, [r7, #4]
  52494. 8015fc4: 6adb ldr r3, [r3, #44] @ 0x2c
  52495. 8015fc6: 429a cmp r2, r3
  52496. 8015fc8: d207 bcs.n 8015fda <prvAddNewTaskToReadyList+0xba>
  52497. {
  52498. taskYIELD_IF_USING_PREEMPTION();
  52499. 8015fca: 4b0c ldr r3, [pc, #48] @ (8015ffc <prvAddNewTaskToReadyList+0xdc>)
  52500. 8015fcc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52501. 8015fd0: 601a str r2, [r3, #0]
  52502. 8015fd2: f3bf 8f4f dsb sy
  52503. 8015fd6: f3bf 8f6f isb sy
  52504. }
  52505. else
  52506. {
  52507. mtCOVERAGE_TEST_MARKER();
  52508. }
  52509. }
  52510. 8015fda: bf00 nop
  52511. 8015fdc: 3708 adds r7, #8
  52512. 8015fde: 46bd mov sp, r7
  52513. 8015fe0: bd80 pop {r7, pc}
  52514. 8015fe2: bf00 nop
  52515. 8015fe4: 24002ecc .word 0x24002ecc
  52516. 8015fe8: 240029f8 .word 0x240029f8
  52517. 8015fec: 24002ed8 .word 0x24002ed8
  52518. 8015ff0: 24002ee8 .word 0x24002ee8
  52519. 8015ff4: 24002ed4 .word 0x24002ed4
  52520. 8015ff8: 240029fc .word 0x240029fc
  52521. 8015ffc: e000ed04 .word 0xe000ed04
  52522. 08016000 <vTaskDelay>:
  52523. /*-----------------------------------------------------------*/
  52524. #if ( INCLUDE_vTaskDelay == 1 )
  52525. void vTaskDelay( const TickType_t xTicksToDelay )
  52526. {
  52527. 8016000: b580 push {r7, lr}
  52528. 8016002: b084 sub sp, #16
  52529. 8016004: af00 add r7, sp, #0
  52530. 8016006: 6078 str r0, [r7, #4]
  52531. BaseType_t xAlreadyYielded = pdFALSE;
  52532. 8016008: 2300 movs r3, #0
  52533. 801600a: 60fb str r3, [r7, #12]
  52534. /* A delay time of zero just forces a reschedule. */
  52535. if( xTicksToDelay > ( TickType_t ) 0U )
  52536. 801600c: 687b ldr r3, [r7, #4]
  52537. 801600e: 2b00 cmp r3, #0
  52538. 8016010: d018 beq.n 8016044 <vTaskDelay+0x44>
  52539. {
  52540. configASSERT( uxSchedulerSuspended == 0 );
  52541. 8016012: 4b14 ldr r3, [pc, #80] @ (8016064 <vTaskDelay+0x64>)
  52542. 8016014: 681b ldr r3, [r3, #0]
  52543. 8016016: 2b00 cmp r3, #0
  52544. 8016018: d00b beq.n 8016032 <vTaskDelay+0x32>
  52545. __asm volatile
  52546. 801601a: f04f 0350 mov.w r3, #80 @ 0x50
  52547. 801601e: f383 8811 msr BASEPRI, r3
  52548. 8016022: f3bf 8f6f isb sy
  52549. 8016026: f3bf 8f4f dsb sy
  52550. 801602a: 60bb str r3, [r7, #8]
  52551. }
  52552. 801602c: bf00 nop
  52553. 801602e: bf00 nop
  52554. 8016030: e7fd b.n 801602e <vTaskDelay+0x2e>
  52555. vTaskSuspendAll();
  52556. 8016032: f000 f88b bl 801614c <vTaskSuspendAll>
  52557. list or removed from the blocked list until the scheduler
  52558. is resumed.
  52559. This task cannot be in an event list as it is the currently
  52560. executing task. */
  52561. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  52562. 8016036: 2100 movs r1, #0
  52563. 8016038: 6878 ldr r0, [r7, #4]
  52564. 801603a: f001 f87d bl 8017138 <prvAddCurrentTaskToDelayedList>
  52565. }
  52566. xAlreadyYielded = xTaskResumeAll();
  52567. 801603e: f000 f893 bl 8016168 <xTaskResumeAll>
  52568. 8016042: 60f8 str r0, [r7, #12]
  52569. mtCOVERAGE_TEST_MARKER();
  52570. }
  52571. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  52572. have put ourselves to sleep. */
  52573. if( xAlreadyYielded == pdFALSE )
  52574. 8016044: 68fb ldr r3, [r7, #12]
  52575. 8016046: 2b00 cmp r3, #0
  52576. 8016048: d107 bne.n 801605a <vTaskDelay+0x5a>
  52577. {
  52578. portYIELD_WITHIN_API();
  52579. 801604a: 4b07 ldr r3, [pc, #28] @ (8016068 <vTaskDelay+0x68>)
  52580. 801604c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52581. 8016050: 601a str r2, [r3, #0]
  52582. 8016052: f3bf 8f4f dsb sy
  52583. 8016056: f3bf 8f6f isb sy
  52584. }
  52585. else
  52586. {
  52587. mtCOVERAGE_TEST_MARKER();
  52588. }
  52589. }
  52590. 801605a: bf00 nop
  52591. 801605c: 3710 adds r7, #16
  52592. 801605e: 46bd mov sp, r7
  52593. 8016060: bd80 pop {r7, pc}
  52594. 8016062: bf00 nop
  52595. 8016064: 24002ef4 .word 0x24002ef4
  52596. 8016068: e000ed04 .word 0xe000ed04
  52597. 0801606c <vTaskStartScheduler>:
  52598. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  52599. /*-----------------------------------------------------------*/
  52600. void vTaskStartScheduler( void )
  52601. {
  52602. 801606c: b580 push {r7, lr}
  52603. 801606e: b08a sub sp, #40 @ 0x28
  52604. 8016070: af04 add r7, sp, #16
  52605. BaseType_t xReturn;
  52606. /* Add the idle task at the lowest priority. */
  52607. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  52608. {
  52609. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  52610. 8016072: 2300 movs r3, #0
  52611. 8016074: 60bb str r3, [r7, #8]
  52612. StackType_t *pxIdleTaskStackBuffer = NULL;
  52613. 8016076: 2300 movs r3, #0
  52614. 8016078: 607b str r3, [r7, #4]
  52615. uint32_t ulIdleTaskStackSize;
  52616. /* The Idle task is created using user provided RAM - obtain the
  52617. address of the RAM then create the idle task. */
  52618. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  52619. 801607a: 463a mov r2, r7
  52620. 801607c: 1d39 adds r1, r7, #4
  52621. 801607e: f107 0308 add.w r3, r7, #8
  52622. 8016082: 4618 mov r0, r3
  52623. 8016084: f7fe fbc0 bl 8014808 <vApplicationGetIdleTaskMemory>
  52624. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  52625. 8016088: 6839 ldr r1, [r7, #0]
  52626. 801608a: 687b ldr r3, [r7, #4]
  52627. 801608c: 68ba ldr r2, [r7, #8]
  52628. 801608e: 9202 str r2, [sp, #8]
  52629. 8016090: 9301 str r3, [sp, #4]
  52630. 8016092: 2300 movs r3, #0
  52631. 8016094: 9300 str r3, [sp, #0]
  52632. 8016096: 2300 movs r3, #0
  52633. 8016098: 460a mov r2, r1
  52634. 801609a: 4924 ldr r1, [pc, #144] @ (801612c <vTaskStartScheduler+0xc0>)
  52635. 801609c: 4824 ldr r0, [pc, #144] @ (8016130 <vTaskStartScheduler+0xc4>)
  52636. 801609e: f7ff fdf2 bl 8015c86 <xTaskCreateStatic>
  52637. 80160a2: 4603 mov r3, r0
  52638. 80160a4: 4a23 ldr r2, [pc, #140] @ (8016134 <vTaskStartScheduler+0xc8>)
  52639. 80160a6: 6013 str r3, [r2, #0]
  52640. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  52641. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  52642. pxIdleTaskStackBuffer,
  52643. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  52644. if( xIdleTaskHandle != NULL )
  52645. 80160a8: 4b22 ldr r3, [pc, #136] @ (8016134 <vTaskStartScheduler+0xc8>)
  52646. 80160aa: 681b ldr r3, [r3, #0]
  52647. 80160ac: 2b00 cmp r3, #0
  52648. 80160ae: d002 beq.n 80160b6 <vTaskStartScheduler+0x4a>
  52649. {
  52650. xReturn = pdPASS;
  52651. 80160b0: 2301 movs r3, #1
  52652. 80160b2: 617b str r3, [r7, #20]
  52653. 80160b4: e001 b.n 80160ba <vTaskStartScheduler+0x4e>
  52654. }
  52655. else
  52656. {
  52657. xReturn = pdFAIL;
  52658. 80160b6: 2300 movs r3, #0
  52659. 80160b8: 617b str r3, [r7, #20]
  52660. }
  52661. #endif /* configSUPPORT_STATIC_ALLOCATION */
  52662. #if ( configUSE_TIMERS == 1 )
  52663. {
  52664. if( xReturn == pdPASS )
  52665. 80160ba: 697b ldr r3, [r7, #20]
  52666. 80160bc: 2b01 cmp r3, #1
  52667. 80160be: d102 bne.n 80160c6 <vTaskStartScheduler+0x5a>
  52668. {
  52669. xReturn = xTimerCreateTimerTask();
  52670. 80160c0: f001 f88e bl 80171e0 <xTimerCreateTimerTask>
  52671. 80160c4: 6178 str r0, [r7, #20]
  52672. mtCOVERAGE_TEST_MARKER();
  52673. }
  52674. }
  52675. #endif /* configUSE_TIMERS */
  52676. if( xReturn == pdPASS )
  52677. 80160c6: 697b ldr r3, [r7, #20]
  52678. 80160c8: 2b01 cmp r3, #1
  52679. 80160ca: d11b bne.n 8016104 <vTaskStartScheduler+0x98>
  52680. __asm volatile
  52681. 80160cc: f04f 0350 mov.w r3, #80 @ 0x50
  52682. 80160d0: f383 8811 msr BASEPRI, r3
  52683. 80160d4: f3bf 8f6f isb sy
  52684. 80160d8: f3bf 8f4f dsb sy
  52685. 80160dc: 613b str r3, [r7, #16]
  52686. }
  52687. 80160de: bf00 nop
  52688. {
  52689. /* Switch Newlib's _impure_ptr variable to point to the _reent
  52690. structure specific to the task that will run first.
  52691. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52692. for additional information. */
  52693. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52694. 80160e0: 4b15 ldr r3, [pc, #84] @ (8016138 <vTaskStartScheduler+0xcc>)
  52695. 80160e2: 681b ldr r3, [r3, #0]
  52696. 80160e4: 3354 adds r3, #84 @ 0x54
  52697. 80160e6: 4a15 ldr r2, [pc, #84] @ (801613c <vTaskStartScheduler+0xd0>)
  52698. 80160e8: 6013 str r3, [r2, #0]
  52699. }
  52700. #endif /* configUSE_NEWLIB_REENTRANT */
  52701. xNextTaskUnblockTime = portMAX_DELAY;
  52702. 80160ea: 4b15 ldr r3, [pc, #84] @ (8016140 <vTaskStartScheduler+0xd4>)
  52703. 80160ec: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52704. 80160f0: 601a str r2, [r3, #0]
  52705. xSchedulerRunning = pdTRUE;
  52706. 80160f2: 4b14 ldr r3, [pc, #80] @ (8016144 <vTaskStartScheduler+0xd8>)
  52707. 80160f4: 2201 movs r2, #1
  52708. 80160f6: 601a str r2, [r3, #0]
  52709. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  52710. 80160f8: 4b13 ldr r3, [pc, #76] @ (8016148 <vTaskStartScheduler+0xdc>)
  52711. 80160fa: 2200 movs r2, #0
  52712. 80160fc: 601a str r2, [r3, #0]
  52713. traceTASK_SWITCHED_IN();
  52714. /* Setting up the timer tick is hardware specific and thus in the
  52715. portable interface. */
  52716. if( xPortStartScheduler() != pdFALSE )
  52717. 80160fe: f001 fd3f bl 8017b80 <xPortStartScheduler>
  52718. }
  52719. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  52720. meaning xIdleTaskHandle is not used anywhere else. */
  52721. ( void ) xIdleTaskHandle;
  52722. }
  52723. 8016102: e00f b.n 8016124 <vTaskStartScheduler+0xb8>
  52724. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  52725. 8016104: 697b ldr r3, [r7, #20]
  52726. 8016106: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52727. 801610a: d10b bne.n 8016124 <vTaskStartScheduler+0xb8>
  52728. __asm volatile
  52729. 801610c: f04f 0350 mov.w r3, #80 @ 0x50
  52730. 8016110: f383 8811 msr BASEPRI, r3
  52731. 8016114: f3bf 8f6f isb sy
  52732. 8016118: f3bf 8f4f dsb sy
  52733. 801611c: 60fb str r3, [r7, #12]
  52734. }
  52735. 801611e: bf00 nop
  52736. 8016120: bf00 nop
  52737. 8016122: e7fd b.n 8016120 <vTaskStartScheduler+0xb4>
  52738. }
  52739. 8016124: bf00 nop
  52740. 8016126: 3718 adds r7, #24
  52741. 8016128: 46bd mov sp, r7
  52742. 801612a: bd80 pop {r7, pc}
  52743. 801612c: 08018660 .word 0x08018660
  52744. 8016130: 080167e9 .word 0x080167e9
  52745. 8016134: 24002ef0 .word 0x24002ef0
  52746. 8016138: 240029f8 .word 0x240029f8
  52747. 801613c: 24000048 .word 0x24000048
  52748. 8016140: 24002eec .word 0x24002eec
  52749. 8016144: 24002ed8 .word 0x24002ed8
  52750. 8016148: 24002ed0 .word 0x24002ed0
  52751. 0801614c <vTaskSuspendAll>:
  52752. vPortEndScheduler();
  52753. }
  52754. /*----------------------------------------------------------*/
  52755. void vTaskSuspendAll( void )
  52756. {
  52757. 801614c: b480 push {r7}
  52758. 801614e: af00 add r7, sp, #0
  52759. do not otherwise exhibit real time behaviour. */
  52760. portSOFTWARE_BARRIER();
  52761. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  52762. is used to allow calls to vTaskSuspendAll() to nest. */
  52763. ++uxSchedulerSuspended;
  52764. 8016150: 4b04 ldr r3, [pc, #16] @ (8016164 <vTaskSuspendAll+0x18>)
  52765. 8016152: 681b ldr r3, [r3, #0]
  52766. 8016154: 3301 adds r3, #1
  52767. 8016156: 4a03 ldr r2, [pc, #12] @ (8016164 <vTaskSuspendAll+0x18>)
  52768. 8016158: 6013 str r3, [r2, #0]
  52769. /* Enforces ordering for ports and optimised compilers that may otherwise place
  52770. the above increment elsewhere. */
  52771. portMEMORY_BARRIER();
  52772. }
  52773. 801615a: bf00 nop
  52774. 801615c: 46bd mov sp, r7
  52775. 801615e: f85d 7b04 ldr.w r7, [sp], #4
  52776. 8016162: 4770 bx lr
  52777. 8016164: 24002ef4 .word 0x24002ef4
  52778. 08016168 <xTaskResumeAll>:
  52779. #endif /* configUSE_TICKLESS_IDLE */
  52780. /*----------------------------------------------------------*/
  52781. BaseType_t xTaskResumeAll( void )
  52782. {
  52783. 8016168: b580 push {r7, lr}
  52784. 801616a: b084 sub sp, #16
  52785. 801616c: af00 add r7, sp, #0
  52786. TCB_t *pxTCB = NULL;
  52787. 801616e: 2300 movs r3, #0
  52788. 8016170: 60fb str r3, [r7, #12]
  52789. BaseType_t xAlreadyYielded = pdFALSE;
  52790. 8016172: 2300 movs r3, #0
  52791. 8016174: 60bb str r3, [r7, #8]
  52792. /* If uxSchedulerSuspended is zero then this function does not match a
  52793. previous call to vTaskSuspendAll(). */
  52794. configASSERT( uxSchedulerSuspended );
  52795. 8016176: 4b42 ldr r3, [pc, #264] @ (8016280 <xTaskResumeAll+0x118>)
  52796. 8016178: 681b ldr r3, [r3, #0]
  52797. 801617a: 2b00 cmp r3, #0
  52798. 801617c: d10b bne.n 8016196 <xTaskResumeAll+0x2e>
  52799. __asm volatile
  52800. 801617e: f04f 0350 mov.w r3, #80 @ 0x50
  52801. 8016182: f383 8811 msr BASEPRI, r3
  52802. 8016186: f3bf 8f6f isb sy
  52803. 801618a: f3bf 8f4f dsb sy
  52804. 801618e: 603b str r3, [r7, #0]
  52805. }
  52806. 8016190: bf00 nop
  52807. 8016192: bf00 nop
  52808. 8016194: e7fd b.n 8016192 <xTaskResumeAll+0x2a>
  52809. /* It is possible that an ISR caused a task to be removed from an event
  52810. list while the scheduler was suspended. If this was the case then the
  52811. removed task will have been added to the xPendingReadyList. Once the
  52812. scheduler has been resumed it is safe to move all the pending ready
  52813. tasks from this list into their appropriate ready list. */
  52814. taskENTER_CRITICAL();
  52815. 8016196: f001 fd97 bl 8017cc8 <vPortEnterCritical>
  52816. {
  52817. --uxSchedulerSuspended;
  52818. 801619a: 4b39 ldr r3, [pc, #228] @ (8016280 <xTaskResumeAll+0x118>)
  52819. 801619c: 681b ldr r3, [r3, #0]
  52820. 801619e: 3b01 subs r3, #1
  52821. 80161a0: 4a37 ldr r2, [pc, #220] @ (8016280 <xTaskResumeAll+0x118>)
  52822. 80161a2: 6013 str r3, [r2, #0]
  52823. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52824. 80161a4: 4b36 ldr r3, [pc, #216] @ (8016280 <xTaskResumeAll+0x118>)
  52825. 80161a6: 681b ldr r3, [r3, #0]
  52826. 80161a8: 2b00 cmp r3, #0
  52827. 80161aa: d162 bne.n 8016272 <xTaskResumeAll+0x10a>
  52828. {
  52829. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  52830. 80161ac: 4b35 ldr r3, [pc, #212] @ (8016284 <xTaskResumeAll+0x11c>)
  52831. 80161ae: 681b ldr r3, [r3, #0]
  52832. 80161b0: 2b00 cmp r3, #0
  52833. 80161b2: d05e beq.n 8016272 <xTaskResumeAll+0x10a>
  52834. {
  52835. /* Move any readied tasks from the pending list into the
  52836. appropriate ready list. */
  52837. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52838. 80161b4: e02f b.n 8016216 <xTaskResumeAll+0xae>
  52839. {
  52840. 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. */
  52841. 80161b6: 4b34 ldr r3, [pc, #208] @ (8016288 <xTaskResumeAll+0x120>)
  52842. 80161b8: 68db ldr r3, [r3, #12]
  52843. 80161ba: 68db ldr r3, [r3, #12]
  52844. 80161bc: 60fb str r3, [r7, #12]
  52845. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52846. 80161be: 68fb ldr r3, [r7, #12]
  52847. 80161c0: 3318 adds r3, #24
  52848. 80161c2: 4618 mov r0, r3
  52849. 80161c4: f7fe fbde bl 8014984 <uxListRemove>
  52850. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52851. 80161c8: 68fb ldr r3, [r7, #12]
  52852. 80161ca: 3304 adds r3, #4
  52853. 80161cc: 4618 mov r0, r3
  52854. 80161ce: f7fe fbd9 bl 8014984 <uxListRemove>
  52855. prvAddTaskToReadyList( pxTCB );
  52856. 80161d2: 68fb ldr r3, [r7, #12]
  52857. 80161d4: 6ada ldr r2, [r3, #44] @ 0x2c
  52858. 80161d6: 4b2d ldr r3, [pc, #180] @ (801628c <xTaskResumeAll+0x124>)
  52859. 80161d8: 681b ldr r3, [r3, #0]
  52860. 80161da: 429a cmp r2, r3
  52861. 80161dc: d903 bls.n 80161e6 <xTaskResumeAll+0x7e>
  52862. 80161de: 68fb ldr r3, [r7, #12]
  52863. 80161e0: 6adb ldr r3, [r3, #44] @ 0x2c
  52864. 80161e2: 4a2a ldr r2, [pc, #168] @ (801628c <xTaskResumeAll+0x124>)
  52865. 80161e4: 6013 str r3, [r2, #0]
  52866. 80161e6: 68fb ldr r3, [r7, #12]
  52867. 80161e8: 6ada ldr r2, [r3, #44] @ 0x2c
  52868. 80161ea: 4613 mov r3, r2
  52869. 80161ec: 009b lsls r3, r3, #2
  52870. 80161ee: 4413 add r3, r2
  52871. 80161f0: 009b lsls r3, r3, #2
  52872. 80161f2: 4a27 ldr r2, [pc, #156] @ (8016290 <xTaskResumeAll+0x128>)
  52873. 80161f4: 441a add r2, r3
  52874. 80161f6: 68fb ldr r3, [r7, #12]
  52875. 80161f8: 3304 adds r3, #4
  52876. 80161fa: 4619 mov r1, r3
  52877. 80161fc: 4610 mov r0, r2
  52878. 80161fe: f7fe fb64 bl 80148ca <vListInsertEnd>
  52879. /* If the moved task has a priority higher than the current
  52880. task then a yield must be performed. */
  52881. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52882. 8016202: 68fb ldr r3, [r7, #12]
  52883. 8016204: 6ada ldr r2, [r3, #44] @ 0x2c
  52884. 8016206: 4b23 ldr r3, [pc, #140] @ (8016294 <xTaskResumeAll+0x12c>)
  52885. 8016208: 681b ldr r3, [r3, #0]
  52886. 801620a: 6adb ldr r3, [r3, #44] @ 0x2c
  52887. 801620c: 429a cmp r2, r3
  52888. 801620e: d302 bcc.n 8016216 <xTaskResumeAll+0xae>
  52889. {
  52890. xYieldPending = pdTRUE;
  52891. 8016210: 4b21 ldr r3, [pc, #132] @ (8016298 <xTaskResumeAll+0x130>)
  52892. 8016212: 2201 movs r2, #1
  52893. 8016214: 601a str r2, [r3, #0]
  52894. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52895. 8016216: 4b1c ldr r3, [pc, #112] @ (8016288 <xTaskResumeAll+0x120>)
  52896. 8016218: 681b ldr r3, [r3, #0]
  52897. 801621a: 2b00 cmp r3, #0
  52898. 801621c: d1cb bne.n 80161b6 <xTaskResumeAll+0x4e>
  52899. {
  52900. mtCOVERAGE_TEST_MARKER();
  52901. }
  52902. }
  52903. if( pxTCB != NULL )
  52904. 801621e: 68fb ldr r3, [r7, #12]
  52905. 8016220: 2b00 cmp r3, #0
  52906. 8016222: d001 beq.n 8016228 <xTaskResumeAll+0xc0>
  52907. which may have prevented the next unblock time from being
  52908. re-calculated, in which case re-calculate it now. Mainly
  52909. important for low power tickless implementations, where
  52910. this can prevent an unnecessary exit from low power
  52911. state. */
  52912. prvResetNextTaskUnblockTime();
  52913. 8016224: f000 fb9c bl 8016960 <prvResetNextTaskUnblockTime>
  52914. /* If any ticks occurred while the scheduler was suspended then
  52915. they should be processed now. This ensures the tick count does
  52916. not slip, and that any delayed tasks are resumed at the correct
  52917. time. */
  52918. {
  52919. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52920. 8016228: 4b1c ldr r3, [pc, #112] @ (801629c <xTaskResumeAll+0x134>)
  52921. 801622a: 681b ldr r3, [r3, #0]
  52922. 801622c: 607b str r3, [r7, #4]
  52923. if( xPendedCounts > ( TickType_t ) 0U )
  52924. 801622e: 687b ldr r3, [r7, #4]
  52925. 8016230: 2b00 cmp r3, #0
  52926. 8016232: d010 beq.n 8016256 <xTaskResumeAll+0xee>
  52927. {
  52928. do
  52929. {
  52930. if( xTaskIncrementTick() != pdFALSE )
  52931. 8016234: f000 f846 bl 80162c4 <xTaskIncrementTick>
  52932. 8016238: 4603 mov r3, r0
  52933. 801623a: 2b00 cmp r3, #0
  52934. 801623c: d002 beq.n 8016244 <xTaskResumeAll+0xdc>
  52935. {
  52936. xYieldPending = pdTRUE;
  52937. 801623e: 4b16 ldr r3, [pc, #88] @ (8016298 <xTaskResumeAll+0x130>)
  52938. 8016240: 2201 movs r2, #1
  52939. 8016242: 601a str r2, [r3, #0]
  52940. }
  52941. else
  52942. {
  52943. mtCOVERAGE_TEST_MARKER();
  52944. }
  52945. --xPendedCounts;
  52946. 8016244: 687b ldr r3, [r7, #4]
  52947. 8016246: 3b01 subs r3, #1
  52948. 8016248: 607b str r3, [r7, #4]
  52949. } while( xPendedCounts > ( TickType_t ) 0U );
  52950. 801624a: 687b ldr r3, [r7, #4]
  52951. 801624c: 2b00 cmp r3, #0
  52952. 801624e: d1f1 bne.n 8016234 <xTaskResumeAll+0xcc>
  52953. xPendedTicks = 0;
  52954. 8016250: 4b12 ldr r3, [pc, #72] @ (801629c <xTaskResumeAll+0x134>)
  52955. 8016252: 2200 movs r2, #0
  52956. 8016254: 601a str r2, [r3, #0]
  52957. {
  52958. mtCOVERAGE_TEST_MARKER();
  52959. }
  52960. }
  52961. if( xYieldPending != pdFALSE )
  52962. 8016256: 4b10 ldr r3, [pc, #64] @ (8016298 <xTaskResumeAll+0x130>)
  52963. 8016258: 681b ldr r3, [r3, #0]
  52964. 801625a: 2b00 cmp r3, #0
  52965. 801625c: d009 beq.n 8016272 <xTaskResumeAll+0x10a>
  52966. {
  52967. #if( configUSE_PREEMPTION != 0 )
  52968. {
  52969. xAlreadyYielded = pdTRUE;
  52970. 801625e: 2301 movs r3, #1
  52971. 8016260: 60bb str r3, [r7, #8]
  52972. }
  52973. #endif
  52974. taskYIELD_IF_USING_PREEMPTION();
  52975. 8016262: 4b0f ldr r3, [pc, #60] @ (80162a0 <xTaskResumeAll+0x138>)
  52976. 8016264: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52977. 8016268: 601a str r2, [r3, #0]
  52978. 801626a: f3bf 8f4f dsb sy
  52979. 801626e: f3bf 8f6f isb sy
  52980. else
  52981. {
  52982. mtCOVERAGE_TEST_MARKER();
  52983. }
  52984. }
  52985. taskEXIT_CRITICAL();
  52986. 8016272: f001 fd5b bl 8017d2c <vPortExitCritical>
  52987. return xAlreadyYielded;
  52988. 8016276: 68bb ldr r3, [r7, #8]
  52989. }
  52990. 8016278: 4618 mov r0, r3
  52991. 801627a: 3710 adds r7, #16
  52992. 801627c: 46bd mov sp, r7
  52993. 801627e: bd80 pop {r7, pc}
  52994. 8016280: 24002ef4 .word 0x24002ef4
  52995. 8016284: 24002ecc .word 0x24002ecc
  52996. 8016288: 24002e8c .word 0x24002e8c
  52997. 801628c: 24002ed4 .word 0x24002ed4
  52998. 8016290: 240029fc .word 0x240029fc
  52999. 8016294: 240029f8 .word 0x240029f8
  53000. 8016298: 24002ee0 .word 0x24002ee0
  53001. 801629c: 24002edc .word 0x24002edc
  53002. 80162a0: e000ed04 .word 0xe000ed04
  53003. 080162a4 <xTaskGetTickCount>:
  53004. /*-----------------------------------------------------------*/
  53005. TickType_t xTaskGetTickCount( void )
  53006. {
  53007. 80162a4: b480 push {r7}
  53008. 80162a6: b083 sub sp, #12
  53009. 80162a8: af00 add r7, sp, #0
  53010. TickType_t xTicks;
  53011. /* Critical section required if running on a 16 bit processor. */
  53012. portTICK_TYPE_ENTER_CRITICAL();
  53013. {
  53014. xTicks = xTickCount;
  53015. 80162aa: 4b05 ldr r3, [pc, #20] @ (80162c0 <xTaskGetTickCount+0x1c>)
  53016. 80162ac: 681b ldr r3, [r3, #0]
  53017. 80162ae: 607b str r3, [r7, #4]
  53018. }
  53019. portTICK_TYPE_EXIT_CRITICAL();
  53020. return xTicks;
  53021. 80162b0: 687b ldr r3, [r7, #4]
  53022. }
  53023. 80162b2: 4618 mov r0, r3
  53024. 80162b4: 370c adds r7, #12
  53025. 80162b6: 46bd mov sp, r7
  53026. 80162b8: f85d 7b04 ldr.w r7, [sp], #4
  53027. 80162bc: 4770 bx lr
  53028. 80162be: bf00 nop
  53029. 80162c0: 24002ed0 .word 0x24002ed0
  53030. 080162c4 <xTaskIncrementTick>:
  53031. #endif /* INCLUDE_xTaskAbortDelay */
  53032. /*----------------------------------------------------------*/
  53033. BaseType_t xTaskIncrementTick( void )
  53034. {
  53035. 80162c4: b580 push {r7, lr}
  53036. 80162c6: b086 sub sp, #24
  53037. 80162c8: af00 add r7, sp, #0
  53038. TCB_t * pxTCB;
  53039. TickType_t xItemValue;
  53040. BaseType_t xSwitchRequired = pdFALSE;
  53041. 80162ca: 2300 movs r3, #0
  53042. 80162cc: 617b str r3, [r7, #20]
  53043. /* Called by the portable layer each time a tick interrupt occurs.
  53044. Increments the tick then checks to see if the new tick value will cause any
  53045. tasks to be unblocked. */
  53046. traceTASK_INCREMENT_TICK( xTickCount );
  53047. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53048. 80162ce: 4b4f ldr r3, [pc, #316] @ (801640c <xTaskIncrementTick+0x148>)
  53049. 80162d0: 681b ldr r3, [r3, #0]
  53050. 80162d2: 2b00 cmp r3, #0
  53051. 80162d4: f040 8090 bne.w 80163f8 <xTaskIncrementTick+0x134>
  53052. {
  53053. /* Minor optimisation. The tick count cannot change in this
  53054. block. */
  53055. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  53056. 80162d8: 4b4d ldr r3, [pc, #308] @ (8016410 <xTaskIncrementTick+0x14c>)
  53057. 80162da: 681b ldr r3, [r3, #0]
  53058. 80162dc: 3301 adds r3, #1
  53059. 80162de: 613b str r3, [r7, #16]
  53060. /* Increment the RTOS tick, switching the delayed and overflowed
  53061. delayed lists if it wraps to 0. */
  53062. xTickCount = xConstTickCount;
  53063. 80162e0: 4a4b ldr r2, [pc, #300] @ (8016410 <xTaskIncrementTick+0x14c>)
  53064. 80162e2: 693b ldr r3, [r7, #16]
  53065. 80162e4: 6013 str r3, [r2, #0]
  53066. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  53067. 80162e6: 693b ldr r3, [r7, #16]
  53068. 80162e8: 2b00 cmp r3, #0
  53069. 80162ea: d121 bne.n 8016330 <xTaskIncrementTick+0x6c>
  53070. {
  53071. taskSWITCH_DELAYED_LISTS();
  53072. 80162ec: 4b49 ldr r3, [pc, #292] @ (8016414 <xTaskIncrementTick+0x150>)
  53073. 80162ee: 681b ldr r3, [r3, #0]
  53074. 80162f0: 681b ldr r3, [r3, #0]
  53075. 80162f2: 2b00 cmp r3, #0
  53076. 80162f4: d00b beq.n 801630e <xTaskIncrementTick+0x4a>
  53077. __asm volatile
  53078. 80162f6: f04f 0350 mov.w r3, #80 @ 0x50
  53079. 80162fa: f383 8811 msr BASEPRI, r3
  53080. 80162fe: f3bf 8f6f isb sy
  53081. 8016302: f3bf 8f4f dsb sy
  53082. 8016306: 603b str r3, [r7, #0]
  53083. }
  53084. 8016308: bf00 nop
  53085. 801630a: bf00 nop
  53086. 801630c: e7fd b.n 801630a <xTaskIncrementTick+0x46>
  53087. 801630e: 4b41 ldr r3, [pc, #260] @ (8016414 <xTaskIncrementTick+0x150>)
  53088. 8016310: 681b ldr r3, [r3, #0]
  53089. 8016312: 60fb str r3, [r7, #12]
  53090. 8016314: 4b40 ldr r3, [pc, #256] @ (8016418 <xTaskIncrementTick+0x154>)
  53091. 8016316: 681b ldr r3, [r3, #0]
  53092. 8016318: 4a3e ldr r2, [pc, #248] @ (8016414 <xTaskIncrementTick+0x150>)
  53093. 801631a: 6013 str r3, [r2, #0]
  53094. 801631c: 4a3e ldr r2, [pc, #248] @ (8016418 <xTaskIncrementTick+0x154>)
  53095. 801631e: 68fb ldr r3, [r7, #12]
  53096. 8016320: 6013 str r3, [r2, #0]
  53097. 8016322: 4b3e ldr r3, [pc, #248] @ (801641c <xTaskIncrementTick+0x158>)
  53098. 8016324: 681b ldr r3, [r3, #0]
  53099. 8016326: 3301 adds r3, #1
  53100. 8016328: 4a3c ldr r2, [pc, #240] @ (801641c <xTaskIncrementTick+0x158>)
  53101. 801632a: 6013 str r3, [r2, #0]
  53102. 801632c: f000 fb18 bl 8016960 <prvResetNextTaskUnblockTime>
  53103. /* See if this tick has made a timeout expire. Tasks are stored in
  53104. the queue in the order of their wake time - meaning once one task
  53105. has been found whose block time has not expired there is no need to
  53106. look any further down the list. */
  53107. if( xConstTickCount >= xNextTaskUnblockTime )
  53108. 8016330: 4b3b ldr r3, [pc, #236] @ (8016420 <xTaskIncrementTick+0x15c>)
  53109. 8016332: 681b ldr r3, [r3, #0]
  53110. 8016334: 693a ldr r2, [r7, #16]
  53111. 8016336: 429a cmp r2, r3
  53112. 8016338: d349 bcc.n 80163ce <xTaskIncrementTick+0x10a>
  53113. {
  53114. for( ;; )
  53115. {
  53116. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53117. 801633a: 4b36 ldr r3, [pc, #216] @ (8016414 <xTaskIncrementTick+0x150>)
  53118. 801633c: 681b ldr r3, [r3, #0]
  53119. 801633e: 681b ldr r3, [r3, #0]
  53120. 8016340: 2b00 cmp r3, #0
  53121. 8016342: d104 bne.n 801634e <xTaskIncrementTick+0x8a>
  53122. /* The delayed list is empty. Set xNextTaskUnblockTime
  53123. to the maximum possible value so it is extremely
  53124. unlikely that the
  53125. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  53126. next time through. */
  53127. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53128. 8016344: 4b36 ldr r3, [pc, #216] @ (8016420 <xTaskIncrementTick+0x15c>)
  53129. 8016346: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53130. 801634a: 601a str r2, [r3, #0]
  53131. break;
  53132. 801634c: e03f b.n 80163ce <xTaskIncrementTick+0x10a>
  53133. {
  53134. /* The delayed list is not empty, get the value of the
  53135. item at the head of the delayed list. This is the time
  53136. at which the task at the head of the delayed list must
  53137. be removed from the Blocked state. */
  53138. 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. */
  53139. 801634e: 4b31 ldr r3, [pc, #196] @ (8016414 <xTaskIncrementTick+0x150>)
  53140. 8016350: 681b ldr r3, [r3, #0]
  53141. 8016352: 68db ldr r3, [r3, #12]
  53142. 8016354: 68db ldr r3, [r3, #12]
  53143. 8016356: 60bb str r3, [r7, #8]
  53144. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  53145. 8016358: 68bb ldr r3, [r7, #8]
  53146. 801635a: 685b ldr r3, [r3, #4]
  53147. 801635c: 607b str r3, [r7, #4]
  53148. if( xConstTickCount < xItemValue )
  53149. 801635e: 693a ldr r2, [r7, #16]
  53150. 8016360: 687b ldr r3, [r7, #4]
  53151. 8016362: 429a cmp r2, r3
  53152. 8016364: d203 bcs.n 801636e <xTaskIncrementTick+0xaa>
  53153. /* It is not time to unblock this item yet, but the
  53154. item value is the time at which the task at the head
  53155. of the blocked list must be removed from the Blocked
  53156. state - so record the item value in
  53157. xNextTaskUnblockTime. */
  53158. xNextTaskUnblockTime = xItemValue;
  53159. 8016366: 4a2e ldr r2, [pc, #184] @ (8016420 <xTaskIncrementTick+0x15c>)
  53160. 8016368: 687b ldr r3, [r7, #4]
  53161. 801636a: 6013 str r3, [r2, #0]
  53162. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  53163. 801636c: e02f b.n 80163ce <xTaskIncrementTick+0x10a>
  53164. {
  53165. mtCOVERAGE_TEST_MARKER();
  53166. }
  53167. /* It is time to remove the item from the Blocked state. */
  53168. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53169. 801636e: 68bb ldr r3, [r7, #8]
  53170. 8016370: 3304 adds r3, #4
  53171. 8016372: 4618 mov r0, r3
  53172. 8016374: f7fe fb06 bl 8014984 <uxListRemove>
  53173. /* Is the task waiting on an event also? If so remove
  53174. it from the event list. */
  53175. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  53176. 8016378: 68bb ldr r3, [r7, #8]
  53177. 801637a: 6a9b ldr r3, [r3, #40] @ 0x28
  53178. 801637c: 2b00 cmp r3, #0
  53179. 801637e: d004 beq.n 801638a <xTaskIncrementTick+0xc6>
  53180. {
  53181. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  53182. 8016380: 68bb ldr r3, [r7, #8]
  53183. 8016382: 3318 adds r3, #24
  53184. 8016384: 4618 mov r0, r3
  53185. 8016386: f7fe fafd bl 8014984 <uxListRemove>
  53186. mtCOVERAGE_TEST_MARKER();
  53187. }
  53188. /* Place the unblocked task into the appropriate ready
  53189. list. */
  53190. prvAddTaskToReadyList( pxTCB );
  53191. 801638a: 68bb ldr r3, [r7, #8]
  53192. 801638c: 6ada ldr r2, [r3, #44] @ 0x2c
  53193. 801638e: 4b25 ldr r3, [pc, #148] @ (8016424 <xTaskIncrementTick+0x160>)
  53194. 8016390: 681b ldr r3, [r3, #0]
  53195. 8016392: 429a cmp r2, r3
  53196. 8016394: d903 bls.n 801639e <xTaskIncrementTick+0xda>
  53197. 8016396: 68bb ldr r3, [r7, #8]
  53198. 8016398: 6adb ldr r3, [r3, #44] @ 0x2c
  53199. 801639a: 4a22 ldr r2, [pc, #136] @ (8016424 <xTaskIncrementTick+0x160>)
  53200. 801639c: 6013 str r3, [r2, #0]
  53201. 801639e: 68bb ldr r3, [r7, #8]
  53202. 80163a0: 6ada ldr r2, [r3, #44] @ 0x2c
  53203. 80163a2: 4613 mov r3, r2
  53204. 80163a4: 009b lsls r3, r3, #2
  53205. 80163a6: 4413 add r3, r2
  53206. 80163a8: 009b lsls r3, r3, #2
  53207. 80163aa: 4a1f ldr r2, [pc, #124] @ (8016428 <xTaskIncrementTick+0x164>)
  53208. 80163ac: 441a add r2, r3
  53209. 80163ae: 68bb ldr r3, [r7, #8]
  53210. 80163b0: 3304 adds r3, #4
  53211. 80163b2: 4619 mov r1, r3
  53212. 80163b4: 4610 mov r0, r2
  53213. 80163b6: f7fe fa88 bl 80148ca <vListInsertEnd>
  53214. {
  53215. /* Preemption is on, but a context switch should
  53216. only be performed if the unblocked task has a
  53217. priority that is equal to or higher than the
  53218. currently executing task. */
  53219. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  53220. 80163ba: 68bb ldr r3, [r7, #8]
  53221. 80163bc: 6ada ldr r2, [r3, #44] @ 0x2c
  53222. 80163be: 4b1b ldr r3, [pc, #108] @ (801642c <xTaskIncrementTick+0x168>)
  53223. 80163c0: 681b ldr r3, [r3, #0]
  53224. 80163c2: 6adb ldr r3, [r3, #44] @ 0x2c
  53225. 80163c4: 429a cmp r2, r3
  53226. 80163c6: d3b8 bcc.n 801633a <xTaskIncrementTick+0x76>
  53227. {
  53228. xSwitchRequired = pdTRUE;
  53229. 80163c8: 2301 movs r3, #1
  53230. 80163ca: 617b str r3, [r7, #20]
  53231. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53232. 80163cc: e7b5 b.n 801633a <xTaskIncrementTick+0x76>
  53233. /* Tasks of equal priority to the currently running task will share
  53234. processing time (time slice) if preemption is on, and the application
  53235. writer has not explicitly turned time slicing off. */
  53236. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  53237. {
  53238. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  53239. 80163ce: 4b17 ldr r3, [pc, #92] @ (801642c <xTaskIncrementTick+0x168>)
  53240. 80163d0: 681b ldr r3, [r3, #0]
  53241. 80163d2: 6ada ldr r2, [r3, #44] @ 0x2c
  53242. 80163d4: 4914 ldr r1, [pc, #80] @ (8016428 <xTaskIncrementTick+0x164>)
  53243. 80163d6: 4613 mov r3, r2
  53244. 80163d8: 009b lsls r3, r3, #2
  53245. 80163da: 4413 add r3, r2
  53246. 80163dc: 009b lsls r3, r3, #2
  53247. 80163de: 440b add r3, r1
  53248. 80163e0: 681b ldr r3, [r3, #0]
  53249. 80163e2: 2b01 cmp r3, #1
  53250. 80163e4: d901 bls.n 80163ea <xTaskIncrementTick+0x126>
  53251. {
  53252. xSwitchRequired = pdTRUE;
  53253. 80163e6: 2301 movs r3, #1
  53254. 80163e8: 617b str r3, [r7, #20]
  53255. }
  53256. #endif /* configUSE_TICK_HOOK */
  53257. #if ( configUSE_PREEMPTION == 1 )
  53258. {
  53259. if( xYieldPending != pdFALSE )
  53260. 80163ea: 4b11 ldr r3, [pc, #68] @ (8016430 <xTaskIncrementTick+0x16c>)
  53261. 80163ec: 681b ldr r3, [r3, #0]
  53262. 80163ee: 2b00 cmp r3, #0
  53263. 80163f0: d007 beq.n 8016402 <xTaskIncrementTick+0x13e>
  53264. {
  53265. xSwitchRequired = pdTRUE;
  53266. 80163f2: 2301 movs r3, #1
  53267. 80163f4: 617b str r3, [r7, #20]
  53268. 80163f6: e004 b.n 8016402 <xTaskIncrementTick+0x13e>
  53269. }
  53270. #endif /* configUSE_PREEMPTION */
  53271. }
  53272. else
  53273. {
  53274. ++xPendedTicks;
  53275. 80163f8: 4b0e ldr r3, [pc, #56] @ (8016434 <xTaskIncrementTick+0x170>)
  53276. 80163fa: 681b ldr r3, [r3, #0]
  53277. 80163fc: 3301 adds r3, #1
  53278. 80163fe: 4a0d ldr r2, [pc, #52] @ (8016434 <xTaskIncrementTick+0x170>)
  53279. 8016400: 6013 str r3, [r2, #0]
  53280. vApplicationTickHook();
  53281. }
  53282. #endif
  53283. }
  53284. return xSwitchRequired;
  53285. 8016402: 697b ldr r3, [r7, #20]
  53286. }
  53287. 8016404: 4618 mov r0, r3
  53288. 8016406: 3718 adds r7, #24
  53289. 8016408: 46bd mov sp, r7
  53290. 801640a: bd80 pop {r7, pc}
  53291. 801640c: 24002ef4 .word 0x24002ef4
  53292. 8016410: 24002ed0 .word 0x24002ed0
  53293. 8016414: 24002e84 .word 0x24002e84
  53294. 8016418: 24002e88 .word 0x24002e88
  53295. 801641c: 24002ee4 .word 0x24002ee4
  53296. 8016420: 24002eec .word 0x24002eec
  53297. 8016424: 24002ed4 .word 0x24002ed4
  53298. 8016428: 240029fc .word 0x240029fc
  53299. 801642c: 240029f8 .word 0x240029f8
  53300. 8016430: 24002ee0 .word 0x24002ee0
  53301. 8016434: 24002edc .word 0x24002edc
  53302. 08016438 <vTaskSwitchContext>:
  53303. #endif /* configUSE_APPLICATION_TASK_TAG */
  53304. /*-----------------------------------------------------------*/
  53305. void vTaskSwitchContext( void )
  53306. {
  53307. 8016438: b580 push {r7, lr}
  53308. 801643a: b084 sub sp, #16
  53309. 801643c: af00 add r7, sp, #0
  53310. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  53311. 801643e: 4b32 ldr r3, [pc, #200] @ (8016508 <vTaskSwitchContext+0xd0>)
  53312. 8016440: 681b ldr r3, [r3, #0]
  53313. 8016442: 2b00 cmp r3, #0
  53314. 8016444: d003 beq.n 801644e <vTaskSwitchContext+0x16>
  53315. {
  53316. /* The scheduler is currently suspended - do not allow a context
  53317. switch. */
  53318. xYieldPending = pdTRUE;
  53319. 8016446: 4b31 ldr r3, [pc, #196] @ (801650c <vTaskSwitchContext+0xd4>)
  53320. 8016448: 2201 movs r2, #1
  53321. 801644a: 601a str r2, [r3, #0]
  53322. for additional information. */
  53323. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53324. }
  53325. #endif /* configUSE_NEWLIB_REENTRANT */
  53326. }
  53327. }
  53328. 801644c: e058 b.n 8016500 <vTaskSwitchContext+0xc8>
  53329. xYieldPending = pdFALSE;
  53330. 801644e: 4b2f ldr r3, [pc, #188] @ (801650c <vTaskSwitchContext+0xd4>)
  53331. 8016450: 2200 movs r2, #0
  53332. 8016452: 601a str r2, [r3, #0]
  53333. taskCHECK_FOR_STACK_OVERFLOW();
  53334. 8016454: 4b2e ldr r3, [pc, #184] @ (8016510 <vTaskSwitchContext+0xd8>)
  53335. 8016456: 681b ldr r3, [r3, #0]
  53336. 8016458: 681a ldr r2, [r3, #0]
  53337. 801645a: 4b2d ldr r3, [pc, #180] @ (8016510 <vTaskSwitchContext+0xd8>)
  53338. 801645c: 681b ldr r3, [r3, #0]
  53339. 801645e: 6b1b ldr r3, [r3, #48] @ 0x30
  53340. 8016460: 429a cmp r2, r3
  53341. 8016462: d808 bhi.n 8016476 <vTaskSwitchContext+0x3e>
  53342. 8016464: 4b2a ldr r3, [pc, #168] @ (8016510 <vTaskSwitchContext+0xd8>)
  53343. 8016466: 681a ldr r2, [r3, #0]
  53344. 8016468: 4b29 ldr r3, [pc, #164] @ (8016510 <vTaskSwitchContext+0xd8>)
  53345. 801646a: 681b ldr r3, [r3, #0]
  53346. 801646c: 3334 adds r3, #52 @ 0x34
  53347. 801646e: 4619 mov r1, r3
  53348. 8016470: 4610 mov r0, r2
  53349. 8016472: f7ea f8ad bl 80005d0 <vApplicationStackOverflowHook>
  53350. 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. */
  53351. 8016476: 4b27 ldr r3, [pc, #156] @ (8016514 <vTaskSwitchContext+0xdc>)
  53352. 8016478: 681b ldr r3, [r3, #0]
  53353. 801647a: 60fb str r3, [r7, #12]
  53354. 801647c: e011 b.n 80164a2 <vTaskSwitchContext+0x6a>
  53355. 801647e: 68fb ldr r3, [r7, #12]
  53356. 8016480: 2b00 cmp r3, #0
  53357. 8016482: d10b bne.n 801649c <vTaskSwitchContext+0x64>
  53358. __asm volatile
  53359. 8016484: f04f 0350 mov.w r3, #80 @ 0x50
  53360. 8016488: f383 8811 msr BASEPRI, r3
  53361. 801648c: f3bf 8f6f isb sy
  53362. 8016490: f3bf 8f4f dsb sy
  53363. 8016494: 607b str r3, [r7, #4]
  53364. }
  53365. 8016496: bf00 nop
  53366. 8016498: bf00 nop
  53367. 801649a: e7fd b.n 8016498 <vTaskSwitchContext+0x60>
  53368. 801649c: 68fb ldr r3, [r7, #12]
  53369. 801649e: 3b01 subs r3, #1
  53370. 80164a0: 60fb str r3, [r7, #12]
  53371. 80164a2: 491d ldr r1, [pc, #116] @ (8016518 <vTaskSwitchContext+0xe0>)
  53372. 80164a4: 68fa ldr r2, [r7, #12]
  53373. 80164a6: 4613 mov r3, r2
  53374. 80164a8: 009b lsls r3, r3, #2
  53375. 80164aa: 4413 add r3, r2
  53376. 80164ac: 009b lsls r3, r3, #2
  53377. 80164ae: 440b add r3, r1
  53378. 80164b0: 681b ldr r3, [r3, #0]
  53379. 80164b2: 2b00 cmp r3, #0
  53380. 80164b4: d0e3 beq.n 801647e <vTaskSwitchContext+0x46>
  53381. 80164b6: 68fa ldr r2, [r7, #12]
  53382. 80164b8: 4613 mov r3, r2
  53383. 80164ba: 009b lsls r3, r3, #2
  53384. 80164bc: 4413 add r3, r2
  53385. 80164be: 009b lsls r3, r3, #2
  53386. 80164c0: 4a15 ldr r2, [pc, #84] @ (8016518 <vTaskSwitchContext+0xe0>)
  53387. 80164c2: 4413 add r3, r2
  53388. 80164c4: 60bb str r3, [r7, #8]
  53389. 80164c6: 68bb ldr r3, [r7, #8]
  53390. 80164c8: 685b ldr r3, [r3, #4]
  53391. 80164ca: 685a ldr r2, [r3, #4]
  53392. 80164cc: 68bb ldr r3, [r7, #8]
  53393. 80164ce: 605a str r2, [r3, #4]
  53394. 80164d0: 68bb ldr r3, [r7, #8]
  53395. 80164d2: 685a ldr r2, [r3, #4]
  53396. 80164d4: 68bb ldr r3, [r7, #8]
  53397. 80164d6: 3308 adds r3, #8
  53398. 80164d8: 429a cmp r2, r3
  53399. 80164da: d104 bne.n 80164e6 <vTaskSwitchContext+0xae>
  53400. 80164dc: 68bb ldr r3, [r7, #8]
  53401. 80164de: 685b ldr r3, [r3, #4]
  53402. 80164e0: 685a ldr r2, [r3, #4]
  53403. 80164e2: 68bb ldr r3, [r7, #8]
  53404. 80164e4: 605a str r2, [r3, #4]
  53405. 80164e6: 68bb ldr r3, [r7, #8]
  53406. 80164e8: 685b ldr r3, [r3, #4]
  53407. 80164ea: 68db ldr r3, [r3, #12]
  53408. 80164ec: 4a08 ldr r2, [pc, #32] @ (8016510 <vTaskSwitchContext+0xd8>)
  53409. 80164ee: 6013 str r3, [r2, #0]
  53410. 80164f0: 4a08 ldr r2, [pc, #32] @ (8016514 <vTaskSwitchContext+0xdc>)
  53411. 80164f2: 68fb ldr r3, [r7, #12]
  53412. 80164f4: 6013 str r3, [r2, #0]
  53413. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53414. 80164f6: 4b06 ldr r3, [pc, #24] @ (8016510 <vTaskSwitchContext+0xd8>)
  53415. 80164f8: 681b ldr r3, [r3, #0]
  53416. 80164fa: 3354 adds r3, #84 @ 0x54
  53417. 80164fc: 4a07 ldr r2, [pc, #28] @ (801651c <vTaskSwitchContext+0xe4>)
  53418. 80164fe: 6013 str r3, [r2, #0]
  53419. }
  53420. 8016500: bf00 nop
  53421. 8016502: 3710 adds r7, #16
  53422. 8016504: 46bd mov sp, r7
  53423. 8016506: bd80 pop {r7, pc}
  53424. 8016508: 24002ef4 .word 0x24002ef4
  53425. 801650c: 24002ee0 .word 0x24002ee0
  53426. 8016510: 240029f8 .word 0x240029f8
  53427. 8016514: 24002ed4 .word 0x24002ed4
  53428. 8016518: 240029fc .word 0x240029fc
  53429. 801651c: 24000048 .word 0x24000048
  53430. 08016520 <vTaskPlaceOnEventList>:
  53431. /*-----------------------------------------------------------*/
  53432. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  53433. {
  53434. 8016520: b580 push {r7, lr}
  53435. 8016522: b084 sub sp, #16
  53436. 8016524: af00 add r7, sp, #0
  53437. 8016526: 6078 str r0, [r7, #4]
  53438. 8016528: 6039 str r1, [r7, #0]
  53439. configASSERT( pxEventList );
  53440. 801652a: 687b ldr r3, [r7, #4]
  53441. 801652c: 2b00 cmp r3, #0
  53442. 801652e: d10b bne.n 8016548 <vTaskPlaceOnEventList+0x28>
  53443. __asm volatile
  53444. 8016530: f04f 0350 mov.w r3, #80 @ 0x50
  53445. 8016534: f383 8811 msr BASEPRI, r3
  53446. 8016538: f3bf 8f6f isb sy
  53447. 801653c: f3bf 8f4f dsb sy
  53448. 8016540: 60fb str r3, [r7, #12]
  53449. }
  53450. 8016542: bf00 nop
  53451. 8016544: bf00 nop
  53452. 8016546: e7fd b.n 8016544 <vTaskPlaceOnEventList+0x24>
  53453. /* Place the event list item of the TCB in the appropriate event list.
  53454. This is placed in the list in priority order so the highest priority task
  53455. is the first to be woken by the event. The queue that contains the event
  53456. list is locked, preventing simultaneous access from interrupts. */
  53457. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53458. 8016548: 4b07 ldr r3, [pc, #28] @ (8016568 <vTaskPlaceOnEventList+0x48>)
  53459. 801654a: 681b ldr r3, [r3, #0]
  53460. 801654c: 3318 adds r3, #24
  53461. 801654e: 4619 mov r1, r3
  53462. 8016550: 6878 ldr r0, [r7, #4]
  53463. 8016552: f7fe f9de bl 8014912 <vListInsert>
  53464. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53465. 8016556: 2101 movs r1, #1
  53466. 8016558: 6838 ldr r0, [r7, #0]
  53467. 801655a: f000 fded bl 8017138 <prvAddCurrentTaskToDelayedList>
  53468. }
  53469. 801655e: bf00 nop
  53470. 8016560: 3710 adds r7, #16
  53471. 8016562: 46bd mov sp, r7
  53472. 8016564: bd80 pop {r7, pc}
  53473. 8016566: bf00 nop
  53474. 8016568: 240029f8 .word 0x240029f8
  53475. 0801656c <vTaskPlaceOnEventListRestricted>:
  53476. /*-----------------------------------------------------------*/
  53477. #if( configUSE_TIMERS == 1 )
  53478. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  53479. {
  53480. 801656c: b580 push {r7, lr}
  53481. 801656e: b086 sub sp, #24
  53482. 8016570: af00 add r7, sp, #0
  53483. 8016572: 60f8 str r0, [r7, #12]
  53484. 8016574: 60b9 str r1, [r7, #8]
  53485. 8016576: 607a str r2, [r7, #4]
  53486. configASSERT( pxEventList );
  53487. 8016578: 68fb ldr r3, [r7, #12]
  53488. 801657a: 2b00 cmp r3, #0
  53489. 801657c: d10b bne.n 8016596 <vTaskPlaceOnEventListRestricted+0x2a>
  53490. __asm volatile
  53491. 801657e: f04f 0350 mov.w r3, #80 @ 0x50
  53492. 8016582: f383 8811 msr BASEPRI, r3
  53493. 8016586: f3bf 8f6f isb sy
  53494. 801658a: f3bf 8f4f dsb sy
  53495. 801658e: 617b str r3, [r7, #20]
  53496. }
  53497. 8016590: bf00 nop
  53498. 8016592: bf00 nop
  53499. 8016594: e7fd b.n 8016592 <vTaskPlaceOnEventListRestricted+0x26>
  53500. /* Place the event list item of the TCB in the appropriate event list.
  53501. In this case it is assume that this is the only task that is going to
  53502. be waiting on this event list, so the faster vListInsertEnd() function
  53503. can be used in place of vListInsert. */
  53504. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53505. 8016596: 4b0a ldr r3, [pc, #40] @ (80165c0 <vTaskPlaceOnEventListRestricted+0x54>)
  53506. 8016598: 681b ldr r3, [r3, #0]
  53507. 801659a: 3318 adds r3, #24
  53508. 801659c: 4619 mov r1, r3
  53509. 801659e: 68f8 ldr r0, [r7, #12]
  53510. 80165a0: f7fe f993 bl 80148ca <vListInsertEnd>
  53511. /* If the task should block indefinitely then set the block time to a
  53512. value that will be recognised as an indefinite delay inside the
  53513. prvAddCurrentTaskToDelayedList() function. */
  53514. if( xWaitIndefinitely != pdFALSE )
  53515. 80165a4: 687b ldr r3, [r7, #4]
  53516. 80165a6: 2b00 cmp r3, #0
  53517. 80165a8: d002 beq.n 80165b0 <vTaskPlaceOnEventListRestricted+0x44>
  53518. {
  53519. xTicksToWait = portMAX_DELAY;
  53520. 80165aa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  53521. 80165ae: 60bb str r3, [r7, #8]
  53522. }
  53523. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  53524. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  53525. 80165b0: 6879 ldr r1, [r7, #4]
  53526. 80165b2: 68b8 ldr r0, [r7, #8]
  53527. 80165b4: f000 fdc0 bl 8017138 <prvAddCurrentTaskToDelayedList>
  53528. }
  53529. 80165b8: bf00 nop
  53530. 80165ba: 3718 adds r7, #24
  53531. 80165bc: 46bd mov sp, r7
  53532. 80165be: bd80 pop {r7, pc}
  53533. 80165c0: 240029f8 .word 0x240029f8
  53534. 080165c4 <xTaskRemoveFromEventList>:
  53535. #endif /* configUSE_TIMERS */
  53536. /*-----------------------------------------------------------*/
  53537. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  53538. {
  53539. 80165c4: b580 push {r7, lr}
  53540. 80165c6: b086 sub sp, #24
  53541. 80165c8: af00 add r7, sp, #0
  53542. 80165ca: 6078 str r0, [r7, #4]
  53543. get called - the lock count on the queue will get modified instead. This
  53544. means exclusive access to the event list is guaranteed here.
  53545. This function assumes that a check has already been made to ensure that
  53546. pxEventList is not empty. */
  53547. 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. */
  53548. 80165cc: 687b ldr r3, [r7, #4]
  53549. 80165ce: 68db ldr r3, [r3, #12]
  53550. 80165d0: 68db ldr r3, [r3, #12]
  53551. 80165d2: 613b str r3, [r7, #16]
  53552. configASSERT( pxUnblockedTCB );
  53553. 80165d4: 693b ldr r3, [r7, #16]
  53554. 80165d6: 2b00 cmp r3, #0
  53555. 80165d8: d10b bne.n 80165f2 <xTaskRemoveFromEventList+0x2e>
  53556. __asm volatile
  53557. 80165da: f04f 0350 mov.w r3, #80 @ 0x50
  53558. 80165de: f383 8811 msr BASEPRI, r3
  53559. 80165e2: f3bf 8f6f isb sy
  53560. 80165e6: f3bf 8f4f dsb sy
  53561. 80165ea: 60fb str r3, [r7, #12]
  53562. }
  53563. 80165ec: bf00 nop
  53564. 80165ee: bf00 nop
  53565. 80165f0: e7fd b.n 80165ee <xTaskRemoveFromEventList+0x2a>
  53566. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  53567. 80165f2: 693b ldr r3, [r7, #16]
  53568. 80165f4: 3318 adds r3, #24
  53569. 80165f6: 4618 mov r0, r3
  53570. 80165f8: f7fe f9c4 bl 8014984 <uxListRemove>
  53571. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53572. 80165fc: 4b1d ldr r3, [pc, #116] @ (8016674 <xTaskRemoveFromEventList+0xb0>)
  53573. 80165fe: 681b ldr r3, [r3, #0]
  53574. 8016600: 2b00 cmp r3, #0
  53575. 8016602: d11d bne.n 8016640 <xTaskRemoveFromEventList+0x7c>
  53576. {
  53577. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  53578. 8016604: 693b ldr r3, [r7, #16]
  53579. 8016606: 3304 adds r3, #4
  53580. 8016608: 4618 mov r0, r3
  53581. 801660a: f7fe f9bb bl 8014984 <uxListRemove>
  53582. prvAddTaskToReadyList( pxUnblockedTCB );
  53583. 801660e: 693b ldr r3, [r7, #16]
  53584. 8016610: 6ada ldr r2, [r3, #44] @ 0x2c
  53585. 8016612: 4b19 ldr r3, [pc, #100] @ (8016678 <xTaskRemoveFromEventList+0xb4>)
  53586. 8016614: 681b ldr r3, [r3, #0]
  53587. 8016616: 429a cmp r2, r3
  53588. 8016618: d903 bls.n 8016622 <xTaskRemoveFromEventList+0x5e>
  53589. 801661a: 693b ldr r3, [r7, #16]
  53590. 801661c: 6adb ldr r3, [r3, #44] @ 0x2c
  53591. 801661e: 4a16 ldr r2, [pc, #88] @ (8016678 <xTaskRemoveFromEventList+0xb4>)
  53592. 8016620: 6013 str r3, [r2, #0]
  53593. 8016622: 693b ldr r3, [r7, #16]
  53594. 8016624: 6ada ldr r2, [r3, #44] @ 0x2c
  53595. 8016626: 4613 mov r3, r2
  53596. 8016628: 009b lsls r3, r3, #2
  53597. 801662a: 4413 add r3, r2
  53598. 801662c: 009b lsls r3, r3, #2
  53599. 801662e: 4a13 ldr r2, [pc, #76] @ (801667c <xTaskRemoveFromEventList+0xb8>)
  53600. 8016630: 441a add r2, r3
  53601. 8016632: 693b ldr r3, [r7, #16]
  53602. 8016634: 3304 adds r3, #4
  53603. 8016636: 4619 mov r1, r3
  53604. 8016638: 4610 mov r0, r2
  53605. 801663a: f7fe f946 bl 80148ca <vListInsertEnd>
  53606. 801663e: e005 b.n 801664c <xTaskRemoveFromEventList+0x88>
  53607. }
  53608. else
  53609. {
  53610. /* The delayed and ready lists cannot be accessed, so hold this task
  53611. pending until the scheduler is resumed. */
  53612. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  53613. 8016640: 693b ldr r3, [r7, #16]
  53614. 8016642: 3318 adds r3, #24
  53615. 8016644: 4619 mov r1, r3
  53616. 8016646: 480e ldr r0, [pc, #56] @ (8016680 <xTaskRemoveFromEventList+0xbc>)
  53617. 8016648: f7fe f93f bl 80148ca <vListInsertEnd>
  53618. }
  53619. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  53620. 801664c: 693b ldr r3, [r7, #16]
  53621. 801664e: 6ada ldr r2, [r3, #44] @ 0x2c
  53622. 8016650: 4b0c ldr r3, [pc, #48] @ (8016684 <xTaskRemoveFromEventList+0xc0>)
  53623. 8016652: 681b ldr r3, [r3, #0]
  53624. 8016654: 6adb ldr r3, [r3, #44] @ 0x2c
  53625. 8016656: 429a cmp r2, r3
  53626. 8016658: d905 bls.n 8016666 <xTaskRemoveFromEventList+0xa2>
  53627. {
  53628. /* Return true if the task removed from the event list has a higher
  53629. priority than the calling task. This allows the calling task to know if
  53630. it should force a context switch now. */
  53631. xReturn = pdTRUE;
  53632. 801665a: 2301 movs r3, #1
  53633. 801665c: 617b str r3, [r7, #20]
  53634. /* Mark that a yield is pending in case the user is not using the
  53635. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  53636. xYieldPending = pdTRUE;
  53637. 801665e: 4b0a ldr r3, [pc, #40] @ (8016688 <xTaskRemoveFromEventList+0xc4>)
  53638. 8016660: 2201 movs r2, #1
  53639. 8016662: 601a str r2, [r3, #0]
  53640. 8016664: e001 b.n 801666a <xTaskRemoveFromEventList+0xa6>
  53641. }
  53642. else
  53643. {
  53644. xReturn = pdFALSE;
  53645. 8016666: 2300 movs r3, #0
  53646. 8016668: 617b str r3, [r7, #20]
  53647. }
  53648. return xReturn;
  53649. 801666a: 697b ldr r3, [r7, #20]
  53650. }
  53651. 801666c: 4618 mov r0, r3
  53652. 801666e: 3718 adds r7, #24
  53653. 8016670: 46bd mov sp, r7
  53654. 8016672: bd80 pop {r7, pc}
  53655. 8016674: 24002ef4 .word 0x24002ef4
  53656. 8016678: 24002ed4 .word 0x24002ed4
  53657. 801667c: 240029fc .word 0x240029fc
  53658. 8016680: 24002e8c .word 0x24002e8c
  53659. 8016684: 240029f8 .word 0x240029f8
  53660. 8016688: 24002ee0 .word 0x24002ee0
  53661. 0801668c <vTaskSetTimeOutState>:
  53662. }
  53663. }
  53664. /*-----------------------------------------------------------*/
  53665. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  53666. {
  53667. 801668c: b580 push {r7, lr}
  53668. 801668e: b084 sub sp, #16
  53669. 8016690: af00 add r7, sp, #0
  53670. 8016692: 6078 str r0, [r7, #4]
  53671. configASSERT( pxTimeOut );
  53672. 8016694: 687b ldr r3, [r7, #4]
  53673. 8016696: 2b00 cmp r3, #0
  53674. 8016698: d10b bne.n 80166b2 <vTaskSetTimeOutState+0x26>
  53675. __asm volatile
  53676. 801669a: f04f 0350 mov.w r3, #80 @ 0x50
  53677. 801669e: f383 8811 msr BASEPRI, r3
  53678. 80166a2: f3bf 8f6f isb sy
  53679. 80166a6: f3bf 8f4f dsb sy
  53680. 80166aa: 60fb str r3, [r7, #12]
  53681. }
  53682. 80166ac: bf00 nop
  53683. 80166ae: bf00 nop
  53684. 80166b0: e7fd b.n 80166ae <vTaskSetTimeOutState+0x22>
  53685. taskENTER_CRITICAL();
  53686. 80166b2: f001 fb09 bl 8017cc8 <vPortEnterCritical>
  53687. {
  53688. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53689. 80166b6: 4b07 ldr r3, [pc, #28] @ (80166d4 <vTaskSetTimeOutState+0x48>)
  53690. 80166b8: 681a ldr r2, [r3, #0]
  53691. 80166ba: 687b ldr r3, [r7, #4]
  53692. 80166bc: 601a str r2, [r3, #0]
  53693. pxTimeOut->xTimeOnEntering = xTickCount;
  53694. 80166be: 4b06 ldr r3, [pc, #24] @ (80166d8 <vTaskSetTimeOutState+0x4c>)
  53695. 80166c0: 681a ldr r2, [r3, #0]
  53696. 80166c2: 687b ldr r3, [r7, #4]
  53697. 80166c4: 605a str r2, [r3, #4]
  53698. }
  53699. taskEXIT_CRITICAL();
  53700. 80166c6: f001 fb31 bl 8017d2c <vPortExitCritical>
  53701. }
  53702. 80166ca: bf00 nop
  53703. 80166cc: 3710 adds r7, #16
  53704. 80166ce: 46bd mov sp, r7
  53705. 80166d0: bd80 pop {r7, pc}
  53706. 80166d2: bf00 nop
  53707. 80166d4: 24002ee4 .word 0x24002ee4
  53708. 80166d8: 24002ed0 .word 0x24002ed0
  53709. 080166dc <vTaskInternalSetTimeOutState>:
  53710. /*-----------------------------------------------------------*/
  53711. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  53712. {
  53713. 80166dc: b480 push {r7}
  53714. 80166de: b083 sub sp, #12
  53715. 80166e0: af00 add r7, sp, #0
  53716. 80166e2: 6078 str r0, [r7, #4]
  53717. /* For internal use only as it does not use a critical section. */
  53718. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53719. 80166e4: 4b06 ldr r3, [pc, #24] @ (8016700 <vTaskInternalSetTimeOutState+0x24>)
  53720. 80166e6: 681a ldr r2, [r3, #0]
  53721. 80166e8: 687b ldr r3, [r7, #4]
  53722. 80166ea: 601a str r2, [r3, #0]
  53723. pxTimeOut->xTimeOnEntering = xTickCount;
  53724. 80166ec: 4b05 ldr r3, [pc, #20] @ (8016704 <vTaskInternalSetTimeOutState+0x28>)
  53725. 80166ee: 681a ldr r2, [r3, #0]
  53726. 80166f0: 687b ldr r3, [r7, #4]
  53727. 80166f2: 605a str r2, [r3, #4]
  53728. }
  53729. 80166f4: bf00 nop
  53730. 80166f6: 370c adds r7, #12
  53731. 80166f8: 46bd mov sp, r7
  53732. 80166fa: f85d 7b04 ldr.w r7, [sp], #4
  53733. 80166fe: 4770 bx lr
  53734. 8016700: 24002ee4 .word 0x24002ee4
  53735. 8016704: 24002ed0 .word 0x24002ed0
  53736. 08016708 <xTaskCheckForTimeOut>:
  53737. /*-----------------------------------------------------------*/
  53738. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  53739. {
  53740. 8016708: b580 push {r7, lr}
  53741. 801670a: b088 sub sp, #32
  53742. 801670c: af00 add r7, sp, #0
  53743. 801670e: 6078 str r0, [r7, #4]
  53744. 8016710: 6039 str r1, [r7, #0]
  53745. BaseType_t xReturn;
  53746. configASSERT( pxTimeOut );
  53747. 8016712: 687b ldr r3, [r7, #4]
  53748. 8016714: 2b00 cmp r3, #0
  53749. 8016716: d10b bne.n 8016730 <xTaskCheckForTimeOut+0x28>
  53750. __asm volatile
  53751. 8016718: f04f 0350 mov.w r3, #80 @ 0x50
  53752. 801671c: f383 8811 msr BASEPRI, r3
  53753. 8016720: f3bf 8f6f isb sy
  53754. 8016724: f3bf 8f4f dsb sy
  53755. 8016728: 613b str r3, [r7, #16]
  53756. }
  53757. 801672a: bf00 nop
  53758. 801672c: bf00 nop
  53759. 801672e: e7fd b.n 801672c <xTaskCheckForTimeOut+0x24>
  53760. configASSERT( pxTicksToWait );
  53761. 8016730: 683b ldr r3, [r7, #0]
  53762. 8016732: 2b00 cmp r3, #0
  53763. 8016734: d10b bne.n 801674e <xTaskCheckForTimeOut+0x46>
  53764. __asm volatile
  53765. 8016736: f04f 0350 mov.w r3, #80 @ 0x50
  53766. 801673a: f383 8811 msr BASEPRI, r3
  53767. 801673e: f3bf 8f6f isb sy
  53768. 8016742: f3bf 8f4f dsb sy
  53769. 8016746: 60fb str r3, [r7, #12]
  53770. }
  53771. 8016748: bf00 nop
  53772. 801674a: bf00 nop
  53773. 801674c: e7fd b.n 801674a <xTaskCheckForTimeOut+0x42>
  53774. taskENTER_CRITICAL();
  53775. 801674e: f001 fabb bl 8017cc8 <vPortEnterCritical>
  53776. {
  53777. /* Minor optimisation. The tick count cannot change in this block. */
  53778. const TickType_t xConstTickCount = xTickCount;
  53779. 8016752: 4b1d ldr r3, [pc, #116] @ (80167c8 <xTaskCheckForTimeOut+0xc0>)
  53780. 8016754: 681b ldr r3, [r3, #0]
  53781. 8016756: 61bb str r3, [r7, #24]
  53782. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  53783. 8016758: 687b ldr r3, [r7, #4]
  53784. 801675a: 685b ldr r3, [r3, #4]
  53785. 801675c: 69ba ldr r2, [r7, #24]
  53786. 801675e: 1ad3 subs r3, r2, r3
  53787. 8016760: 617b str r3, [r7, #20]
  53788. }
  53789. else
  53790. #endif
  53791. #if ( INCLUDE_vTaskSuspend == 1 )
  53792. if( *pxTicksToWait == portMAX_DELAY )
  53793. 8016762: 683b ldr r3, [r7, #0]
  53794. 8016764: 681b ldr r3, [r3, #0]
  53795. 8016766: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53796. 801676a: d102 bne.n 8016772 <xTaskCheckForTimeOut+0x6a>
  53797. {
  53798. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  53799. specified is the maximum block time then the task should block
  53800. indefinitely, and therefore never time out. */
  53801. xReturn = pdFALSE;
  53802. 801676c: 2300 movs r3, #0
  53803. 801676e: 61fb str r3, [r7, #28]
  53804. 8016770: e023 b.n 80167ba <xTaskCheckForTimeOut+0xb2>
  53805. }
  53806. else
  53807. #endif
  53808. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  53809. 8016772: 687b ldr r3, [r7, #4]
  53810. 8016774: 681a ldr r2, [r3, #0]
  53811. 8016776: 4b15 ldr r3, [pc, #84] @ (80167cc <xTaskCheckForTimeOut+0xc4>)
  53812. 8016778: 681b ldr r3, [r3, #0]
  53813. 801677a: 429a cmp r2, r3
  53814. 801677c: d007 beq.n 801678e <xTaskCheckForTimeOut+0x86>
  53815. 801677e: 687b ldr r3, [r7, #4]
  53816. 8016780: 685b ldr r3, [r3, #4]
  53817. 8016782: 69ba ldr r2, [r7, #24]
  53818. 8016784: 429a cmp r2, r3
  53819. 8016786: d302 bcc.n 801678e <xTaskCheckForTimeOut+0x86>
  53820. /* The tick count is greater than the time at which
  53821. vTaskSetTimeout() was called, but has also overflowed since
  53822. vTaskSetTimeOut() was called. It must have wrapped all the way
  53823. around and gone past again. This passed since vTaskSetTimeout()
  53824. was called. */
  53825. xReturn = pdTRUE;
  53826. 8016788: 2301 movs r3, #1
  53827. 801678a: 61fb str r3, [r7, #28]
  53828. 801678c: e015 b.n 80167ba <xTaskCheckForTimeOut+0xb2>
  53829. }
  53830. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  53831. 801678e: 683b ldr r3, [r7, #0]
  53832. 8016790: 681b ldr r3, [r3, #0]
  53833. 8016792: 697a ldr r2, [r7, #20]
  53834. 8016794: 429a cmp r2, r3
  53835. 8016796: d20b bcs.n 80167b0 <xTaskCheckForTimeOut+0xa8>
  53836. {
  53837. /* Not a genuine timeout. Adjust parameters for time remaining. */
  53838. *pxTicksToWait -= xElapsedTime;
  53839. 8016798: 683b ldr r3, [r7, #0]
  53840. 801679a: 681a ldr r2, [r3, #0]
  53841. 801679c: 697b ldr r3, [r7, #20]
  53842. 801679e: 1ad2 subs r2, r2, r3
  53843. 80167a0: 683b ldr r3, [r7, #0]
  53844. 80167a2: 601a str r2, [r3, #0]
  53845. vTaskInternalSetTimeOutState( pxTimeOut );
  53846. 80167a4: 6878 ldr r0, [r7, #4]
  53847. 80167a6: f7ff ff99 bl 80166dc <vTaskInternalSetTimeOutState>
  53848. xReturn = pdFALSE;
  53849. 80167aa: 2300 movs r3, #0
  53850. 80167ac: 61fb str r3, [r7, #28]
  53851. 80167ae: e004 b.n 80167ba <xTaskCheckForTimeOut+0xb2>
  53852. }
  53853. else
  53854. {
  53855. *pxTicksToWait = 0;
  53856. 80167b0: 683b ldr r3, [r7, #0]
  53857. 80167b2: 2200 movs r2, #0
  53858. 80167b4: 601a str r2, [r3, #0]
  53859. xReturn = pdTRUE;
  53860. 80167b6: 2301 movs r3, #1
  53861. 80167b8: 61fb str r3, [r7, #28]
  53862. }
  53863. }
  53864. taskEXIT_CRITICAL();
  53865. 80167ba: f001 fab7 bl 8017d2c <vPortExitCritical>
  53866. return xReturn;
  53867. 80167be: 69fb ldr r3, [r7, #28]
  53868. }
  53869. 80167c0: 4618 mov r0, r3
  53870. 80167c2: 3720 adds r7, #32
  53871. 80167c4: 46bd mov sp, r7
  53872. 80167c6: bd80 pop {r7, pc}
  53873. 80167c8: 24002ed0 .word 0x24002ed0
  53874. 80167cc: 24002ee4 .word 0x24002ee4
  53875. 080167d0 <vTaskMissedYield>:
  53876. /*-----------------------------------------------------------*/
  53877. void vTaskMissedYield( void )
  53878. {
  53879. 80167d0: b480 push {r7}
  53880. 80167d2: af00 add r7, sp, #0
  53881. xYieldPending = pdTRUE;
  53882. 80167d4: 4b03 ldr r3, [pc, #12] @ (80167e4 <vTaskMissedYield+0x14>)
  53883. 80167d6: 2201 movs r2, #1
  53884. 80167d8: 601a str r2, [r3, #0]
  53885. }
  53886. 80167da: bf00 nop
  53887. 80167dc: 46bd mov sp, r7
  53888. 80167de: f85d 7b04 ldr.w r7, [sp], #4
  53889. 80167e2: 4770 bx lr
  53890. 80167e4: 24002ee0 .word 0x24002ee0
  53891. 080167e8 <prvIdleTask>:
  53892. *
  53893. * void prvIdleTask( void *pvParameters );
  53894. *
  53895. */
  53896. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53897. {
  53898. 80167e8: b580 push {r7, lr}
  53899. 80167ea: b082 sub sp, #8
  53900. 80167ec: af00 add r7, sp, #0
  53901. 80167ee: 6078 str r0, [r7, #4]
  53902. for( ;; )
  53903. {
  53904. /* See if any tasks have deleted themselves - if so then the idle task
  53905. is responsible for freeing the deleted task's TCB and stack. */
  53906. prvCheckTasksWaitingTermination();
  53907. 80167f0: f000 f852 bl 8016898 <prvCheckTasksWaitingTermination>
  53908. A critical region is not required here as we are just reading from
  53909. the list, and an occasional incorrect value will not matter. If
  53910. the ready list at the idle priority contains more than one task
  53911. then a task other than the idle task is ready to execute. */
  53912. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53913. 80167f4: 4b06 ldr r3, [pc, #24] @ (8016810 <prvIdleTask+0x28>)
  53914. 80167f6: 681b ldr r3, [r3, #0]
  53915. 80167f8: 2b01 cmp r3, #1
  53916. 80167fa: d9f9 bls.n 80167f0 <prvIdleTask+0x8>
  53917. {
  53918. taskYIELD();
  53919. 80167fc: 4b05 ldr r3, [pc, #20] @ (8016814 <prvIdleTask+0x2c>)
  53920. 80167fe: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53921. 8016802: 601a str r2, [r3, #0]
  53922. 8016804: f3bf 8f4f dsb sy
  53923. 8016808: f3bf 8f6f isb sy
  53924. prvCheckTasksWaitingTermination();
  53925. 801680c: e7f0 b.n 80167f0 <prvIdleTask+0x8>
  53926. 801680e: bf00 nop
  53927. 8016810: 240029fc .word 0x240029fc
  53928. 8016814: e000ed04 .word 0xe000ed04
  53929. 08016818 <prvInitialiseTaskLists>:
  53930. #endif /* portUSING_MPU_WRAPPERS */
  53931. /*-----------------------------------------------------------*/
  53932. static void prvInitialiseTaskLists( void )
  53933. {
  53934. 8016818: b580 push {r7, lr}
  53935. 801681a: b082 sub sp, #8
  53936. 801681c: af00 add r7, sp, #0
  53937. UBaseType_t uxPriority;
  53938. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53939. 801681e: 2300 movs r3, #0
  53940. 8016820: 607b str r3, [r7, #4]
  53941. 8016822: e00c b.n 801683e <prvInitialiseTaskLists+0x26>
  53942. {
  53943. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  53944. 8016824: 687a ldr r2, [r7, #4]
  53945. 8016826: 4613 mov r3, r2
  53946. 8016828: 009b lsls r3, r3, #2
  53947. 801682a: 4413 add r3, r2
  53948. 801682c: 009b lsls r3, r3, #2
  53949. 801682e: 4a12 ldr r2, [pc, #72] @ (8016878 <prvInitialiseTaskLists+0x60>)
  53950. 8016830: 4413 add r3, r2
  53951. 8016832: 4618 mov r0, r3
  53952. 8016834: f7fe f81c bl 8014870 <vListInitialise>
  53953. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53954. 8016838: 687b ldr r3, [r7, #4]
  53955. 801683a: 3301 adds r3, #1
  53956. 801683c: 607b str r3, [r7, #4]
  53957. 801683e: 687b ldr r3, [r7, #4]
  53958. 8016840: 2b37 cmp r3, #55 @ 0x37
  53959. 8016842: d9ef bls.n 8016824 <prvInitialiseTaskLists+0xc>
  53960. }
  53961. vListInitialise( &xDelayedTaskList1 );
  53962. 8016844: 480d ldr r0, [pc, #52] @ (801687c <prvInitialiseTaskLists+0x64>)
  53963. 8016846: f7fe f813 bl 8014870 <vListInitialise>
  53964. vListInitialise( &xDelayedTaskList2 );
  53965. 801684a: 480d ldr r0, [pc, #52] @ (8016880 <prvInitialiseTaskLists+0x68>)
  53966. 801684c: f7fe f810 bl 8014870 <vListInitialise>
  53967. vListInitialise( &xPendingReadyList );
  53968. 8016850: 480c ldr r0, [pc, #48] @ (8016884 <prvInitialiseTaskLists+0x6c>)
  53969. 8016852: f7fe f80d bl 8014870 <vListInitialise>
  53970. #if ( INCLUDE_vTaskDelete == 1 )
  53971. {
  53972. vListInitialise( &xTasksWaitingTermination );
  53973. 8016856: 480c ldr r0, [pc, #48] @ (8016888 <prvInitialiseTaskLists+0x70>)
  53974. 8016858: f7fe f80a bl 8014870 <vListInitialise>
  53975. }
  53976. #endif /* INCLUDE_vTaskDelete */
  53977. #if ( INCLUDE_vTaskSuspend == 1 )
  53978. {
  53979. vListInitialise( &xSuspendedTaskList );
  53980. 801685c: 480b ldr r0, [pc, #44] @ (801688c <prvInitialiseTaskLists+0x74>)
  53981. 801685e: f7fe f807 bl 8014870 <vListInitialise>
  53982. }
  53983. #endif /* INCLUDE_vTaskSuspend */
  53984. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  53985. using list2. */
  53986. pxDelayedTaskList = &xDelayedTaskList1;
  53987. 8016862: 4b0b ldr r3, [pc, #44] @ (8016890 <prvInitialiseTaskLists+0x78>)
  53988. 8016864: 4a05 ldr r2, [pc, #20] @ (801687c <prvInitialiseTaskLists+0x64>)
  53989. 8016866: 601a str r2, [r3, #0]
  53990. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  53991. 8016868: 4b0a ldr r3, [pc, #40] @ (8016894 <prvInitialiseTaskLists+0x7c>)
  53992. 801686a: 4a05 ldr r2, [pc, #20] @ (8016880 <prvInitialiseTaskLists+0x68>)
  53993. 801686c: 601a str r2, [r3, #0]
  53994. }
  53995. 801686e: bf00 nop
  53996. 8016870: 3708 adds r7, #8
  53997. 8016872: 46bd mov sp, r7
  53998. 8016874: bd80 pop {r7, pc}
  53999. 8016876: bf00 nop
  54000. 8016878: 240029fc .word 0x240029fc
  54001. 801687c: 24002e5c .word 0x24002e5c
  54002. 8016880: 24002e70 .word 0x24002e70
  54003. 8016884: 24002e8c .word 0x24002e8c
  54004. 8016888: 24002ea0 .word 0x24002ea0
  54005. 801688c: 24002eb8 .word 0x24002eb8
  54006. 8016890: 24002e84 .word 0x24002e84
  54007. 8016894: 24002e88 .word 0x24002e88
  54008. 08016898 <prvCheckTasksWaitingTermination>:
  54009. /*-----------------------------------------------------------*/
  54010. static void prvCheckTasksWaitingTermination( void )
  54011. {
  54012. 8016898: b580 push {r7, lr}
  54013. 801689a: b082 sub sp, #8
  54014. 801689c: af00 add r7, sp, #0
  54015. {
  54016. TCB_t *pxTCB;
  54017. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  54018. being called too often in the idle task. */
  54019. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54020. 801689e: e019 b.n 80168d4 <prvCheckTasksWaitingTermination+0x3c>
  54021. {
  54022. taskENTER_CRITICAL();
  54023. 80168a0: f001 fa12 bl 8017cc8 <vPortEnterCritical>
  54024. {
  54025. 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. */
  54026. 80168a4: 4b10 ldr r3, [pc, #64] @ (80168e8 <prvCheckTasksWaitingTermination+0x50>)
  54027. 80168a6: 68db ldr r3, [r3, #12]
  54028. 80168a8: 68db ldr r3, [r3, #12]
  54029. 80168aa: 607b str r3, [r7, #4]
  54030. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54031. 80168ac: 687b ldr r3, [r7, #4]
  54032. 80168ae: 3304 adds r3, #4
  54033. 80168b0: 4618 mov r0, r3
  54034. 80168b2: f7fe f867 bl 8014984 <uxListRemove>
  54035. --uxCurrentNumberOfTasks;
  54036. 80168b6: 4b0d ldr r3, [pc, #52] @ (80168ec <prvCheckTasksWaitingTermination+0x54>)
  54037. 80168b8: 681b ldr r3, [r3, #0]
  54038. 80168ba: 3b01 subs r3, #1
  54039. 80168bc: 4a0b ldr r2, [pc, #44] @ (80168ec <prvCheckTasksWaitingTermination+0x54>)
  54040. 80168be: 6013 str r3, [r2, #0]
  54041. --uxDeletedTasksWaitingCleanUp;
  54042. 80168c0: 4b0b ldr r3, [pc, #44] @ (80168f0 <prvCheckTasksWaitingTermination+0x58>)
  54043. 80168c2: 681b ldr r3, [r3, #0]
  54044. 80168c4: 3b01 subs r3, #1
  54045. 80168c6: 4a0a ldr r2, [pc, #40] @ (80168f0 <prvCheckTasksWaitingTermination+0x58>)
  54046. 80168c8: 6013 str r3, [r2, #0]
  54047. }
  54048. taskEXIT_CRITICAL();
  54049. 80168ca: f001 fa2f bl 8017d2c <vPortExitCritical>
  54050. prvDeleteTCB( pxTCB );
  54051. 80168ce: 6878 ldr r0, [r7, #4]
  54052. 80168d0: f000 f810 bl 80168f4 <prvDeleteTCB>
  54053. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54054. 80168d4: 4b06 ldr r3, [pc, #24] @ (80168f0 <prvCheckTasksWaitingTermination+0x58>)
  54055. 80168d6: 681b ldr r3, [r3, #0]
  54056. 80168d8: 2b00 cmp r3, #0
  54057. 80168da: d1e1 bne.n 80168a0 <prvCheckTasksWaitingTermination+0x8>
  54058. }
  54059. }
  54060. #endif /* INCLUDE_vTaskDelete */
  54061. }
  54062. 80168dc: bf00 nop
  54063. 80168de: bf00 nop
  54064. 80168e0: 3708 adds r7, #8
  54065. 80168e2: 46bd mov sp, r7
  54066. 80168e4: bd80 pop {r7, pc}
  54067. 80168e6: bf00 nop
  54068. 80168e8: 24002ea0 .word 0x24002ea0
  54069. 80168ec: 24002ecc .word 0x24002ecc
  54070. 80168f0: 24002eb4 .word 0x24002eb4
  54071. 080168f4 <prvDeleteTCB>:
  54072. /*-----------------------------------------------------------*/
  54073. #if ( INCLUDE_vTaskDelete == 1 )
  54074. static void prvDeleteTCB( TCB_t *pxTCB )
  54075. {
  54076. 80168f4: b580 push {r7, lr}
  54077. 80168f6: b084 sub sp, #16
  54078. 80168f8: af00 add r7, sp, #0
  54079. 80168fa: 6078 str r0, [r7, #4]
  54080. to the task to free any memory allocated at the application level.
  54081. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  54082. for additional information. */
  54083. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  54084. {
  54085. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  54086. 80168fc: 687b ldr r3, [r7, #4]
  54087. 80168fe: 3354 adds r3, #84 @ 0x54
  54088. 8016900: 4618 mov r0, r3
  54089. 8016902: f001 fcf9 bl 80182f8 <_reclaim_reent>
  54090. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  54091. {
  54092. /* The task could have been allocated statically or dynamically, so
  54093. check what was statically allocated before trying to free the
  54094. memory. */
  54095. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  54096. 8016906: 687b ldr r3, [r7, #4]
  54097. 8016908: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54098. 801690c: 2b00 cmp r3, #0
  54099. 801690e: d108 bne.n 8016922 <prvDeleteTCB+0x2e>
  54100. {
  54101. /* Both the stack and TCB were allocated dynamically, so both
  54102. must be freed. */
  54103. vPortFree( pxTCB->pxStack );
  54104. 8016910: 687b ldr r3, [r7, #4]
  54105. 8016912: 6b1b ldr r3, [r3, #48] @ 0x30
  54106. 8016914: 4618 mov r0, r3
  54107. 8016916: f001 fbc7 bl 80180a8 <vPortFree>
  54108. vPortFree( pxTCB );
  54109. 801691a: 6878 ldr r0, [r7, #4]
  54110. 801691c: f001 fbc4 bl 80180a8 <vPortFree>
  54111. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54112. mtCOVERAGE_TEST_MARKER();
  54113. }
  54114. }
  54115. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  54116. }
  54117. 8016920: e019 b.n 8016956 <prvDeleteTCB+0x62>
  54118. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  54119. 8016922: 687b ldr r3, [r7, #4]
  54120. 8016924: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54121. 8016928: 2b01 cmp r3, #1
  54122. 801692a: d103 bne.n 8016934 <prvDeleteTCB+0x40>
  54123. vPortFree( pxTCB );
  54124. 801692c: 6878 ldr r0, [r7, #4]
  54125. 801692e: f001 fbbb bl 80180a8 <vPortFree>
  54126. }
  54127. 8016932: e010 b.n 8016956 <prvDeleteTCB+0x62>
  54128. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54129. 8016934: 687b ldr r3, [r7, #4]
  54130. 8016936: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54131. 801693a: 2b02 cmp r3, #2
  54132. 801693c: d00b beq.n 8016956 <prvDeleteTCB+0x62>
  54133. __asm volatile
  54134. 801693e: f04f 0350 mov.w r3, #80 @ 0x50
  54135. 8016942: f383 8811 msr BASEPRI, r3
  54136. 8016946: f3bf 8f6f isb sy
  54137. 801694a: f3bf 8f4f dsb sy
  54138. 801694e: 60fb str r3, [r7, #12]
  54139. }
  54140. 8016950: bf00 nop
  54141. 8016952: bf00 nop
  54142. 8016954: e7fd b.n 8016952 <prvDeleteTCB+0x5e>
  54143. }
  54144. 8016956: bf00 nop
  54145. 8016958: 3710 adds r7, #16
  54146. 801695a: 46bd mov sp, r7
  54147. 801695c: bd80 pop {r7, pc}
  54148. ...
  54149. 08016960 <prvResetNextTaskUnblockTime>:
  54150. #endif /* INCLUDE_vTaskDelete */
  54151. /*-----------------------------------------------------------*/
  54152. static void prvResetNextTaskUnblockTime( void )
  54153. {
  54154. 8016960: b480 push {r7}
  54155. 8016962: b083 sub sp, #12
  54156. 8016964: af00 add r7, sp, #0
  54157. TCB_t *pxTCB;
  54158. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  54159. 8016966: 4b0c ldr r3, [pc, #48] @ (8016998 <prvResetNextTaskUnblockTime+0x38>)
  54160. 8016968: 681b ldr r3, [r3, #0]
  54161. 801696a: 681b ldr r3, [r3, #0]
  54162. 801696c: 2b00 cmp r3, #0
  54163. 801696e: d104 bne.n 801697a <prvResetNextTaskUnblockTime+0x1a>
  54164. {
  54165. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  54166. the maximum possible value so it is extremely unlikely that the
  54167. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  54168. there is an item in the delayed list. */
  54169. xNextTaskUnblockTime = portMAX_DELAY;
  54170. 8016970: 4b0a ldr r3, [pc, #40] @ (801699c <prvResetNextTaskUnblockTime+0x3c>)
  54171. 8016972: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  54172. 8016976: 601a str r2, [r3, #0]
  54173. which the task at the head of the delayed list should be removed
  54174. from the Blocked state. */
  54175. ( 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. */
  54176. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54177. }
  54178. }
  54179. 8016978: e008 b.n 801698c <prvResetNextTaskUnblockTime+0x2c>
  54180. ( 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. */
  54181. 801697a: 4b07 ldr r3, [pc, #28] @ (8016998 <prvResetNextTaskUnblockTime+0x38>)
  54182. 801697c: 681b ldr r3, [r3, #0]
  54183. 801697e: 68db ldr r3, [r3, #12]
  54184. 8016980: 68db ldr r3, [r3, #12]
  54185. 8016982: 607b str r3, [r7, #4]
  54186. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54187. 8016984: 687b ldr r3, [r7, #4]
  54188. 8016986: 685b ldr r3, [r3, #4]
  54189. 8016988: 4a04 ldr r2, [pc, #16] @ (801699c <prvResetNextTaskUnblockTime+0x3c>)
  54190. 801698a: 6013 str r3, [r2, #0]
  54191. }
  54192. 801698c: bf00 nop
  54193. 801698e: 370c adds r7, #12
  54194. 8016990: 46bd mov sp, r7
  54195. 8016992: f85d 7b04 ldr.w r7, [sp], #4
  54196. 8016996: 4770 bx lr
  54197. 8016998: 24002e84 .word 0x24002e84
  54198. 801699c: 24002eec .word 0x24002eec
  54199. 080169a0 <xTaskGetCurrentTaskHandle>:
  54200. /*-----------------------------------------------------------*/
  54201. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  54202. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  54203. {
  54204. 80169a0: b480 push {r7}
  54205. 80169a2: b083 sub sp, #12
  54206. 80169a4: af00 add r7, sp, #0
  54207. TaskHandle_t xReturn;
  54208. /* A critical section is not required as this is not called from
  54209. an interrupt and the current TCB will always be the same for any
  54210. individual execution thread. */
  54211. xReturn = pxCurrentTCB;
  54212. 80169a6: 4b05 ldr r3, [pc, #20] @ (80169bc <xTaskGetCurrentTaskHandle+0x1c>)
  54213. 80169a8: 681b ldr r3, [r3, #0]
  54214. 80169aa: 607b str r3, [r7, #4]
  54215. return xReturn;
  54216. 80169ac: 687b ldr r3, [r7, #4]
  54217. }
  54218. 80169ae: 4618 mov r0, r3
  54219. 80169b0: 370c adds r7, #12
  54220. 80169b2: 46bd mov sp, r7
  54221. 80169b4: f85d 7b04 ldr.w r7, [sp], #4
  54222. 80169b8: 4770 bx lr
  54223. 80169ba: bf00 nop
  54224. 80169bc: 240029f8 .word 0x240029f8
  54225. 080169c0 <xTaskGetSchedulerState>:
  54226. /*-----------------------------------------------------------*/
  54227. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  54228. BaseType_t xTaskGetSchedulerState( void )
  54229. {
  54230. 80169c0: b480 push {r7}
  54231. 80169c2: b083 sub sp, #12
  54232. 80169c4: af00 add r7, sp, #0
  54233. BaseType_t xReturn;
  54234. if( xSchedulerRunning == pdFALSE )
  54235. 80169c6: 4b0b ldr r3, [pc, #44] @ (80169f4 <xTaskGetSchedulerState+0x34>)
  54236. 80169c8: 681b ldr r3, [r3, #0]
  54237. 80169ca: 2b00 cmp r3, #0
  54238. 80169cc: d102 bne.n 80169d4 <xTaskGetSchedulerState+0x14>
  54239. {
  54240. xReturn = taskSCHEDULER_NOT_STARTED;
  54241. 80169ce: 2301 movs r3, #1
  54242. 80169d0: 607b str r3, [r7, #4]
  54243. 80169d2: e008 b.n 80169e6 <xTaskGetSchedulerState+0x26>
  54244. }
  54245. else
  54246. {
  54247. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54248. 80169d4: 4b08 ldr r3, [pc, #32] @ (80169f8 <xTaskGetSchedulerState+0x38>)
  54249. 80169d6: 681b ldr r3, [r3, #0]
  54250. 80169d8: 2b00 cmp r3, #0
  54251. 80169da: d102 bne.n 80169e2 <xTaskGetSchedulerState+0x22>
  54252. {
  54253. xReturn = taskSCHEDULER_RUNNING;
  54254. 80169dc: 2302 movs r3, #2
  54255. 80169de: 607b str r3, [r7, #4]
  54256. 80169e0: e001 b.n 80169e6 <xTaskGetSchedulerState+0x26>
  54257. }
  54258. else
  54259. {
  54260. xReturn = taskSCHEDULER_SUSPENDED;
  54261. 80169e2: 2300 movs r3, #0
  54262. 80169e4: 607b str r3, [r7, #4]
  54263. }
  54264. }
  54265. return xReturn;
  54266. 80169e6: 687b ldr r3, [r7, #4]
  54267. }
  54268. 80169e8: 4618 mov r0, r3
  54269. 80169ea: 370c adds r7, #12
  54270. 80169ec: 46bd mov sp, r7
  54271. 80169ee: f85d 7b04 ldr.w r7, [sp], #4
  54272. 80169f2: 4770 bx lr
  54273. 80169f4: 24002ed8 .word 0x24002ed8
  54274. 80169f8: 24002ef4 .word 0x24002ef4
  54275. 080169fc <xTaskPriorityInherit>:
  54276. /*-----------------------------------------------------------*/
  54277. #if ( configUSE_MUTEXES == 1 )
  54278. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  54279. {
  54280. 80169fc: b580 push {r7, lr}
  54281. 80169fe: b084 sub sp, #16
  54282. 8016a00: af00 add r7, sp, #0
  54283. 8016a02: 6078 str r0, [r7, #4]
  54284. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  54285. 8016a04: 687b ldr r3, [r7, #4]
  54286. 8016a06: 60bb str r3, [r7, #8]
  54287. BaseType_t xReturn = pdFALSE;
  54288. 8016a08: 2300 movs r3, #0
  54289. 8016a0a: 60fb str r3, [r7, #12]
  54290. /* If the mutex was given back by an interrupt while the queue was
  54291. locked then the mutex holder might now be NULL. _RB_ Is this still
  54292. needed as interrupts can no longer use mutexes? */
  54293. if( pxMutexHolder != NULL )
  54294. 8016a0c: 687b ldr r3, [r7, #4]
  54295. 8016a0e: 2b00 cmp r3, #0
  54296. 8016a10: d051 beq.n 8016ab6 <xTaskPriorityInherit+0xba>
  54297. {
  54298. /* If the holder of the mutex has a priority below the priority of
  54299. the task attempting to obtain the mutex then it will temporarily
  54300. inherit the priority of the task attempting to obtain the mutex. */
  54301. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  54302. 8016a12: 68bb ldr r3, [r7, #8]
  54303. 8016a14: 6ada ldr r2, [r3, #44] @ 0x2c
  54304. 8016a16: 4b2a ldr r3, [pc, #168] @ (8016ac0 <xTaskPriorityInherit+0xc4>)
  54305. 8016a18: 681b ldr r3, [r3, #0]
  54306. 8016a1a: 6adb ldr r3, [r3, #44] @ 0x2c
  54307. 8016a1c: 429a cmp r2, r3
  54308. 8016a1e: d241 bcs.n 8016aa4 <xTaskPriorityInherit+0xa8>
  54309. {
  54310. /* Adjust the mutex holder state to account for its new
  54311. priority. Only reset the event list item value if the value is
  54312. not being used for anything else. */
  54313. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54314. 8016a20: 68bb ldr r3, [r7, #8]
  54315. 8016a22: 699b ldr r3, [r3, #24]
  54316. 8016a24: 2b00 cmp r3, #0
  54317. 8016a26: db06 blt.n 8016a36 <xTaskPriorityInherit+0x3a>
  54318. {
  54319. 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. */
  54320. 8016a28: 4b25 ldr r3, [pc, #148] @ (8016ac0 <xTaskPriorityInherit+0xc4>)
  54321. 8016a2a: 681b ldr r3, [r3, #0]
  54322. 8016a2c: 6adb ldr r3, [r3, #44] @ 0x2c
  54323. 8016a2e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54324. 8016a32: 68bb ldr r3, [r7, #8]
  54325. 8016a34: 619a str r2, [r3, #24]
  54326. mtCOVERAGE_TEST_MARKER();
  54327. }
  54328. /* If the task being modified is in the ready state it will need
  54329. to be moved into a new list. */
  54330. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  54331. 8016a36: 68bb ldr r3, [r7, #8]
  54332. 8016a38: 6959 ldr r1, [r3, #20]
  54333. 8016a3a: 68bb ldr r3, [r7, #8]
  54334. 8016a3c: 6ada ldr r2, [r3, #44] @ 0x2c
  54335. 8016a3e: 4613 mov r3, r2
  54336. 8016a40: 009b lsls r3, r3, #2
  54337. 8016a42: 4413 add r3, r2
  54338. 8016a44: 009b lsls r3, r3, #2
  54339. 8016a46: 4a1f ldr r2, [pc, #124] @ (8016ac4 <xTaskPriorityInherit+0xc8>)
  54340. 8016a48: 4413 add r3, r2
  54341. 8016a4a: 4299 cmp r1, r3
  54342. 8016a4c: d122 bne.n 8016a94 <xTaskPriorityInherit+0x98>
  54343. {
  54344. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54345. 8016a4e: 68bb ldr r3, [r7, #8]
  54346. 8016a50: 3304 adds r3, #4
  54347. 8016a52: 4618 mov r0, r3
  54348. 8016a54: f7fd ff96 bl 8014984 <uxListRemove>
  54349. {
  54350. mtCOVERAGE_TEST_MARKER();
  54351. }
  54352. /* Inherit the priority before being moved into the new list. */
  54353. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54354. 8016a58: 4b19 ldr r3, [pc, #100] @ (8016ac0 <xTaskPriorityInherit+0xc4>)
  54355. 8016a5a: 681b ldr r3, [r3, #0]
  54356. 8016a5c: 6ada ldr r2, [r3, #44] @ 0x2c
  54357. 8016a5e: 68bb ldr r3, [r7, #8]
  54358. 8016a60: 62da str r2, [r3, #44] @ 0x2c
  54359. prvAddTaskToReadyList( pxMutexHolderTCB );
  54360. 8016a62: 68bb ldr r3, [r7, #8]
  54361. 8016a64: 6ada ldr r2, [r3, #44] @ 0x2c
  54362. 8016a66: 4b18 ldr r3, [pc, #96] @ (8016ac8 <xTaskPriorityInherit+0xcc>)
  54363. 8016a68: 681b ldr r3, [r3, #0]
  54364. 8016a6a: 429a cmp r2, r3
  54365. 8016a6c: d903 bls.n 8016a76 <xTaskPriorityInherit+0x7a>
  54366. 8016a6e: 68bb ldr r3, [r7, #8]
  54367. 8016a70: 6adb ldr r3, [r3, #44] @ 0x2c
  54368. 8016a72: 4a15 ldr r2, [pc, #84] @ (8016ac8 <xTaskPriorityInherit+0xcc>)
  54369. 8016a74: 6013 str r3, [r2, #0]
  54370. 8016a76: 68bb ldr r3, [r7, #8]
  54371. 8016a78: 6ada ldr r2, [r3, #44] @ 0x2c
  54372. 8016a7a: 4613 mov r3, r2
  54373. 8016a7c: 009b lsls r3, r3, #2
  54374. 8016a7e: 4413 add r3, r2
  54375. 8016a80: 009b lsls r3, r3, #2
  54376. 8016a82: 4a10 ldr r2, [pc, #64] @ (8016ac4 <xTaskPriorityInherit+0xc8>)
  54377. 8016a84: 441a add r2, r3
  54378. 8016a86: 68bb ldr r3, [r7, #8]
  54379. 8016a88: 3304 adds r3, #4
  54380. 8016a8a: 4619 mov r1, r3
  54381. 8016a8c: 4610 mov r0, r2
  54382. 8016a8e: f7fd ff1c bl 80148ca <vListInsertEnd>
  54383. 8016a92: e004 b.n 8016a9e <xTaskPriorityInherit+0xa2>
  54384. }
  54385. else
  54386. {
  54387. /* Just inherit the priority. */
  54388. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54389. 8016a94: 4b0a ldr r3, [pc, #40] @ (8016ac0 <xTaskPriorityInherit+0xc4>)
  54390. 8016a96: 681b ldr r3, [r3, #0]
  54391. 8016a98: 6ada ldr r2, [r3, #44] @ 0x2c
  54392. 8016a9a: 68bb ldr r3, [r7, #8]
  54393. 8016a9c: 62da str r2, [r3, #44] @ 0x2c
  54394. }
  54395. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  54396. /* Inheritance occurred. */
  54397. xReturn = pdTRUE;
  54398. 8016a9e: 2301 movs r3, #1
  54399. 8016aa0: 60fb str r3, [r7, #12]
  54400. 8016aa2: e008 b.n 8016ab6 <xTaskPriorityInherit+0xba>
  54401. }
  54402. else
  54403. {
  54404. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  54405. 8016aa4: 68bb ldr r3, [r7, #8]
  54406. 8016aa6: 6cda ldr r2, [r3, #76] @ 0x4c
  54407. 8016aa8: 4b05 ldr r3, [pc, #20] @ (8016ac0 <xTaskPriorityInherit+0xc4>)
  54408. 8016aaa: 681b ldr r3, [r3, #0]
  54409. 8016aac: 6adb ldr r3, [r3, #44] @ 0x2c
  54410. 8016aae: 429a cmp r2, r3
  54411. 8016ab0: d201 bcs.n 8016ab6 <xTaskPriorityInherit+0xba>
  54412. current priority of the mutex holder is not lower than the
  54413. priority of the task attempting to take the mutex.
  54414. Therefore the mutex holder must have already inherited a
  54415. priority, but inheritance would have occurred if that had
  54416. not been the case. */
  54417. xReturn = pdTRUE;
  54418. 8016ab2: 2301 movs r3, #1
  54419. 8016ab4: 60fb str r3, [r7, #12]
  54420. else
  54421. {
  54422. mtCOVERAGE_TEST_MARKER();
  54423. }
  54424. return xReturn;
  54425. 8016ab6: 68fb ldr r3, [r7, #12]
  54426. }
  54427. 8016ab8: 4618 mov r0, r3
  54428. 8016aba: 3710 adds r7, #16
  54429. 8016abc: 46bd mov sp, r7
  54430. 8016abe: bd80 pop {r7, pc}
  54431. 8016ac0: 240029f8 .word 0x240029f8
  54432. 8016ac4: 240029fc .word 0x240029fc
  54433. 8016ac8: 24002ed4 .word 0x24002ed4
  54434. 08016acc <xTaskPriorityDisinherit>:
  54435. /*-----------------------------------------------------------*/
  54436. #if ( configUSE_MUTEXES == 1 )
  54437. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  54438. {
  54439. 8016acc: b580 push {r7, lr}
  54440. 8016ace: b086 sub sp, #24
  54441. 8016ad0: af00 add r7, sp, #0
  54442. 8016ad2: 6078 str r0, [r7, #4]
  54443. TCB_t * const pxTCB = pxMutexHolder;
  54444. 8016ad4: 687b ldr r3, [r7, #4]
  54445. 8016ad6: 613b str r3, [r7, #16]
  54446. BaseType_t xReturn = pdFALSE;
  54447. 8016ad8: 2300 movs r3, #0
  54448. 8016ada: 617b str r3, [r7, #20]
  54449. if( pxMutexHolder != NULL )
  54450. 8016adc: 687b ldr r3, [r7, #4]
  54451. 8016ade: 2b00 cmp r3, #0
  54452. 8016ae0: d058 beq.n 8016b94 <xTaskPriorityDisinherit+0xc8>
  54453. {
  54454. /* A task can only have an inherited priority if it holds the mutex.
  54455. If the mutex is held by a task then it cannot be given from an
  54456. interrupt, and if a mutex is given by the holding task then it must
  54457. be the running state task. */
  54458. configASSERT( pxTCB == pxCurrentTCB );
  54459. 8016ae2: 4b2f ldr r3, [pc, #188] @ (8016ba0 <xTaskPriorityDisinherit+0xd4>)
  54460. 8016ae4: 681b ldr r3, [r3, #0]
  54461. 8016ae6: 693a ldr r2, [r7, #16]
  54462. 8016ae8: 429a cmp r2, r3
  54463. 8016aea: d00b beq.n 8016b04 <xTaskPriorityDisinherit+0x38>
  54464. __asm volatile
  54465. 8016aec: f04f 0350 mov.w r3, #80 @ 0x50
  54466. 8016af0: f383 8811 msr BASEPRI, r3
  54467. 8016af4: f3bf 8f6f isb sy
  54468. 8016af8: f3bf 8f4f dsb sy
  54469. 8016afc: 60fb str r3, [r7, #12]
  54470. }
  54471. 8016afe: bf00 nop
  54472. 8016b00: bf00 nop
  54473. 8016b02: e7fd b.n 8016b00 <xTaskPriorityDisinherit+0x34>
  54474. configASSERT( pxTCB->uxMutexesHeld );
  54475. 8016b04: 693b ldr r3, [r7, #16]
  54476. 8016b06: 6d1b ldr r3, [r3, #80] @ 0x50
  54477. 8016b08: 2b00 cmp r3, #0
  54478. 8016b0a: d10b bne.n 8016b24 <xTaskPriorityDisinherit+0x58>
  54479. __asm volatile
  54480. 8016b0c: f04f 0350 mov.w r3, #80 @ 0x50
  54481. 8016b10: f383 8811 msr BASEPRI, r3
  54482. 8016b14: f3bf 8f6f isb sy
  54483. 8016b18: f3bf 8f4f dsb sy
  54484. 8016b1c: 60bb str r3, [r7, #8]
  54485. }
  54486. 8016b1e: bf00 nop
  54487. 8016b20: bf00 nop
  54488. 8016b22: e7fd b.n 8016b20 <xTaskPriorityDisinherit+0x54>
  54489. ( pxTCB->uxMutexesHeld )--;
  54490. 8016b24: 693b ldr r3, [r7, #16]
  54491. 8016b26: 6d1b ldr r3, [r3, #80] @ 0x50
  54492. 8016b28: 1e5a subs r2, r3, #1
  54493. 8016b2a: 693b ldr r3, [r7, #16]
  54494. 8016b2c: 651a str r2, [r3, #80] @ 0x50
  54495. /* Has the holder of the mutex inherited the priority of another
  54496. task? */
  54497. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  54498. 8016b2e: 693b ldr r3, [r7, #16]
  54499. 8016b30: 6ada ldr r2, [r3, #44] @ 0x2c
  54500. 8016b32: 693b ldr r3, [r7, #16]
  54501. 8016b34: 6cdb ldr r3, [r3, #76] @ 0x4c
  54502. 8016b36: 429a cmp r2, r3
  54503. 8016b38: d02c beq.n 8016b94 <xTaskPriorityDisinherit+0xc8>
  54504. {
  54505. /* Only disinherit if no other mutexes are held. */
  54506. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  54507. 8016b3a: 693b ldr r3, [r7, #16]
  54508. 8016b3c: 6d1b ldr r3, [r3, #80] @ 0x50
  54509. 8016b3e: 2b00 cmp r3, #0
  54510. 8016b40: d128 bne.n 8016b94 <xTaskPriorityDisinherit+0xc8>
  54511. /* A task can only have an inherited priority if it holds
  54512. the mutex. If the mutex is held by a task then it cannot be
  54513. given from an interrupt, and if a mutex is given by the
  54514. holding task then it must be the running state task. Remove
  54515. the holding task from the ready/delayed list. */
  54516. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54517. 8016b42: 693b ldr r3, [r7, #16]
  54518. 8016b44: 3304 adds r3, #4
  54519. 8016b46: 4618 mov r0, r3
  54520. 8016b48: f7fd ff1c bl 8014984 <uxListRemove>
  54521. }
  54522. /* Disinherit the priority before adding the task into the
  54523. new ready list. */
  54524. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54525. pxTCB->uxPriority = pxTCB->uxBasePriority;
  54526. 8016b4c: 693b ldr r3, [r7, #16]
  54527. 8016b4e: 6cda ldr r2, [r3, #76] @ 0x4c
  54528. 8016b50: 693b ldr r3, [r7, #16]
  54529. 8016b52: 62da str r2, [r3, #44] @ 0x2c
  54530. /* Reset the event list item value. It cannot be in use for
  54531. any other purpose if this task is running, and it must be
  54532. running to give back the mutex. */
  54533. 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. */
  54534. 8016b54: 693b ldr r3, [r7, #16]
  54535. 8016b56: 6adb ldr r3, [r3, #44] @ 0x2c
  54536. 8016b58: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54537. 8016b5c: 693b ldr r3, [r7, #16]
  54538. 8016b5e: 619a str r2, [r3, #24]
  54539. prvAddTaskToReadyList( pxTCB );
  54540. 8016b60: 693b ldr r3, [r7, #16]
  54541. 8016b62: 6ada ldr r2, [r3, #44] @ 0x2c
  54542. 8016b64: 4b0f ldr r3, [pc, #60] @ (8016ba4 <xTaskPriorityDisinherit+0xd8>)
  54543. 8016b66: 681b ldr r3, [r3, #0]
  54544. 8016b68: 429a cmp r2, r3
  54545. 8016b6a: d903 bls.n 8016b74 <xTaskPriorityDisinherit+0xa8>
  54546. 8016b6c: 693b ldr r3, [r7, #16]
  54547. 8016b6e: 6adb ldr r3, [r3, #44] @ 0x2c
  54548. 8016b70: 4a0c ldr r2, [pc, #48] @ (8016ba4 <xTaskPriorityDisinherit+0xd8>)
  54549. 8016b72: 6013 str r3, [r2, #0]
  54550. 8016b74: 693b ldr r3, [r7, #16]
  54551. 8016b76: 6ada ldr r2, [r3, #44] @ 0x2c
  54552. 8016b78: 4613 mov r3, r2
  54553. 8016b7a: 009b lsls r3, r3, #2
  54554. 8016b7c: 4413 add r3, r2
  54555. 8016b7e: 009b lsls r3, r3, #2
  54556. 8016b80: 4a09 ldr r2, [pc, #36] @ (8016ba8 <xTaskPriorityDisinherit+0xdc>)
  54557. 8016b82: 441a add r2, r3
  54558. 8016b84: 693b ldr r3, [r7, #16]
  54559. 8016b86: 3304 adds r3, #4
  54560. 8016b88: 4619 mov r1, r3
  54561. 8016b8a: 4610 mov r0, r2
  54562. 8016b8c: f7fd fe9d bl 80148ca <vListInsertEnd>
  54563. in an order different to that in which they were taken.
  54564. If a context switch did not occur when the first mutex was
  54565. returned, even if a task was waiting on it, then a context
  54566. switch should occur when the last mutex is returned whether
  54567. a task is waiting on it or not. */
  54568. xReturn = pdTRUE;
  54569. 8016b90: 2301 movs r3, #1
  54570. 8016b92: 617b str r3, [r7, #20]
  54571. else
  54572. {
  54573. mtCOVERAGE_TEST_MARKER();
  54574. }
  54575. return xReturn;
  54576. 8016b94: 697b ldr r3, [r7, #20]
  54577. }
  54578. 8016b96: 4618 mov r0, r3
  54579. 8016b98: 3718 adds r7, #24
  54580. 8016b9a: 46bd mov sp, r7
  54581. 8016b9c: bd80 pop {r7, pc}
  54582. 8016b9e: bf00 nop
  54583. 8016ba0: 240029f8 .word 0x240029f8
  54584. 8016ba4: 24002ed4 .word 0x24002ed4
  54585. 8016ba8: 240029fc .word 0x240029fc
  54586. 08016bac <vTaskPriorityDisinheritAfterTimeout>:
  54587. /*-----------------------------------------------------------*/
  54588. #if ( configUSE_MUTEXES == 1 )
  54589. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  54590. {
  54591. 8016bac: b580 push {r7, lr}
  54592. 8016bae: b088 sub sp, #32
  54593. 8016bb0: af00 add r7, sp, #0
  54594. 8016bb2: 6078 str r0, [r7, #4]
  54595. 8016bb4: 6039 str r1, [r7, #0]
  54596. TCB_t * const pxTCB = pxMutexHolder;
  54597. 8016bb6: 687b ldr r3, [r7, #4]
  54598. 8016bb8: 61bb str r3, [r7, #24]
  54599. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  54600. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  54601. 8016bba: 2301 movs r3, #1
  54602. 8016bbc: 617b str r3, [r7, #20]
  54603. if( pxMutexHolder != NULL )
  54604. 8016bbe: 687b ldr r3, [r7, #4]
  54605. 8016bc0: 2b00 cmp r3, #0
  54606. 8016bc2: d06c beq.n 8016c9e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54607. {
  54608. /* If pxMutexHolder is not NULL then the holder must hold at least
  54609. one mutex. */
  54610. configASSERT( pxTCB->uxMutexesHeld );
  54611. 8016bc4: 69bb ldr r3, [r7, #24]
  54612. 8016bc6: 6d1b ldr r3, [r3, #80] @ 0x50
  54613. 8016bc8: 2b00 cmp r3, #0
  54614. 8016bca: d10b bne.n 8016be4 <vTaskPriorityDisinheritAfterTimeout+0x38>
  54615. __asm volatile
  54616. 8016bcc: f04f 0350 mov.w r3, #80 @ 0x50
  54617. 8016bd0: f383 8811 msr BASEPRI, r3
  54618. 8016bd4: f3bf 8f6f isb sy
  54619. 8016bd8: f3bf 8f4f dsb sy
  54620. 8016bdc: 60fb str r3, [r7, #12]
  54621. }
  54622. 8016bde: bf00 nop
  54623. 8016be0: bf00 nop
  54624. 8016be2: e7fd b.n 8016be0 <vTaskPriorityDisinheritAfterTimeout+0x34>
  54625. /* Determine the priority to which the priority of the task that
  54626. holds the mutex should be set. This will be the greater of the
  54627. holding task's base priority and the priority of the highest
  54628. priority task that is waiting to obtain the mutex. */
  54629. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  54630. 8016be4: 69bb ldr r3, [r7, #24]
  54631. 8016be6: 6cdb ldr r3, [r3, #76] @ 0x4c
  54632. 8016be8: 683a ldr r2, [r7, #0]
  54633. 8016bea: 429a cmp r2, r3
  54634. 8016bec: d902 bls.n 8016bf4 <vTaskPriorityDisinheritAfterTimeout+0x48>
  54635. {
  54636. uxPriorityToUse = uxHighestPriorityWaitingTask;
  54637. 8016bee: 683b ldr r3, [r7, #0]
  54638. 8016bf0: 61fb str r3, [r7, #28]
  54639. 8016bf2: e002 b.n 8016bfa <vTaskPriorityDisinheritAfterTimeout+0x4e>
  54640. }
  54641. else
  54642. {
  54643. uxPriorityToUse = pxTCB->uxBasePriority;
  54644. 8016bf4: 69bb ldr r3, [r7, #24]
  54645. 8016bf6: 6cdb ldr r3, [r3, #76] @ 0x4c
  54646. 8016bf8: 61fb str r3, [r7, #28]
  54647. }
  54648. /* Does the priority need to change? */
  54649. if( pxTCB->uxPriority != uxPriorityToUse )
  54650. 8016bfa: 69bb ldr r3, [r7, #24]
  54651. 8016bfc: 6adb ldr r3, [r3, #44] @ 0x2c
  54652. 8016bfe: 69fa ldr r2, [r7, #28]
  54653. 8016c00: 429a cmp r2, r3
  54654. 8016c02: d04c beq.n 8016c9e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54655. {
  54656. /* Only disinherit if no other mutexes are held. This is a
  54657. simplification in the priority inheritance implementation. If
  54658. the task that holds the mutex is also holding other mutexes then
  54659. the other mutexes may have caused the priority inheritance. */
  54660. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  54661. 8016c04: 69bb ldr r3, [r7, #24]
  54662. 8016c06: 6d1b ldr r3, [r3, #80] @ 0x50
  54663. 8016c08: 697a ldr r2, [r7, #20]
  54664. 8016c0a: 429a cmp r2, r3
  54665. 8016c0c: d147 bne.n 8016c9e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54666. {
  54667. /* If a task has timed out because it already holds the
  54668. mutex it was trying to obtain then it cannot of inherited
  54669. its own priority. */
  54670. configASSERT( pxTCB != pxCurrentTCB );
  54671. 8016c0e: 4b26 ldr r3, [pc, #152] @ (8016ca8 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  54672. 8016c10: 681b ldr r3, [r3, #0]
  54673. 8016c12: 69ba ldr r2, [r7, #24]
  54674. 8016c14: 429a cmp r2, r3
  54675. 8016c16: d10b bne.n 8016c30 <vTaskPriorityDisinheritAfterTimeout+0x84>
  54676. __asm volatile
  54677. 8016c18: f04f 0350 mov.w r3, #80 @ 0x50
  54678. 8016c1c: f383 8811 msr BASEPRI, r3
  54679. 8016c20: f3bf 8f6f isb sy
  54680. 8016c24: f3bf 8f4f dsb sy
  54681. 8016c28: 60bb str r3, [r7, #8]
  54682. }
  54683. 8016c2a: bf00 nop
  54684. 8016c2c: bf00 nop
  54685. 8016c2e: e7fd b.n 8016c2c <vTaskPriorityDisinheritAfterTimeout+0x80>
  54686. /* Disinherit the priority, remembering the previous
  54687. priority to facilitate determining the subject task's
  54688. state. */
  54689. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54690. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  54691. 8016c30: 69bb ldr r3, [r7, #24]
  54692. 8016c32: 6adb ldr r3, [r3, #44] @ 0x2c
  54693. 8016c34: 613b str r3, [r7, #16]
  54694. pxTCB->uxPriority = uxPriorityToUse;
  54695. 8016c36: 69bb ldr r3, [r7, #24]
  54696. 8016c38: 69fa ldr r2, [r7, #28]
  54697. 8016c3a: 62da str r2, [r3, #44] @ 0x2c
  54698. /* Only reset the event list item value if the value is not
  54699. being used for anything else. */
  54700. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54701. 8016c3c: 69bb ldr r3, [r7, #24]
  54702. 8016c3e: 699b ldr r3, [r3, #24]
  54703. 8016c40: 2b00 cmp r3, #0
  54704. 8016c42: db04 blt.n 8016c4e <vTaskPriorityDisinheritAfterTimeout+0xa2>
  54705. {
  54706. 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. */
  54707. 8016c44: 69fb ldr r3, [r7, #28]
  54708. 8016c46: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54709. 8016c4a: 69bb ldr r3, [r7, #24]
  54710. 8016c4c: 619a str r2, [r3, #24]
  54711. then the task that holds the mutex could be in either the
  54712. Ready, Blocked or Suspended states. Only remove the task
  54713. from its current state list if it is in the Ready state as
  54714. the task's priority is going to change and there is one
  54715. Ready list per priority. */
  54716. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  54717. 8016c4e: 69bb ldr r3, [r7, #24]
  54718. 8016c50: 6959 ldr r1, [r3, #20]
  54719. 8016c52: 693a ldr r2, [r7, #16]
  54720. 8016c54: 4613 mov r3, r2
  54721. 8016c56: 009b lsls r3, r3, #2
  54722. 8016c58: 4413 add r3, r2
  54723. 8016c5a: 009b lsls r3, r3, #2
  54724. 8016c5c: 4a13 ldr r2, [pc, #76] @ (8016cac <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54725. 8016c5e: 4413 add r3, r2
  54726. 8016c60: 4299 cmp r1, r3
  54727. 8016c62: d11c bne.n 8016c9e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54728. {
  54729. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54730. 8016c64: 69bb ldr r3, [r7, #24]
  54731. 8016c66: 3304 adds r3, #4
  54732. 8016c68: 4618 mov r0, r3
  54733. 8016c6a: f7fd fe8b bl 8014984 <uxListRemove>
  54734. else
  54735. {
  54736. mtCOVERAGE_TEST_MARKER();
  54737. }
  54738. prvAddTaskToReadyList( pxTCB );
  54739. 8016c6e: 69bb ldr r3, [r7, #24]
  54740. 8016c70: 6ada ldr r2, [r3, #44] @ 0x2c
  54741. 8016c72: 4b0f ldr r3, [pc, #60] @ (8016cb0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54742. 8016c74: 681b ldr r3, [r3, #0]
  54743. 8016c76: 429a cmp r2, r3
  54744. 8016c78: d903 bls.n 8016c82 <vTaskPriorityDisinheritAfterTimeout+0xd6>
  54745. 8016c7a: 69bb ldr r3, [r7, #24]
  54746. 8016c7c: 6adb ldr r3, [r3, #44] @ 0x2c
  54747. 8016c7e: 4a0c ldr r2, [pc, #48] @ (8016cb0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54748. 8016c80: 6013 str r3, [r2, #0]
  54749. 8016c82: 69bb ldr r3, [r7, #24]
  54750. 8016c84: 6ada ldr r2, [r3, #44] @ 0x2c
  54751. 8016c86: 4613 mov r3, r2
  54752. 8016c88: 009b lsls r3, r3, #2
  54753. 8016c8a: 4413 add r3, r2
  54754. 8016c8c: 009b lsls r3, r3, #2
  54755. 8016c8e: 4a07 ldr r2, [pc, #28] @ (8016cac <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54756. 8016c90: 441a add r2, r3
  54757. 8016c92: 69bb ldr r3, [r7, #24]
  54758. 8016c94: 3304 adds r3, #4
  54759. 8016c96: 4619 mov r1, r3
  54760. 8016c98: 4610 mov r0, r2
  54761. 8016c9a: f7fd fe16 bl 80148ca <vListInsertEnd>
  54762. }
  54763. else
  54764. {
  54765. mtCOVERAGE_TEST_MARKER();
  54766. }
  54767. }
  54768. 8016c9e: bf00 nop
  54769. 8016ca0: 3720 adds r7, #32
  54770. 8016ca2: 46bd mov sp, r7
  54771. 8016ca4: bd80 pop {r7, pc}
  54772. 8016ca6: bf00 nop
  54773. 8016ca8: 240029f8 .word 0x240029f8
  54774. 8016cac: 240029fc .word 0x240029fc
  54775. 8016cb0: 24002ed4 .word 0x24002ed4
  54776. 08016cb4 <pvTaskIncrementMutexHeldCount>:
  54777. /*-----------------------------------------------------------*/
  54778. #if ( configUSE_MUTEXES == 1 )
  54779. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  54780. {
  54781. 8016cb4: b480 push {r7}
  54782. 8016cb6: af00 add r7, sp, #0
  54783. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  54784. then pxCurrentTCB will be NULL. */
  54785. if( pxCurrentTCB != NULL )
  54786. 8016cb8: 4b07 ldr r3, [pc, #28] @ (8016cd8 <pvTaskIncrementMutexHeldCount+0x24>)
  54787. 8016cba: 681b ldr r3, [r3, #0]
  54788. 8016cbc: 2b00 cmp r3, #0
  54789. 8016cbe: d004 beq.n 8016cca <pvTaskIncrementMutexHeldCount+0x16>
  54790. {
  54791. ( pxCurrentTCB->uxMutexesHeld )++;
  54792. 8016cc0: 4b05 ldr r3, [pc, #20] @ (8016cd8 <pvTaskIncrementMutexHeldCount+0x24>)
  54793. 8016cc2: 681b ldr r3, [r3, #0]
  54794. 8016cc4: 6d1a ldr r2, [r3, #80] @ 0x50
  54795. 8016cc6: 3201 adds r2, #1
  54796. 8016cc8: 651a str r2, [r3, #80] @ 0x50
  54797. }
  54798. return pxCurrentTCB;
  54799. 8016cca: 4b03 ldr r3, [pc, #12] @ (8016cd8 <pvTaskIncrementMutexHeldCount+0x24>)
  54800. 8016ccc: 681b ldr r3, [r3, #0]
  54801. }
  54802. 8016cce: 4618 mov r0, r3
  54803. 8016cd0: 46bd mov sp, r7
  54804. 8016cd2: f85d 7b04 ldr.w r7, [sp], #4
  54805. 8016cd6: 4770 bx lr
  54806. 8016cd8: 240029f8 .word 0x240029f8
  54807. 08016cdc <xTaskNotifyWait>:
  54808. /*-----------------------------------------------------------*/
  54809. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54810. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  54811. {
  54812. 8016cdc: b580 push {r7, lr}
  54813. 8016cde: b086 sub sp, #24
  54814. 8016ce0: af00 add r7, sp, #0
  54815. 8016ce2: 60f8 str r0, [r7, #12]
  54816. 8016ce4: 60b9 str r1, [r7, #8]
  54817. 8016ce6: 607a str r2, [r7, #4]
  54818. 8016ce8: 603b str r3, [r7, #0]
  54819. BaseType_t xReturn;
  54820. taskENTER_CRITICAL();
  54821. 8016cea: f000 ffed bl 8017cc8 <vPortEnterCritical>
  54822. {
  54823. /* Only block if a notification is not already pending. */
  54824. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54825. 8016cee: 4b29 ldr r3, [pc, #164] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54826. 8016cf0: 681b ldr r3, [r3, #0]
  54827. 8016cf2: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54828. 8016cf6: b2db uxtb r3, r3
  54829. 8016cf8: 2b02 cmp r3, #2
  54830. 8016cfa: d01c beq.n 8016d36 <xTaskNotifyWait+0x5a>
  54831. {
  54832. /* Clear bits in the task's notification value as bits may get
  54833. set by the notifying task or interrupt. This can be used to
  54834. clear the value to zero. */
  54835. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  54836. 8016cfc: 4b25 ldr r3, [pc, #148] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54837. 8016cfe: 681b ldr r3, [r3, #0]
  54838. 8016d00: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54839. 8016d04: 68fa ldr r2, [r7, #12]
  54840. 8016d06: 43d2 mvns r2, r2
  54841. 8016d08: 400a ands r2, r1
  54842. 8016d0a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54843. /* Mark this task as waiting for a notification. */
  54844. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  54845. 8016d0e: 4b21 ldr r3, [pc, #132] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54846. 8016d10: 681b ldr r3, [r3, #0]
  54847. 8016d12: 2201 movs r2, #1
  54848. 8016d14: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54849. if( xTicksToWait > ( TickType_t ) 0 )
  54850. 8016d18: 683b ldr r3, [r7, #0]
  54851. 8016d1a: 2b00 cmp r3, #0
  54852. 8016d1c: d00b beq.n 8016d36 <xTaskNotifyWait+0x5a>
  54853. {
  54854. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  54855. 8016d1e: 2101 movs r1, #1
  54856. 8016d20: 6838 ldr r0, [r7, #0]
  54857. 8016d22: f000 fa09 bl 8017138 <prvAddCurrentTaskToDelayedList>
  54858. /* All ports are written to allow a yield in a critical
  54859. section (some will yield immediately, others wait until the
  54860. critical section exits) - but it is not something that
  54861. application code should ever do. */
  54862. portYIELD_WITHIN_API();
  54863. 8016d26: 4b1c ldr r3, [pc, #112] @ (8016d98 <xTaskNotifyWait+0xbc>)
  54864. 8016d28: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54865. 8016d2c: 601a str r2, [r3, #0]
  54866. 8016d2e: f3bf 8f4f dsb sy
  54867. 8016d32: f3bf 8f6f isb sy
  54868. else
  54869. {
  54870. mtCOVERAGE_TEST_MARKER();
  54871. }
  54872. }
  54873. taskEXIT_CRITICAL();
  54874. 8016d36: f000 fff9 bl 8017d2c <vPortExitCritical>
  54875. taskENTER_CRITICAL();
  54876. 8016d3a: f000 ffc5 bl 8017cc8 <vPortEnterCritical>
  54877. {
  54878. traceTASK_NOTIFY_WAIT();
  54879. if( pulNotificationValue != NULL )
  54880. 8016d3e: 687b ldr r3, [r7, #4]
  54881. 8016d40: 2b00 cmp r3, #0
  54882. 8016d42: d005 beq.n 8016d50 <xTaskNotifyWait+0x74>
  54883. {
  54884. /* Output the current notification value, which may or may not
  54885. have changed. */
  54886. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54887. 8016d44: 4b13 ldr r3, [pc, #76] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54888. 8016d46: 681b ldr r3, [r3, #0]
  54889. 8016d48: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54890. 8016d4c: 687b ldr r3, [r7, #4]
  54891. 8016d4e: 601a str r2, [r3, #0]
  54892. /* If ucNotifyValue is set then either the task never entered the
  54893. blocked state (because a notification was already pending) or the
  54894. task unblocked because of a notification. Otherwise the task
  54895. unblocked because of a timeout. */
  54896. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54897. 8016d50: 4b10 ldr r3, [pc, #64] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54898. 8016d52: 681b ldr r3, [r3, #0]
  54899. 8016d54: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54900. 8016d58: b2db uxtb r3, r3
  54901. 8016d5a: 2b02 cmp r3, #2
  54902. 8016d5c: d002 beq.n 8016d64 <xTaskNotifyWait+0x88>
  54903. {
  54904. /* A notification was not received. */
  54905. xReturn = pdFALSE;
  54906. 8016d5e: 2300 movs r3, #0
  54907. 8016d60: 617b str r3, [r7, #20]
  54908. 8016d62: e00a b.n 8016d7a <xTaskNotifyWait+0x9e>
  54909. }
  54910. else
  54911. {
  54912. /* A notification was already pending or a notification was
  54913. received while the task was waiting. */
  54914. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54915. 8016d64: 4b0b ldr r3, [pc, #44] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54916. 8016d66: 681b ldr r3, [r3, #0]
  54917. 8016d68: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54918. 8016d6c: 68ba ldr r2, [r7, #8]
  54919. 8016d6e: 43d2 mvns r2, r2
  54920. 8016d70: 400a ands r2, r1
  54921. 8016d72: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54922. xReturn = pdTRUE;
  54923. 8016d76: 2301 movs r3, #1
  54924. 8016d78: 617b str r3, [r7, #20]
  54925. }
  54926. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54927. 8016d7a: 4b06 ldr r3, [pc, #24] @ (8016d94 <xTaskNotifyWait+0xb8>)
  54928. 8016d7c: 681b ldr r3, [r3, #0]
  54929. 8016d7e: 2200 movs r2, #0
  54930. 8016d80: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54931. }
  54932. taskEXIT_CRITICAL();
  54933. 8016d84: f000 ffd2 bl 8017d2c <vPortExitCritical>
  54934. return xReturn;
  54935. 8016d88: 697b ldr r3, [r7, #20]
  54936. }
  54937. 8016d8a: 4618 mov r0, r3
  54938. 8016d8c: 3718 adds r7, #24
  54939. 8016d8e: 46bd mov sp, r7
  54940. 8016d90: bd80 pop {r7, pc}
  54941. 8016d92: bf00 nop
  54942. 8016d94: 240029f8 .word 0x240029f8
  54943. 8016d98: e000ed04 .word 0xe000ed04
  54944. 08016d9c <xTaskGenericNotify>:
  54945. /*-----------------------------------------------------------*/
  54946. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54947. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  54948. {
  54949. 8016d9c: b580 push {r7, lr}
  54950. 8016d9e: b08a sub sp, #40 @ 0x28
  54951. 8016da0: af00 add r7, sp, #0
  54952. 8016da2: 60f8 str r0, [r7, #12]
  54953. 8016da4: 60b9 str r1, [r7, #8]
  54954. 8016da6: 603b str r3, [r7, #0]
  54955. 8016da8: 4613 mov r3, r2
  54956. 8016daa: 71fb strb r3, [r7, #7]
  54957. TCB_t * pxTCB;
  54958. BaseType_t xReturn = pdPASS;
  54959. 8016dac: 2301 movs r3, #1
  54960. 8016dae: 627b str r3, [r7, #36] @ 0x24
  54961. uint8_t ucOriginalNotifyState;
  54962. configASSERT( xTaskToNotify );
  54963. 8016db0: 68fb ldr r3, [r7, #12]
  54964. 8016db2: 2b00 cmp r3, #0
  54965. 8016db4: d10b bne.n 8016dce <xTaskGenericNotify+0x32>
  54966. __asm volatile
  54967. 8016db6: f04f 0350 mov.w r3, #80 @ 0x50
  54968. 8016dba: f383 8811 msr BASEPRI, r3
  54969. 8016dbe: f3bf 8f6f isb sy
  54970. 8016dc2: f3bf 8f4f dsb sy
  54971. 8016dc6: 61bb str r3, [r7, #24]
  54972. }
  54973. 8016dc8: bf00 nop
  54974. 8016dca: bf00 nop
  54975. 8016dcc: e7fd b.n 8016dca <xTaskGenericNotify+0x2e>
  54976. pxTCB = xTaskToNotify;
  54977. 8016dce: 68fb ldr r3, [r7, #12]
  54978. 8016dd0: 623b str r3, [r7, #32]
  54979. taskENTER_CRITICAL();
  54980. 8016dd2: f000 ff79 bl 8017cc8 <vPortEnterCritical>
  54981. {
  54982. if( pulPreviousNotificationValue != NULL )
  54983. 8016dd6: 683b ldr r3, [r7, #0]
  54984. 8016dd8: 2b00 cmp r3, #0
  54985. 8016dda: d004 beq.n 8016de6 <xTaskGenericNotify+0x4a>
  54986. {
  54987. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54988. 8016ddc: 6a3b ldr r3, [r7, #32]
  54989. 8016dde: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54990. 8016de2: 683b ldr r3, [r7, #0]
  54991. 8016de4: 601a str r2, [r3, #0]
  54992. }
  54993. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54994. 8016de6: 6a3b ldr r3, [r7, #32]
  54995. 8016de8: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54996. 8016dec: 77fb strb r3, [r7, #31]
  54997. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54998. 8016dee: 6a3b ldr r3, [r7, #32]
  54999. 8016df0: 2202 movs r2, #2
  55000. 8016df2: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55001. switch( eAction )
  55002. 8016df6: 79fb ldrb r3, [r7, #7]
  55003. 8016df8: 2b04 cmp r3, #4
  55004. 8016dfa: d82e bhi.n 8016e5a <xTaskGenericNotify+0xbe>
  55005. 8016dfc: a201 add r2, pc, #4 @ (adr r2, 8016e04 <xTaskGenericNotify+0x68>)
  55006. 8016dfe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55007. 8016e02: bf00 nop
  55008. 8016e04: 08016e7f .word 0x08016e7f
  55009. 8016e08: 08016e19 .word 0x08016e19
  55010. 8016e0c: 08016e2b .word 0x08016e2b
  55011. 8016e10: 08016e3b .word 0x08016e3b
  55012. 8016e14: 08016e45 .word 0x08016e45
  55013. {
  55014. case eSetBits :
  55015. pxTCB->ulNotifiedValue |= ulValue;
  55016. 8016e18: 6a3b ldr r3, [r7, #32]
  55017. 8016e1a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55018. 8016e1e: 68bb ldr r3, [r7, #8]
  55019. 8016e20: 431a orrs r2, r3
  55020. 8016e22: 6a3b ldr r3, [r7, #32]
  55021. 8016e24: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55022. break;
  55023. 8016e28: e02c b.n 8016e84 <xTaskGenericNotify+0xe8>
  55024. case eIncrement :
  55025. ( pxTCB->ulNotifiedValue )++;
  55026. 8016e2a: 6a3b ldr r3, [r7, #32]
  55027. 8016e2c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55028. 8016e30: 1c5a adds r2, r3, #1
  55029. 8016e32: 6a3b ldr r3, [r7, #32]
  55030. 8016e34: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55031. break;
  55032. 8016e38: e024 b.n 8016e84 <xTaskGenericNotify+0xe8>
  55033. case eSetValueWithOverwrite :
  55034. pxTCB->ulNotifiedValue = ulValue;
  55035. 8016e3a: 6a3b ldr r3, [r7, #32]
  55036. 8016e3c: 68ba ldr r2, [r7, #8]
  55037. 8016e3e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55038. break;
  55039. 8016e42: e01f b.n 8016e84 <xTaskGenericNotify+0xe8>
  55040. case eSetValueWithoutOverwrite :
  55041. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55042. 8016e44: 7ffb ldrb r3, [r7, #31]
  55043. 8016e46: 2b02 cmp r3, #2
  55044. 8016e48: d004 beq.n 8016e54 <xTaskGenericNotify+0xb8>
  55045. {
  55046. pxTCB->ulNotifiedValue = ulValue;
  55047. 8016e4a: 6a3b ldr r3, [r7, #32]
  55048. 8016e4c: 68ba ldr r2, [r7, #8]
  55049. 8016e4e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55050. else
  55051. {
  55052. /* The value could not be written to the task. */
  55053. xReturn = pdFAIL;
  55054. }
  55055. break;
  55056. 8016e52: e017 b.n 8016e84 <xTaskGenericNotify+0xe8>
  55057. xReturn = pdFAIL;
  55058. 8016e54: 2300 movs r3, #0
  55059. 8016e56: 627b str r3, [r7, #36] @ 0x24
  55060. break;
  55061. 8016e58: e014 b.n 8016e84 <xTaskGenericNotify+0xe8>
  55062. default:
  55063. /* Should not get here if all enums are handled.
  55064. Artificially force an assert by testing a value the
  55065. compiler can't assume is const. */
  55066. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55067. 8016e5a: 6a3b ldr r3, [r7, #32]
  55068. 8016e5c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55069. 8016e60: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55070. 8016e64: d00d beq.n 8016e82 <xTaskGenericNotify+0xe6>
  55071. __asm volatile
  55072. 8016e66: f04f 0350 mov.w r3, #80 @ 0x50
  55073. 8016e6a: f383 8811 msr BASEPRI, r3
  55074. 8016e6e: f3bf 8f6f isb sy
  55075. 8016e72: f3bf 8f4f dsb sy
  55076. 8016e76: 617b str r3, [r7, #20]
  55077. }
  55078. 8016e78: bf00 nop
  55079. 8016e7a: bf00 nop
  55080. 8016e7c: e7fd b.n 8016e7a <xTaskGenericNotify+0xde>
  55081. break;
  55082. 8016e7e: bf00 nop
  55083. 8016e80: e000 b.n 8016e84 <xTaskGenericNotify+0xe8>
  55084. break;
  55085. 8016e82: bf00 nop
  55086. traceTASK_NOTIFY();
  55087. /* If the task is in the blocked state specifically to wait for a
  55088. notification then unblock it now. */
  55089. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55090. 8016e84: 7ffb ldrb r3, [r7, #31]
  55091. 8016e86: 2b01 cmp r3, #1
  55092. 8016e88: d13b bne.n 8016f02 <xTaskGenericNotify+0x166>
  55093. {
  55094. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55095. 8016e8a: 6a3b ldr r3, [r7, #32]
  55096. 8016e8c: 3304 adds r3, #4
  55097. 8016e8e: 4618 mov r0, r3
  55098. 8016e90: f7fd fd78 bl 8014984 <uxListRemove>
  55099. prvAddTaskToReadyList( pxTCB );
  55100. 8016e94: 6a3b ldr r3, [r7, #32]
  55101. 8016e96: 6ada ldr r2, [r3, #44] @ 0x2c
  55102. 8016e98: 4b1d ldr r3, [pc, #116] @ (8016f10 <xTaskGenericNotify+0x174>)
  55103. 8016e9a: 681b ldr r3, [r3, #0]
  55104. 8016e9c: 429a cmp r2, r3
  55105. 8016e9e: d903 bls.n 8016ea8 <xTaskGenericNotify+0x10c>
  55106. 8016ea0: 6a3b ldr r3, [r7, #32]
  55107. 8016ea2: 6adb ldr r3, [r3, #44] @ 0x2c
  55108. 8016ea4: 4a1a ldr r2, [pc, #104] @ (8016f10 <xTaskGenericNotify+0x174>)
  55109. 8016ea6: 6013 str r3, [r2, #0]
  55110. 8016ea8: 6a3b ldr r3, [r7, #32]
  55111. 8016eaa: 6ada ldr r2, [r3, #44] @ 0x2c
  55112. 8016eac: 4613 mov r3, r2
  55113. 8016eae: 009b lsls r3, r3, #2
  55114. 8016eb0: 4413 add r3, r2
  55115. 8016eb2: 009b lsls r3, r3, #2
  55116. 8016eb4: 4a17 ldr r2, [pc, #92] @ (8016f14 <xTaskGenericNotify+0x178>)
  55117. 8016eb6: 441a add r2, r3
  55118. 8016eb8: 6a3b ldr r3, [r7, #32]
  55119. 8016eba: 3304 adds r3, #4
  55120. 8016ebc: 4619 mov r1, r3
  55121. 8016ebe: 4610 mov r0, r2
  55122. 8016ec0: f7fd fd03 bl 80148ca <vListInsertEnd>
  55123. /* The task should not have been on an event list. */
  55124. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55125. 8016ec4: 6a3b ldr r3, [r7, #32]
  55126. 8016ec6: 6a9b ldr r3, [r3, #40] @ 0x28
  55127. 8016ec8: 2b00 cmp r3, #0
  55128. 8016eca: d00b beq.n 8016ee4 <xTaskGenericNotify+0x148>
  55129. __asm volatile
  55130. 8016ecc: f04f 0350 mov.w r3, #80 @ 0x50
  55131. 8016ed0: f383 8811 msr BASEPRI, r3
  55132. 8016ed4: f3bf 8f6f isb sy
  55133. 8016ed8: f3bf 8f4f dsb sy
  55134. 8016edc: 613b str r3, [r7, #16]
  55135. }
  55136. 8016ede: bf00 nop
  55137. 8016ee0: bf00 nop
  55138. 8016ee2: e7fd b.n 8016ee0 <xTaskGenericNotify+0x144>
  55139. earliest possible time. */
  55140. prvResetNextTaskUnblockTime();
  55141. }
  55142. #endif
  55143. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55144. 8016ee4: 6a3b ldr r3, [r7, #32]
  55145. 8016ee6: 6ada ldr r2, [r3, #44] @ 0x2c
  55146. 8016ee8: 4b0b ldr r3, [pc, #44] @ (8016f18 <xTaskGenericNotify+0x17c>)
  55147. 8016eea: 681b ldr r3, [r3, #0]
  55148. 8016eec: 6adb ldr r3, [r3, #44] @ 0x2c
  55149. 8016eee: 429a cmp r2, r3
  55150. 8016ef0: d907 bls.n 8016f02 <xTaskGenericNotify+0x166>
  55151. {
  55152. /* The notified task has a priority above the currently
  55153. executing task so a yield is required. */
  55154. taskYIELD_IF_USING_PREEMPTION();
  55155. 8016ef2: 4b0a ldr r3, [pc, #40] @ (8016f1c <xTaskGenericNotify+0x180>)
  55156. 8016ef4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55157. 8016ef8: 601a str r2, [r3, #0]
  55158. 8016efa: f3bf 8f4f dsb sy
  55159. 8016efe: f3bf 8f6f isb sy
  55160. else
  55161. {
  55162. mtCOVERAGE_TEST_MARKER();
  55163. }
  55164. }
  55165. taskEXIT_CRITICAL();
  55166. 8016f02: f000 ff13 bl 8017d2c <vPortExitCritical>
  55167. return xReturn;
  55168. 8016f06: 6a7b ldr r3, [r7, #36] @ 0x24
  55169. }
  55170. 8016f08: 4618 mov r0, r3
  55171. 8016f0a: 3728 adds r7, #40 @ 0x28
  55172. 8016f0c: 46bd mov sp, r7
  55173. 8016f0e: bd80 pop {r7, pc}
  55174. 8016f10: 24002ed4 .word 0x24002ed4
  55175. 8016f14: 240029fc .word 0x240029fc
  55176. 8016f18: 240029f8 .word 0x240029f8
  55177. 8016f1c: e000ed04 .word 0xe000ed04
  55178. 08016f20 <xTaskGenericNotifyFromISR>:
  55179. /*-----------------------------------------------------------*/
  55180. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55181. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  55182. {
  55183. 8016f20: b580 push {r7, lr}
  55184. 8016f22: b08e sub sp, #56 @ 0x38
  55185. 8016f24: af00 add r7, sp, #0
  55186. 8016f26: 60f8 str r0, [r7, #12]
  55187. 8016f28: 60b9 str r1, [r7, #8]
  55188. 8016f2a: 603b str r3, [r7, #0]
  55189. 8016f2c: 4613 mov r3, r2
  55190. 8016f2e: 71fb strb r3, [r7, #7]
  55191. TCB_t * pxTCB;
  55192. uint8_t ucOriginalNotifyState;
  55193. BaseType_t xReturn = pdPASS;
  55194. 8016f30: 2301 movs r3, #1
  55195. 8016f32: 637b str r3, [r7, #52] @ 0x34
  55196. UBaseType_t uxSavedInterruptStatus;
  55197. configASSERT( xTaskToNotify );
  55198. 8016f34: 68fb ldr r3, [r7, #12]
  55199. 8016f36: 2b00 cmp r3, #0
  55200. 8016f38: d10b bne.n 8016f52 <xTaskGenericNotifyFromISR+0x32>
  55201. __asm volatile
  55202. 8016f3a: f04f 0350 mov.w r3, #80 @ 0x50
  55203. 8016f3e: f383 8811 msr BASEPRI, r3
  55204. 8016f42: f3bf 8f6f isb sy
  55205. 8016f46: f3bf 8f4f dsb sy
  55206. 8016f4a: 627b str r3, [r7, #36] @ 0x24
  55207. }
  55208. 8016f4c: bf00 nop
  55209. 8016f4e: bf00 nop
  55210. 8016f50: e7fd b.n 8016f4e <xTaskGenericNotifyFromISR+0x2e>
  55211. below the maximum system call interrupt priority. FreeRTOS maintains a
  55212. separate interrupt safe API to ensure interrupt entry is as fast and as
  55213. simple as possible. More information (albeit Cortex-M specific) is
  55214. provided on the following link:
  55215. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  55216. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  55217. 8016f52: f000 ff99 bl 8017e88 <vPortValidateInterruptPriority>
  55218. pxTCB = xTaskToNotify;
  55219. 8016f56: 68fb ldr r3, [r7, #12]
  55220. 8016f58: 633b str r3, [r7, #48] @ 0x30
  55221. __asm volatile
  55222. 8016f5a: f3ef 8211 mrs r2, BASEPRI
  55223. 8016f5e: f04f 0350 mov.w r3, #80 @ 0x50
  55224. 8016f62: f383 8811 msr BASEPRI, r3
  55225. 8016f66: f3bf 8f6f isb sy
  55226. 8016f6a: f3bf 8f4f dsb sy
  55227. 8016f6e: 623a str r2, [r7, #32]
  55228. 8016f70: 61fb str r3, [r7, #28]
  55229. return ulOriginalBASEPRI;
  55230. 8016f72: 6a3b ldr r3, [r7, #32]
  55231. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  55232. 8016f74: 62fb str r3, [r7, #44] @ 0x2c
  55233. {
  55234. if( pulPreviousNotificationValue != NULL )
  55235. 8016f76: 683b ldr r3, [r7, #0]
  55236. 8016f78: 2b00 cmp r3, #0
  55237. 8016f7a: d004 beq.n 8016f86 <xTaskGenericNotifyFromISR+0x66>
  55238. {
  55239. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55240. 8016f7c: 6b3b ldr r3, [r7, #48] @ 0x30
  55241. 8016f7e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55242. 8016f82: 683b ldr r3, [r7, #0]
  55243. 8016f84: 601a str r2, [r3, #0]
  55244. }
  55245. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55246. 8016f86: 6b3b ldr r3, [r7, #48] @ 0x30
  55247. 8016f88: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55248. 8016f8c: f887 302b strb.w r3, [r7, #43] @ 0x2b
  55249. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55250. 8016f90: 6b3b ldr r3, [r7, #48] @ 0x30
  55251. 8016f92: 2202 movs r2, #2
  55252. 8016f94: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55253. switch( eAction )
  55254. 8016f98: 79fb ldrb r3, [r7, #7]
  55255. 8016f9a: 2b04 cmp r3, #4
  55256. 8016f9c: d82e bhi.n 8016ffc <xTaskGenericNotifyFromISR+0xdc>
  55257. 8016f9e: a201 add r2, pc, #4 @ (adr r2, 8016fa4 <xTaskGenericNotifyFromISR+0x84>)
  55258. 8016fa0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55259. 8016fa4: 08017021 .word 0x08017021
  55260. 8016fa8: 08016fb9 .word 0x08016fb9
  55261. 8016fac: 08016fcb .word 0x08016fcb
  55262. 8016fb0: 08016fdb .word 0x08016fdb
  55263. 8016fb4: 08016fe5 .word 0x08016fe5
  55264. {
  55265. case eSetBits :
  55266. pxTCB->ulNotifiedValue |= ulValue;
  55267. 8016fb8: 6b3b ldr r3, [r7, #48] @ 0x30
  55268. 8016fba: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55269. 8016fbe: 68bb ldr r3, [r7, #8]
  55270. 8016fc0: 431a orrs r2, r3
  55271. 8016fc2: 6b3b ldr r3, [r7, #48] @ 0x30
  55272. 8016fc4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55273. break;
  55274. 8016fc8: e02d b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55275. case eIncrement :
  55276. ( pxTCB->ulNotifiedValue )++;
  55277. 8016fca: 6b3b ldr r3, [r7, #48] @ 0x30
  55278. 8016fcc: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55279. 8016fd0: 1c5a adds r2, r3, #1
  55280. 8016fd2: 6b3b ldr r3, [r7, #48] @ 0x30
  55281. 8016fd4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55282. break;
  55283. 8016fd8: e025 b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55284. case eSetValueWithOverwrite :
  55285. pxTCB->ulNotifiedValue = ulValue;
  55286. 8016fda: 6b3b ldr r3, [r7, #48] @ 0x30
  55287. 8016fdc: 68ba ldr r2, [r7, #8]
  55288. 8016fde: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55289. break;
  55290. 8016fe2: e020 b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55291. case eSetValueWithoutOverwrite :
  55292. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55293. 8016fe4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55294. 8016fe8: 2b02 cmp r3, #2
  55295. 8016fea: d004 beq.n 8016ff6 <xTaskGenericNotifyFromISR+0xd6>
  55296. {
  55297. pxTCB->ulNotifiedValue = ulValue;
  55298. 8016fec: 6b3b ldr r3, [r7, #48] @ 0x30
  55299. 8016fee: 68ba ldr r2, [r7, #8]
  55300. 8016ff0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55301. else
  55302. {
  55303. /* The value could not be written to the task. */
  55304. xReturn = pdFAIL;
  55305. }
  55306. break;
  55307. 8016ff4: e017 b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55308. xReturn = pdFAIL;
  55309. 8016ff6: 2300 movs r3, #0
  55310. 8016ff8: 637b str r3, [r7, #52] @ 0x34
  55311. break;
  55312. 8016ffa: e014 b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55313. default:
  55314. /* Should not get here if all enums are handled.
  55315. Artificially force an assert by testing a value the
  55316. compiler can't assume is const. */
  55317. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55318. 8016ffc: 6b3b ldr r3, [r7, #48] @ 0x30
  55319. 8016ffe: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55320. 8017002: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55321. 8017006: d00d beq.n 8017024 <xTaskGenericNotifyFromISR+0x104>
  55322. __asm volatile
  55323. 8017008: f04f 0350 mov.w r3, #80 @ 0x50
  55324. 801700c: f383 8811 msr BASEPRI, r3
  55325. 8017010: f3bf 8f6f isb sy
  55326. 8017014: f3bf 8f4f dsb sy
  55327. 8017018: 61bb str r3, [r7, #24]
  55328. }
  55329. 801701a: bf00 nop
  55330. 801701c: bf00 nop
  55331. 801701e: e7fd b.n 801701c <xTaskGenericNotifyFromISR+0xfc>
  55332. break;
  55333. 8017020: bf00 nop
  55334. 8017022: e000 b.n 8017026 <xTaskGenericNotifyFromISR+0x106>
  55335. break;
  55336. 8017024: bf00 nop
  55337. traceTASK_NOTIFY_FROM_ISR();
  55338. /* If the task is in the blocked state specifically to wait for a
  55339. notification then unblock it now. */
  55340. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55341. 8017026: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55342. 801702a: 2b01 cmp r3, #1
  55343. 801702c: d147 bne.n 80170be <xTaskGenericNotifyFromISR+0x19e>
  55344. {
  55345. /* The task should not have been on an event list. */
  55346. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55347. 801702e: 6b3b ldr r3, [r7, #48] @ 0x30
  55348. 8017030: 6a9b ldr r3, [r3, #40] @ 0x28
  55349. 8017032: 2b00 cmp r3, #0
  55350. 8017034: d00b beq.n 801704e <xTaskGenericNotifyFromISR+0x12e>
  55351. __asm volatile
  55352. 8017036: f04f 0350 mov.w r3, #80 @ 0x50
  55353. 801703a: f383 8811 msr BASEPRI, r3
  55354. 801703e: f3bf 8f6f isb sy
  55355. 8017042: f3bf 8f4f dsb sy
  55356. 8017046: 617b str r3, [r7, #20]
  55357. }
  55358. 8017048: bf00 nop
  55359. 801704a: bf00 nop
  55360. 801704c: e7fd b.n 801704a <xTaskGenericNotifyFromISR+0x12a>
  55361. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  55362. 801704e: 4b21 ldr r3, [pc, #132] @ (80170d4 <xTaskGenericNotifyFromISR+0x1b4>)
  55363. 8017050: 681b ldr r3, [r3, #0]
  55364. 8017052: 2b00 cmp r3, #0
  55365. 8017054: d11d bne.n 8017092 <xTaskGenericNotifyFromISR+0x172>
  55366. {
  55367. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55368. 8017056: 6b3b ldr r3, [r7, #48] @ 0x30
  55369. 8017058: 3304 adds r3, #4
  55370. 801705a: 4618 mov r0, r3
  55371. 801705c: f7fd fc92 bl 8014984 <uxListRemove>
  55372. prvAddTaskToReadyList( pxTCB );
  55373. 8017060: 6b3b ldr r3, [r7, #48] @ 0x30
  55374. 8017062: 6ada ldr r2, [r3, #44] @ 0x2c
  55375. 8017064: 4b1c ldr r3, [pc, #112] @ (80170d8 <xTaskGenericNotifyFromISR+0x1b8>)
  55376. 8017066: 681b ldr r3, [r3, #0]
  55377. 8017068: 429a cmp r2, r3
  55378. 801706a: d903 bls.n 8017074 <xTaskGenericNotifyFromISR+0x154>
  55379. 801706c: 6b3b ldr r3, [r7, #48] @ 0x30
  55380. 801706e: 6adb ldr r3, [r3, #44] @ 0x2c
  55381. 8017070: 4a19 ldr r2, [pc, #100] @ (80170d8 <xTaskGenericNotifyFromISR+0x1b8>)
  55382. 8017072: 6013 str r3, [r2, #0]
  55383. 8017074: 6b3b ldr r3, [r7, #48] @ 0x30
  55384. 8017076: 6ada ldr r2, [r3, #44] @ 0x2c
  55385. 8017078: 4613 mov r3, r2
  55386. 801707a: 009b lsls r3, r3, #2
  55387. 801707c: 4413 add r3, r2
  55388. 801707e: 009b lsls r3, r3, #2
  55389. 8017080: 4a16 ldr r2, [pc, #88] @ (80170dc <xTaskGenericNotifyFromISR+0x1bc>)
  55390. 8017082: 441a add r2, r3
  55391. 8017084: 6b3b ldr r3, [r7, #48] @ 0x30
  55392. 8017086: 3304 adds r3, #4
  55393. 8017088: 4619 mov r1, r3
  55394. 801708a: 4610 mov r0, r2
  55395. 801708c: f7fd fc1d bl 80148ca <vListInsertEnd>
  55396. 8017090: e005 b.n 801709e <xTaskGenericNotifyFromISR+0x17e>
  55397. }
  55398. else
  55399. {
  55400. /* The delayed and ready lists cannot be accessed, so hold
  55401. this task pending until the scheduler is resumed. */
  55402. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  55403. 8017092: 6b3b ldr r3, [r7, #48] @ 0x30
  55404. 8017094: 3318 adds r3, #24
  55405. 8017096: 4619 mov r1, r3
  55406. 8017098: 4811 ldr r0, [pc, #68] @ (80170e0 <xTaskGenericNotifyFromISR+0x1c0>)
  55407. 801709a: f7fd fc16 bl 80148ca <vListInsertEnd>
  55408. }
  55409. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55410. 801709e: 6b3b ldr r3, [r7, #48] @ 0x30
  55411. 80170a0: 6ada ldr r2, [r3, #44] @ 0x2c
  55412. 80170a2: 4b10 ldr r3, [pc, #64] @ (80170e4 <xTaskGenericNotifyFromISR+0x1c4>)
  55413. 80170a4: 681b ldr r3, [r3, #0]
  55414. 80170a6: 6adb ldr r3, [r3, #44] @ 0x2c
  55415. 80170a8: 429a cmp r2, r3
  55416. 80170aa: d908 bls.n 80170be <xTaskGenericNotifyFromISR+0x19e>
  55417. {
  55418. /* The notified task has a priority above the currently
  55419. executing task so a yield is required. */
  55420. if( pxHigherPriorityTaskWoken != NULL )
  55421. 80170ac: 6c3b ldr r3, [r7, #64] @ 0x40
  55422. 80170ae: 2b00 cmp r3, #0
  55423. 80170b0: d002 beq.n 80170b8 <xTaskGenericNotifyFromISR+0x198>
  55424. {
  55425. *pxHigherPriorityTaskWoken = pdTRUE;
  55426. 80170b2: 6c3b ldr r3, [r7, #64] @ 0x40
  55427. 80170b4: 2201 movs r2, #1
  55428. 80170b6: 601a str r2, [r3, #0]
  55429. }
  55430. /* Mark that a yield is pending in case the user is not
  55431. using the "xHigherPriorityTaskWoken" parameter to an ISR
  55432. safe FreeRTOS function. */
  55433. xYieldPending = pdTRUE;
  55434. 80170b8: 4b0b ldr r3, [pc, #44] @ (80170e8 <xTaskGenericNotifyFromISR+0x1c8>)
  55435. 80170ba: 2201 movs r2, #1
  55436. 80170bc: 601a str r2, [r3, #0]
  55437. 80170be: 6afb ldr r3, [r7, #44] @ 0x2c
  55438. 80170c0: 613b str r3, [r7, #16]
  55439. __asm volatile
  55440. 80170c2: 693b ldr r3, [r7, #16]
  55441. 80170c4: f383 8811 msr BASEPRI, r3
  55442. }
  55443. 80170c8: bf00 nop
  55444. }
  55445. }
  55446. }
  55447. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  55448. return xReturn;
  55449. 80170ca: 6b7b ldr r3, [r7, #52] @ 0x34
  55450. }
  55451. 80170cc: 4618 mov r0, r3
  55452. 80170ce: 3738 adds r7, #56 @ 0x38
  55453. 80170d0: 46bd mov sp, r7
  55454. 80170d2: bd80 pop {r7, pc}
  55455. 80170d4: 24002ef4 .word 0x24002ef4
  55456. 80170d8: 24002ed4 .word 0x24002ed4
  55457. 80170dc: 240029fc .word 0x240029fc
  55458. 80170e0: 24002e8c .word 0x24002e8c
  55459. 80170e4: 240029f8 .word 0x240029f8
  55460. 80170e8: 24002ee0 .word 0x24002ee0
  55461. 080170ec <xTaskNotifyStateClear>:
  55462. /*-----------------------------------------------------------*/
  55463. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55464. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  55465. {
  55466. 80170ec: b580 push {r7, lr}
  55467. 80170ee: b084 sub sp, #16
  55468. 80170f0: af00 add r7, sp, #0
  55469. 80170f2: 6078 str r0, [r7, #4]
  55470. TCB_t *pxTCB;
  55471. BaseType_t xReturn;
  55472. /* If null is passed in here then it is the calling task that is having
  55473. its notification state cleared. */
  55474. pxTCB = prvGetTCBFromHandle( xTask );
  55475. 80170f4: 687b ldr r3, [r7, #4]
  55476. 80170f6: 2b00 cmp r3, #0
  55477. 80170f8: d102 bne.n 8017100 <xTaskNotifyStateClear+0x14>
  55478. 80170fa: 4b0e ldr r3, [pc, #56] @ (8017134 <xTaskNotifyStateClear+0x48>)
  55479. 80170fc: 681b ldr r3, [r3, #0]
  55480. 80170fe: e000 b.n 8017102 <xTaskNotifyStateClear+0x16>
  55481. 8017100: 687b ldr r3, [r7, #4]
  55482. 8017102: 60bb str r3, [r7, #8]
  55483. taskENTER_CRITICAL();
  55484. 8017104: f000 fde0 bl 8017cc8 <vPortEnterCritical>
  55485. {
  55486. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  55487. 8017108: 68bb ldr r3, [r7, #8]
  55488. 801710a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55489. 801710e: b2db uxtb r3, r3
  55490. 8017110: 2b02 cmp r3, #2
  55491. 8017112: d106 bne.n 8017122 <xTaskNotifyStateClear+0x36>
  55492. {
  55493. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  55494. 8017114: 68bb ldr r3, [r7, #8]
  55495. 8017116: 2200 movs r2, #0
  55496. 8017118: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55497. xReturn = pdPASS;
  55498. 801711c: 2301 movs r3, #1
  55499. 801711e: 60fb str r3, [r7, #12]
  55500. 8017120: e001 b.n 8017126 <xTaskNotifyStateClear+0x3a>
  55501. }
  55502. else
  55503. {
  55504. xReturn = pdFAIL;
  55505. 8017122: 2300 movs r3, #0
  55506. 8017124: 60fb str r3, [r7, #12]
  55507. }
  55508. }
  55509. taskEXIT_CRITICAL();
  55510. 8017126: f000 fe01 bl 8017d2c <vPortExitCritical>
  55511. return xReturn;
  55512. 801712a: 68fb ldr r3, [r7, #12]
  55513. }
  55514. 801712c: 4618 mov r0, r3
  55515. 801712e: 3710 adds r7, #16
  55516. 8017130: 46bd mov sp, r7
  55517. 8017132: bd80 pop {r7, pc}
  55518. 8017134: 240029f8 .word 0x240029f8
  55519. 08017138 <prvAddCurrentTaskToDelayedList>:
  55520. #endif
  55521. /*-----------------------------------------------------------*/
  55522. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  55523. {
  55524. 8017138: b580 push {r7, lr}
  55525. 801713a: b084 sub sp, #16
  55526. 801713c: af00 add r7, sp, #0
  55527. 801713e: 6078 str r0, [r7, #4]
  55528. 8017140: 6039 str r1, [r7, #0]
  55529. TickType_t xTimeToWake;
  55530. const TickType_t xConstTickCount = xTickCount;
  55531. 8017142: 4b21 ldr r3, [pc, #132] @ (80171c8 <prvAddCurrentTaskToDelayedList+0x90>)
  55532. 8017144: 681b ldr r3, [r3, #0]
  55533. 8017146: 60fb str r3, [r7, #12]
  55534. }
  55535. #endif
  55536. /* Remove the task from the ready list before adding it to the blocked list
  55537. as the same list item is used for both lists. */
  55538. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  55539. 8017148: 4b20 ldr r3, [pc, #128] @ (80171cc <prvAddCurrentTaskToDelayedList+0x94>)
  55540. 801714a: 681b ldr r3, [r3, #0]
  55541. 801714c: 3304 adds r3, #4
  55542. 801714e: 4618 mov r0, r3
  55543. 8017150: f7fd fc18 bl 8014984 <uxListRemove>
  55544. mtCOVERAGE_TEST_MARKER();
  55545. }
  55546. #if ( INCLUDE_vTaskSuspend == 1 )
  55547. {
  55548. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  55549. 8017154: 687b ldr r3, [r7, #4]
  55550. 8017156: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55551. 801715a: d10a bne.n 8017172 <prvAddCurrentTaskToDelayedList+0x3a>
  55552. 801715c: 683b ldr r3, [r7, #0]
  55553. 801715e: 2b00 cmp r3, #0
  55554. 8017160: d007 beq.n 8017172 <prvAddCurrentTaskToDelayedList+0x3a>
  55555. {
  55556. /* Add the task to the suspended task list instead of a delayed task
  55557. list to ensure it is not woken by a timing event. It will block
  55558. indefinitely. */
  55559. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55560. 8017162: 4b1a ldr r3, [pc, #104] @ (80171cc <prvAddCurrentTaskToDelayedList+0x94>)
  55561. 8017164: 681b ldr r3, [r3, #0]
  55562. 8017166: 3304 adds r3, #4
  55563. 8017168: 4619 mov r1, r3
  55564. 801716a: 4819 ldr r0, [pc, #100] @ (80171d0 <prvAddCurrentTaskToDelayedList+0x98>)
  55565. 801716c: f7fd fbad bl 80148ca <vListInsertEnd>
  55566. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  55567. ( void ) xCanBlockIndefinitely;
  55568. }
  55569. #endif /* INCLUDE_vTaskSuspend */
  55570. }
  55571. 8017170: e026 b.n 80171c0 <prvAddCurrentTaskToDelayedList+0x88>
  55572. xTimeToWake = xConstTickCount + xTicksToWait;
  55573. 8017172: 68fa ldr r2, [r7, #12]
  55574. 8017174: 687b ldr r3, [r7, #4]
  55575. 8017176: 4413 add r3, r2
  55576. 8017178: 60bb str r3, [r7, #8]
  55577. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  55578. 801717a: 4b14 ldr r3, [pc, #80] @ (80171cc <prvAddCurrentTaskToDelayedList+0x94>)
  55579. 801717c: 681b ldr r3, [r3, #0]
  55580. 801717e: 68ba ldr r2, [r7, #8]
  55581. 8017180: 605a str r2, [r3, #4]
  55582. if( xTimeToWake < xConstTickCount )
  55583. 8017182: 68ba ldr r2, [r7, #8]
  55584. 8017184: 68fb ldr r3, [r7, #12]
  55585. 8017186: 429a cmp r2, r3
  55586. 8017188: d209 bcs.n 801719e <prvAddCurrentTaskToDelayedList+0x66>
  55587. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55588. 801718a: 4b12 ldr r3, [pc, #72] @ (80171d4 <prvAddCurrentTaskToDelayedList+0x9c>)
  55589. 801718c: 681a ldr r2, [r3, #0]
  55590. 801718e: 4b0f ldr r3, [pc, #60] @ (80171cc <prvAddCurrentTaskToDelayedList+0x94>)
  55591. 8017190: 681b ldr r3, [r3, #0]
  55592. 8017192: 3304 adds r3, #4
  55593. 8017194: 4619 mov r1, r3
  55594. 8017196: 4610 mov r0, r2
  55595. 8017198: f7fd fbbb bl 8014912 <vListInsert>
  55596. }
  55597. 801719c: e010 b.n 80171c0 <prvAddCurrentTaskToDelayedList+0x88>
  55598. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55599. 801719e: 4b0e ldr r3, [pc, #56] @ (80171d8 <prvAddCurrentTaskToDelayedList+0xa0>)
  55600. 80171a0: 681a ldr r2, [r3, #0]
  55601. 80171a2: 4b0a ldr r3, [pc, #40] @ (80171cc <prvAddCurrentTaskToDelayedList+0x94>)
  55602. 80171a4: 681b ldr r3, [r3, #0]
  55603. 80171a6: 3304 adds r3, #4
  55604. 80171a8: 4619 mov r1, r3
  55605. 80171aa: 4610 mov r0, r2
  55606. 80171ac: f7fd fbb1 bl 8014912 <vListInsert>
  55607. if( xTimeToWake < xNextTaskUnblockTime )
  55608. 80171b0: 4b0a ldr r3, [pc, #40] @ (80171dc <prvAddCurrentTaskToDelayedList+0xa4>)
  55609. 80171b2: 681b ldr r3, [r3, #0]
  55610. 80171b4: 68ba ldr r2, [r7, #8]
  55611. 80171b6: 429a cmp r2, r3
  55612. 80171b8: d202 bcs.n 80171c0 <prvAddCurrentTaskToDelayedList+0x88>
  55613. xNextTaskUnblockTime = xTimeToWake;
  55614. 80171ba: 4a08 ldr r2, [pc, #32] @ (80171dc <prvAddCurrentTaskToDelayedList+0xa4>)
  55615. 80171bc: 68bb ldr r3, [r7, #8]
  55616. 80171be: 6013 str r3, [r2, #0]
  55617. }
  55618. 80171c0: bf00 nop
  55619. 80171c2: 3710 adds r7, #16
  55620. 80171c4: 46bd mov sp, r7
  55621. 80171c6: bd80 pop {r7, pc}
  55622. 80171c8: 24002ed0 .word 0x24002ed0
  55623. 80171cc: 240029f8 .word 0x240029f8
  55624. 80171d0: 24002eb8 .word 0x24002eb8
  55625. 80171d4: 24002e88 .word 0x24002e88
  55626. 80171d8: 24002e84 .word 0x24002e84
  55627. 80171dc: 24002eec .word 0x24002eec
  55628. 080171e0 <xTimerCreateTimerTask>:
  55629. TimerCallbackFunction_t pxCallbackFunction,
  55630. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  55631. /*-----------------------------------------------------------*/
  55632. BaseType_t xTimerCreateTimerTask( void )
  55633. {
  55634. 80171e0: b580 push {r7, lr}
  55635. 80171e2: b08a sub sp, #40 @ 0x28
  55636. 80171e4: af04 add r7, sp, #16
  55637. BaseType_t xReturn = pdFAIL;
  55638. 80171e6: 2300 movs r3, #0
  55639. 80171e8: 617b str r3, [r7, #20]
  55640. /* This function is called when the scheduler is started if
  55641. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  55642. timer service task has been created/initialised. If timers have already
  55643. been created then the initialisation will already have been performed. */
  55644. prvCheckForValidListAndQueue();
  55645. 80171ea: f000 fbb1 bl 8017950 <prvCheckForValidListAndQueue>
  55646. if( xTimerQueue != NULL )
  55647. 80171ee: 4b1d ldr r3, [pc, #116] @ (8017264 <xTimerCreateTimerTask+0x84>)
  55648. 80171f0: 681b ldr r3, [r3, #0]
  55649. 80171f2: 2b00 cmp r3, #0
  55650. 80171f4: d021 beq.n 801723a <xTimerCreateTimerTask+0x5a>
  55651. {
  55652. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  55653. {
  55654. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  55655. 80171f6: 2300 movs r3, #0
  55656. 80171f8: 60fb str r3, [r7, #12]
  55657. StackType_t *pxTimerTaskStackBuffer = NULL;
  55658. 80171fa: 2300 movs r3, #0
  55659. 80171fc: 60bb str r3, [r7, #8]
  55660. uint32_t ulTimerTaskStackSize;
  55661. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  55662. 80171fe: 1d3a adds r2, r7, #4
  55663. 8017200: f107 0108 add.w r1, r7, #8
  55664. 8017204: f107 030c add.w r3, r7, #12
  55665. 8017208: 4618 mov r0, r3
  55666. 801720a: f7fd fb17 bl 801483c <vApplicationGetTimerTaskMemory>
  55667. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  55668. 801720e: 6879 ldr r1, [r7, #4]
  55669. 8017210: 68bb ldr r3, [r7, #8]
  55670. 8017212: 68fa ldr r2, [r7, #12]
  55671. 8017214: 9202 str r2, [sp, #8]
  55672. 8017216: 9301 str r3, [sp, #4]
  55673. 8017218: 2302 movs r3, #2
  55674. 801721a: 9300 str r3, [sp, #0]
  55675. 801721c: 2300 movs r3, #0
  55676. 801721e: 460a mov r2, r1
  55677. 8017220: 4911 ldr r1, [pc, #68] @ (8017268 <xTimerCreateTimerTask+0x88>)
  55678. 8017222: 4812 ldr r0, [pc, #72] @ (801726c <xTimerCreateTimerTask+0x8c>)
  55679. 8017224: f7fe fd2f bl 8015c86 <xTaskCreateStatic>
  55680. 8017228: 4603 mov r3, r0
  55681. 801722a: 4a11 ldr r2, [pc, #68] @ (8017270 <xTimerCreateTimerTask+0x90>)
  55682. 801722c: 6013 str r3, [r2, #0]
  55683. NULL,
  55684. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  55685. pxTimerTaskStackBuffer,
  55686. pxTimerTaskTCBBuffer );
  55687. if( xTimerTaskHandle != NULL )
  55688. 801722e: 4b10 ldr r3, [pc, #64] @ (8017270 <xTimerCreateTimerTask+0x90>)
  55689. 8017230: 681b ldr r3, [r3, #0]
  55690. 8017232: 2b00 cmp r3, #0
  55691. 8017234: d001 beq.n 801723a <xTimerCreateTimerTask+0x5a>
  55692. {
  55693. xReturn = pdPASS;
  55694. 8017236: 2301 movs r3, #1
  55695. 8017238: 617b str r3, [r7, #20]
  55696. else
  55697. {
  55698. mtCOVERAGE_TEST_MARKER();
  55699. }
  55700. configASSERT( xReturn );
  55701. 801723a: 697b ldr r3, [r7, #20]
  55702. 801723c: 2b00 cmp r3, #0
  55703. 801723e: d10b bne.n 8017258 <xTimerCreateTimerTask+0x78>
  55704. __asm volatile
  55705. 8017240: f04f 0350 mov.w r3, #80 @ 0x50
  55706. 8017244: f383 8811 msr BASEPRI, r3
  55707. 8017248: f3bf 8f6f isb sy
  55708. 801724c: f3bf 8f4f dsb sy
  55709. 8017250: 613b str r3, [r7, #16]
  55710. }
  55711. 8017252: bf00 nop
  55712. 8017254: bf00 nop
  55713. 8017256: e7fd b.n 8017254 <xTimerCreateTimerTask+0x74>
  55714. return xReturn;
  55715. 8017258: 697b ldr r3, [r7, #20]
  55716. }
  55717. 801725a: 4618 mov r0, r3
  55718. 801725c: 3718 adds r7, #24
  55719. 801725e: 46bd mov sp, r7
  55720. 8017260: bd80 pop {r7, pc}
  55721. 8017262: bf00 nop
  55722. 8017264: 24002f28 .word 0x24002f28
  55723. 8017268: 08018668 .word 0x08018668
  55724. 801726c: 080174e9 .word 0x080174e9
  55725. 8017270: 24002f2c .word 0x24002f2c
  55726. 08017274 <xTimerCreate>:
  55727. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  55728. const TickType_t xTimerPeriodInTicks,
  55729. const UBaseType_t uxAutoReload,
  55730. void * const pvTimerID,
  55731. TimerCallbackFunction_t pxCallbackFunction )
  55732. {
  55733. 8017274: b580 push {r7, lr}
  55734. 8017276: b088 sub sp, #32
  55735. 8017278: af02 add r7, sp, #8
  55736. 801727a: 60f8 str r0, [r7, #12]
  55737. 801727c: 60b9 str r1, [r7, #8]
  55738. 801727e: 607a str r2, [r7, #4]
  55739. 8017280: 603b str r3, [r7, #0]
  55740. Timer_t *pxNewTimer;
  55741. 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. */
  55742. 8017282: 202c movs r0, #44 @ 0x2c
  55743. 8017284: f000 fe42 bl 8017f0c <pvPortMalloc>
  55744. 8017288: 6178 str r0, [r7, #20]
  55745. if( pxNewTimer != NULL )
  55746. 801728a: 697b ldr r3, [r7, #20]
  55747. 801728c: 2b00 cmp r3, #0
  55748. 801728e: d00d beq.n 80172ac <xTimerCreate+0x38>
  55749. {
  55750. /* Status is thus far zero as the timer is not created statically
  55751. and has not been started. The auto-reload bit may get set in
  55752. prvInitialiseNewTimer. */
  55753. pxNewTimer->ucStatus = 0x00;
  55754. 8017290: 697b ldr r3, [r7, #20]
  55755. 8017292: 2200 movs r2, #0
  55756. 8017294: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55757. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55758. 8017298: 697b ldr r3, [r7, #20]
  55759. 801729a: 9301 str r3, [sp, #4]
  55760. 801729c: 6a3b ldr r3, [r7, #32]
  55761. 801729e: 9300 str r3, [sp, #0]
  55762. 80172a0: 683b ldr r3, [r7, #0]
  55763. 80172a2: 687a ldr r2, [r7, #4]
  55764. 80172a4: 68b9 ldr r1, [r7, #8]
  55765. 80172a6: 68f8 ldr r0, [r7, #12]
  55766. 80172a8: f000 f845 bl 8017336 <prvInitialiseNewTimer>
  55767. }
  55768. return pxNewTimer;
  55769. 80172ac: 697b ldr r3, [r7, #20]
  55770. }
  55771. 80172ae: 4618 mov r0, r3
  55772. 80172b0: 3718 adds r7, #24
  55773. 80172b2: 46bd mov sp, r7
  55774. 80172b4: bd80 pop {r7, pc}
  55775. 080172b6 <xTimerCreateStatic>:
  55776. const TickType_t xTimerPeriodInTicks,
  55777. const UBaseType_t uxAutoReload,
  55778. void * const pvTimerID,
  55779. TimerCallbackFunction_t pxCallbackFunction,
  55780. StaticTimer_t *pxTimerBuffer )
  55781. {
  55782. 80172b6: b580 push {r7, lr}
  55783. 80172b8: b08a sub sp, #40 @ 0x28
  55784. 80172ba: af02 add r7, sp, #8
  55785. 80172bc: 60f8 str r0, [r7, #12]
  55786. 80172be: 60b9 str r1, [r7, #8]
  55787. 80172c0: 607a str r2, [r7, #4]
  55788. 80172c2: 603b str r3, [r7, #0]
  55789. #if( configASSERT_DEFINED == 1 )
  55790. {
  55791. /* Sanity check that the size of the structure used to declare a
  55792. variable of type StaticTimer_t equals the size of the real timer
  55793. structure. */
  55794. volatile size_t xSize = sizeof( StaticTimer_t );
  55795. 80172c4: 232c movs r3, #44 @ 0x2c
  55796. 80172c6: 613b str r3, [r7, #16]
  55797. configASSERT( xSize == sizeof( Timer_t ) );
  55798. 80172c8: 693b ldr r3, [r7, #16]
  55799. 80172ca: 2b2c cmp r3, #44 @ 0x2c
  55800. 80172cc: d00b beq.n 80172e6 <xTimerCreateStatic+0x30>
  55801. __asm volatile
  55802. 80172ce: f04f 0350 mov.w r3, #80 @ 0x50
  55803. 80172d2: f383 8811 msr BASEPRI, r3
  55804. 80172d6: f3bf 8f6f isb sy
  55805. 80172da: f3bf 8f4f dsb sy
  55806. 80172de: 61bb str r3, [r7, #24]
  55807. }
  55808. 80172e0: bf00 nop
  55809. 80172e2: bf00 nop
  55810. 80172e4: e7fd b.n 80172e2 <xTimerCreateStatic+0x2c>
  55811. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  55812. 80172e6: 693b ldr r3, [r7, #16]
  55813. }
  55814. #endif /* configASSERT_DEFINED */
  55815. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  55816. configASSERT( pxTimerBuffer );
  55817. 80172e8: 6afb ldr r3, [r7, #44] @ 0x2c
  55818. 80172ea: 2b00 cmp r3, #0
  55819. 80172ec: d10b bne.n 8017306 <xTimerCreateStatic+0x50>
  55820. __asm volatile
  55821. 80172ee: f04f 0350 mov.w r3, #80 @ 0x50
  55822. 80172f2: f383 8811 msr BASEPRI, r3
  55823. 80172f6: f3bf 8f6f isb sy
  55824. 80172fa: f3bf 8f4f dsb sy
  55825. 80172fe: 617b str r3, [r7, #20]
  55826. }
  55827. 8017300: bf00 nop
  55828. 8017302: bf00 nop
  55829. 8017304: e7fd b.n 8017302 <xTimerCreateStatic+0x4c>
  55830. 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. */
  55831. 8017306: 6afb ldr r3, [r7, #44] @ 0x2c
  55832. 8017308: 61fb str r3, [r7, #28]
  55833. if( pxNewTimer != NULL )
  55834. 801730a: 69fb ldr r3, [r7, #28]
  55835. 801730c: 2b00 cmp r3, #0
  55836. 801730e: d00d beq.n 801732c <xTimerCreateStatic+0x76>
  55837. {
  55838. /* Timers can be created statically or dynamically so note this
  55839. timer was created statically in case it is later deleted. The
  55840. auto-reload bit may get set in prvInitialiseNewTimer(). */
  55841. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  55842. 8017310: 69fb ldr r3, [r7, #28]
  55843. 8017312: 2202 movs r2, #2
  55844. 8017314: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55845. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55846. 8017318: 69fb ldr r3, [r7, #28]
  55847. 801731a: 9301 str r3, [sp, #4]
  55848. 801731c: 6abb ldr r3, [r7, #40] @ 0x28
  55849. 801731e: 9300 str r3, [sp, #0]
  55850. 8017320: 683b ldr r3, [r7, #0]
  55851. 8017322: 687a ldr r2, [r7, #4]
  55852. 8017324: 68b9 ldr r1, [r7, #8]
  55853. 8017326: 68f8 ldr r0, [r7, #12]
  55854. 8017328: f000 f805 bl 8017336 <prvInitialiseNewTimer>
  55855. }
  55856. return pxNewTimer;
  55857. 801732c: 69fb ldr r3, [r7, #28]
  55858. }
  55859. 801732e: 4618 mov r0, r3
  55860. 8017330: 3720 adds r7, #32
  55861. 8017332: 46bd mov sp, r7
  55862. 8017334: bd80 pop {r7, pc}
  55863. 08017336 <prvInitialiseNewTimer>:
  55864. const TickType_t xTimerPeriodInTicks,
  55865. const UBaseType_t uxAutoReload,
  55866. void * const pvTimerID,
  55867. TimerCallbackFunction_t pxCallbackFunction,
  55868. Timer_t *pxNewTimer )
  55869. {
  55870. 8017336: b580 push {r7, lr}
  55871. 8017338: b086 sub sp, #24
  55872. 801733a: af00 add r7, sp, #0
  55873. 801733c: 60f8 str r0, [r7, #12]
  55874. 801733e: 60b9 str r1, [r7, #8]
  55875. 8017340: 607a str r2, [r7, #4]
  55876. 8017342: 603b str r3, [r7, #0]
  55877. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55878. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55879. 8017344: 68bb ldr r3, [r7, #8]
  55880. 8017346: 2b00 cmp r3, #0
  55881. 8017348: d10b bne.n 8017362 <prvInitialiseNewTimer+0x2c>
  55882. __asm volatile
  55883. 801734a: f04f 0350 mov.w r3, #80 @ 0x50
  55884. 801734e: f383 8811 msr BASEPRI, r3
  55885. 8017352: f3bf 8f6f isb sy
  55886. 8017356: f3bf 8f4f dsb sy
  55887. 801735a: 617b str r3, [r7, #20]
  55888. }
  55889. 801735c: bf00 nop
  55890. 801735e: bf00 nop
  55891. 8017360: e7fd b.n 801735e <prvInitialiseNewTimer+0x28>
  55892. if( pxNewTimer != NULL )
  55893. 8017362: 6a7b ldr r3, [r7, #36] @ 0x24
  55894. 8017364: 2b00 cmp r3, #0
  55895. 8017366: d01e beq.n 80173a6 <prvInitialiseNewTimer+0x70>
  55896. {
  55897. /* Ensure the infrastructure used by the timer service task has been
  55898. created/initialised. */
  55899. prvCheckForValidListAndQueue();
  55900. 8017368: f000 faf2 bl 8017950 <prvCheckForValidListAndQueue>
  55901. /* Initialise the timer structure members using the function
  55902. parameters. */
  55903. pxNewTimer->pcTimerName = pcTimerName;
  55904. 801736c: 6a7b ldr r3, [r7, #36] @ 0x24
  55905. 801736e: 68fa ldr r2, [r7, #12]
  55906. 8017370: 601a str r2, [r3, #0]
  55907. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55908. 8017372: 6a7b ldr r3, [r7, #36] @ 0x24
  55909. 8017374: 68ba ldr r2, [r7, #8]
  55910. 8017376: 619a str r2, [r3, #24]
  55911. pxNewTimer->pvTimerID = pvTimerID;
  55912. 8017378: 6a7b ldr r3, [r7, #36] @ 0x24
  55913. 801737a: 683a ldr r2, [r7, #0]
  55914. 801737c: 61da str r2, [r3, #28]
  55915. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55916. 801737e: 6a7b ldr r3, [r7, #36] @ 0x24
  55917. 8017380: 6a3a ldr r2, [r7, #32]
  55918. 8017382: 621a str r2, [r3, #32]
  55919. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55920. 8017384: 6a7b ldr r3, [r7, #36] @ 0x24
  55921. 8017386: 3304 adds r3, #4
  55922. 8017388: 4618 mov r0, r3
  55923. 801738a: f7fd fa91 bl 80148b0 <vListInitialiseItem>
  55924. if( uxAutoReload != pdFALSE )
  55925. 801738e: 687b ldr r3, [r7, #4]
  55926. 8017390: 2b00 cmp r3, #0
  55927. 8017392: d008 beq.n 80173a6 <prvInitialiseNewTimer+0x70>
  55928. {
  55929. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55930. 8017394: 6a7b ldr r3, [r7, #36] @ 0x24
  55931. 8017396: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55932. 801739a: f043 0304 orr.w r3, r3, #4
  55933. 801739e: b2da uxtb r2, r3
  55934. 80173a0: 6a7b ldr r3, [r7, #36] @ 0x24
  55935. 80173a2: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55936. }
  55937. traceTIMER_CREATE( pxNewTimer );
  55938. }
  55939. }
  55940. 80173a6: bf00 nop
  55941. 80173a8: 3718 adds r7, #24
  55942. 80173aa: 46bd mov sp, r7
  55943. 80173ac: bd80 pop {r7, pc}
  55944. ...
  55945. 080173b0 <xTimerGenericCommand>:
  55946. /*-----------------------------------------------------------*/
  55947. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  55948. {
  55949. 80173b0: b580 push {r7, lr}
  55950. 80173b2: b08a sub sp, #40 @ 0x28
  55951. 80173b4: af00 add r7, sp, #0
  55952. 80173b6: 60f8 str r0, [r7, #12]
  55953. 80173b8: 60b9 str r1, [r7, #8]
  55954. 80173ba: 607a str r2, [r7, #4]
  55955. 80173bc: 603b str r3, [r7, #0]
  55956. BaseType_t xReturn = pdFAIL;
  55957. 80173be: 2300 movs r3, #0
  55958. 80173c0: 627b str r3, [r7, #36] @ 0x24
  55959. DaemonTaskMessage_t xMessage;
  55960. configASSERT( xTimer );
  55961. 80173c2: 68fb ldr r3, [r7, #12]
  55962. 80173c4: 2b00 cmp r3, #0
  55963. 80173c6: d10b bne.n 80173e0 <xTimerGenericCommand+0x30>
  55964. __asm volatile
  55965. 80173c8: f04f 0350 mov.w r3, #80 @ 0x50
  55966. 80173cc: f383 8811 msr BASEPRI, r3
  55967. 80173d0: f3bf 8f6f isb sy
  55968. 80173d4: f3bf 8f4f dsb sy
  55969. 80173d8: 623b str r3, [r7, #32]
  55970. }
  55971. 80173da: bf00 nop
  55972. 80173dc: bf00 nop
  55973. 80173de: e7fd b.n 80173dc <xTimerGenericCommand+0x2c>
  55974. /* Send a message to the timer service task to perform a particular action
  55975. on a particular timer definition. */
  55976. if( xTimerQueue != NULL )
  55977. 80173e0: 4b19 ldr r3, [pc, #100] @ (8017448 <xTimerGenericCommand+0x98>)
  55978. 80173e2: 681b ldr r3, [r3, #0]
  55979. 80173e4: 2b00 cmp r3, #0
  55980. 80173e6: d02a beq.n 801743e <xTimerGenericCommand+0x8e>
  55981. {
  55982. /* Send a command to the timer service task to start the xTimer timer. */
  55983. xMessage.xMessageID = xCommandID;
  55984. 80173e8: 68bb ldr r3, [r7, #8]
  55985. 80173ea: 613b str r3, [r7, #16]
  55986. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  55987. 80173ec: 687b ldr r3, [r7, #4]
  55988. 80173ee: 617b str r3, [r7, #20]
  55989. xMessage.u.xTimerParameters.pxTimer = xTimer;
  55990. 80173f0: 68fb ldr r3, [r7, #12]
  55991. 80173f2: 61bb str r3, [r7, #24]
  55992. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  55993. 80173f4: 68bb ldr r3, [r7, #8]
  55994. 80173f6: 2b05 cmp r3, #5
  55995. 80173f8: dc18 bgt.n 801742c <xTimerGenericCommand+0x7c>
  55996. {
  55997. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  55998. 80173fa: f7ff fae1 bl 80169c0 <xTaskGetSchedulerState>
  55999. 80173fe: 4603 mov r3, r0
  56000. 8017400: 2b02 cmp r3, #2
  56001. 8017402: d109 bne.n 8017418 <xTimerGenericCommand+0x68>
  56002. {
  56003. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  56004. 8017404: 4b10 ldr r3, [pc, #64] @ (8017448 <xTimerGenericCommand+0x98>)
  56005. 8017406: 6818 ldr r0, [r3, #0]
  56006. 8017408: f107 0110 add.w r1, r7, #16
  56007. 801740c: 2300 movs r3, #0
  56008. 801740e: 6b3a ldr r2, [r7, #48] @ 0x30
  56009. 8017410: f7fd fce0 bl 8014dd4 <xQueueGenericSend>
  56010. 8017414: 6278 str r0, [r7, #36] @ 0x24
  56011. 8017416: e012 b.n 801743e <xTimerGenericCommand+0x8e>
  56012. }
  56013. else
  56014. {
  56015. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  56016. 8017418: 4b0b ldr r3, [pc, #44] @ (8017448 <xTimerGenericCommand+0x98>)
  56017. 801741a: 6818 ldr r0, [r3, #0]
  56018. 801741c: f107 0110 add.w r1, r7, #16
  56019. 8017420: 2300 movs r3, #0
  56020. 8017422: 2200 movs r2, #0
  56021. 8017424: f7fd fcd6 bl 8014dd4 <xQueueGenericSend>
  56022. 8017428: 6278 str r0, [r7, #36] @ 0x24
  56023. 801742a: e008 b.n 801743e <xTimerGenericCommand+0x8e>
  56024. }
  56025. }
  56026. else
  56027. {
  56028. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  56029. 801742c: 4b06 ldr r3, [pc, #24] @ (8017448 <xTimerGenericCommand+0x98>)
  56030. 801742e: 6818 ldr r0, [r3, #0]
  56031. 8017430: f107 0110 add.w r1, r7, #16
  56032. 8017434: 2300 movs r3, #0
  56033. 8017436: 683a ldr r2, [r7, #0]
  56034. 8017438: f7fd fdce bl 8014fd8 <xQueueGenericSendFromISR>
  56035. 801743c: 6278 str r0, [r7, #36] @ 0x24
  56036. else
  56037. {
  56038. mtCOVERAGE_TEST_MARKER();
  56039. }
  56040. return xReturn;
  56041. 801743e: 6a7b ldr r3, [r7, #36] @ 0x24
  56042. }
  56043. 8017440: 4618 mov r0, r3
  56044. 8017442: 3728 adds r7, #40 @ 0x28
  56045. 8017444: 46bd mov sp, r7
  56046. 8017446: bd80 pop {r7, pc}
  56047. 8017448: 24002f28 .word 0x24002f28
  56048. 0801744c <prvProcessExpiredTimer>:
  56049. return pxTimer->pcTimerName;
  56050. }
  56051. /*-----------------------------------------------------------*/
  56052. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  56053. {
  56054. 801744c: b580 push {r7, lr}
  56055. 801744e: b088 sub sp, #32
  56056. 8017450: af02 add r7, sp, #8
  56057. 8017452: 6078 str r0, [r7, #4]
  56058. 8017454: 6039 str r1, [r7, #0]
  56059. BaseType_t xResult;
  56060. 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. */
  56061. 8017456: 4b23 ldr r3, [pc, #140] @ (80174e4 <prvProcessExpiredTimer+0x98>)
  56062. 8017458: 681b ldr r3, [r3, #0]
  56063. 801745a: 68db ldr r3, [r3, #12]
  56064. 801745c: 68db ldr r3, [r3, #12]
  56065. 801745e: 617b str r3, [r7, #20]
  56066. /* Remove the timer from the list of active timers. A check has already
  56067. been performed to ensure the list is not empty. */
  56068. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56069. 8017460: 697b ldr r3, [r7, #20]
  56070. 8017462: 3304 adds r3, #4
  56071. 8017464: 4618 mov r0, r3
  56072. 8017466: f7fd fa8d bl 8014984 <uxListRemove>
  56073. traceTIMER_EXPIRED( pxTimer );
  56074. /* If the timer is an auto-reload timer then calculate the next
  56075. expiry time and re-insert the timer in the list of active timers. */
  56076. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56077. 801746a: 697b ldr r3, [r7, #20]
  56078. 801746c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56079. 8017470: f003 0304 and.w r3, r3, #4
  56080. 8017474: 2b00 cmp r3, #0
  56081. 8017476: d023 beq.n 80174c0 <prvProcessExpiredTimer+0x74>
  56082. {
  56083. /* The timer is inserted into a list using a time relative to anything
  56084. other than the current time. It will therefore be inserted into the
  56085. correct list relative to the time this task thinks it is now. */
  56086. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  56087. 8017478: 697b ldr r3, [r7, #20]
  56088. 801747a: 699a ldr r2, [r3, #24]
  56089. 801747c: 687b ldr r3, [r7, #4]
  56090. 801747e: 18d1 adds r1, r2, r3
  56091. 8017480: 687b ldr r3, [r7, #4]
  56092. 8017482: 683a ldr r2, [r7, #0]
  56093. 8017484: 6978 ldr r0, [r7, #20]
  56094. 8017486: f000 f8d5 bl 8017634 <prvInsertTimerInActiveList>
  56095. 801748a: 4603 mov r3, r0
  56096. 801748c: 2b00 cmp r3, #0
  56097. 801748e: d020 beq.n 80174d2 <prvProcessExpiredTimer+0x86>
  56098. {
  56099. /* The timer expired before it was added to the active timer
  56100. list. Reload it now. */
  56101. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56102. 8017490: 2300 movs r3, #0
  56103. 8017492: 9300 str r3, [sp, #0]
  56104. 8017494: 2300 movs r3, #0
  56105. 8017496: 687a ldr r2, [r7, #4]
  56106. 8017498: 2100 movs r1, #0
  56107. 801749a: 6978 ldr r0, [r7, #20]
  56108. 801749c: f7ff ff88 bl 80173b0 <xTimerGenericCommand>
  56109. 80174a0: 6138 str r0, [r7, #16]
  56110. configASSERT( xResult );
  56111. 80174a2: 693b ldr r3, [r7, #16]
  56112. 80174a4: 2b00 cmp r3, #0
  56113. 80174a6: d114 bne.n 80174d2 <prvProcessExpiredTimer+0x86>
  56114. __asm volatile
  56115. 80174a8: f04f 0350 mov.w r3, #80 @ 0x50
  56116. 80174ac: f383 8811 msr BASEPRI, r3
  56117. 80174b0: f3bf 8f6f isb sy
  56118. 80174b4: f3bf 8f4f dsb sy
  56119. 80174b8: 60fb str r3, [r7, #12]
  56120. }
  56121. 80174ba: bf00 nop
  56122. 80174bc: bf00 nop
  56123. 80174be: e7fd b.n 80174bc <prvProcessExpiredTimer+0x70>
  56124. mtCOVERAGE_TEST_MARKER();
  56125. }
  56126. }
  56127. else
  56128. {
  56129. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56130. 80174c0: 697b ldr r3, [r7, #20]
  56131. 80174c2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56132. 80174c6: f023 0301 bic.w r3, r3, #1
  56133. 80174ca: b2da uxtb r2, r3
  56134. 80174cc: 697b ldr r3, [r7, #20]
  56135. 80174ce: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56136. mtCOVERAGE_TEST_MARKER();
  56137. }
  56138. /* Call the timer callback. */
  56139. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56140. 80174d2: 697b ldr r3, [r7, #20]
  56141. 80174d4: 6a1b ldr r3, [r3, #32]
  56142. 80174d6: 6978 ldr r0, [r7, #20]
  56143. 80174d8: 4798 blx r3
  56144. }
  56145. 80174da: bf00 nop
  56146. 80174dc: 3718 adds r7, #24
  56147. 80174de: 46bd mov sp, r7
  56148. 80174e0: bd80 pop {r7, pc}
  56149. 80174e2: bf00 nop
  56150. 80174e4: 24002f20 .word 0x24002f20
  56151. 080174e8 <prvTimerTask>:
  56152. /*-----------------------------------------------------------*/
  56153. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  56154. {
  56155. 80174e8: b580 push {r7, lr}
  56156. 80174ea: b084 sub sp, #16
  56157. 80174ec: af00 add r7, sp, #0
  56158. 80174ee: 6078 str r0, [r7, #4]
  56159. for( ;; )
  56160. {
  56161. /* Query the timers list to see if it contains any timers, and if so,
  56162. obtain the time at which the next timer will expire. */
  56163. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56164. 80174f0: f107 0308 add.w r3, r7, #8
  56165. 80174f4: 4618 mov r0, r3
  56166. 80174f6: f000 f859 bl 80175ac <prvGetNextExpireTime>
  56167. 80174fa: 60f8 str r0, [r7, #12]
  56168. /* If a timer has expired, process it. Otherwise, block this task
  56169. until either a timer does expire, or a command is received. */
  56170. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  56171. 80174fc: 68bb ldr r3, [r7, #8]
  56172. 80174fe: 4619 mov r1, r3
  56173. 8017500: 68f8 ldr r0, [r7, #12]
  56174. 8017502: f000 f805 bl 8017510 <prvProcessTimerOrBlockTask>
  56175. /* Empty the command queue. */
  56176. prvProcessReceivedCommands();
  56177. 8017506: f000 f8d7 bl 80176b8 <prvProcessReceivedCommands>
  56178. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56179. 801750a: bf00 nop
  56180. 801750c: e7f0 b.n 80174f0 <prvTimerTask+0x8>
  56181. ...
  56182. 08017510 <prvProcessTimerOrBlockTask>:
  56183. }
  56184. }
  56185. /*-----------------------------------------------------------*/
  56186. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  56187. {
  56188. 8017510: b580 push {r7, lr}
  56189. 8017512: b084 sub sp, #16
  56190. 8017514: af00 add r7, sp, #0
  56191. 8017516: 6078 str r0, [r7, #4]
  56192. 8017518: 6039 str r1, [r7, #0]
  56193. TickType_t xTimeNow;
  56194. BaseType_t xTimerListsWereSwitched;
  56195. vTaskSuspendAll();
  56196. 801751a: f7fe fe17 bl 801614c <vTaskSuspendAll>
  56197. /* Obtain the time now to make an assessment as to whether the timer
  56198. has expired or not. If obtaining the time causes the lists to switch
  56199. then don't process this timer as any timers that remained in the list
  56200. when the lists were switched will have been processed within the
  56201. prvSampleTimeNow() function. */
  56202. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56203. 801751e: f107 0308 add.w r3, r7, #8
  56204. 8017522: 4618 mov r0, r3
  56205. 8017524: f000 f866 bl 80175f4 <prvSampleTimeNow>
  56206. 8017528: 60f8 str r0, [r7, #12]
  56207. if( xTimerListsWereSwitched == pdFALSE )
  56208. 801752a: 68bb ldr r3, [r7, #8]
  56209. 801752c: 2b00 cmp r3, #0
  56210. 801752e: d130 bne.n 8017592 <prvProcessTimerOrBlockTask+0x82>
  56211. {
  56212. /* The tick count has not overflowed, has the timer expired? */
  56213. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  56214. 8017530: 683b ldr r3, [r7, #0]
  56215. 8017532: 2b00 cmp r3, #0
  56216. 8017534: d10a bne.n 801754c <prvProcessTimerOrBlockTask+0x3c>
  56217. 8017536: 687a ldr r2, [r7, #4]
  56218. 8017538: 68fb ldr r3, [r7, #12]
  56219. 801753a: 429a cmp r2, r3
  56220. 801753c: d806 bhi.n 801754c <prvProcessTimerOrBlockTask+0x3c>
  56221. {
  56222. ( void ) xTaskResumeAll();
  56223. 801753e: f7fe fe13 bl 8016168 <xTaskResumeAll>
  56224. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  56225. 8017542: 68f9 ldr r1, [r7, #12]
  56226. 8017544: 6878 ldr r0, [r7, #4]
  56227. 8017546: f7ff ff81 bl 801744c <prvProcessExpiredTimer>
  56228. else
  56229. {
  56230. ( void ) xTaskResumeAll();
  56231. }
  56232. }
  56233. }
  56234. 801754a: e024 b.n 8017596 <prvProcessTimerOrBlockTask+0x86>
  56235. if( xListWasEmpty != pdFALSE )
  56236. 801754c: 683b ldr r3, [r7, #0]
  56237. 801754e: 2b00 cmp r3, #0
  56238. 8017550: d008 beq.n 8017564 <prvProcessTimerOrBlockTask+0x54>
  56239. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  56240. 8017552: 4b13 ldr r3, [pc, #76] @ (80175a0 <prvProcessTimerOrBlockTask+0x90>)
  56241. 8017554: 681b ldr r3, [r3, #0]
  56242. 8017556: 681b ldr r3, [r3, #0]
  56243. 8017558: 2b00 cmp r3, #0
  56244. 801755a: d101 bne.n 8017560 <prvProcessTimerOrBlockTask+0x50>
  56245. 801755c: 2301 movs r3, #1
  56246. 801755e: e000 b.n 8017562 <prvProcessTimerOrBlockTask+0x52>
  56247. 8017560: 2300 movs r3, #0
  56248. 8017562: 603b str r3, [r7, #0]
  56249. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  56250. 8017564: 4b0f ldr r3, [pc, #60] @ (80175a4 <prvProcessTimerOrBlockTask+0x94>)
  56251. 8017566: 6818 ldr r0, [r3, #0]
  56252. 8017568: 687a ldr r2, [r7, #4]
  56253. 801756a: 68fb ldr r3, [r7, #12]
  56254. 801756c: 1ad3 subs r3, r2, r3
  56255. 801756e: 683a ldr r2, [r7, #0]
  56256. 8017570: 4619 mov r1, r3
  56257. 8017572: f7fe f995 bl 80158a0 <vQueueWaitForMessageRestricted>
  56258. if( xTaskResumeAll() == pdFALSE )
  56259. 8017576: f7fe fdf7 bl 8016168 <xTaskResumeAll>
  56260. 801757a: 4603 mov r3, r0
  56261. 801757c: 2b00 cmp r3, #0
  56262. 801757e: d10a bne.n 8017596 <prvProcessTimerOrBlockTask+0x86>
  56263. portYIELD_WITHIN_API();
  56264. 8017580: 4b09 ldr r3, [pc, #36] @ (80175a8 <prvProcessTimerOrBlockTask+0x98>)
  56265. 8017582: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56266. 8017586: 601a str r2, [r3, #0]
  56267. 8017588: f3bf 8f4f dsb sy
  56268. 801758c: f3bf 8f6f isb sy
  56269. }
  56270. 8017590: e001 b.n 8017596 <prvProcessTimerOrBlockTask+0x86>
  56271. ( void ) xTaskResumeAll();
  56272. 8017592: f7fe fde9 bl 8016168 <xTaskResumeAll>
  56273. }
  56274. 8017596: bf00 nop
  56275. 8017598: 3710 adds r7, #16
  56276. 801759a: 46bd mov sp, r7
  56277. 801759c: bd80 pop {r7, pc}
  56278. 801759e: bf00 nop
  56279. 80175a0: 24002f24 .word 0x24002f24
  56280. 80175a4: 24002f28 .word 0x24002f28
  56281. 80175a8: e000ed04 .word 0xe000ed04
  56282. 080175ac <prvGetNextExpireTime>:
  56283. /*-----------------------------------------------------------*/
  56284. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  56285. {
  56286. 80175ac: b480 push {r7}
  56287. 80175ae: b085 sub sp, #20
  56288. 80175b0: af00 add r7, sp, #0
  56289. 80175b2: 6078 str r0, [r7, #4]
  56290. the timer with the nearest expiry time will expire. If there are no
  56291. active timers then just set the next expire time to 0. That will cause
  56292. this task to unblock when the tick count overflows, at which point the
  56293. timer lists will be switched and the next expiry time can be
  56294. re-assessed. */
  56295. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  56296. 80175b4: 4b0e ldr r3, [pc, #56] @ (80175f0 <prvGetNextExpireTime+0x44>)
  56297. 80175b6: 681b ldr r3, [r3, #0]
  56298. 80175b8: 681b ldr r3, [r3, #0]
  56299. 80175ba: 2b00 cmp r3, #0
  56300. 80175bc: d101 bne.n 80175c2 <prvGetNextExpireTime+0x16>
  56301. 80175be: 2201 movs r2, #1
  56302. 80175c0: e000 b.n 80175c4 <prvGetNextExpireTime+0x18>
  56303. 80175c2: 2200 movs r2, #0
  56304. 80175c4: 687b ldr r3, [r7, #4]
  56305. 80175c6: 601a str r2, [r3, #0]
  56306. if( *pxListWasEmpty == pdFALSE )
  56307. 80175c8: 687b ldr r3, [r7, #4]
  56308. 80175ca: 681b ldr r3, [r3, #0]
  56309. 80175cc: 2b00 cmp r3, #0
  56310. 80175ce: d105 bne.n 80175dc <prvGetNextExpireTime+0x30>
  56311. {
  56312. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56313. 80175d0: 4b07 ldr r3, [pc, #28] @ (80175f0 <prvGetNextExpireTime+0x44>)
  56314. 80175d2: 681b ldr r3, [r3, #0]
  56315. 80175d4: 68db ldr r3, [r3, #12]
  56316. 80175d6: 681b ldr r3, [r3, #0]
  56317. 80175d8: 60fb str r3, [r7, #12]
  56318. 80175da: e001 b.n 80175e0 <prvGetNextExpireTime+0x34>
  56319. }
  56320. else
  56321. {
  56322. /* Ensure the task unblocks when the tick count rolls over. */
  56323. xNextExpireTime = ( TickType_t ) 0U;
  56324. 80175dc: 2300 movs r3, #0
  56325. 80175de: 60fb str r3, [r7, #12]
  56326. }
  56327. return xNextExpireTime;
  56328. 80175e0: 68fb ldr r3, [r7, #12]
  56329. }
  56330. 80175e2: 4618 mov r0, r3
  56331. 80175e4: 3714 adds r7, #20
  56332. 80175e6: 46bd mov sp, r7
  56333. 80175e8: f85d 7b04 ldr.w r7, [sp], #4
  56334. 80175ec: 4770 bx lr
  56335. 80175ee: bf00 nop
  56336. 80175f0: 24002f20 .word 0x24002f20
  56337. 080175f4 <prvSampleTimeNow>:
  56338. /*-----------------------------------------------------------*/
  56339. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  56340. {
  56341. 80175f4: b580 push {r7, lr}
  56342. 80175f6: b084 sub sp, #16
  56343. 80175f8: af00 add r7, sp, #0
  56344. 80175fa: 6078 str r0, [r7, #4]
  56345. TickType_t xTimeNow;
  56346. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  56347. xTimeNow = xTaskGetTickCount();
  56348. 80175fc: f7fe fe52 bl 80162a4 <xTaskGetTickCount>
  56349. 8017600: 60f8 str r0, [r7, #12]
  56350. if( xTimeNow < xLastTime )
  56351. 8017602: 4b0b ldr r3, [pc, #44] @ (8017630 <prvSampleTimeNow+0x3c>)
  56352. 8017604: 681b ldr r3, [r3, #0]
  56353. 8017606: 68fa ldr r2, [r7, #12]
  56354. 8017608: 429a cmp r2, r3
  56355. 801760a: d205 bcs.n 8017618 <prvSampleTimeNow+0x24>
  56356. {
  56357. prvSwitchTimerLists();
  56358. 801760c: f000 f93a bl 8017884 <prvSwitchTimerLists>
  56359. *pxTimerListsWereSwitched = pdTRUE;
  56360. 8017610: 687b ldr r3, [r7, #4]
  56361. 8017612: 2201 movs r2, #1
  56362. 8017614: 601a str r2, [r3, #0]
  56363. 8017616: e002 b.n 801761e <prvSampleTimeNow+0x2a>
  56364. }
  56365. else
  56366. {
  56367. *pxTimerListsWereSwitched = pdFALSE;
  56368. 8017618: 687b ldr r3, [r7, #4]
  56369. 801761a: 2200 movs r2, #0
  56370. 801761c: 601a str r2, [r3, #0]
  56371. }
  56372. xLastTime = xTimeNow;
  56373. 801761e: 4a04 ldr r2, [pc, #16] @ (8017630 <prvSampleTimeNow+0x3c>)
  56374. 8017620: 68fb ldr r3, [r7, #12]
  56375. 8017622: 6013 str r3, [r2, #0]
  56376. return xTimeNow;
  56377. 8017624: 68fb ldr r3, [r7, #12]
  56378. }
  56379. 8017626: 4618 mov r0, r3
  56380. 8017628: 3710 adds r7, #16
  56381. 801762a: 46bd mov sp, r7
  56382. 801762c: bd80 pop {r7, pc}
  56383. 801762e: bf00 nop
  56384. 8017630: 24002f30 .word 0x24002f30
  56385. 08017634 <prvInsertTimerInActiveList>:
  56386. /*-----------------------------------------------------------*/
  56387. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  56388. {
  56389. 8017634: b580 push {r7, lr}
  56390. 8017636: b086 sub sp, #24
  56391. 8017638: af00 add r7, sp, #0
  56392. 801763a: 60f8 str r0, [r7, #12]
  56393. 801763c: 60b9 str r1, [r7, #8]
  56394. 801763e: 607a str r2, [r7, #4]
  56395. 8017640: 603b str r3, [r7, #0]
  56396. BaseType_t xProcessTimerNow = pdFALSE;
  56397. 8017642: 2300 movs r3, #0
  56398. 8017644: 617b str r3, [r7, #20]
  56399. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  56400. 8017646: 68fb ldr r3, [r7, #12]
  56401. 8017648: 68ba ldr r2, [r7, #8]
  56402. 801764a: 605a str r2, [r3, #4]
  56403. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56404. 801764c: 68fb ldr r3, [r7, #12]
  56405. 801764e: 68fa ldr r2, [r7, #12]
  56406. 8017650: 611a str r2, [r3, #16]
  56407. if( xNextExpiryTime <= xTimeNow )
  56408. 8017652: 68ba ldr r2, [r7, #8]
  56409. 8017654: 687b ldr r3, [r7, #4]
  56410. 8017656: 429a cmp r2, r3
  56411. 8017658: d812 bhi.n 8017680 <prvInsertTimerInActiveList+0x4c>
  56412. {
  56413. /* Has the expiry time elapsed between the command to start/reset a
  56414. timer was issued, and the time the command was processed? */
  56415. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  56416. 801765a: 687a ldr r2, [r7, #4]
  56417. 801765c: 683b ldr r3, [r7, #0]
  56418. 801765e: 1ad2 subs r2, r2, r3
  56419. 8017660: 68fb ldr r3, [r7, #12]
  56420. 8017662: 699b ldr r3, [r3, #24]
  56421. 8017664: 429a cmp r2, r3
  56422. 8017666: d302 bcc.n 801766e <prvInsertTimerInActiveList+0x3a>
  56423. {
  56424. /* The time between a command being issued and the command being
  56425. processed actually exceeds the timers period. */
  56426. xProcessTimerNow = pdTRUE;
  56427. 8017668: 2301 movs r3, #1
  56428. 801766a: 617b str r3, [r7, #20]
  56429. 801766c: e01b b.n 80176a6 <prvInsertTimerInActiveList+0x72>
  56430. }
  56431. else
  56432. {
  56433. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  56434. 801766e: 4b10 ldr r3, [pc, #64] @ (80176b0 <prvInsertTimerInActiveList+0x7c>)
  56435. 8017670: 681a ldr r2, [r3, #0]
  56436. 8017672: 68fb ldr r3, [r7, #12]
  56437. 8017674: 3304 adds r3, #4
  56438. 8017676: 4619 mov r1, r3
  56439. 8017678: 4610 mov r0, r2
  56440. 801767a: f7fd f94a bl 8014912 <vListInsert>
  56441. 801767e: e012 b.n 80176a6 <prvInsertTimerInActiveList+0x72>
  56442. }
  56443. }
  56444. else
  56445. {
  56446. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  56447. 8017680: 687a ldr r2, [r7, #4]
  56448. 8017682: 683b ldr r3, [r7, #0]
  56449. 8017684: 429a cmp r2, r3
  56450. 8017686: d206 bcs.n 8017696 <prvInsertTimerInActiveList+0x62>
  56451. 8017688: 68ba ldr r2, [r7, #8]
  56452. 801768a: 683b ldr r3, [r7, #0]
  56453. 801768c: 429a cmp r2, r3
  56454. 801768e: d302 bcc.n 8017696 <prvInsertTimerInActiveList+0x62>
  56455. {
  56456. /* If, since the command was issued, the tick count has overflowed
  56457. but the expiry time has not, then the timer must have already passed
  56458. its expiry time and should be processed immediately. */
  56459. xProcessTimerNow = pdTRUE;
  56460. 8017690: 2301 movs r3, #1
  56461. 8017692: 617b str r3, [r7, #20]
  56462. 8017694: e007 b.n 80176a6 <prvInsertTimerInActiveList+0x72>
  56463. }
  56464. else
  56465. {
  56466. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56467. 8017696: 4b07 ldr r3, [pc, #28] @ (80176b4 <prvInsertTimerInActiveList+0x80>)
  56468. 8017698: 681a ldr r2, [r3, #0]
  56469. 801769a: 68fb ldr r3, [r7, #12]
  56470. 801769c: 3304 adds r3, #4
  56471. 801769e: 4619 mov r1, r3
  56472. 80176a0: 4610 mov r0, r2
  56473. 80176a2: f7fd f936 bl 8014912 <vListInsert>
  56474. }
  56475. }
  56476. return xProcessTimerNow;
  56477. 80176a6: 697b ldr r3, [r7, #20]
  56478. }
  56479. 80176a8: 4618 mov r0, r3
  56480. 80176aa: 3718 adds r7, #24
  56481. 80176ac: 46bd mov sp, r7
  56482. 80176ae: bd80 pop {r7, pc}
  56483. 80176b0: 24002f24 .word 0x24002f24
  56484. 80176b4: 24002f20 .word 0x24002f20
  56485. 080176b8 <prvProcessReceivedCommands>:
  56486. /*-----------------------------------------------------------*/
  56487. static void prvProcessReceivedCommands( void )
  56488. {
  56489. 80176b8: b580 push {r7, lr}
  56490. 80176ba: b08e sub sp, #56 @ 0x38
  56491. 80176bc: af02 add r7, sp, #8
  56492. DaemonTaskMessage_t xMessage;
  56493. Timer_t *pxTimer;
  56494. BaseType_t xTimerListsWereSwitched, xResult;
  56495. TickType_t xTimeNow;
  56496. 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. */
  56497. 80176be: e0ce b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56498. {
  56499. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  56500. {
  56501. /* Negative commands are pended function calls rather than timer
  56502. commands. */
  56503. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  56504. 80176c0: 687b ldr r3, [r7, #4]
  56505. 80176c2: 2b00 cmp r3, #0
  56506. 80176c4: da19 bge.n 80176fa <prvProcessReceivedCommands+0x42>
  56507. {
  56508. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  56509. 80176c6: 1d3b adds r3, r7, #4
  56510. 80176c8: 3304 adds r3, #4
  56511. 80176ca: 62fb str r3, [r7, #44] @ 0x2c
  56512. /* The timer uses the xCallbackParameters member to request a
  56513. callback be executed. Check the callback is not NULL. */
  56514. configASSERT( pxCallback );
  56515. 80176cc: 6afb ldr r3, [r7, #44] @ 0x2c
  56516. 80176ce: 2b00 cmp r3, #0
  56517. 80176d0: d10b bne.n 80176ea <prvProcessReceivedCommands+0x32>
  56518. __asm volatile
  56519. 80176d2: f04f 0350 mov.w r3, #80 @ 0x50
  56520. 80176d6: f383 8811 msr BASEPRI, r3
  56521. 80176da: f3bf 8f6f isb sy
  56522. 80176de: f3bf 8f4f dsb sy
  56523. 80176e2: 61fb str r3, [r7, #28]
  56524. }
  56525. 80176e4: bf00 nop
  56526. 80176e6: bf00 nop
  56527. 80176e8: e7fd b.n 80176e6 <prvProcessReceivedCommands+0x2e>
  56528. /* Call the function. */
  56529. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  56530. 80176ea: 6afb ldr r3, [r7, #44] @ 0x2c
  56531. 80176ec: 681b ldr r3, [r3, #0]
  56532. 80176ee: 6afa ldr r2, [r7, #44] @ 0x2c
  56533. 80176f0: 6850 ldr r0, [r2, #4]
  56534. 80176f2: 6afa ldr r2, [r7, #44] @ 0x2c
  56535. 80176f4: 6892 ldr r2, [r2, #8]
  56536. 80176f6: 4611 mov r1, r2
  56537. 80176f8: 4798 blx r3
  56538. }
  56539. #endif /* INCLUDE_xTimerPendFunctionCall */
  56540. /* Commands that are positive are timer commands rather than pended
  56541. function calls. */
  56542. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  56543. 80176fa: 687b ldr r3, [r7, #4]
  56544. 80176fc: 2b00 cmp r3, #0
  56545. 80176fe: f2c0 80ae blt.w 801785e <prvProcessReceivedCommands+0x1a6>
  56546. {
  56547. /* The messages uses the xTimerParameters member to work on a
  56548. software timer. */
  56549. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  56550. 8017702: 68fb ldr r3, [r7, #12]
  56551. 8017704: 62bb str r3, [r7, #40] @ 0x28
  56552. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  56553. 8017706: 6abb ldr r3, [r7, #40] @ 0x28
  56554. 8017708: 695b ldr r3, [r3, #20]
  56555. 801770a: 2b00 cmp r3, #0
  56556. 801770c: d004 beq.n 8017718 <prvProcessReceivedCommands+0x60>
  56557. {
  56558. /* The timer is in a list, remove it. */
  56559. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56560. 801770e: 6abb ldr r3, [r7, #40] @ 0x28
  56561. 8017710: 3304 adds r3, #4
  56562. 8017712: 4618 mov r0, r3
  56563. 8017714: f7fd f936 bl 8014984 <uxListRemove>
  56564. it must be present in the function call. prvSampleTimeNow() must be
  56565. called after the message is received from xTimerQueue so there is no
  56566. possibility of a higher priority task adding a message to the message
  56567. queue with a time that is ahead of the timer daemon task (because it
  56568. pre-empted the timer daemon task after the xTimeNow value was set). */
  56569. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56570. 8017718: 463b mov r3, r7
  56571. 801771a: 4618 mov r0, r3
  56572. 801771c: f7ff ff6a bl 80175f4 <prvSampleTimeNow>
  56573. 8017720: 6278 str r0, [r7, #36] @ 0x24
  56574. switch( xMessage.xMessageID )
  56575. 8017722: 687b ldr r3, [r7, #4]
  56576. 8017724: 2b09 cmp r3, #9
  56577. 8017726: f200 8097 bhi.w 8017858 <prvProcessReceivedCommands+0x1a0>
  56578. 801772a: a201 add r2, pc, #4 @ (adr r2, 8017730 <prvProcessReceivedCommands+0x78>)
  56579. 801772c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  56580. 8017730: 08017759 .word 0x08017759
  56581. 8017734: 08017759 .word 0x08017759
  56582. 8017738: 08017759 .word 0x08017759
  56583. 801773c: 080177cf .word 0x080177cf
  56584. 8017740: 080177e3 .word 0x080177e3
  56585. 8017744: 0801782f .word 0x0801782f
  56586. 8017748: 08017759 .word 0x08017759
  56587. 801774c: 08017759 .word 0x08017759
  56588. 8017750: 080177cf .word 0x080177cf
  56589. 8017754: 080177e3 .word 0x080177e3
  56590. case tmrCOMMAND_START_FROM_ISR :
  56591. case tmrCOMMAND_RESET :
  56592. case tmrCOMMAND_RESET_FROM_ISR :
  56593. case tmrCOMMAND_START_DONT_TRACE :
  56594. /* Start or restart a timer. */
  56595. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56596. 8017758: 6abb ldr r3, [r7, #40] @ 0x28
  56597. 801775a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56598. 801775e: f043 0301 orr.w r3, r3, #1
  56599. 8017762: b2da uxtb r2, r3
  56600. 8017764: 6abb ldr r3, [r7, #40] @ 0x28
  56601. 8017766: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56602. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  56603. 801776a: 68ba ldr r2, [r7, #8]
  56604. 801776c: 6abb ldr r3, [r7, #40] @ 0x28
  56605. 801776e: 699b ldr r3, [r3, #24]
  56606. 8017770: 18d1 adds r1, r2, r3
  56607. 8017772: 68bb ldr r3, [r7, #8]
  56608. 8017774: 6a7a ldr r2, [r7, #36] @ 0x24
  56609. 8017776: 6ab8 ldr r0, [r7, #40] @ 0x28
  56610. 8017778: f7ff ff5c bl 8017634 <prvInsertTimerInActiveList>
  56611. 801777c: 4603 mov r3, r0
  56612. 801777e: 2b00 cmp r3, #0
  56613. 8017780: d06c beq.n 801785c <prvProcessReceivedCommands+0x1a4>
  56614. {
  56615. /* The timer expired before it was added to the active
  56616. timer list. Process it now. */
  56617. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56618. 8017782: 6abb ldr r3, [r7, #40] @ 0x28
  56619. 8017784: 6a1b ldr r3, [r3, #32]
  56620. 8017786: 6ab8 ldr r0, [r7, #40] @ 0x28
  56621. 8017788: 4798 blx r3
  56622. traceTIMER_EXPIRED( pxTimer );
  56623. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56624. 801778a: 6abb ldr r3, [r7, #40] @ 0x28
  56625. 801778c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56626. 8017790: f003 0304 and.w r3, r3, #4
  56627. 8017794: 2b00 cmp r3, #0
  56628. 8017796: d061 beq.n 801785c <prvProcessReceivedCommands+0x1a4>
  56629. {
  56630. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  56631. 8017798: 68ba ldr r2, [r7, #8]
  56632. 801779a: 6abb ldr r3, [r7, #40] @ 0x28
  56633. 801779c: 699b ldr r3, [r3, #24]
  56634. 801779e: 441a add r2, r3
  56635. 80177a0: 2300 movs r3, #0
  56636. 80177a2: 9300 str r3, [sp, #0]
  56637. 80177a4: 2300 movs r3, #0
  56638. 80177a6: 2100 movs r1, #0
  56639. 80177a8: 6ab8 ldr r0, [r7, #40] @ 0x28
  56640. 80177aa: f7ff fe01 bl 80173b0 <xTimerGenericCommand>
  56641. 80177ae: 6238 str r0, [r7, #32]
  56642. configASSERT( xResult );
  56643. 80177b0: 6a3b ldr r3, [r7, #32]
  56644. 80177b2: 2b00 cmp r3, #0
  56645. 80177b4: d152 bne.n 801785c <prvProcessReceivedCommands+0x1a4>
  56646. __asm volatile
  56647. 80177b6: f04f 0350 mov.w r3, #80 @ 0x50
  56648. 80177ba: f383 8811 msr BASEPRI, r3
  56649. 80177be: f3bf 8f6f isb sy
  56650. 80177c2: f3bf 8f4f dsb sy
  56651. 80177c6: 61bb str r3, [r7, #24]
  56652. }
  56653. 80177c8: bf00 nop
  56654. 80177ca: bf00 nop
  56655. 80177cc: e7fd b.n 80177ca <prvProcessReceivedCommands+0x112>
  56656. break;
  56657. case tmrCOMMAND_STOP :
  56658. case tmrCOMMAND_STOP_FROM_ISR :
  56659. /* The timer has already been removed from the active list. */
  56660. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56661. 80177ce: 6abb ldr r3, [r7, #40] @ 0x28
  56662. 80177d0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56663. 80177d4: f023 0301 bic.w r3, r3, #1
  56664. 80177d8: b2da uxtb r2, r3
  56665. 80177da: 6abb ldr r3, [r7, #40] @ 0x28
  56666. 80177dc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56667. break;
  56668. 80177e0: e03d b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56669. case tmrCOMMAND_CHANGE_PERIOD :
  56670. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  56671. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56672. 80177e2: 6abb ldr r3, [r7, #40] @ 0x28
  56673. 80177e4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56674. 80177e8: f043 0301 orr.w r3, r3, #1
  56675. 80177ec: b2da uxtb r2, r3
  56676. 80177ee: 6abb ldr r3, [r7, #40] @ 0x28
  56677. 80177f0: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56678. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  56679. 80177f4: 68ba ldr r2, [r7, #8]
  56680. 80177f6: 6abb ldr r3, [r7, #40] @ 0x28
  56681. 80177f8: 619a str r2, [r3, #24]
  56682. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  56683. 80177fa: 6abb ldr r3, [r7, #40] @ 0x28
  56684. 80177fc: 699b ldr r3, [r3, #24]
  56685. 80177fe: 2b00 cmp r3, #0
  56686. 8017800: d10b bne.n 801781a <prvProcessReceivedCommands+0x162>
  56687. __asm volatile
  56688. 8017802: f04f 0350 mov.w r3, #80 @ 0x50
  56689. 8017806: f383 8811 msr BASEPRI, r3
  56690. 801780a: f3bf 8f6f isb sy
  56691. 801780e: f3bf 8f4f dsb sy
  56692. 8017812: 617b str r3, [r7, #20]
  56693. }
  56694. 8017814: bf00 nop
  56695. 8017816: bf00 nop
  56696. 8017818: e7fd b.n 8017816 <prvProcessReceivedCommands+0x15e>
  56697. be longer or shorter than the old one. The command time is
  56698. therefore set to the current time, and as the period cannot
  56699. be zero the next expiry time can only be in the future,
  56700. meaning (unlike for the xTimerStart() case above) there is
  56701. no fail case that needs to be handled here. */
  56702. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  56703. 801781a: 6abb ldr r3, [r7, #40] @ 0x28
  56704. 801781c: 699a ldr r2, [r3, #24]
  56705. 801781e: 6a7b ldr r3, [r7, #36] @ 0x24
  56706. 8017820: 18d1 adds r1, r2, r3
  56707. 8017822: 6a7b ldr r3, [r7, #36] @ 0x24
  56708. 8017824: 6a7a ldr r2, [r7, #36] @ 0x24
  56709. 8017826: 6ab8 ldr r0, [r7, #40] @ 0x28
  56710. 8017828: f7ff ff04 bl 8017634 <prvInsertTimerInActiveList>
  56711. break;
  56712. 801782c: e017 b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56713. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  56714. {
  56715. /* The timer has already been removed from the active list,
  56716. just free up the memory if the memory was dynamically
  56717. allocated. */
  56718. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  56719. 801782e: 6abb ldr r3, [r7, #40] @ 0x28
  56720. 8017830: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56721. 8017834: f003 0302 and.w r3, r3, #2
  56722. 8017838: 2b00 cmp r3, #0
  56723. 801783a: d103 bne.n 8017844 <prvProcessReceivedCommands+0x18c>
  56724. {
  56725. vPortFree( pxTimer );
  56726. 801783c: 6ab8 ldr r0, [r7, #40] @ 0x28
  56727. 801783e: f000 fc33 bl 80180a8 <vPortFree>
  56728. no need to free the memory - just mark the timer as
  56729. "not active". */
  56730. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56731. }
  56732. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  56733. break;
  56734. 8017842: e00c b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56735. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56736. 8017844: 6abb ldr r3, [r7, #40] @ 0x28
  56737. 8017846: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56738. 801784a: f023 0301 bic.w r3, r3, #1
  56739. 801784e: b2da uxtb r2, r3
  56740. 8017850: 6abb ldr r3, [r7, #40] @ 0x28
  56741. 8017852: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56742. break;
  56743. 8017856: e002 b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56744. default :
  56745. /* Don't expect to get here. */
  56746. break;
  56747. 8017858: bf00 nop
  56748. 801785a: e000 b.n 801785e <prvProcessReceivedCommands+0x1a6>
  56749. break;
  56750. 801785c: bf00 nop
  56751. 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. */
  56752. 801785e: 4b08 ldr r3, [pc, #32] @ (8017880 <prvProcessReceivedCommands+0x1c8>)
  56753. 8017860: 681b ldr r3, [r3, #0]
  56754. 8017862: 1d39 adds r1, r7, #4
  56755. 8017864: 2200 movs r2, #0
  56756. 8017866: 4618 mov r0, r3
  56757. 8017868: f7fd fc54 bl 8015114 <xQueueReceive>
  56758. 801786c: 4603 mov r3, r0
  56759. 801786e: 2b00 cmp r3, #0
  56760. 8017870: f47f af26 bne.w 80176c0 <prvProcessReceivedCommands+0x8>
  56761. }
  56762. }
  56763. }
  56764. }
  56765. 8017874: bf00 nop
  56766. 8017876: bf00 nop
  56767. 8017878: 3730 adds r7, #48 @ 0x30
  56768. 801787a: 46bd mov sp, r7
  56769. 801787c: bd80 pop {r7, pc}
  56770. 801787e: bf00 nop
  56771. 8017880: 24002f28 .word 0x24002f28
  56772. 08017884 <prvSwitchTimerLists>:
  56773. /*-----------------------------------------------------------*/
  56774. static void prvSwitchTimerLists( void )
  56775. {
  56776. 8017884: b580 push {r7, lr}
  56777. 8017886: b088 sub sp, #32
  56778. 8017888: af02 add r7, sp, #8
  56779. /* The tick count has overflowed. The timer lists must be switched.
  56780. If there are any timers still referenced from the current timer list
  56781. then they must have expired and should be processed before the lists
  56782. are switched. */
  56783. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56784. 801788a: e049 b.n 8017920 <prvSwitchTimerLists+0x9c>
  56785. {
  56786. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56787. 801788c: 4b2e ldr r3, [pc, #184] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56788. 801788e: 681b ldr r3, [r3, #0]
  56789. 8017890: 68db ldr r3, [r3, #12]
  56790. 8017892: 681b ldr r3, [r3, #0]
  56791. 8017894: 613b str r3, [r7, #16]
  56792. /* Remove the timer from the list. */
  56793. 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. */
  56794. 8017896: 4b2c ldr r3, [pc, #176] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56795. 8017898: 681b ldr r3, [r3, #0]
  56796. 801789a: 68db ldr r3, [r3, #12]
  56797. 801789c: 68db ldr r3, [r3, #12]
  56798. 801789e: 60fb str r3, [r7, #12]
  56799. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56800. 80178a0: 68fb ldr r3, [r7, #12]
  56801. 80178a2: 3304 adds r3, #4
  56802. 80178a4: 4618 mov r0, r3
  56803. 80178a6: f7fd f86d bl 8014984 <uxListRemove>
  56804. traceTIMER_EXPIRED( pxTimer );
  56805. /* Execute its callback, then send a command to restart the timer if
  56806. it is an auto-reload timer. It cannot be restarted here as the lists
  56807. have not yet been switched. */
  56808. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56809. 80178aa: 68fb ldr r3, [r7, #12]
  56810. 80178ac: 6a1b ldr r3, [r3, #32]
  56811. 80178ae: 68f8 ldr r0, [r7, #12]
  56812. 80178b0: 4798 blx r3
  56813. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56814. 80178b2: 68fb ldr r3, [r7, #12]
  56815. 80178b4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56816. 80178b8: f003 0304 and.w r3, r3, #4
  56817. 80178bc: 2b00 cmp r3, #0
  56818. 80178be: d02f beq.n 8017920 <prvSwitchTimerLists+0x9c>
  56819. the timer going into the same timer list then it has already expired
  56820. and the timer should be re-inserted into the current list so it is
  56821. processed again within this loop. Otherwise a command should be sent
  56822. to restart the timer to ensure it is only inserted into a list after
  56823. the lists have been swapped. */
  56824. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  56825. 80178c0: 68fb ldr r3, [r7, #12]
  56826. 80178c2: 699b ldr r3, [r3, #24]
  56827. 80178c4: 693a ldr r2, [r7, #16]
  56828. 80178c6: 4413 add r3, r2
  56829. 80178c8: 60bb str r3, [r7, #8]
  56830. if( xReloadTime > xNextExpireTime )
  56831. 80178ca: 68ba ldr r2, [r7, #8]
  56832. 80178cc: 693b ldr r3, [r7, #16]
  56833. 80178ce: 429a cmp r2, r3
  56834. 80178d0: d90e bls.n 80178f0 <prvSwitchTimerLists+0x6c>
  56835. {
  56836. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  56837. 80178d2: 68fb ldr r3, [r7, #12]
  56838. 80178d4: 68ba ldr r2, [r7, #8]
  56839. 80178d6: 605a str r2, [r3, #4]
  56840. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56841. 80178d8: 68fb ldr r3, [r7, #12]
  56842. 80178da: 68fa ldr r2, [r7, #12]
  56843. 80178dc: 611a str r2, [r3, #16]
  56844. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56845. 80178de: 4b1a ldr r3, [pc, #104] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56846. 80178e0: 681a ldr r2, [r3, #0]
  56847. 80178e2: 68fb ldr r3, [r7, #12]
  56848. 80178e4: 3304 adds r3, #4
  56849. 80178e6: 4619 mov r1, r3
  56850. 80178e8: 4610 mov r0, r2
  56851. 80178ea: f7fd f812 bl 8014912 <vListInsert>
  56852. 80178ee: e017 b.n 8017920 <prvSwitchTimerLists+0x9c>
  56853. }
  56854. else
  56855. {
  56856. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56857. 80178f0: 2300 movs r3, #0
  56858. 80178f2: 9300 str r3, [sp, #0]
  56859. 80178f4: 2300 movs r3, #0
  56860. 80178f6: 693a ldr r2, [r7, #16]
  56861. 80178f8: 2100 movs r1, #0
  56862. 80178fa: 68f8 ldr r0, [r7, #12]
  56863. 80178fc: f7ff fd58 bl 80173b0 <xTimerGenericCommand>
  56864. 8017900: 6078 str r0, [r7, #4]
  56865. configASSERT( xResult );
  56866. 8017902: 687b ldr r3, [r7, #4]
  56867. 8017904: 2b00 cmp r3, #0
  56868. 8017906: d10b bne.n 8017920 <prvSwitchTimerLists+0x9c>
  56869. __asm volatile
  56870. 8017908: f04f 0350 mov.w r3, #80 @ 0x50
  56871. 801790c: f383 8811 msr BASEPRI, r3
  56872. 8017910: f3bf 8f6f isb sy
  56873. 8017914: f3bf 8f4f dsb sy
  56874. 8017918: 603b str r3, [r7, #0]
  56875. }
  56876. 801791a: bf00 nop
  56877. 801791c: bf00 nop
  56878. 801791e: e7fd b.n 801791c <prvSwitchTimerLists+0x98>
  56879. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56880. 8017920: 4b09 ldr r3, [pc, #36] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56881. 8017922: 681b ldr r3, [r3, #0]
  56882. 8017924: 681b ldr r3, [r3, #0]
  56883. 8017926: 2b00 cmp r3, #0
  56884. 8017928: d1b0 bne.n 801788c <prvSwitchTimerLists+0x8>
  56885. {
  56886. mtCOVERAGE_TEST_MARKER();
  56887. }
  56888. }
  56889. pxTemp = pxCurrentTimerList;
  56890. 801792a: 4b07 ldr r3, [pc, #28] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56891. 801792c: 681b ldr r3, [r3, #0]
  56892. 801792e: 617b str r3, [r7, #20]
  56893. pxCurrentTimerList = pxOverflowTimerList;
  56894. 8017930: 4b06 ldr r3, [pc, #24] @ (801794c <prvSwitchTimerLists+0xc8>)
  56895. 8017932: 681b ldr r3, [r3, #0]
  56896. 8017934: 4a04 ldr r2, [pc, #16] @ (8017948 <prvSwitchTimerLists+0xc4>)
  56897. 8017936: 6013 str r3, [r2, #0]
  56898. pxOverflowTimerList = pxTemp;
  56899. 8017938: 4a04 ldr r2, [pc, #16] @ (801794c <prvSwitchTimerLists+0xc8>)
  56900. 801793a: 697b ldr r3, [r7, #20]
  56901. 801793c: 6013 str r3, [r2, #0]
  56902. }
  56903. 801793e: bf00 nop
  56904. 8017940: 3718 adds r7, #24
  56905. 8017942: 46bd mov sp, r7
  56906. 8017944: bd80 pop {r7, pc}
  56907. 8017946: bf00 nop
  56908. 8017948: 24002f20 .word 0x24002f20
  56909. 801794c: 24002f24 .word 0x24002f24
  56910. 08017950 <prvCheckForValidListAndQueue>:
  56911. /*-----------------------------------------------------------*/
  56912. static void prvCheckForValidListAndQueue( void )
  56913. {
  56914. 8017950: b580 push {r7, lr}
  56915. 8017952: b082 sub sp, #8
  56916. 8017954: af02 add r7, sp, #8
  56917. /* Check that the list from which active timers are referenced, and the
  56918. queue used to communicate with the timer service, have been
  56919. initialised. */
  56920. taskENTER_CRITICAL();
  56921. 8017956: f000 f9b7 bl 8017cc8 <vPortEnterCritical>
  56922. {
  56923. if( xTimerQueue == NULL )
  56924. 801795a: 4b15 ldr r3, [pc, #84] @ (80179b0 <prvCheckForValidListAndQueue+0x60>)
  56925. 801795c: 681b ldr r3, [r3, #0]
  56926. 801795e: 2b00 cmp r3, #0
  56927. 8017960: d120 bne.n 80179a4 <prvCheckForValidListAndQueue+0x54>
  56928. {
  56929. vListInitialise( &xActiveTimerList1 );
  56930. 8017962: 4814 ldr r0, [pc, #80] @ (80179b4 <prvCheckForValidListAndQueue+0x64>)
  56931. 8017964: f7fc ff84 bl 8014870 <vListInitialise>
  56932. vListInitialise( &xActiveTimerList2 );
  56933. 8017968: 4813 ldr r0, [pc, #76] @ (80179b8 <prvCheckForValidListAndQueue+0x68>)
  56934. 801796a: f7fc ff81 bl 8014870 <vListInitialise>
  56935. pxCurrentTimerList = &xActiveTimerList1;
  56936. 801796e: 4b13 ldr r3, [pc, #76] @ (80179bc <prvCheckForValidListAndQueue+0x6c>)
  56937. 8017970: 4a10 ldr r2, [pc, #64] @ (80179b4 <prvCheckForValidListAndQueue+0x64>)
  56938. 8017972: 601a str r2, [r3, #0]
  56939. pxOverflowTimerList = &xActiveTimerList2;
  56940. 8017974: 4b12 ldr r3, [pc, #72] @ (80179c0 <prvCheckForValidListAndQueue+0x70>)
  56941. 8017976: 4a10 ldr r2, [pc, #64] @ (80179b8 <prvCheckForValidListAndQueue+0x68>)
  56942. 8017978: 601a str r2, [r3, #0]
  56943. /* The timer queue is allocated statically in case
  56944. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  56945. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  56946. 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. */
  56947. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  56948. 801797a: 2300 movs r3, #0
  56949. 801797c: 9300 str r3, [sp, #0]
  56950. 801797e: 4b11 ldr r3, [pc, #68] @ (80179c4 <prvCheckForValidListAndQueue+0x74>)
  56951. 8017980: 4a11 ldr r2, [pc, #68] @ (80179c8 <prvCheckForValidListAndQueue+0x78>)
  56952. 8017982: 2110 movs r1, #16
  56953. 8017984: 200a movs r0, #10
  56954. 8017986: f7fd f891 bl 8014aac <xQueueGenericCreateStatic>
  56955. 801798a: 4603 mov r3, r0
  56956. 801798c: 4a08 ldr r2, [pc, #32] @ (80179b0 <prvCheckForValidListAndQueue+0x60>)
  56957. 801798e: 6013 str r3, [r2, #0]
  56958. }
  56959. #endif
  56960. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  56961. {
  56962. if( xTimerQueue != NULL )
  56963. 8017990: 4b07 ldr r3, [pc, #28] @ (80179b0 <prvCheckForValidListAndQueue+0x60>)
  56964. 8017992: 681b ldr r3, [r3, #0]
  56965. 8017994: 2b00 cmp r3, #0
  56966. 8017996: d005 beq.n 80179a4 <prvCheckForValidListAndQueue+0x54>
  56967. {
  56968. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  56969. 8017998: 4b05 ldr r3, [pc, #20] @ (80179b0 <prvCheckForValidListAndQueue+0x60>)
  56970. 801799a: 681b ldr r3, [r3, #0]
  56971. 801799c: 490b ldr r1, [pc, #44] @ (80179cc <prvCheckForValidListAndQueue+0x7c>)
  56972. 801799e: 4618 mov r0, r3
  56973. 80179a0: f7fd ff54 bl 801584c <vQueueAddToRegistry>
  56974. else
  56975. {
  56976. mtCOVERAGE_TEST_MARKER();
  56977. }
  56978. }
  56979. taskEXIT_CRITICAL();
  56980. 80179a4: f000 f9c2 bl 8017d2c <vPortExitCritical>
  56981. }
  56982. 80179a8: bf00 nop
  56983. 80179aa: 46bd mov sp, r7
  56984. 80179ac: bd80 pop {r7, pc}
  56985. 80179ae: bf00 nop
  56986. 80179b0: 24002f28 .word 0x24002f28
  56987. 80179b4: 24002ef8 .word 0x24002ef8
  56988. 80179b8: 24002f0c .word 0x24002f0c
  56989. 80179bc: 24002f20 .word 0x24002f20
  56990. 80179c0: 24002f24 .word 0x24002f24
  56991. 80179c4: 24002fd4 .word 0x24002fd4
  56992. 80179c8: 24002f34 .word 0x24002f34
  56993. 80179cc: 08018670 .word 0x08018670
  56994. 080179d0 <xTimerIsTimerActive>:
  56995. /*-----------------------------------------------------------*/
  56996. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  56997. {
  56998. 80179d0: b580 push {r7, lr}
  56999. 80179d2: b086 sub sp, #24
  57000. 80179d4: af00 add r7, sp, #0
  57001. 80179d6: 6078 str r0, [r7, #4]
  57002. BaseType_t xReturn;
  57003. Timer_t *pxTimer = xTimer;
  57004. 80179d8: 687b ldr r3, [r7, #4]
  57005. 80179da: 613b str r3, [r7, #16]
  57006. configASSERT( xTimer );
  57007. 80179dc: 687b ldr r3, [r7, #4]
  57008. 80179de: 2b00 cmp r3, #0
  57009. 80179e0: d10b bne.n 80179fa <xTimerIsTimerActive+0x2a>
  57010. __asm volatile
  57011. 80179e2: f04f 0350 mov.w r3, #80 @ 0x50
  57012. 80179e6: f383 8811 msr BASEPRI, r3
  57013. 80179ea: f3bf 8f6f isb sy
  57014. 80179ee: f3bf 8f4f dsb sy
  57015. 80179f2: 60fb str r3, [r7, #12]
  57016. }
  57017. 80179f4: bf00 nop
  57018. 80179f6: bf00 nop
  57019. 80179f8: e7fd b.n 80179f6 <xTimerIsTimerActive+0x26>
  57020. /* Is the timer in the list of active timers? */
  57021. taskENTER_CRITICAL();
  57022. 80179fa: f000 f965 bl 8017cc8 <vPortEnterCritical>
  57023. {
  57024. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  57025. 80179fe: 693b ldr r3, [r7, #16]
  57026. 8017a00: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57027. 8017a04: f003 0301 and.w r3, r3, #1
  57028. 8017a08: 2b00 cmp r3, #0
  57029. 8017a0a: d102 bne.n 8017a12 <xTimerIsTimerActive+0x42>
  57030. {
  57031. xReturn = pdFALSE;
  57032. 8017a0c: 2300 movs r3, #0
  57033. 8017a0e: 617b str r3, [r7, #20]
  57034. 8017a10: e001 b.n 8017a16 <xTimerIsTimerActive+0x46>
  57035. }
  57036. else
  57037. {
  57038. xReturn = pdTRUE;
  57039. 8017a12: 2301 movs r3, #1
  57040. 8017a14: 617b str r3, [r7, #20]
  57041. }
  57042. }
  57043. taskEXIT_CRITICAL();
  57044. 8017a16: f000 f989 bl 8017d2c <vPortExitCritical>
  57045. return xReturn;
  57046. 8017a1a: 697b ldr r3, [r7, #20]
  57047. } /*lint !e818 Can't be pointer to const due to the typedef. */
  57048. 8017a1c: 4618 mov r0, r3
  57049. 8017a1e: 3718 adds r7, #24
  57050. 8017a20: 46bd mov sp, r7
  57051. 8017a22: bd80 pop {r7, pc}
  57052. 08017a24 <pvTimerGetTimerID>:
  57053. /*-----------------------------------------------------------*/
  57054. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  57055. {
  57056. 8017a24: b580 push {r7, lr}
  57057. 8017a26: b086 sub sp, #24
  57058. 8017a28: af00 add r7, sp, #0
  57059. 8017a2a: 6078 str r0, [r7, #4]
  57060. Timer_t * const pxTimer = xTimer;
  57061. 8017a2c: 687b ldr r3, [r7, #4]
  57062. 8017a2e: 617b str r3, [r7, #20]
  57063. void *pvReturn;
  57064. configASSERT( xTimer );
  57065. 8017a30: 687b ldr r3, [r7, #4]
  57066. 8017a32: 2b00 cmp r3, #0
  57067. 8017a34: d10b bne.n 8017a4e <pvTimerGetTimerID+0x2a>
  57068. __asm volatile
  57069. 8017a36: f04f 0350 mov.w r3, #80 @ 0x50
  57070. 8017a3a: f383 8811 msr BASEPRI, r3
  57071. 8017a3e: f3bf 8f6f isb sy
  57072. 8017a42: f3bf 8f4f dsb sy
  57073. 8017a46: 60fb str r3, [r7, #12]
  57074. }
  57075. 8017a48: bf00 nop
  57076. 8017a4a: bf00 nop
  57077. 8017a4c: e7fd b.n 8017a4a <pvTimerGetTimerID+0x26>
  57078. taskENTER_CRITICAL();
  57079. 8017a4e: f000 f93b bl 8017cc8 <vPortEnterCritical>
  57080. {
  57081. pvReturn = pxTimer->pvTimerID;
  57082. 8017a52: 697b ldr r3, [r7, #20]
  57083. 8017a54: 69db ldr r3, [r3, #28]
  57084. 8017a56: 613b str r3, [r7, #16]
  57085. }
  57086. taskEXIT_CRITICAL();
  57087. 8017a58: f000 f968 bl 8017d2c <vPortExitCritical>
  57088. return pvReturn;
  57089. 8017a5c: 693b ldr r3, [r7, #16]
  57090. }
  57091. 8017a5e: 4618 mov r0, r3
  57092. 8017a60: 3718 adds r7, #24
  57093. 8017a62: 46bd mov sp, r7
  57094. 8017a64: bd80 pop {r7, pc}
  57095. ...
  57096. 08017a68 <pxPortInitialiseStack>:
  57097. /*
  57098. * See header file for description.
  57099. */
  57100. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  57101. {
  57102. 8017a68: b480 push {r7}
  57103. 8017a6a: b085 sub sp, #20
  57104. 8017a6c: af00 add r7, sp, #0
  57105. 8017a6e: 60f8 str r0, [r7, #12]
  57106. 8017a70: 60b9 str r1, [r7, #8]
  57107. 8017a72: 607a str r2, [r7, #4]
  57108. /* Simulate the stack frame as it would be created by a context switch
  57109. interrupt. */
  57110. /* Offset added to account for the way the MCU uses the stack on entry/exit
  57111. of interrupts, and to ensure alignment. */
  57112. pxTopOfStack--;
  57113. 8017a74: 68fb ldr r3, [r7, #12]
  57114. 8017a76: 3b04 subs r3, #4
  57115. 8017a78: 60fb str r3, [r7, #12]
  57116. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  57117. 8017a7a: 68fb ldr r3, [r7, #12]
  57118. 8017a7c: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  57119. 8017a80: 601a str r2, [r3, #0]
  57120. pxTopOfStack--;
  57121. 8017a82: 68fb ldr r3, [r7, #12]
  57122. 8017a84: 3b04 subs r3, #4
  57123. 8017a86: 60fb str r3, [r7, #12]
  57124. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  57125. 8017a88: 68bb ldr r3, [r7, #8]
  57126. 8017a8a: f023 0201 bic.w r2, r3, #1
  57127. 8017a8e: 68fb ldr r3, [r7, #12]
  57128. 8017a90: 601a str r2, [r3, #0]
  57129. pxTopOfStack--;
  57130. 8017a92: 68fb ldr r3, [r7, #12]
  57131. 8017a94: 3b04 subs r3, #4
  57132. 8017a96: 60fb str r3, [r7, #12]
  57133. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  57134. 8017a98: 4a0c ldr r2, [pc, #48] @ (8017acc <pxPortInitialiseStack+0x64>)
  57135. 8017a9a: 68fb ldr r3, [r7, #12]
  57136. 8017a9c: 601a str r2, [r3, #0]
  57137. /* Save code space by skipping register initialisation. */
  57138. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  57139. 8017a9e: 68fb ldr r3, [r7, #12]
  57140. 8017aa0: 3b14 subs r3, #20
  57141. 8017aa2: 60fb str r3, [r7, #12]
  57142. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  57143. 8017aa4: 687a ldr r2, [r7, #4]
  57144. 8017aa6: 68fb ldr r3, [r7, #12]
  57145. 8017aa8: 601a str r2, [r3, #0]
  57146. /* A save method is being used that requires each task to maintain its
  57147. own exec return value. */
  57148. pxTopOfStack--;
  57149. 8017aaa: 68fb ldr r3, [r7, #12]
  57150. 8017aac: 3b04 subs r3, #4
  57151. 8017aae: 60fb str r3, [r7, #12]
  57152. *pxTopOfStack = portINITIAL_EXC_RETURN;
  57153. 8017ab0: 68fb ldr r3, [r7, #12]
  57154. 8017ab2: f06f 0202 mvn.w r2, #2
  57155. 8017ab6: 601a str r2, [r3, #0]
  57156. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  57157. 8017ab8: 68fb ldr r3, [r7, #12]
  57158. 8017aba: 3b20 subs r3, #32
  57159. 8017abc: 60fb str r3, [r7, #12]
  57160. return pxTopOfStack;
  57161. 8017abe: 68fb ldr r3, [r7, #12]
  57162. }
  57163. 8017ac0: 4618 mov r0, r3
  57164. 8017ac2: 3714 adds r7, #20
  57165. 8017ac4: 46bd mov sp, r7
  57166. 8017ac6: f85d 7b04 ldr.w r7, [sp], #4
  57167. 8017aca: 4770 bx lr
  57168. 8017acc: 08017ad1 .word 0x08017ad1
  57169. 08017ad0 <prvTaskExitError>:
  57170. /*-----------------------------------------------------------*/
  57171. static void prvTaskExitError( void )
  57172. {
  57173. 8017ad0: b480 push {r7}
  57174. 8017ad2: b085 sub sp, #20
  57175. 8017ad4: af00 add r7, sp, #0
  57176. volatile uint32_t ulDummy = 0;
  57177. 8017ad6: 2300 movs r3, #0
  57178. 8017ad8: 607b str r3, [r7, #4]
  57179. its caller as there is nothing to return to. If a task wants to exit it
  57180. should instead call vTaskDelete( NULL ).
  57181. Artificially force an assert() to be triggered if configASSERT() is
  57182. defined, then stop here so application writers can catch the error. */
  57183. configASSERT( uxCriticalNesting == ~0UL );
  57184. 8017ada: 4b13 ldr r3, [pc, #76] @ (8017b28 <prvTaskExitError+0x58>)
  57185. 8017adc: 681b ldr r3, [r3, #0]
  57186. 8017ade: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57187. 8017ae2: d00b beq.n 8017afc <prvTaskExitError+0x2c>
  57188. __asm volatile
  57189. 8017ae4: f04f 0350 mov.w r3, #80 @ 0x50
  57190. 8017ae8: f383 8811 msr BASEPRI, r3
  57191. 8017aec: f3bf 8f6f isb sy
  57192. 8017af0: f3bf 8f4f dsb sy
  57193. 8017af4: 60fb str r3, [r7, #12]
  57194. }
  57195. 8017af6: bf00 nop
  57196. 8017af8: bf00 nop
  57197. 8017afa: e7fd b.n 8017af8 <prvTaskExitError+0x28>
  57198. __asm volatile
  57199. 8017afc: f04f 0350 mov.w r3, #80 @ 0x50
  57200. 8017b00: f383 8811 msr BASEPRI, r3
  57201. 8017b04: f3bf 8f6f isb sy
  57202. 8017b08: f3bf 8f4f dsb sy
  57203. 8017b0c: 60bb str r3, [r7, #8]
  57204. }
  57205. 8017b0e: bf00 nop
  57206. portDISABLE_INTERRUPTS();
  57207. while( ulDummy == 0 )
  57208. 8017b10: bf00 nop
  57209. 8017b12: 687b ldr r3, [r7, #4]
  57210. 8017b14: 2b00 cmp r3, #0
  57211. 8017b16: d0fc beq.n 8017b12 <prvTaskExitError+0x42>
  57212. about code appearing after this function is called - making ulDummy
  57213. volatile makes the compiler think the function could return and
  57214. therefore not output an 'unreachable code' warning for code that appears
  57215. after it. */
  57216. }
  57217. }
  57218. 8017b18: bf00 nop
  57219. 8017b1a: bf00 nop
  57220. 8017b1c: 3714 adds r7, #20
  57221. 8017b1e: 46bd mov sp, r7
  57222. 8017b20: f85d 7b04 ldr.w r7, [sp], #4
  57223. 8017b24: 4770 bx lr
  57224. 8017b26: bf00 nop
  57225. 8017b28: 24000044 .word 0x24000044
  57226. 8017b2c: 00000000 .word 0x00000000
  57227. 08017b30 <SVC_Handler>:
  57228. /*-----------------------------------------------------------*/
  57229. void vPortSVCHandler( void )
  57230. {
  57231. __asm volatile (
  57232. 8017b30: 4b07 ldr r3, [pc, #28] @ (8017b50 <pxCurrentTCBConst2>)
  57233. 8017b32: 6819 ldr r1, [r3, #0]
  57234. 8017b34: 6808 ldr r0, [r1, #0]
  57235. 8017b36: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57236. 8017b3a: f380 8809 msr PSP, r0
  57237. 8017b3e: f3bf 8f6f isb sy
  57238. 8017b42: f04f 0000 mov.w r0, #0
  57239. 8017b46: f380 8811 msr BASEPRI, r0
  57240. 8017b4a: 4770 bx lr
  57241. 8017b4c: f3af 8000 nop.w
  57242. 08017b50 <pxCurrentTCBConst2>:
  57243. 8017b50: 240029f8 .word 0x240029f8
  57244. " bx r14 \n"
  57245. " \n"
  57246. " .align 4 \n"
  57247. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  57248. );
  57249. }
  57250. 8017b54: bf00 nop
  57251. 8017b56: bf00 nop
  57252. 08017b58 <prvPortStartFirstTask>:
  57253. {
  57254. /* Start the first task. This also clears the bit that indicates the FPU is
  57255. in use in case the FPU was used before the scheduler was started - which
  57256. would otherwise result in the unnecessary leaving of space in the SVC stack
  57257. for lazy saving of FPU registers. */
  57258. __asm volatile(
  57259. 8017b58: 4808 ldr r0, [pc, #32] @ (8017b7c <prvPortStartFirstTask+0x24>)
  57260. 8017b5a: 6800 ldr r0, [r0, #0]
  57261. 8017b5c: 6800 ldr r0, [r0, #0]
  57262. 8017b5e: f380 8808 msr MSP, r0
  57263. 8017b62: f04f 0000 mov.w r0, #0
  57264. 8017b66: f380 8814 msr CONTROL, r0
  57265. 8017b6a: b662 cpsie i
  57266. 8017b6c: b661 cpsie f
  57267. 8017b6e: f3bf 8f4f dsb sy
  57268. 8017b72: f3bf 8f6f isb sy
  57269. 8017b76: df00 svc 0
  57270. 8017b78: bf00 nop
  57271. " dsb \n"
  57272. " isb \n"
  57273. " svc 0 \n" /* System call to start first task. */
  57274. " nop \n"
  57275. );
  57276. }
  57277. 8017b7a: bf00 nop
  57278. 8017b7c: e000ed08 .word 0xe000ed08
  57279. 08017b80 <xPortStartScheduler>:
  57280. /*
  57281. * See header file for description.
  57282. */
  57283. BaseType_t xPortStartScheduler( void )
  57284. {
  57285. 8017b80: b580 push {r7, lr}
  57286. 8017b82: b086 sub sp, #24
  57287. 8017b84: af00 add r7, sp, #0
  57288. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  57289. /* This port can be used on all revisions of the Cortex-M7 core other than
  57290. the r0p1 parts. r0p1 parts should use the port from the
  57291. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  57292. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  57293. 8017b86: 4b47 ldr r3, [pc, #284] @ (8017ca4 <xPortStartScheduler+0x124>)
  57294. 8017b88: 681b ldr r3, [r3, #0]
  57295. 8017b8a: 4a47 ldr r2, [pc, #284] @ (8017ca8 <xPortStartScheduler+0x128>)
  57296. 8017b8c: 4293 cmp r3, r2
  57297. 8017b8e: d10b bne.n 8017ba8 <xPortStartScheduler+0x28>
  57298. __asm volatile
  57299. 8017b90: f04f 0350 mov.w r3, #80 @ 0x50
  57300. 8017b94: f383 8811 msr BASEPRI, r3
  57301. 8017b98: f3bf 8f6f isb sy
  57302. 8017b9c: f3bf 8f4f dsb sy
  57303. 8017ba0: 613b str r3, [r7, #16]
  57304. }
  57305. 8017ba2: bf00 nop
  57306. 8017ba4: bf00 nop
  57307. 8017ba6: e7fd b.n 8017ba4 <xPortStartScheduler+0x24>
  57308. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  57309. 8017ba8: 4b3e ldr r3, [pc, #248] @ (8017ca4 <xPortStartScheduler+0x124>)
  57310. 8017baa: 681b ldr r3, [r3, #0]
  57311. 8017bac: 4a3f ldr r2, [pc, #252] @ (8017cac <xPortStartScheduler+0x12c>)
  57312. 8017bae: 4293 cmp r3, r2
  57313. 8017bb0: d10b bne.n 8017bca <xPortStartScheduler+0x4a>
  57314. __asm volatile
  57315. 8017bb2: f04f 0350 mov.w r3, #80 @ 0x50
  57316. 8017bb6: f383 8811 msr BASEPRI, r3
  57317. 8017bba: f3bf 8f6f isb sy
  57318. 8017bbe: f3bf 8f4f dsb sy
  57319. 8017bc2: 60fb str r3, [r7, #12]
  57320. }
  57321. 8017bc4: bf00 nop
  57322. 8017bc6: bf00 nop
  57323. 8017bc8: e7fd b.n 8017bc6 <xPortStartScheduler+0x46>
  57324. #if( configASSERT_DEFINED == 1 )
  57325. {
  57326. volatile uint32_t ulOriginalPriority;
  57327. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  57328. 8017bca: 4b39 ldr r3, [pc, #228] @ (8017cb0 <xPortStartScheduler+0x130>)
  57329. 8017bcc: 617b str r3, [r7, #20]
  57330. functions can be called. ISR safe functions are those that end in
  57331. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  57332. ensure interrupt entry is as fast and simple as possible.
  57333. Save the interrupt priority value that is about to be clobbered. */
  57334. ulOriginalPriority = *pucFirstUserPriorityRegister;
  57335. 8017bce: 697b ldr r3, [r7, #20]
  57336. 8017bd0: 781b ldrb r3, [r3, #0]
  57337. 8017bd2: b2db uxtb r3, r3
  57338. 8017bd4: 607b str r3, [r7, #4]
  57339. /* Determine the number of priority bits available. First write to all
  57340. possible bits. */
  57341. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  57342. 8017bd6: 697b ldr r3, [r7, #20]
  57343. 8017bd8: 22ff movs r2, #255 @ 0xff
  57344. 8017bda: 701a strb r2, [r3, #0]
  57345. /* Read the value back to see how many bits stuck. */
  57346. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  57347. 8017bdc: 697b ldr r3, [r7, #20]
  57348. 8017bde: 781b ldrb r3, [r3, #0]
  57349. 8017be0: b2db uxtb r3, r3
  57350. 8017be2: 70fb strb r3, [r7, #3]
  57351. /* Use the same mask on the maximum system call priority. */
  57352. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  57353. 8017be4: 78fb ldrb r3, [r7, #3]
  57354. 8017be6: b2db uxtb r3, r3
  57355. 8017be8: f003 0350 and.w r3, r3, #80 @ 0x50
  57356. 8017bec: b2da uxtb r2, r3
  57357. 8017bee: 4b31 ldr r3, [pc, #196] @ (8017cb4 <xPortStartScheduler+0x134>)
  57358. 8017bf0: 701a strb r2, [r3, #0]
  57359. /* Calculate the maximum acceptable priority group value for the number
  57360. of bits read back. */
  57361. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  57362. 8017bf2: 4b31 ldr r3, [pc, #196] @ (8017cb8 <xPortStartScheduler+0x138>)
  57363. 8017bf4: 2207 movs r2, #7
  57364. 8017bf6: 601a str r2, [r3, #0]
  57365. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57366. 8017bf8: e009 b.n 8017c0e <xPortStartScheduler+0x8e>
  57367. {
  57368. ulMaxPRIGROUPValue--;
  57369. 8017bfa: 4b2f ldr r3, [pc, #188] @ (8017cb8 <xPortStartScheduler+0x138>)
  57370. 8017bfc: 681b ldr r3, [r3, #0]
  57371. 8017bfe: 3b01 subs r3, #1
  57372. 8017c00: 4a2d ldr r2, [pc, #180] @ (8017cb8 <xPortStartScheduler+0x138>)
  57373. 8017c02: 6013 str r3, [r2, #0]
  57374. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  57375. 8017c04: 78fb ldrb r3, [r7, #3]
  57376. 8017c06: b2db uxtb r3, r3
  57377. 8017c08: 005b lsls r3, r3, #1
  57378. 8017c0a: b2db uxtb r3, r3
  57379. 8017c0c: 70fb strb r3, [r7, #3]
  57380. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57381. 8017c0e: 78fb ldrb r3, [r7, #3]
  57382. 8017c10: b2db uxtb r3, r3
  57383. 8017c12: f003 0380 and.w r3, r3, #128 @ 0x80
  57384. 8017c16: 2b80 cmp r3, #128 @ 0x80
  57385. 8017c18: d0ef beq.n 8017bfa <xPortStartScheduler+0x7a>
  57386. #ifdef configPRIO_BITS
  57387. {
  57388. /* Check the FreeRTOS configuration that defines the number of
  57389. priority bits matches the number of priority bits actually queried
  57390. from the hardware. */
  57391. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  57392. 8017c1a: 4b27 ldr r3, [pc, #156] @ (8017cb8 <xPortStartScheduler+0x138>)
  57393. 8017c1c: 681b ldr r3, [r3, #0]
  57394. 8017c1e: f1c3 0307 rsb r3, r3, #7
  57395. 8017c22: 2b04 cmp r3, #4
  57396. 8017c24: d00b beq.n 8017c3e <xPortStartScheduler+0xbe>
  57397. __asm volatile
  57398. 8017c26: f04f 0350 mov.w r3, #80 @ 0x50
  57399. 8017c2a: f383 8811 msr BASEPRI, r3
  57400. 8017c2e: f3bf 8f6f isb sy
  57401. 8017c32: f3bf 8f4f dsb sy
  57402. 8017c36: 60bb str r3, [r7, #8]
  57403. }
  57404. 8017c38: bf00 nop
  57405. 8017c3a: bf00 nop
  57406. 8017c3c: e7fd b.n 8017c3a <xPortStartScheduler+0xba>
  57407. }
  57408. #endif
  57409. /* Shift the priority group value back to its position within the AIRCR
  57410. register. */
  57411. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  57412. 8017c3e: 4b1e ldr r3, [pc, #120] @ (8017cb8 <xPortStartScheduler+0x138>)
  57413. 8017c40: 681b ldr r3, [r3, #0]
  57414. 8017c42: 021b lsls r3, r3, #8
  57415. 8017c44: 4a1c ldr r2, [pc, #112] @ (8017cb8 <xPortStartScheduler+0x138>)
  57416. 8017c46: 6013 str r3, [r2, #0]
  57417. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  57418. 8017c48: 4b1b ldr r3, [pc, #108] @ (8017cb8 <xPortStartScheduler+0x138>)
  57419. 8017c4a: 681b ldr r3, [r3, #0]
  57420. 8017c4c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  57421. 8017c50: 4a19 ldr r2, [pc, #100] @ (8017cb8 <xPortStartScheduler+0x138>)
  57422. 8017c52: 6013 str r3, [r2, #0]
  57423. /* Restore the clobbered interrupt priority register to its original
  57424. value. */
  57425. *pucFirstUserPriorityRegister = ulOriginalPriority;
  57426. 8017c54: 687b ldr r3, [r7, #4]
  57427. 8017c56: b2da uxtb r2, r3
  57428. 8017c58: 697b ldr r3, [r7, #20]
  57429. 8017c5a: 701a strb r2, [r3, #0]
  57430. }
  57431. #endif /* conifgASSERT_DEFINED */
  57432. /* Make PendSV and SysTick the lowest priority interrupts. */
  57433. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  57434. 8017c5c: 4b17 ldr r3, [pc, #92] @ (8017cbc <xPortStartScheduler+0x13c>)
  57435. 8017c5e: 681b ldr r3, [r3, #0]
  57436. 8017c60: 4a16 ldr r2, [pc, #88] @ (8017cbc <xPortStartScheduler+0x13c>)
  57437. 8017c62: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  57438. 8017c66: 6013 str r3, [r2, #0]
  57439. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  57440. 8017c68: 4b14 ldr r3, [pc, #80] @ (8017cbc <xPortStartScheduler+0x13c>)
  57441. 8017c6a: 681b ldr r3, [r3, #0]
  57442. 8017c6c: 4a13 ldr r2, [pc, #76] @ (8017cbc <xPortStartScheduler+0x13c>)
  57443. 8017c6e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  57444. 8017c72: 6013 str r3, [r2, #0]
  57445. /* Start the timer that generates the tick ISR. Interrupts are disabled
  57446. here already. */
  57447. vPortSetupTimerInterrupt();
  57448. 8017c74: f000 f8da bl 8017e2c <vPortSetupTimerInterrupt>
  57449. /* Initialise the critical nesting count ready for the first task. */
  57450. uxCriticalNesting = 0;
  57451. 8017c78: 4b11 ldr r3, [pc, #68] @ (8017cc0 <xPortStartScheduler+0x140>)
  57452. 8017c7a: 2200 movs r2, #0
  57453. 8017c7c: 601a str r2, [r3, #0]
  57454. /* Ensure the VFP is enabled - it should be anyway. */
  57455. vPortEnableVFP();
  57456. 8017c7e: f000 f8f9 bl 8017e74 <vPortEnableVFP>
  57457. /* Lazy save always. */
  57458. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  57459. 8017c82: 4b10 ldr r3, [pc, #64] @ (8017cc4 <xPortStartScheduler+0x144>)
  57460. 8017c84: 681b ldr r3, [r3, #0]
  57461. 8017c86: 4a0f ldr r2, [pc, #60] @ (8017cc4 <xPortStartScheduler+0x144>)
  57462. 8017c88: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  57463. 8017c8c: 6013 str r3, [r2, #0]
  57464. /* Start the first task. */
  57465. prvPortStartFirstTask();
  57466. 8017c8e: f7ff ff63 bl 8017b58 <prvPortStartFirstTask>
  57467. exit error function to prevent compiler warnings about a static function
  57468. not being called in the case that the application writer overrides this
  57469. functionality by defining configTASK_RETURN_ADDRESS. Call
  57470. vTaskSwitchContext() so link time optimisation does not remove the
  57471. symbol. */
  57472. vTaskSwitchContext();
  57473. 8017c92: f7fe fbd1 bl 8016438 <vTaskSwitchContext>
  57474. prvTaskExitError();
  57475. 8017c96: f7ff ff1b bl 8017ad0 <prvTaskExitError>
  57476. /* Should not get here! */
  57477. return 0;
  57478. 8017c9a: 2300 movs r3, #0
  57479. }
  57480. 8017c9c: 4618 mov r0, r3
  57481. 8017c9e: 3718 adds r7, #24
  57482. 8017ca0: 46bd mov sp, r7
  57483. 8017ca2: bd80 pop {r7, pc}
  57484. 8017ca4: e000ed00 .word 0xe000ed00
  57485. 8017ca8: 410fc271 .word 0x410fc271
  57486. 8017cac: 410fc270 .word 0x410fc270
  57487. 8017cb0: e000e400 .word 0xe000e400
  57488. 8017cb4: 24003024 .word 0x24003024
  57489. 8017cb8: 24003028 .word 0x24003028
  57490. 8017cbc: e000ed20 .word 0xe000ed20
  57491. 8017cc0: 24000044 .word 0x24000044
  57492. 8017cc4: e000ef34 .word 0xe000ef34
  57493. 08017cc8 <vPortEnterCritical>:
  57494. configASSERT( uxCriticalNesting == 1000UL );
  57495. }
  57496. /*-----------------------------------------------------------*/
  57497. void vPortEnterCritical( void )
  57498. {
  57499. 8017cc8: b480 push {r7}
  57500. 8017cca: b083 sub sp, #12
  57501. 8017ccc: af00 add r7, sp, #0
  57502. __asm volatile
  57503. 8017cce: f04f 0350 mov.w r3, #80 @ 0x50
  57504. 8017cd2: f383 8811 msr BASEPRI, r3
  57505. 8017cd6: f3bf 8f6f isb sy
  57506. 8017cda: f3bf 8f4f dsb sy
  57507. 8017cde: 607b str r3, [r7, #4]
  57508. }
  57509. 8017ce0: bf00 nop
  57510. portDISABLE_INTERRUPTS();
  57511. uxCriticalNesting++;
  57512. 8017ce2: 4b10 ldr r3, [pc, #64] @ (8017d24 <vPortEnterCritical+0x5c>)
  57513. 8017ce4: 681b ldr r3, [r3, #0]
  57514. 8017ce6: 3301 adds r3, #1
  57515. 8017ce8: 4a0e ldr r2, [pc, #56] @ (8017d24 <vPortEnterCritical+0x5c>)
  57516. 8017cea: 6013 str r3, [r2, #0]
  57517. /* This is not the interrupt safe version of the enter critical function so
  57518. assert() if it is being called from an interrupt context. Only API
  57519. functions that end in "FromISR" can be used in an interrupt. Only assert if
  57520. the critical nesting count is 1 to protect against recursive calls if the
  57521. assert function also uses a critical section. */
  57522. if( uxCriticalNesting == 1 )
  57523. 8017cec: 4b0d ldr r3, [pc, #52] @ (8017d24 <vPortEnterCritical+0x5c>)
  57524. 8017cee: 681b ldr r3, [r3, #0]
  57525. 8017cf0: 2b01 cmp r3, #1
  57526. 8017cf2: d110 bne.n 8017d16 <vPortEnterCritical+0x4e>
  57527. {
  57528. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  57529. 8017cf4: 4b0c ldr r3, [pc, #48] @ (8017d28 <vPortEnterCritical+0x60>)
  57530. 8017cf6: 681b ldr r3, [r3, #0]
  57531. 8017cf8: b2db uxtb r3, r3
  57532. 8017cfa: 2b00 cmp r3, #0
  57533. 8017cfc: d00b beq.n 8017d16 <vPortEnterCritical+0x4e>
  57534. __asm volatile
  57535. 8017cfe: f04f 0350 mov.w r3, #80 @ 0x50
  57536. 8017d02: f383 8811 msr BASEPRI, r3
  57537. 8017d06: f3bf 8f6f isb sy
  57538. 8017d0a: f3bf 8f4f dsb sy
  57539. 8017d0e: 603b str r3, [r7, #0]
  57540. }
  57541. 8017d10: bf00 nop
  57542. 8017d12: bf00 nop
  57543. 8017d14: e7fd b.n 8017d12 <vPortEnterCritical+0x4a>
  57544. }
  57545. }
  57546. 8017d16: bf00 nop
  57547. 8017d18: 370c adds r7, #12
  57548. 8017d1a: 46bd mov sp, r7
  57549. 8017d1c: f85d 7b04 ldr.w r7, [sp], #4
  57550. 8017d20: 4770 bx lr
  57551. 8017d22: bf00 nop
  57552. 8017d24: 24000044 .word 0x24000044
  57553. 8017d28: e000ed04 .word 0xe000ed04
  57554. 08017d2c <vPortExitCritical>:
  57555. /*-----------------------------------------------------------*/
  57556. void vPortExitCritical( void )
  57557. {
  57558. 8017d2c: b480 push {r7}
  57559. 8017d2e: b083 sub sp, #12
  57560. 8017d30: af00 add r7, sp, #0
  57561. configASSERT( uxCriticalNesting );
  57562. 8017d32: 4b12 ldr r3, [pc, #72] @ (8017d7c <vPortExitCritical+0x50>)
  57563. 8017d34: 681b ldr r3, [r3, #0]
  57564. 8017d36: 2b00 cmp r3, #0
  57565. 8017d38: d10b bne.n 8017d52 <vPortExitCritical+0x26>
  57566. __asm volatile
  57567. 8017d3a: f04f 0350 mov.w r3, #80 @ 0x50
  57568. 8017d3e: f383 8811 msr BASEPRI, r3
  57569. 8017d42: f3bf 8f6f isb sy
  57570. 8017d46: f3bf 8f4f dsb sy
  57571. 8017d4a: 607b str r3, [r7, #4]
  57572. }
  57573. 8017d4c: bf00 nop
  57574. 8017d4e: bf00 nop
  57575. 8017d50: e7fd b.n 8017d4e <vPortExitCritical+0x22>
  57576. uxCriticalNesting--;
  57577. 8017d52: 4b0a ldr r3, [pc, #40] @ (8017d7c <vPortExitCritical+0x50>)
  57578. 8017d54: 681b ldr r3, [r3, #0]
  57579. 8017d56: 3b01 subs r3, #1
  57580. 8017d58: 4a08 ldr r2, [pc, #32] @ (8017d7c <vPortExitCritical+0x50>)
  57581. 8017d5a: 6013 str r3, [r2, #0]
  57582. if( uxCriticalNesting == 0 )
  57583. 8017d5c: 4b07 ldr r3, [pc, #28] @ (8017d7c <vPortExitCritical+0x50>)
  57584. 8017d5e: 681b ldr r3, [r3, #0]
  57585. 8017d60: 2b00 cmp r3, #0
  57586. 8017d62: d105 bne.n 8017d70 <vPortExitCritical+0x44>
  57587. 8017d64: 2300 movs r3, #0
  57588. 8017d66: 603b str r3, [r7, #0]
  57589. __asm volatile
  57590. 8017d68: 683b ldr r3, [r7, #0]
  57591. 8017d6a: f383 8811 msr BASEPRI, r3
  57592. }
  57593. 8017d6e: bf00 nop
  57594. {
  57595. portENABLE_INTERRUPTS();
  57596. }
  57597. }
  57598. 8017d70: bf00 nop
  57599. 8017d72: 370c adds r7, #12
  57600. 8017d74: 46bd mov sp, r7
  57601. 8017d76: f85d 7b04 ldr.w r7, [sp], #4
  57602. 8017d7a: 4770 bx lr
  57603. 8017d7c: 24000044 .word 0x24000044
  57604. 08017d80 <PendSV_Handler>:
  57605. void xPortPendSVHandler( void )
  57606. {
  57607. /* This is a naked function. */
  57608. __asm volatile
  57609. 8017d80: f3ef 8009 mrs r0, PSP
  57610. 8017d84: f3bf 8f6f isb sy
  57611. 8017d88: 4b15 ldr r3, [pc, #84] @ (8017de0 <pxCurrentTCBConst>)
  57612. 8017d8a: 681a ldr r2, [r3, #0]
  57613. 8017d8c: f01e 0f10 tst.w lr, #16
  57614. 8017d90: bf08 it eq
  57615. 8017d92: ed20 8a10 vstmdbeq r0!, {s16-s31}
  57616. 8017d96: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57617. 8017d9a: 6010 str r0, [r2, #0]
  57618. 8017d9c: e92d 0009 stmdb sp!, {r0, r3}
  57619. 8017da0: f04f 0050 mov.w r0, #80 @ 0x50
  57620. 8017da4: f380 8811 msr BASEPRI, r0
  57621. 8017da8: f3bf 8f4f dsb sy
  57622. 8017dac: f3bf 8f6f isb sy
  57623. 8017db0: f7fe fb42 bl 8016438 <vTaskSwitchContext>
  57624. 8017db4: f04f 0000 mov.w r0, #0
  57625. 8017db8: f380 8811 msr BASEPRI, r0
  57626. 8017dbc: bc09 pop {r0, r3}
  57627. 8017dbe: 6819 ldr r1, [r3, #0]
  57628. 8017dc0: 6808 ldr r0, [r1, #0]
  57629. 8017dc2: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57630. 8017dc6: f01e 0f10 tst.w lr, #16
  57631. 8017dca: bf08 it eq
  57632. 8017dcc: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  57633. 8017dd0: f380 8809 msr PSP, r0
  57634. 8017dd4: f3bf 8f6f isb sy
  57635. 8017dd8: 4770 bx lr
  57636. 8017dda: bf00 nop
  57637. 8017ddc: f3af 8000 nop.w
  57638. 08017de0 <pxCurrentTCBConst>:
  57639. 8017de0: 240029f8 .word 0x240029f8
  57640. " \n"
  57641. " .align 4 \n"
  57642. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  57643. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  57644. );
  57645. }
  57646. 8017de4: bf00 nop
  57647. 8017de6: bf00 nop
  57648. 08017de8 <xPortSysTickHandler>:
  57649. /*-----------------------------------------------------------*/
  57650. void xPortSysTickHandler( void )
  57651. {
  57652. 8017de8: b580 push {r7, lr}
  57653. 8017dea: b082 sub sp, #8
  57654. 8017dec: af00 add r7, sp, #0
  57655. __asm volatile
  57656. 8017dee: f04f 0350 mov.w r3, #80 @ 0x50
  57657. 8017df2: f383 8811 msr BASEPRI, r3
  57658. 8017df6: f3bf 8f6f isb sy
  57659. 8017dfa: f3bf 8f4f dsb sy
  57660. 8017dfe: 607b str r3, [r7, #4]
  57661. }
  57662. 8017e00: bf00 nop
  57663. save and then restore the interrupt mask value as its value is already
  57664. known. */
  57665. portDISABLE_INTERRUPTS();
  57666. {
  57667. /* Increment the RTOS tick. */
  57668. if( xTaskIncrementTick() != pdFALSE )
  57669. 8017e02: f7fe fa5f bl 80162c4 <xTaskIncrementTick>
  57670. 8017e06: 4603 mov r3, r0
  57671. 8017e08: 2b00 cmp r3, #0
  57672. 8017e0a: d003 beq.n 8017e14 <xPortSysTickHandler+0x2c>
  57673. {
  57674. /* A context switch is required. Context switching is performed in
  57675. the PendSV interrupt. Pend the PendSV interrupt. */
  57676. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  57677. 8017e0c: 4b06 ldr r3, [pc, #24] @ (8017e28 <xPortSysTickHandler+0x40>)
  57678. 8017e0e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  57679. 8017e12: 601a str r2, [r3, #0]
  57680. 8017e14: 2300 movs r3, #0
  57681. 8017e16: 603b str r3, [r7, #0]
  57682. __asm volatile
  57683. 8017e18: 683b ldr r3, [r7, #0]
  57684. 8017e1a: f383 8811 msr BASEPRI, r3
  57685. }
  57686. 8017e1e: bf00 nop
  57687. }
  57688. }
  57689. portENABLE_INTERRUPTS();
  57690. }
  57691. 8017e20: bf00 nop
  57692. 8017e22: 3708 adds r7, #8
  57693. 8017e24: 46bd mov sp, r7
  57694. 8017e26: bd80 pop {r7, pc}
  57695. 8017e28: e000ed04 .word 0xe000ed04
  57696. 08017e2c <vPortSetupTimerInterrupt>:
  57697. /*
  57698. * Setup the systick timer to generate the tick interrupts at the required
  57699. * frequency.
  57700. */
  57701. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  57702. {
  57703. 8017e2c: b480 push {r7}
  57704. 8017e2e: af00 add r7, sp, #0
  57705. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  57706. }
  57707. #endif /* configUSE_TICKLESS_IDLE */
  57708. /* Stop and clear the SysTick. */
  57709. portNVIC_SYSTICK_CTRL_REG = 0UL;
  57710. 8017e30: 4b0b ldr r3, [pc, #44] @ (8017e60 <vPortSetupTimerInterrupt+0x34>)
  57711. 8017e32: 2200 movs r2, #0
  57712. 8017e34: 601a str r2, [r3, #0]
  57713. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  57714. 8017e36: 4b0b ldr r3, [pc, #44] @ (8017e64 <vPortSetupTimerInterrupt+0x38>)
  57715. 8017e38: 2200 movs r2, #0
  57716. 8017e3a: 601a str r2, [r3, #0]
  57717. /* Configure SysTick to interrupt at the requested rate. */
  57718. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  57719. 8017e3c: 4b0a ldr r3, [pc, #40] @ (8017e68 <vPortSetupTimerInterrupt+0x3c>)
  57720. 8017e3e: 681b ldr r3, [r3, #0]
  57721. 8017e40: 4a0a ldr r2, [pc, #40] @ (8017e6c <vPortSetupTimerInterrupt+0x40>)
  57722. 8017e42: fba2 2303 umull r2, r3, r2, r3
  57723. 8017e46: 099b lsrs r3, r3, #6
  57724. 8017e48: 4a09 ldr r2, [pc, #36] @ (8017e70 <vPortSetupTimerInterrupt+0x44>)
  57725. 8017e4a: 3b01 subs r3, #1
  57726. 8017e4c: 6013 str r3, [r2, #0]
  57727. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  57728. 8017e4e: 4b04 ldr r3, [pc, #16] @ (8017e60 <vPortSetupTimerInterrupt+0x34>)
  57729. 8017e50: 2207 movs r2, #7
  57730. 8017e52: 601a str r2, [r3, #0]
  57731. }
  57732. 8017e54: bf00 nop
  57733. 8017e56: 46bd mov sp, r7
  57734. 8017e58: f85d 7b04 ldr.w r7, [sp], #4
  57735. 8017e5c: 4770 bx lr
  57736. 8017e5e: bf00 nop
  57737. 8017e60: e000e010 .word 0xe000e010
  57738. 8017e64: e000e018 .word 0xe000e018
  57739. 8017e68: 24000034 .word 0x24000034
  57740. 8017e6c: 10624dd3 .word 0x10624dd3
  57741. 8017e70: e000e014 .word 0xe000e014
  57742. 08017e74 <vPortEnableVFP>:
  57743. /*-----------------------------------------------------------*/
  57744. /* This is a naked function. */
  57745. static void vPortEnableVFP( void )
  57746. {
  57747. __asm volatile
  57748. 8017e74: f8df 000c ldr.w r0, [pc, #12] @ 8017e84 <vPortEnableVFP+0x10>
  57749. 8017e78: 6801 ldr r1, [r0, #0]
  57750. 8017e7a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  57751. 8017e7e: 6001 str r1, [r0, #0]
  57752. 8017e80: 4770 bx lr
  57753. " \n"
  57754. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  57755. " str r1, [r0] \n"
  57756. " bx r14 "
  57757. );
  57758. }
  57759. 8017e82: bf00 nop
  57760. 8017e84: e000ed88 .word 0xe000ed88
  57761. 08017e88 <vPortValidateInterruptPriority>:
  57762. /*-----------------------------------------------------------*/
  57763. #if( configASSERT_DEFINED == 1 )
  57764. void vPortValidateInterruptPriority( void )
  57765. {
  57766. 8017e88: b480 push {r7}
  57767. 8017e8a: b085 sub sp, #20
  57768. 8017e8c: af00 add r7, sp, #0
  57769. uint32_t ulCurrentInterrupt;
  57770. uint8_t ucCurrentPriority;
  57771. /* Obtain the number of the currently executing interrupt. */
  57772. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  57773. 8017e8e: f3ef 8305 mrs r3, IPSR
  57774. 8017e92: 60fb str r3, [r7, #12]
  57775. /* Is the interrupt number a user defined interrupt? */
  57776. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  57777. 8017e94: 68fb ldr r3, [r7, #12]
  57778. 8017e96: 2b0f cmp r3, #15
  57779. 8017e98: d915 bls.n 8017ec6 <vPortValidateInterruptPriority+0x3e>
  57780. {
  57781. /* Look up the interrupt's priority. */
  57782. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  57783. 8017e9a: 4a18 ldr r2, [pc, #96] @ (8017efc <vPortValidateInterruptPriority+0x74>)
  57784. 8017e9c: 68fb ldr r3, [r7, #12]
  57785. 8017e9e: 4413 add r3, r2
  57786. 8017ea0: 781b ldrb r3, [r3, #0]
  57787. 8017ea2: 72fb strb r3, [r7, #11]
  57788. interrupt entry is as fast and simple as possible.
  57789. The following links provide detailed information:
  57790. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  57791. http://www.freertos.org/FAQHelp.html */
  57792. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  57793. 8017ea4: 4b16 ldr r3, [pc, #88] @ (8017f00 <vPortValidateInterruptPriority+0x78>)
  57794. 8017ea6: 781b ldrb r3, [r3, #0]
  57795. 8017ea8: 7afa ldrb r2, [r7, #11]
  57796. 8017eaa: 429a cmp r2, r3
  57797. 8017eac: d20b bcs.n 8017ec6 <vPortValidateInterruptPriority+0x3e>
  57798. __asm volatile
  57799. 8017eae: f04f 0350 mov.w r3, #80 @ 0x50
  57800. 8017eb2: f383 8811 msr BASEPRI, r3
  57801. 8017eb6: f3bf 8f6f isb sy
  57802. 8017eba: f3bf 8f4f dsb sy
  57803. 8017ebe: 607b str r3, [r7, #4]
  57804. }
  57805. 8017ec0: bf00 nop
  57806. 8017ec2: bf00 nop
  57807. 8017ec4: e7fd b.n 8017ec2 <vPortValidateInterruptPriority+0x3a>
  57808. configuration then the correct setting can be achieved on all Cortex-M
  57809. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  57810. scheduler. Note however that some vendor specific peripheral libraries
  57811. assume a non-zero priority group setting, in which cases using a value
  57812. of zero will result in unpredictable behaviour. */
  57813. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  57814. 8017ec6: 4b0f ldr r3, [pc, #60] @ (8017f04 <vPortValidateInterruptPriority+0x7c>)
  57815. 8017ec8: 681b ldr r3, [r3, #0]
  57816. 8017eca: f403 62e0 and.w r2, r3, #1792 @ 0x700
  57817. 8017ece: 4b0e ldr r3, [pc, #56] @ (8017f08 <vPortValidateInterruptPriority+0x80>)
  57818. 8017ed0: 681b ldr r3, [r3, #0]
  57819. 8017ed2: 429a cmp r2, r3
  57820. 8017ed4: d90b bls.n 8017eee <vPortValidateInterruptPriority+0x66>
  57821. __asm volatile
  57822. 8017ed6: f04f 0350 mov.w r3, #80 @ 0x50
  57823. 8017eda: f383 8811 msr BASEPRI, r3
  57824. 8017ede: f3bf 8f6f isb sy
  57825. 8017ee2: f3bf 8f4f dsb sy
  57826. 8017ee6: 603b str r3, [r7, #0]
  57827. }
  57828. 8017ee8: bf00 nop
  57829. 8017eea: bf00 nop
  57830. 8017eec: e7fd b.n 8017eea <vPortValidateInterruptPriority+0x62>
  57831. }
  57832. 8017eee: bf00 nop
  57833. 8017ef0: 3714 adds r7, #20
  57834. 8017ef2: 46bd mov sp, r7
  57835. 8017ef4: f85d 7b04 ldr.w r7, [sp], #4
  57836. 8017ef8: 4770 bx lr
  57837. 8017efa: bf00 nop
  57838. 8017efc: e000e3f0 .word 0xe000e3f0
  57839. 8017f00: 24003024 .word 0x24003024
  57840. 8017f04: e000ed0c .word 0xe000ed0c
  57841. 8017f08: 24003028 .word 0x24003028
  57842. 08017f0c <pvPortMalloc>:
  57843. static size_t xBlockAllocatedBit = 0;
  57844. /*-----------------------------------------------------------*/
  57845. void *pvPortMalloc( size_t xWantedSize )
  57846. {
  57847. 8017f0c: b580 push {r7, lr}
  57848. 8017f0e: b08a sub sp, #40 @ 0x28
  57849. 8017f10: af00 add r7, sp, #0
  57850. 8017f12: 6078 str r0, [r7, #4]
  57851. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  57852. void *pvReturn = NULL;
  57853. 8017f14: 2300 movs r3, #0
  57854. 8017f16: 61fb str r3, [r7, #28]
  57855. vTaskSuspendAll();
  57856. 8017f18: f7fe f918 bl 801614c <vTaskSuspendAll>
  57857. {
  57858. /* If this is the first call to malloc then the heap will require
  57859. initialisation to setup the list of free blocks. */
  57860. if( pxEnd == NULL )
  57861. 8017f1c: 4b5c ldr r3, [pc, #368] @ (8018090 <pvPortMalloc+0x184>)
  57862. 8017f1e: 681b ldr r3, [r3, #0]
  57863. 8017f20: 2b00 cmp r3, #0
  57864. 8017f22: d101 bne.n 8017f28 <pvPortMalloc+0x1c>
  57865. {
  57866. prvHeapInit();
  57867. 8017f24: f000 f924 bl 8018170 <prvHeapInit>
  57868. /* Check the requested block size is not so large that the top bit is
  57869. set. The top bit of the block size member of the BlockLink_t structure
  57870. is used to determine who owns the block - the application or the
  57871. kernel, so it must be free. */
  57872. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57873. 8017f28: 4b5a ldr r3, [pc, #360] @ (8018094 <pvPortMalloc+0x188>)
  57874. 8017f2a: 681a ldr r2, [r3, #0]
  57875. 8017f2c: 687b ldr r3, [r7, #4]
  57876. 8017f2e: 4013 ands r3, r2
  57877. 8017f30: 2b00 cmp r3, #0
  57878. 8017f32: f040 8095 bne.w 8018060 <pvPortMalloc+0x154>
  57879. {
  57880. /* The wanted size is increased so it can contain a BlockLink_t
  57881. structure in addition to the requested amount of bytes. */
  57882. if( xWantedSize > 0 )
  57883. 8017f36: 687b ldr r3, [r7, #4]
  57884. 8017f38: 2b00 cmp r3, #0
  57885. 8017f3a: d01e beq.n 8017f7a <pvPortMalloc+0x6e>
  57886. {
  57887. xWantedSize += xHeapStructSize;
  57888. 8017f3c: 2208 movs r2, #8
  57889. 8017f3e: 687b ldr r3, [r7, #4]
  57890. 8017f40: 4413 add r3, r2
  57891. 8017f42: 607b str r3, [r7, #4]
  57892. /* Ensure that blocks are always aligned to the required number
  57893. of bytes. */
  57894. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57895. 8017f44: 687b ldr r3, [r7, #4]
  57896. 8017f46: f003 0307 and.w r3, r3, #7
  57897. 8017f4a: 2b00 cmp r3, #0
  57898. 8017f4c: d015 beq.n 8017f7a <pvPortMalloc+0x6e>
  57899. {
  57900. /* Byte alignment required. */
  57901. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57902. 8017f4e: 687b ldr r3, [r7, #4]
  57903. 8017f50: f023 0307 bic.w r3, r3, #7
  57904. 8017f54: 3308 adds r3, #8
  57905. 8017f56: 607b str r3, [r7, #4]
  57906. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57907. 8017f58: 687b ldr r3, [r7, #4]
  57908. 8017f5a: f003 0307 and.w r3, r3, #7
  57909. 8017f5e: 2b00 cmp r3, #0
  57910. 8017f60: d00b beq.n 8017f7a <pvPortMalloc+0x6e>
  57911. __asm volatile
  57912. 8017f62: f04f 0350 mov.w r3, #80 @ 0x50
  57913. 8017f66: f383 8811 msr BASEPRI, r3
  57914. 8017f6a: f3bf 8f6f isb sy
  57915. 8017f6e: f3bf 8f4f dsb sy
  57916. 8017f72: 617b str r3, [r7, #20]
  57917. }
  57918. 8017f74: bf00 nop
  57919. 8017f76: bf00 nop
  57920. 8017f78: e7fd b.n 8017f76 <pvPortMalloc+0x6a>
  57921. else
  57922. {
  57923. mtCOVERAGE_TEST_MARKER();
  57924. }
  57925. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57926. 8017f7a: 687b ldr r3, [r7, #4]
  57927. 8017f7c: 2b00 cmp r3, #0
  57928. 8017f7e: d06f beq.n 8018060 <pvPortMalloc+0x154>
  57929. 8017f80: 4b45 ldr r3, [pc, #276] @ (8018098 <pvPortMalloc+0x18c>)
  57930. 8017f82: 681b ldr r3, [r3, #0]
  57931. 8017f84: 687a ldr r2, [r7, #4]
  57932. 8017f86: 429a cmp r2, r3
  57933. 8017f88: d86a bhi.n 8018060 <pvPortMalloc+0x154>
  57934. {
  57935. /* Traverse the list from the start (lowest address) block until
  57936. one of adequate size is found. */
  57937. pxPreviousBlock = &xStart;
  57938. 8017f8a: 4b44 ldr r3, [pc, #272] @ (801809c <pvPortMalloc+0x190>)
  57939. 8017f8c: 623b str r3, [r7, #32]
  57940. pxBlock = xStart.pxNextFreeBlock;
  57941. 8017f8e: 4b43 ldr r3, [pc, #268] @ (801809c <pvPortMalloc+0x190>)
  57942. 8017f90: 681b ldr r3, [r3, #0]
  57943. 8017f92: 627b str r3, [r7, #36] @ 0x24
  57944. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57945. 8017f94: e004 b.n 8017fa0 <pvPortMalloc+0x94>
  57946. {
  57947. pxPreviousBlock = pxBlock;
  57948. 8017f96: 6a7b ldr r3, [r7, #36] @ 0x24
  57949. 8017f98: 623b str r3, [r7, #32]
  57950. pxBlock = pxBlock->pxNextFreeBlock;
  57951. 8017f9a: 6a7b ldr r3, [r7, #36] @ 0x24
  57952. 8017f9c: 681b ldr r3, [r3, #0]
  57953. 8017f9e: 627b str r3, [r7, #36] @ 0x24
  57954. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57955. 8017fa0: 6a7b ldr r3, [r7, #36] @ 0x24
  57956. 8017fa2: 685b ldr r3, [r3, #4]
  57957. 8017fa4: 687a ldr r2, [r7, #4]
  57958. 8017fa6: 429a cmp r2, r3
  57959. 8017fa8: d903 bls.n 8017fb2 <pvPortMalloc+0xa6>
  57960. 8017faa: 6a7b ldr r3, [r7, #36] @ 0x24
  57961. 8017fac: 681b ldr r3, [r3, #0]
  57962. 8017fae: 2b00 cmp r3, #0
  57963. 8017fb0: d1f1 bne.n 8017f96 <pvPortMalloc+0x8a>
  57964. }
  57965. /* If the end marker was reached then a block of adequate size
  57966. was not found. */
  57967. if( pxBlock != pxEnd )
  57968. 8017fb2: 4b37 ldr r3, [pc, #220] @ (8018090 <pvPortMalloc+0x184>)
  57969. 8017fb4: 681b ldr r3, [r3, #0]
  57970. 8017fb6: 6a7a ldr r2, [r7, #36] @ 0x24
  57971. 8017fb8: 429a cmp r2, r3
  57972. 8017fba: d051 beq.n 8018060 <pvPortMalloc+0x154>
  57973. {
  57974. /* Return the memory space pointed to - jumping over the
  57975. BlockLink_t structure at its start. */
  57976. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  57977. 8017fbc: 6a3b ldr r3, [r7, #32]
  57978. 8017fbe: 681b ldr r3, [r3, #0]
  57979. 8017fc0: 2208 movs r2, #8
  57980. 8017fc2: 4413 add r3, r2
  57981. 8017fc4: 61fb str r3, [r7, #28]
  57982. /* This block is being returned for use so must be taken out
  57983. of the list of free blocks. */
  57984. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  57985. 8017fc6: 6a7b ldr r3, [r7, #36] @ 0x24
  57986. 8017fc8: 681a ldr r2, [r3, #0]
  57987. 8017fca: 6a3b ldr r3, [r7, #32]
  57988. 8017fcc: 601a str r2, [r3, #0]
  57989. /* If the block is larger than required it can be split into
  57990. two. */
  57991. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  57992. 8017fce: 6a7b ldr r3, [r7, #36] @ 0x24
  57993. 8017fd0: 685a ldr r2, [r3, #4]
  57994. 8017fd2: 687b ldr r3, [r7, #4]
  57995. 8017fd4: 1ad2 subs r2, r2, r3
  57996. 8017fd6: 2308 movs r3, #8
  57997. 8017fd8: 005b lsls r3, r3, #1
  57998. 8017fda: 429a cmp r2, r3
  57999. 8017fdc: d920 bls.n 8018020 <pvPortMalloc+0x114>
  58000. {
  58001. /* This block is to be split into two. Create a new
  58002. block following the number of bytes requested. The void
  58003. cast is used to prevent byte alignment warnings from the
  58004. compiler. */
  58005. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  58006. 8017fde: 6a7a ldr r2, [r7, #36] @ 0x24
  58007. 8017fe0: 687b ldr r3, [r7, #4]
  58008. 8017fe2: 4413 add r3, r2
  58009. 8017fe4: 61bb str r3, [r7, #24]
  58010. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  58011. 8017fe6: 69bb ldr r3, [r7, #24]
  58012. 8017fe8: f003 0307 and.w r3, r3, #7
  58013. 8017fec: 2b00 cmp r3, #0
  58014. 8017fee: d00b beq.n 8018008 <pvPortMalloc+0xfc>
  58015. __asm volatile
  58016. 8017ff0: f04f 0350 mov.w r3, #80 @ 0x50
  58017. 8017ff4: f383 8811 msr BASEPRI, r3
  58018. 8017ff8: f3bf 8f6f isb sy
  58019. 8017ffc: f3bf 8f4f dsb sy
  58020. 8018000: 613b str r3, [r7, #16]
  58021. }
  58022. 8018002: bf00 nop
  58023. 8018004: bf00 nop
  58024. 8018006: e7fd b.n 8018004 <pvPortMalloc+0xf8>
  58025. /* Calculate the sizes of two blocks split from the
  58026. single block. */
  58027. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  58028. 8018008: 6a7b ldr r3, [r7, #36] @ 0x24
  58029. 801800a: 685a ldr r2, [r3, #4]
  58030. 801800c: 687b ldr r3, [r7, #4]
  58031. 801800e: 1ad2 subs r2, r2, r3
  58032. 8018010: 69bb ldr r3, [r7, #24]
  58033. 8018012: 605a str r2, [r3, #4]
  58034. pxBlock->xBlockSize = xWantedSize;
  58035. 8018014: 6a7b ldr r3, [r7, #36] @ 0x24
  58036. 8018016: 687a ldr r2, [r7, #4]
  58037. 8018018: 605a str r2, [r3, #4]
  58038. /* Insert the new block into the list of free blocks. */
  58039. prvInsertBlockIntoFreeList( pxNewBlockLink );
  58040. 801801a: 69b8 ldr r0, [r7, #24]
  58041. 801801c: f000 f90a bl 8018234 <prvInsertBlockIntoFreeList>
  58042. else
  58043. {
  58044. mtCOVERAGE_TEST_MARKER();
  58045. }
  58046. xFreeBytesRemaining -= pxBlock->xBlockSize;
  58047. 8018020: 4b1d ldr r3, [pc, #116] @ (8018098 <pvPortMalloc+0x18c>)
  58048. 8018022: 681a ldr r2, [r3, #0]
  58049. 8018024: 6a7b ldr r3, [r7, #36] @ 0x24
  58050. 8018026: 685b ldr r3, [r3, #4]
  58051. 8018028: 1ad3 subs r3, r2, r3
  58052. 801802a: 4a1b ldr r2, [pc, #108] @ (8018098 <pvPortMalloc+0x18c>)
  58053. 801802c: 6013 str r3, [r2, #0]
  58054. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  58055. 801802e: 4b1a ldr r3, [pc, #104] @ (8018098 <pvPortMalloc+0x18c>)
  58056. 8018030: 681a ldr r2, [r3, #0]
  58057. 8018032: 4b1b ldr r3, [pc, #108] @ (80180a0 <pvPortMalloc+0x194>)
  58058. 8018034: 681b ldr r3, [r3, #0]
  58059. 8018036: 429a cmp r2, r3
  58060. 8018038: d203 bcs.n 8018042 <pvPortMalloc+0x136>
  58061. {
  58062. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  58063. 801803a: 4b17 ldr r3, [pc, #92] @ (8018098 <pvPortMalloc+0x18c>)
  58064. 801803c: 681b ldr r3, [r3, #0]
  58065. 801803e: 4a18 ldr r2, [pc, #96] @ (80180a0 <pvPortMalloc+0x194>)
  58066. 8018040: 6013 str r3, [r2, #0]
  58067. mtCOVERAGE_TEST_MARKER();
  58068. }
  58069. /* The block is being returned - it is allocated and owned
  58070. by the application and has no "next" block. */
  58071. pxBlock->xBlockSize |= xBlockAllocatedBit;
  58072. 8018042: 6a7b ldr r3, [r7, #36] @ 0x24
  58073. 8018044: 685a ldr r2, [r3, #4]
  58074. 8018046: 4b13 ldr r3, [pc, #76] @ (8018094 <pvPortMalloc+0x188>)
  58075. 8018048: 681b ldr r3, [r3, #0]
  58076. 801804a: 431a orrs r2, r3
  58077. 801804c: 6a7b ldr r3, [r7, #36] @ 0x24
  58078. 801804e: 605a str r2, [r3, #4]
  58079. pxBlock->pxNextFreeBlock = NULL;
  58080. 8018050: 6a7b ldr r3, [r7, #36] @ 0x24
  58081. 8018052: 2200 movs r2, #0
  58082. 8018054: 601a str r2, [r3, #0]
  58083. xNumberOfSuccessfulAllocations++;
  58084. 8018056: 4b13 ldr r3, [pc, #76] @ (80180a4 <pvPortMalloc+0x198>)
  58085. 8018058: 681b ldr r3, [r3, #0]
  58086. 801805a: 3301 adds r3, #1
  58087. 801805c: 4a11 ldr r2, [pc, #68] @ (80180a4 <pvPortMalloc+0x198>)
  58088. 801805e: 6013 str r3, [r2, #0]
  58089. mtCOVERAGE_TEST_MARKER();
  58090. }
  58091. traceMALLOC( pvReturn, xWantedSize );
  58092. }
  58093. ( void ) xTaskResumeAll();
  58094. 8018060: f7fe f882 bl 8016168 <xTaskResumeAll>
  58095. mtCOVERAGE_TEST_MARKER();
  58096. }
  58097. }
  58098. #endif
  58099. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  58100. 8018064: 69fb ldr r3, [r7, #28]
  58101. 8018066: f003 0307 and.w r3, r3, #7
  58102. 801806a: 2b00 cmp r3, #0
  58103. 801806c: d00b beq.n 8018086 <pvPortMalloc+0x17a>
  58104. __asm volatile
  58105. 801806e: f04f 0350 mov.w r3, #80 @ 0x50
  58106. 8018072: f383 8811 msr BASEPRI, r3
  58107. 8018076: f3bf 8f6f isb sy
  58108. 801807a: f3bf 8f4f dsb sy
  58109. 801807e: 60fb str r3, [r7, #12]
  58110. }
  58111. 8018080: bf00 nop
  58112. 8018082: bf00 nop
  58113. 8018084: e7fd b.n 8018082 <pvPortMalloc+0x176>
  58114. return pvReturn;
  58115. 8018086: 69fb ldr r3, [r7, #28]
  58116. }
  58117. 8018088: 4618 mov r0, r3
  58118. 801808a: 3728 adds r7, #40 @ 0x28
  58119. 801808c: 46bd mov sp, r7
  58120. 801808e: bd80 pop {r7, pc}
  58121. 8018090: 24013034 .word 0x24013034
  58122. 8018094: 24013048 .word 0x24013048
  58123. 8018098: 24013038 .word 0x24013038
  58124. 801809c: 2401302c .word 0x2401302c
  58125. 80180a0: 2401303c .word 0x2401303c
  58126. 80180a4: 24013040 .word 0x24013040
  58127. 080180a8 <vPortFree>:
  58128. /*-----------------------------------------------------------*/
  58129. void vPortFree( void *pv )
  58130. {
  58131. 80180a8: b580 push {r7, lr}
  58132. 80180aa: b086 sub sp, #24
  58133. 80180ac: af00 add r7, sp, #0
  58134. 80180ae: 6078 str r0, [r7, #4]
  58135. uint8_t *puc = ( uint8_t * ) pv;
  58136. 80180b0: 687b ldr r3, [r7, #4]
  58137. 80180b2: 617b str r3, [r7, #20]
  58138. BlockLink_t *pxLink;
  58139. if( pv != NULL )
  58140. 80180b4: 687b ldr r3, [r7, #4]
  58141. 80180b6: 2b00 cmp r3, #0
  58142. 80180b8: d04f beq.n 801815a <vPortFree+0xb2>
  58143. {
  58144. /* The memory being freed will have an BlockLink_t structure immediately
  58145. before it. */
  58146. puc -= xHeapStructSize;
  58147. 80180ba: 2308 movs r3, #8
  58148. 80180bc: 425b negs r3, r3
  58149. 80180be: 697a ldr r2, [r7, #20]
  58150. 80180c0: 4413 add r3, r2
  58151. 80180c2: 617b str r3, [r7, #20]
  58152. /* This casting is to keep the compiler from issuing warnings. */
  58153. pxLink = ( void * ) puc;
  58154. 80180c4: 697b ldr r3, [r7, #20]
  58155. 80180c6: 613b str r3, [r7, #16]
  58156. /* Check the block is actually allocated. */
  58157. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  58158. 80180c8: 693b ldr r3, [r7, #16]
  58159. 80180ca: 685a ldr r2, [r3, #4]
  58160. 80180cc: 4b25 ldr r3, [pc, #148] @ (8018164 <vPortFree+0xbc>)
  58161. 80180ce: 681b ldr r3, [r3, #0]
  58162. 80180d0: 4013 ands r3, r2
  58163. 80180d2: 2b00 cmp r3, #0
  58164. 80180d4: d10b bne.n 80180ee <vPortFree+0x46>
  58165. __asm volatile
  58166. 80180d6: f04f 0350 mov.w r3, #80 @ 0x50
  58167. 80180da: f383 8811 msr BASEPRI, r3
  58168. 80180de: f3bf 8f6f isb sy
  58169. 80180e2: f3bf 8f4f dsb sy
  58170. 80180e6: 60fb str r3, [r7, #12]
  58171. }
  58172. 80180e8: bf00 nop
  58173. 80180ea: bf00 nop
  58174. 80180ec: e7fd b.n 80180ea <vPortFree+0x42>
  58175. configASSERT( pxLink->pxNextFreeBlock == NULL );
  58176. 80180ee: 693b ldr r3, [r7, #16]
  58177. 80180f0: 681b ldr r3, [r3, #0]
  58178. 80180f2: 2b00 cmp r3, #0
  58179. 80180f4: d00b beq.n 801810e <vPortFree+0x66>
  58180. __asm volatile
  58181. 80180f6: f04f 0350 mov.w r3, #80 @ 0x50
  58182. 80180fa: f383 8811 msr BASEPRI, r3
  58183. 80180fe: f3bf 8f6f isb sy
  58184. 8018102: f3bf 8f4f dsb sy
  58185. 8018106: 60bb str r3, [r7, #8]
  58186. }
  58187. 8018108: bf00 nop
  58188. 801810a: bf00 nop
  58189. 801810c: e7fd b.n 801810a <vPortFree+0x62>
  58190. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  58191. 801810e: 693b ldr r3, [r7, #16]
  58192. 8018110: 685a ldr r2, [r3, #4]
  58193. 8018112: 4b14 ldr r3, [pc, #80] @ (8018164 <vPortFree+0xbc>)
  58194. 8018114: 681b ldr r3, [r3, #0]
  58195. 8018116: 4013 ands r3, r2
  58196. 8018118: 2b00 cmp r3, #0
  58197. 801811a: d01e beq.n 801815a <vPortFree+0xb2>
  58198. {
  58199. if( pxLink->pxNextFreeBlock == NULL )
  58200. 801811c: 693b ldr r3, [r7, #16]
  58201. 801811e: 681b ldr r3, [r3, #0]
  58202. 8018120: 2b00 cmp r3, #0
  58203. 8018122: d11a bne.n 801815a <vPortFree+0xb2>
  58204. {
  58205. /* The block is being returned to the heap - it is no longer
  58206. allocated. */
  58207. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  58208. 8018124: 693b ldr r3, [r7, #16]
  58209. 8018126: 685a ldr r2, [r3, #4]
  58210. 8018128: 4b0e ldr r3, [pc, #56] @ (8018164 <vPortFree+0xbc>)
  58211. 801812a: 681b ldr r3, [r3, #0]
  58212. 801812c: 43db mvns r3, r3
  58213. 801812e: 401a ands r2, r3
  58214. 8018130: 693b ldr r3, [r7, #16]
  58215. 8018132: 605a str r2, [r3, #4]
  58216. vTaskSuspendAll();
  58217. 8018134: f7fe f80a bl 801614c <vTaskSuspendAll>
  58218. {
  58219. /* Add this block to the list of free blocks. */
  58220. xFreeBytesRemaining += pxLink->xBlockSize;
  58221. 8018138: 693b ldr r3, [r7, #16]
  58222. 801813a: 685a ldr r2, [r3, #4]
  58223. 801813c: 4b0a ldr r3, [pc, #40] @ (8018168 <vPortFree+0xc0>)
  58224. 801813e: 681b ldr r3, [r3, #0]
  58225. 8018140: 4413 add r3, r2
  58226. 8018142: 4a09 ldr r2, [pc, #36] @ (8018168 <vPortFree+0xc0>)
  58227. 8018144: 6013 str r3, [r2, #0]
  58228. traceFREE( pv, pxLink->xBlockSize );
  58229. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  58230. 8018146: 6938 ldr r0, [r7, #16]
  58231. 8018148: f000 f874 bl 8018234 <prvInsertBlockIntoFreeList>
  58232. xNumberOfSuccessfulFrees++;
  58233. 801814c: 4b07 ldr r3, [pc, #28] @ (801816c <vPortFree+0xc4>)
  58234. 801814e: 681b ldr r3, [r3, #0]
  58235. 8018150: 3301 adds r3, #1
  58236. 8018152: 4a06 ldr r2, [pc, #24] @ (801816c <vPortFree+0xc4>)
  58237. 8018154: 6013 str r3, [r2, #0]
  58238. }
  58239. ( void ) xTaskResumeAll();
  58240. 8018156: f7fe f807 bl 8016168 <xTaskResumeAll>
  58241. else
  58242. {
  58243. mtCOVERAGE_TEST_MARKER();
  58244. }
  58245. }
  58246. }
  58247. 801815a: bf00 nop
  58248. 801815c: 3718 adds r7, #24
  58249. 801815e: 46bd mov sp, r7
  58250. 8018160: bd80 pop {r7, pc}
  58251. 8018162: bf00 nop
  58252. 8018164: 24013048 .word 0x24013048
  58253. 8018168: 24013038 .word 0x24013038
  58254. 801816c: 24013044 .word 0x24013044
  58255. 08018170 <prvHeapInit>:
  58256. /* This just exists to keep the linker quiet. */
  58257. }
  58258. /*-----------------------------------------------------------*/
  58259. static void prvHeapInit( void )
  58260. {
  58261. 8018170: b480 push {r7}
  58262. 8018172: b085 sub sp, #20
  58263. 8018174: af00 add r7, sp, #0
  58264. BlockLink_t *pxFirstFreeBlock;
  58265. uint8_t *pucAlignedHeap;
  58266. size_t uxAddress;
  58267. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  58268. 8018176: f44f 3380 mov.w r3, #65536 @ 0x10000
  58269. 801817a: 60bb str r3, [r7, #8]
  58270. /* Ensure the heap starts on a correctly aligned boundary. */
  58271. uxAddress = ( size_t ) ucHeap;
  58272. 801817c: 4b27 ldr r3, [pc, #156] @ (801821c <prvHeapInit+0xac>)
  58273. 801817e: 60fb str r3, [r7, #12]
  58274. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  58275. 8018180: 68fb ldr r3, [r7, #12]
  58276. 8018182: f003 0307 and.w r3, r3, #7
  58277. 8018186: 2b00 cmp r3, #0
  58278. 8018188: d00c beq.n 80181a4 <prvHeapInit+0x34>
  58279. {
  58280. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  58281. 801818a: 68fb ldr r3, [r7, #12]
  58282. 801818c: 3307 adds r3, #7
  58283. 801818e: 60fb str r3, [r7, #12]
  58284. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58285. 8018190: 68fb ldr r3, [r7, #12]
  58286. 8018192: f023 0307 bic.w r3, r3, #7
  58287. 8018196: 60fb str r3, [r7, #12]
  58288. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  58289. 8018198: 68ba ldr r2, [r7, #8]
  58290. 801819a: 68fb ldr r3, [r7, #12]
  58291. 801819c: 1ad3 subs r3, r2, r3
  58292. 801819e: 4a1f ldr r2, [pc, #124] @ (801821c <prvHeapInit+0xac>)
  58293. 80181a0: 4413 add r3, r2
  58294. 80181a2: 60bb str r3, [r7, #8]
  58295. }
  58296. pucAlignedHeap = ( uint8_t * ) uxAddress;
  58297. 80181a4: 68fb ldr r3, [r7, #12]
  58298. 80181a6: 607b str r3, [r7, #4]
  58299. /* xStart is used to hold a pointer to the first item in the list of free
  58300. blocks. The void cast is used to prevent compiler warnings. */
  58301. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  58302. 80181a8: 4a1d ldr r2, [pc, #116] @ (8018220 <prvHeapInit+0xb0>)
  58303. 80181aa: 687b ldr r3, [r7, #4]
  58304. 80181ac: 6013 str r3, [r2, #0]
  58305. xStart.xBlockSize = ( size_t ) 0;
  58306. 80181ae: 4b1c ldr r3, [pc, #112] @ (8018220 <prvHeapInit+0xb0>)
  58307. 80181b0: 2200 movs r2, #0
  58308. 80181b2: 605a str r2, [r3, #4]
  58309. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  58310. at the end of the heap space. */
  58311. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  58312. 80181b4: 687b ldr r3, [r7, #4]
  58313. 80181b6: 68ba ldr r2, [r7, #8]
  58314. 80181b8: 4413 add r3, r2
  58315. 80181ba: 60fb str r3, [r7, #12]
  58316. uxAddress -= xHeapStructSize;
  58317. 80181bc: 2208 movs r2, #8
  58318. 80181be: 68fb ldr r3, [r7, #12]
  58319. 80181c0: 1a9b subs r3, r3, r2
  58320. 80181c2: 60fb str r3, [r7, #12]
  58321. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58322. 80181c4: 68fb ldr r3, [r7, #12]
  58323. 80181c6: f023 0307 bic.w r3, r3, #7
  58324. 80181ca: 60fb str r3, [r7, #12]
  58325. pxEnd = ( void * ) uxAddress;
  58326. 80181cc: 68fb ldr r3, [r7, #12]
  58327. 80181ce: 4a15 ldr r2, [pc, #84] @ (8018224 <prvHeapInit+0xb4>)
  58328. 80181d0: 6013 str r3, [r2, #0]
  58329. pxEnd->xBlockSize = 0;
  58330. 80181d2: 4b14 ldr r3, [pc, #80] @ (8018224 <prvHeapInit+0xb4>)
  58331. 80181d4: 681b ldr r3, [r3, #0]
  58332. 80181d6: 2200 movs r2, #0
  58333. 80181d8: 605a str r2, [r3, #4]
  58334. pxEnd->pxNextFreeBlock = NULL;
  58335. 80181da: 4b12 ldr r3, [pc, #72] @ (8018224 <prvHeapInit+0xb4>)
  58336. 80181dc: 681b ldr r3, [r3, #0]
  58337. 80181de: 2200 movs r2, #0
  58338. 80181e0: 601a str r2, [r3, #0]
  58339. /* To start with there is a single free block that is sized to take up the
  58340. entire heap space, minus the space taken by pxEnd. */
  58341. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  58342. 80181e2: 687b ldr r3, [r7, #4]
  58343. 80181e4: 603b str r3, [r7, #0]
  58344. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  58345. 80181e6: 683b ldr r3, [r7, #0]
  58346. 80181e8: 68fa ldr r2, [r7, #12]
  58347. 80181ea: 1ad2 subs r2, r2, r3
  58348. 80181ec: 683b ldr r3, [r7, #0]
  58349. 80181ee: 605a str r2, [r3, #4]
  58350. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  58351. 80181f0: 4b0c ldr r3, [pc, #48] @ (8018224 <prvHeapInit+0xb4>)
  58352. 80181f2: 681a ldr r2, [r3, #0]
  58353. 80181f4: 683b ldr r3, [r7, #0]
  58354. 80181f6: 601a str r2, [r3, #0]
  58355. /* Only one block exists - and it covers the entire usable heap space. */
  58356. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58357. 80181f8: 683b ldr r3, [r7, #0]
  58358. 80181fa: 685b ldr r3, [r3, #4]
  58359. 80181fc: 4a0a ldr r2, [pc, #40] @ (8018228 <prvHeapInit+0xb8>)
  58360. 80181fe: 6013 str r3, [r2, #0]
  58361. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58362. 8018200: 683b ldr r3, [r7, #0]
  58363. 8018202: 685b ldr r3, [r3, #4]
  58364. 8018204: 4a09 ldr r2, [pc, #36] @ (801822c <prvHeapInit+0xbc>)
  58365. 8018206: 6013 str r3, [r2, #0]
  58366. /* Work out the position of the top bit in a size_t variable. */
  58367. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  58368. 8018208: 4b09 ldr r3, [pc, #36] @ (8018230 <prvHeapInit+0xc0>)
  58369. 801820a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  58370. 801820e: 601a str r2, [r3, #0]
  58371. }
  58372. 8018210: bf00 nop
  58373. 8018212: 3714 adds r7, #20
  58374. 8018214: 46bd mov sp, r7
  58375. 8018216: f85d 7b04 ldr.w r7, [sp], #4
  58376. 801821a: 4770 bx lr
  58377. 801821c: 2400302c .word 0x2400302c
  58378. 8018220: 2401302c .word 0x2401302c
  58379. 8018224: 24013034 .word 0x24013034
  58380. 8018228: 2401303c .word 0x2401303c
  58381. 801822c: 24013038 .word 0x24013038
  58382. 8018230: 24013048 .word 0x24013048
  58383. 08018234 <prvInsertBlockIntoFreeList>:
  58384. /*-----------------------------------------------------------*/
  58385. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  58386. {
  58387. 8018234: b480 push {r7}
  58388. 8018236: b085 sub sp, #20
  58389. 8018238: af00 add r7, sp, #0
  58390. 801823a: 6078 str r0, [r7, #4]
  58391. BlockLink_t *pxIterator;
  58392. uint8_t *puc;
  58393. /* Iterate through the list until a block is found that has a higher address
  58394. than the block being inserted. */
  58395. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  58396. 801823c: 4b28 ldr r3, [pc, #160] @ (80182e0 <prvInsertBlockIntoFreeList+0xac>)
  58397. 801823e: 60fb str r3, [r7, #12]
  58398. 8018240: e002 b.n 8018248 <prvInsertBlockIntoFreeList+0x14>
  58399. 8018242: 68fb ldr r3, [r7, #12]
  58400. 8018244: 681b ldr r3, [r3, #0]
  58401. 8018246: 60fb str r3, [r7, #12]
  58402. 8018248: 68fb ldr r3, [r7, #12]
  58403. 801824a: 681b ldr r3, [r3, #0]
  58404. 801824c: 687a ldr r2, [r7, #4]
  58405. 801824e: 429a cmp r2, r3
  58406. 8018250: d8f7 bhi.n 8018242 <prvInsertBlockIntoFreeList+0xe>
  58407. /* Nothing to do here, just iterate to the right position. */
  58408. }
  58409. /* Do the block being inserted, and the block it is being inserted after
  58410. make a contiguous block of memory? */
  58411. puc = ( uint8_t * ) pxIterator;
  58412. 8018252: 68fb ldr r3, [r7, #12]
  58413. 8018254: 60bb str r3, [r7, #8]
  58414. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  58415. 8018256: 68fb ldr r3, [r7, #12]
  58416. 8018258: 685b ldr r3, [r3, #4]
  58417. 801825a: 68ba ldr r2, [r7, #8]
  58418. 801825c: 4413 add r3, r2
  58419. 801825e: 687a ldr r2, [r7, #4]
  58420. 8018260: 429a cmp r2, r3
  58421. 8018262: d108 bne.n 8018276 <prvInsertBlockIntoFreeList+0x42>
  58422. {
  58423. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  58424. 8018264: 68fb ldr r3, [r7, #12]
  58425. 8018266: 685a ldr r2, [r3, #4]
  58426. 8018268: 687b ldr r3, [r7, #4]
  58427. 801826a: 685b ldr r3, [r3, #4]
  58428. 801826c: 441a add r2, r3
  58429. 801826e: 68fb ldr r3, [r7, #12]
  58430. 8018270: 605a str r2, [r3, #4]
  58431. pxBlockToInsert = pxIterator;
  58432. 8018272: 68fb ldr r3, [r7, #12]
  58433. 8018274: 607b str r3, [r7, #4]
  58434. mtCOVERAGE_TEST_MARKER();
  58435. }
  58436. /* Do the block being inserted, and the block it is being inserted before
  58437. make a contiguous block of memory? */
  58438. puc = ( uint8_t * ) pxBlockToInsert;
  58439. 8018276: 687b ldr r3, [r7, #4]
  58440. 8018278: 60bb str r3, [r7, #8]
  58441. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  58442. 801827a: 687b ldr r3, [r7, #4]
  58443. 801827c: 685b ldr r3, [r3, #4]
  58444. 801827e: 68ba ldr r2, [r7, #8]
  58445. 8018280: 441a add r2, r3
  58446. 8018282: 68fb ldr r3, [r7, #12]
  58447. 8018284: 681b ldr r3, [r3, #0]
  58448. 8018286: 429a cmp r2, r3
  58449. 8018288: d118 bne.n 80182bc <prvInsertBlockIntoFreeList+0x88>
  58450. {
  58451. if( pxIterator->pxNextFreeBlock != pxEnd )
  58452. 801828a: 68fb ldr r3, [r7, #12]
  58453. 801828c: 681a ldr r2, [r3, #0]
  58454. 801828e: 4b15 ldr r3, [pc, #84] @ (80182e4 <prvInsertBlockIntoFreeList+0xb0>)
  58455. 8018290: 681b ldr r3, [r3, #0]
  58456. 8018292: 429a cmp r2, r3
  58457. 8018294: d00d beq.n 80182b2 <prvInsertBlockIntoFreeList+0x7e>
  58458. {
  58459. /* Form one big block from the two blocks. */
  58460. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  58461. 8018296: 687b ldr r3, [r7, #4]
  58462. 8018298: 685a ldr r2, [r3, #4]
  58463. 801829a: 68fb ldr r3, [r7, #12]
  58464. 801829c: 681b ldr r3, [r3, #0]
  58465. 801829e: 685b ldr r3, [r3, #4]
  58466. 80182a0: 441a add r2, r3
  58467. 80182a2: 687b ldr r3, [r7, #4]
  58468. 80182a4: 605a str r2, [r3, #4]
  58469. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  58470. 80182a6: 68fb ldr r3, [r7, #12]
  58471. 80182a8: 681b ldr r3, [r3, #0]
  58472. 80182aa: 681a ldr r2, [r3, #0]
  58473. 80182ac: 687b ldr r3, [r7, #4]
  58474. 80182ae: 601a str r2, [r3, #0]
  58475. 80182b0: e008 b.n 80182c4 <prvInsertBlockIntoFreeList+0x90>
  58476. }
  58477. else
  58478. {
  58479. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  58480. 80182b2: 4b0c ldr r3, [pc, #48] @ (80182e4 <prvInsertBlockIntoFreeList+0xb0>)
  58481. 80182b4: 681a ldr r2, [r3, #0]
  58482. 80182b6: 687b ldr r3, [r7, #4]
  58483. 80182b8: 601a str r2, [r3, #0]
  58484. 80182ba: e003 b.n 80182c4 <prvInsertBlockIntoFreeList+0x90>
  58485. }
  58486. }
  58487. else
  58488. {
  58489. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  58490. 80182bc: 68fb ldr r3, [r7, #12]
  58491. 80182be: 681a ldr r2, [r3, #0]
  58492. 80182c0: 687b ldr r3, [r7, #4]
  58493. 80182c2: 601a str r2, [r3, #0]
  58494. /* If the block being inserted plugged a gab, so was merged with the block
  58495. before and the block after, then it's pxNextFreeBlock pointer will have
  58496. already been set, and should not be set here as that would make it point
  58497. to itself. */
  58498. if( pxIterator != pxBlockToInsert )
  58499. 80182c4: 68fa ldr r2, [r7, #12]
  58500. 80182c6: 687b ldr r3, [r7, #4]
  58501. 80182c8: 429a cmp r2, r3
  58502. 80182ca: d002 beq.n 80182d2 <prvInsertBlockIntoFreeList+0x9e>
  58503. {
  58504. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  58505. 80182cc: 68fb ldr r3, [r7, #12]
  58506. 80182ce: 687a ldr r2, [r7, #4]
  58507. 80182d0: 601a str r2, [r3, #0]
  58508. }
  58509. else
  58510. {
  58511. mtCOVERAGE_TEST_MARKER();
  58512. }
  58513. }
  58514. 80182d2: bf00 nop
  58515. 80182d4: 3714 adds r7, #20
  58516. 80182d6: 46bd mov sp, r7
  58517. 80182d8: f85d 7b04 ldr.w r7, [sp], #4
  58518. 80182dc: 4770 bx lr
  58519. 80182de: bf00 nop
  58520. 80182e0: 2401302c .word 0x2401302c
  58521. 80182e4: 24013034 .word 0x24013034
  58522. 080182e8 <memset>:
  58523. 80182e8: 4402 add r2, r0
  58524. 80182ea: 4603 mov r3, r0
  58525. 80182ec: 4293 cmp r3, r2
  58526. 80182ee: d100 bne.n 80182f2 <memset+0xa>
  58527. 80182f0: 4770 bx lr
  58528. 80182f2: f803 1b01 strb.w r1, [r3], #1
  58529. 80182f6: e7f9 b.n 80182ec <memset+0x4>
  58530. 080182f8 <_reclaim_reent>:
  58531. 80182f8: 4b29 ldr r3, [pc, #164] @ (80183a0 <_reclaim_reent+0xa8>)
  58532. 80182fa: 681b ldr r3, [r3, #0]
  58533. 80182fc: 4283 cmp r3, r0
  58534. 80182fe: b570 push {r4, r5, r6, lr}
  58535. 8018300: 4604 mov r4, r0
  58536. 8018302: d04b beq.n 801839c <_reclaim_reent+0xa4>
  58537. 8018304: 69c3 ldr r3, [r0, #28]
  58538. 8018306: b1ab cbz r3, 8018334 <_reclaim_reent+0x3c>
  58539. 8018308: 68db ldr r3, [r3, #12]
  58540. 801830a: b16b cbz r3, 8018328 <_reclaim_reent+0x30>
  58541. 801830c: 2500 movs r5, #0
  58542. 801830e: 69e3 ldr r3, [r4, #28]
  58543. 8018310: 68db ldr r3, [r3, #12]
  58544. 8018312: 5959 ldr r1, [r3, r5]
  58545. 8018314: 2900 cmp r1, #0
  58546. 8018316: d13b bne.n 8018390 <_reclaim_reent+0x98>
  58547. 8018318: 3504 adds r5, #4
  58548. 801831a: 2d80 cmp r5, #128 @ 0x80
  58549. 801831c: d1f7 bne.n 801830e <_reclaim_reent+0x16>
  58550. 801831e: 69e3 ldr r3, [r4, #28]
  58551. 8018320: 4620 mov r0, r4
  58552. 8018322: 68d9 ldr r1, [r3, #12]
  58553. 8018324: f000 f878 bl 8018418 <_free_r>
  58554. 8018328: 69e3 ldr r3, [r4, #28]
  58555. 801832a: 6819 ldr r1, [r3, #0]
  58556. 801832c: b111 cbz r1, 8018334 <_reclaim_reent+0x3c>
  58557. 801832e: 4620 mov r0, r4
  58558. 8018330: f000 f872 bl 8018418 <_free_r>
  58559. 8018334: 6961 ldr r1, [r4, #20]
  58560. 8018336: b111 cbz r1, 801833e <_reclaim_reent+0x46>
  58561. 8018338: 4620 mov r0, r4
  58562. 801833a: f000 f86d bl 8018418 <_free_r>
  58563. 801833e: 69e1 ldr r1, [r4, #28]
  58564. 8018340: b111 cbz r1, 8018348 <_reclaim_reent+0x50>
  58565. 8018342: 4620 mov r0, r4
  58566. 8018344: f000 f868 bl 8018418 <_free_r>
  58567. 8018348: 6b21 ldr r1, [r4, #48] @ 0x30
  58568. 801834a: b111 cbz r1, 8018352 <_reclaim_reent+0x5a>
  58569. 801834c: 4620 mov r0, r4
  58570. 801834e: f000 f863 bl 8018418 <_free_r>
  58571. 8018352: 6b61 ldr r1, [r4, #52] @ 0x34
  58572. 8018354: b111 cbz r1, 801835c <_reclaim_reent+0x64>
  58573. 8018356: 4620 mov r0, r4
  58574. 8018358: f000 f85e bl 8018418 <_free_r>
  58575. 801835c: 6ba1 ldr r1, [r4, #56] @ 0x38
  58576. 801835e: b111 cbz r1, 8018366 <_reclaim_reent+0x6e>
  58577. 8018360: 4620 mov r0, r4
  58578. 8018362: f000 f859 bl 8018418 <_free_r>
  58579. 8018366: 6ca1 ldr r1, [r4, #72] @ 0x48
  58580. 8018368: b111 cbz r1, 8018370 <_reclaim_reent+0x78>
  58581. 801836a: 4620 mov r0, r4
  58582. 801836c: f000 f854 bl 8018418 <_free_r>
  58583. 8018370: 6c61 ldr r1, [r4, #68] @ 0x44
  58584. 8018372: b111 cbz r1, 801837a <_reclaim_reent+0x82>
  58585. 8018374: 4620 mov r0, r4
  58586. 8018376: f000 f84f bl 8018418 <_free_r>
  58587. 801837a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  58588. 801837c: b111 cbz r1, 8018384 <_reclaim_reent+0x8c>
  58589. 801837e: 4620 mov r0, r4
  58590. 8018380: f000 f84a bl 8018418 <_free_r>
  58591. 8018384: 6a23 ldr r3, [r4, #32]
  58592. 8018386: b14b cbz r3, 801839c <_reclaim_reent+0xa4>
  58593. 8018388: 4620 mov r0, r4
  58594. 801838a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  58595. 801838e: 4718 bx r3
  58596. 8018390: 680e ldr r6, [r1, #0]
  58597. 8018392: 4620 mov r0, r4
  58598. 8018394: f000 f840 bl 8018418 <_free_r>
  58599. 8018398: 4631 mov r1, r6
  58600. 801839a: e7bb b.n 8018314 <_reclaim_reent+0x1c>
  58601. 801839c: bd70 pop {r4, r5, r6, pc}
  58602. 801839e: bf00 nop
  58603. 80183a0: 24000048 .word 0x24000048
  58604. 080183a4 <__errno>:
  58605. 80183a4: 4b01 ldr r3, [pc, #4] @ (80183ac <__errno+0x8>)
  58606. 80183a6: 6818 ldr r0, [r3, #0]
  58607. 80183a8: 4770 bx lr
  58608. 80183aa: bf00 nop
  58609. 80183ac: 24000048 .word 0x24000048
  58610. 080183b0 <__libc_init_array>:
  58611. 80183b0: b570 push {r4, r5, r6, lr}
  58612. 80183b2: 4d0d ldr r5, [pc, #52] @ (80183e8 <__libc_init_array+0x38>)
  58613. 80183b4: 4c0d ldr r4, [pc, #52] @ (80183ec <__libc_init_array+0x3c>)
  58614. 80183b6: 1b64 subs r4, r4, r5
  58615. 80183b8: 10a4 asrs r4, r4, #2
  58616. 80183ba: 2600 movs r6, #0
  58617. 80183bc: 42a6 cmp r6, r4
  58618. 80183be: d109 bne.n 80183d4 <__libc_init_array+0x24>
  58619. 80183c0: 4d0b ldr r5, [pc, #44] @ (80183f0 <__libc_init_array+0x40>)
  58620. 80183c2: 4c0c ldr r4, [pc, #48] @ (80183f4 <__libc_init_array+0x44>)
  58621. 80183c4: f000 f920 bl 8018608 <_init>
  58622. 80183c8: 1b64 subs r4, r4, r5
  58623. 80183ca: 10a4 asrs r4, r4, #2
  58624. 80183cc: 2600 movs r6, #0
  58625. 80183ce: 42a6 cmp r6, r4
  58626. 80183d0: d105 bne.n 80183de <__libc_init_array+0x2e>
  58627. 80183d2: bd70 pop {r4, r5, r6, pc}
  58628. 80183d4: f855 3b04 ldr.w r3, [r5], #4
  58629. 80183d8: 4798 blx r3
  58630. 80183da: 3601 adds r6, #1
  58631. 80183dc: e7ee b.n 80183bc <__libc_init_array+0xc>
  58632. 80183de: f855 3b04 ldr.w r3, [r5], #4
  58633. 80183e2: 4798 blx r3
  58634. 80183e4: 3601 adds r6, #1
  58635. 80183e6: e7f2 b.n 80183ce <__libc_init_array+0x1e>
  58636. 80183e8: 0801872c .word 0x0801872c
  58637. 80183ec: 0801872c .word 0x0801872c
  58638. 80183f0: 0801872c .word 0x0801872c
  58639. 80183f4: 08018730 .word 0x08018730
  58640. 080183f8 <__retarget_lock_acquire_recursive>:
  58641. 80183f8: 4770 bx lr
  58642. 080183fa <__retarget_lock_release_recursive>:
  58643. 80183fa: 4770 bx lr
  58644. 080183fc <memcpy>:
  58645. 80183fc: 440a add r2, r1
  58646. 80183fe: 4291 cmp r1, r2
  58647. 8018400: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58648. 8018404: d100 bne.n 8018408 <memcpy+0xc>
  58649. 8018406: 4770 bx lr
  58650. 8018408: b510 push {r4, lr}
  58651. 801840a: f811 4b01 ldrb.w r4, [r1], #1
  58652. 801840e: f803 4f01 strb.w r4, [r3, #1]!
  58653. 8018412: 4291 cmp r1, r2
  58654. 8018414: d1f9 bne.n 801840a <memcpy+0xe>
  58655. 8018416: bd10 pop {r4, pc}
  58656. 08018418 <_free_r>:
  58657. 8018418: b538 push {r3, r4, r5, lr}
  58658. 801841a: 4605 mov r5, r0
  58659. 801841c: 2900 cmp r1, #0
  58660. 801841e: d041 beq.n 80184a4 <_free_r+0x8c>
  58661. 8018420: f851 3c04 ldr.w r3, [r1, #-4]
  58662. 8018424: 1f0c subs r4, r1, #4
  58663. 8018426: 2b00 cmp r3, #0
  58664. 8018428: bfb8 it lt
  58665. 801842a: 18e4 addlt r4, r4, r3
  58666. 801842c: f000 f83e bl 80184ac <__malloc_lock>
  58667. 8018430: 4a1d ldr r2, [pc, #116] @ (80184a8 <_free_r+0x90>)
  58668. 8018432: 6813 ldr r3, [r2, #0]
  58669. 8018434: b933 cbnz r3, 8018444 <_free_r+0x2c>
  58670. 8018436: 6063 str r3, [r4, #4]
  58671. 8018438: 6014 str r4, [r2, #0]
  58672. 801843a: 4628 mov r0, r5
  58673. 801843c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58674. 8018440: f000 b83a b.w 80184b8 <__malloc_unlock>
  58675. 8018444: 42a3 cmp r3, r4
  58676. 8018446: d908 bls.n 801845a <_free_r+0x42>
  58677. 8018448: 6820 ldr r0, [r4, #0]
  58678. 801844a: 1821 adds r1, r4, r0
  58679. 801844c: 428b cmp r3, r1
  58680. 801844e: bf01 itttt eq
  58681. 8018450: 6819 ldreq r1, [r3, #0]
  58682. 8018452: 685b ldreq r3, [r3, #4]
  58683. 8018454: 1809 addeq r1, r1, r0
  58684. 8018456: 6021 streq r1, [r4, #0]
  58685. 8018458: e7ed b.n 8018436 <_free_r+0x1e>
  58686. 801845a: 461a mov r2, r3
  58687. 801845c: 685b ldr r3, [r3, #4]
  58688. 801845e: b10b cbz r3, 8018464 <_free_r+0x4c>
  58689. 8018460: 42a3 cmp r3, r4
  58690. 8018462: d9fa bls.n 801845a <_free_r+0x42>
  58691. 8018464: 6811 ldr r1, [r2, #0]
  58692. 8018466: 1850 adds r0, r2, r1
  58693. 8018468: 42a0 cmp r0, r4
  58694. 801846a: d10b bne.n 8018484 <_free_r+0x6c>
  58695. 801846c: 6820 ldr r0, [r4, #0]
  58696. 801846e: 4401 add r1, r0
  58697. 8018470: 1850 adds r0, r2, r1
  58698. 8018472: 4283 cmp r3, r0
  58699. 8018474: 6011 str r1, [r2, #0]
  58700. 8018476: d1e0 bne.n 801843a <_free_r+0x22>
  58701. 8018478: 6818 ldr r0, [r3, #0]
  58702. 801847a: 685b ldr r3, [r3, #4]
  58703. 801847c: 6053 str r3, [r2, #4]
  58704. 801847e: 4408 add r0, r1
  58705. 8018480: 6010 str r0, [r2, #0]
  58706. 8018482: e7da b.n 801843a <_free_r+0x22>
  58707. 8018484: d902 bls.n 801848c <_free_r+0x74>
  58708. 8018486: 230c movs r3, #12
  58709. 8018488: 602b str r3, [r5, #0]
  58710. 801848a: e7d6 b.n 801843a <_free_r+0x22>
  58711. 801848c: 6820 ldr r0, [r4, #0]
  58712. 801848e: 1821 adds r1, r4, r0
  58713. 8018490: 428b cmp r3, r1
  58714. 8018492: bf04 itt eq
  58715. 8018494: 6819 ldreq r1, [r3, #0]
  58716. 8018496: 685b ldreq r3, [r3, #4]
  58717. 8018498: 6063 str r3, [r4, #4]
  58718. 801849a: bf04 itt eq
  58719. 801849c: 1809 addeq r1, r1, r0
  58720. 801849e: 6021 streq r1, [r4, #0]
  58721. 80184a0: 6054 str r4, [r2, #4]
  58722. 80184a2: e7ca b.n 801843a <_free_r+0x22>
  58723. 80184a4: bd38 pop {r3, r4, r5, pc}
  58724. 80184a6: bf00 nop
  58725. 80184a8: 24013188 .word 0x24013188
  58726. 080184ac <__malloc_lock>:
  58727. 80184ac: 4801 ldr r0, [pc, #4] @ (80184b4 <__malloc_lock+0x8>)
  58728. 80184ae: f7ff bfa3 b.w 80183f8 <__retarget_lock_acquire_recursive>
  58729. 80184b2: bf00 nop
  58730. 80184b4: 24013184 .word 0x24013184
  58731. 080184b8 <__malloc_unlock>:
  58732. 80184b8: 4801 ldr r0, [pc, #4] @ (80184c0 <__malloc_unlock+0x8>)
  58733. 80184ba: f7ff bf9e b.w 80183fa <__retarget_lock_release_recursive>
  58734. 80184be: bf00 nop
  58735. 80184c0: 24013184 .word 0x24013184
  58736. 080184c4 <fmodf>:
  58737. 80184c4: b508 push {r3, lr}
  58738. 80184c6: ed2d 8b02 vpush {d8}
  58739. 80184ca: eef0 8a40 vmov.f32 s17, s0
  58740. 80184ce: eeb0 8a60 vmov.f32 s16, s1
  58741. 80184d2: f000 f817 bl 8018504 <__ieee754_fmodf>
  58742. 80184d6: eef4 8a48 vcmp.f32 s17, s16
  58743. 80184da: eef1 fa10 vmrs APSR_nzcv, fpscr
  58744. 80184de: d60c bvs.n 80184fa <fmodf+0x36>
  58745. 80184e0: eddf 8a07 vldr s17, [pc, #28] @ 8018500 <fmodf+0x3c>
  58746. 80184e4: eeb4 8a68 vcmp.f32 s16, s17
  58747. 80184e8: eef1 fa10 vmrs APSR_nzcv, fpscr
  58748. 80184ec: d105 bne.n 80184fa <fmodf+0x36>
  58749. 80184ee: f7ff ff59 bl 80183a4 <__errno>
  58750. 80184f2: ee88 0aa8 vdiv.f32 s0, s17, s17
  58751. 80184f6: 2321 movs r3, #33 @ 0x21
  58752. 80184f8: 6003 str r3, [r0, #0]
  58753. 80184fa: ecbd 8b02 vpop {d8}
  58754. 80184fe: bd08 pop {r3, pc}
  58755. 8018500: 00000000 .word 0x00000000
  58756. 08018504 <__ieee754_fmodf>:
  58757. 8018504: b5f0 push {r4, r5, r6, r7, lr}
  58758. 8018506: ee10 5a90 vmov r5, s1
  58759. 801850a: f025 4000 bic.w r0, r5, #2147483648 @ 0x80000000
  58760. 801850e: 1e43 subs r3, r0, #1
  58761. 8018510: f1b3 4fff cmp.w r3, #2139095040 @ 0x7f800000
  58762. 8018514: d206 bcs.n 8018524 <__ieee754_fmodf+0x20>
  58763. 8018516: ee10 3a10 vmov r3, s0
  58764. 801851a: f023 4600 bic.w r6, r3, #2147483648 @ 0x80000000
  58765. 801851e: f1b6 4fff cmp.w r6, #2139095040 @ 0x7f800000
  58766. 8018522: d304 bcc.n 801852e <__ieee754_fmodf+0x2a>
  58767. 8018524: ee60 0a20 vmul.f32 s1, s0, s1
  58768. 8018528: ee80 0aa0 vdiv.f32 s0, s1, s1
  58769. 801852c: bdf0 pop {r4, r5, r6, r7, pc}
  58770. 801852e: 4286 cmp r6, r0
  58771. 8018530: dbfc blt.n 801852c <__ieee754_fmodf+0x28>
  58772. 8018532: f003 4400 and.w r4, r3, #2147483648 @ 0x80000000
  58773. 8018536: d105 bne.n 8018544 <__ieee754_fmodf+0x40>
  58774. 8018538: 4b32 ldr r3, [pc, #200] @ (8018604 <__ieee754_fmodf+0x100>)
  58775. 801853a: eb03 7354 add.w r3, r3, r4, lsr #29
  58776. 801853e: ed93 0a00 vldr s0, [r3]
  58777. 8018542: e7f3 b.n 801852c <__ieee754_fmodf+0x28>
  58778. 8018544: f013 4fff tst.w r3, #2139095040 @ 0x7f800000
  58779. 8018548: d140 bne.n 80185cc <__ieee754_fmodf+0xc8>
  58780. 801854a: 0232 lsls r2, r6, #8
  58781. 801854c: f06f 017d mvn.w r1, #125 @ 0x7d
  58782. 8018550: 2a00 cmp r2, #0
  58783. 8018552: dc38 bgt.n 80185c6 <__ieee754_fmodf+0xc2>
  58784. 8018554: f015 4fff tst.w r5, #2139095040 @ 0x7f800000
  58785. 8018558: d13e bne.n 80185d8 <__ieee754_fmodf+0xd4>
  58786. 801855a: 0207 lsls r7, r0, #8
  58787. 801855c: f06f 027d mvn.w r2, #125 @ 0x7d
  58788. 8018560: 2f00 cmp r7, #0
  58789. 8018562: da36 bge.n 80185d2 <__ieee754_fmodf+0xce>
  58790. 8018564: f111 0f7e cmn.w r1, #126 @ 0x7e
  58791. 8018568: bfb9 ittee lt
  58792. 801856a: f06f 037d mvnlt.w r3, #125 @ 0x7d
  58793. 801856e: 1a5b sublt r3, r3, r1
  58794. 8018570: f3c3 0316 ubfxge r3, r3, #0, #23
  58795. 8018574: f443 0300 orrge.w r3, r3, #8388608 @ 0x800000
  58796. 8018578: bfb8 it lt
  58797. 801857a: fa06 f303 lsllt.w r3, r6, r3
  58798. 801857e: f112 0f7e cmn.w r2, #126 @ 0x7e
  58799. 8018582: bfb5 itete lt
  58800. 8018584: f06f 057d mvnlt.w r5, #125 @ 0x7d
  58801. 8018588: f3c5 0516 ubfxge r5, r5, #0, #23
  58802. 801858c: 1aad sublt r5, r5, r2
  58803. 801858e: f445 0000 orrge.w r0, r5, #8388608 @ 0x800000
  58804. 8018592: bfb8 it lt
  58805. 8018594: 40a8 lsllt r0, r5
  58806. 8018596: 1a89 subs r1, r1, r2
  58807. 8018598: 1a1d subs r5, r3, r0
  58808. 801859a: bb01 cbnz r1, 80185de <__ieee754_fmodf+0xda>
  58809. 801859c: ea13 0325 ands.w r3, r3, r5, asr #32
  58810. 80185a0: bf38 it cc
  58811. 80185a2: 462b movcc r3, r5
  58812. 80185a4: 2b00 cmp r3, #0
  58813. 80185a6: d0c7 beq.n 8018538 <__ieee754_fmodf+0x34>
  58814. 80185a8: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  58815. 80185ac: db1f blt.n 80185ee <__ieee754_fmodf+0xea>
  58816. 80185ae: f112 0f7e cmn.w r2, #126 @ 0x7e
  58817. 80185b2: db1f blt.n 80185f4 <__ieee754_fmodf+0xf0>
  58818. 80185b4: f5a3 0300 sub.w r3, r3, #8388608 @ 0x800000
  58819. 80185b8: 327f adds r2, #127 @ 0x7f
  58820. 80185ba: 4323 orrs r3, r4
  58821. 80185bc: ea43 53c2 orr.w r3, r3, r2, lsl #23
  58822. 80185c0: ee00 3a10 vmov s0, r3
  58823. 80185c4: e7b2 b.n 801852c <__ieee754_fmodf+0x28>
  58824. 80185c6: 3901 subs r1, #1
  58825. 80185c8: 0052 lsls r2, r2, #1
  58826. 80185ca: e7c1 b.n 8018550 <__ieee754_fmodf+0x4c>
  58827. 80185cc: 15f1 asrs r1, r6, #23
  58828. 80185ce: 397f subs r1, #127 @ 0x7f
  58829. 80185d0: e7c0 b.n 8018554 <__ieee754_fmodf+0x50>
  58830. 80185d2: 3a01 subs r2, #1
  58831. 80185d4: 007f lsls r7, r7, #1
  58832. 80185d6: e7c3 b.n 8018560 <__ieee754_fmodf+0x5c>
  58833. 80185d8: 15c2 asrs r2, r0, #23
  58834. 80185da: 3a7f subs r2, #127 @ 0x7f
  58835. 80185dc: e7c2 b.n 8018564 <__ieee754_fmodf+0x60>
  58836. 80185de: 2d00 cmp r5, #0
  58837. 80185e0: da02 bge.n 80185e8 <__ieee754_fmodf+0xe4>
  58838. 80185e2: 005b lsls r3, r3, #1
  58839. 80185e4: 3901 subs r1, #1
  58840. 80185e6: e7d7 b.n 8018598 <__ieee754_fmodf+0x94>
  58841. 80185e8: d0a6 beq.n 8018538 <__ieee754_fmodf+0x34>
  58842. 80185ea: 006b lsls r3, r5, #1
  58843. 80185ec: e7fa b.n 80185e4 <__ieee754_fmodf+0xe0>
  58844. 80185ee: 005b lsls r3, r3, #1
  58845. 80185f0: 3a01 subs r2, #1
  58846. 80185f2: e7d9 b.n 80185a8 <__ieee754_fmodf+0xa4>
  58847. 80185f4: f1c2 22ff rsb r2, r2, #4278255360 @ 0xff00ff00
  58848. 80185f8: f502 027f add.w r2, r2, #16711680 @ 0xff0000
  58849. 80185fc: 3282 adds r2, #130 @ 0x82
  58850. 80185fe: 4113 asrs r3, r2
  58851. 8018600: 4323 orrs r3, r4
  58852. 8018602: e7dd b.n 80185c0 <__ieee754_fmodf+0xbc>
  58853. 8018604: 0801871c .word 0x0801871c
  58854. 08018608 <_init>:
  58855. 8018608: b5f8 push {r3, r4, r5, r6, r7, lr}
  58856. 801860a: bf00 nop
  58857. 801860c: bcf8 pop {r3, r4, r5, r6, r7}
  58858. 801860e: bc08 pop {r3}
  58859. 8018610: 469e mov lr, r3
  58860. 8018612: 4770 bx lr
  58861. 08018614 <_fini>:
  58862. 8018614: b5f8 push {r3, r4, r5, r6, r7, lr}
  58863. 8018616: bf00 nop
  58864. 8018618: bcf8 pop {r3, r4, r5, r6, r7}
  58865. 801861a: bc08 pop {r3}
  58866. 801861c: 469e mov lr, r3
  58867. 801861e: 4770 bx lr