1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170 |
- /**
- ******************************************************************************
- * @file stm32f7xx_ll_rcc.h
- * @author MCD Application Team
- * @brief Header file of RCC LL module.
- ******************************************************************************
- * @attention
- *
- * Copyright (c) 2017 STMicroelectronics.
- * All rights reserved.
- *
- * This software is licensed under terms that can be found in the LICENSE file in
- * the root directory of this software component.
- * If no LICENSE file comes with this software, it is provided AS-IS.
- ******************************************************************************
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __STM32F7xx_LL_RCC_H
- #define __STM32F7xx_LL_RCC_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f7xx.h"
- /** @addtogroup STM32F7xx_LL_Driver
- * @{
- */
- #if defined(RCC)
- /** @defgroup RCC_LL RCC
- * @{
- */
- /* Private types -------------------------------------------------------------*/
- /* Private variables ---------------------------------------------------------*/
- /** @defgroup RCC_LL_Private_Variables RCC Private Variables
- * @{
- */
- #if defined(RCC_DCKCFGR1_PLLSAIDIVR)
- static const uint8_t aRCC_PLLSAIDIVRPrescTable[4] = {2, 4, 8, 16};
- #endif /* RCC_DCKCFGR1_PLLSAIDIVR */
- /**
- * @}
- */
- /* Private constants ---------------------------------------------------------*/
- /* Private macros ------------------------------------------------------------*/
- #if defined(USE_FULL_LL_DRIVER)
- /** @defgroup RCC_LL_Private_Macros RCC Private Macros
- * @{
- */
- /**
- * @}
- */
- #endif /*USE_FULL_LL_DRIVER*/
- /* Exported types ------------------------------------------------------------*/
- #if defined(USE_FULL_LL_DRIVER)
- /** @defgroup RCC_LL_Exported_Types RCC Exported Types
- * @{
- */
- /** @defgroup LL_ES_CLOCK_FREQ Clocks Frequency Structure
- * @{
- */
- /**
- * @brief RCC Clocks Frequency Structure
- */
- typedef struct
- {
- uint32_t SYSCLK_Frequency; /*!< SYSCLK clock frequency */
- uint32_t HCLK_Frequency; /*!< HCLK clock frequency */
- uint32_t PCLK1_Frequency; /*!< PCLK1 clock frequency */
- uint32_t PCLK2_Frequency; /*!< PCLK2 clock frequency */
- } LL_RCC_ClocksTypeDef;
- /**
- * @}
- */
- /**
- * @}
- */
- #endif /* USE_FULL_LL_DRIVER */
- /* Exported constants --------------------------------------------------------*/
- /** @defgroup RCC_LL_Exported_Constants RCC Exported Constants
- * @{
- */
- /** @defgroup RCC_LL_EC_OSC_VALUES Oscillator Values adaptation
- * @brief Defines used to adapt values of different oscillators
- * @note These values could be modified in the user environment according to
- * HW set-up.
- * @{
- */
- #if !defined (HSE_VALUE)
- #define HSE_VALUE 25000000U /*!< Value of the HSE oscillator in Hz */
- #endif /* HSE_VALUE */
- #if !defined (HSI_VALUE)
- #define HSI_VALUE 16000000U /*!< Value of the HSI oscillator in Hz */
- #endif /* HSI_VALUE */
- #if !defined (LSE_VALUE)
- #define LSE_VALUE 32768U /*!< Value of the LSE oscillator in Hz */
- #endif /* LSE_VALUE */
- #if !defined (LSI_VALUE)
- #define LSI_VALUE 32000U /*!< Value of the LSI oscillator in Hz */
- #endif /* LSI_VALUE */
- #if !defined (EXTERNAL_CLOCK_VALUE)
- #define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the I2S_CKIN external oscillator in Hz */
- #endif /* EXTERNAL_CLOCK_VALUE */
- #if !defined (EXTERNAL_SAI1_CLOCK_VALUE)
- #define EXTERNAL_SAI1_CLOCK_VALUE 48000U /*!< Value of the SAI1_EXTCLK external oscillator in Hz */
- #endif /* EXTERNAL_SAI1_CLOCK_VALUE */
- #if !defined (EXTERNAL_SAI2_CLOCK_VALUE)
- #define EXTERNAL_SAI2_CLOCK_VALUE 48000U /*!< Value of the SAI2_EXTCLK external oscillator in Hz */
- #endif /* EXTERNAL_SAI2_CLOCK_VALUE */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_CLEAR_FLAG Clear Flags Defines
- * @brief Flags defines which can be used with LL_RCC_WriteReg function
- * @{
- */
- #define LL_RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC /*!< LSI Ready Interrupt Clear */
- #define LL_RCC_CIR_LSERDYC RCC_CIR_LSERDYC /*!< LSE Ready Interrupt Clear */
- #define LL_RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC /*!< HSI Ready Interrupt Clear */
- #define LL_RCC_CIR_HSERDYC RCC_CIR_HSERDYC /*!< HSE Ready Interrupt Clear */
- #define LL_RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC /*!< PLL Ready Interrupt Clear */
- #define LL_RCC_CIR_PLLI2SRDYC RCC_CIR_PLLI2SRDYC /*!< PLLI2S Ready Interrupt Clear */
- #define LL_RCC_CIR_PLLSAIRDYC RCC_CIR_PLLSAIRDYC /*!< PLLSAI Ready Interrupt Clear */
- #define LL_RCC_CIR_CSSC RCC_CIR_CSSC /*!< Clock Security System Interrupt Clear */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_GET_FLAG Get Flags Defines
- * @brief Flags defines which can be used with LL_RCC_ReadReg function
- * @{
- */
- #define LL_RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF /*!< LSI Ready Interrupt flag */
- #define LL_RCC_CIR_LSERDYF RCC_CIR_LSERDYF /*!< LSE Ready Interrupt flag */
- #define LL_RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF /*!< HSI Ready Interrupt flag */
- #define LL_RCC_CIR_HSERDYF RCC_CIR_HSERDYF /*!< HSE Ready Interrupt flag */
- #define LL_RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF /*!< PLL Ready Interrupt flag */
- #define LL_RCC_CIR_PLLI2SRDYF RCC_CIR_PLLI2SRDYF /*!< PLLI2S Ready Interrupt flag */
- #define LL_RCC_CIR_PLLSAIRDYF RCC_CIR_PLLSAIRDYF /*!< PLLSAI Ready Interrupt flag */
- #define LL_RCC_CIR_CSSF RCC_CIR_CSSF /*!< Clock Security System Interrupt flag */
- #define LL_RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF /*!< Low-Power reset flag */
- #define LL_RCC_CSR_PINRSTF RCC_CSR_PINRSTF /*!< PIN reset flag */
- #define LL_RCC_CSR_PORRSTF RCC_CSR_PORRSTF /*!< POR/PDR reset flag */
- #define LL_RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF /*!< Software Reset flag */
- #define LL_RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF /*!< Independent Watchdog reset flag */
- #define LL_RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF /*!< Window watchdog reset flag */
- #define LL_RCC_CSR_BORRSTF RCC_CSR_BORRSTF /*!< BOR reset flag */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_IT IT Defines
- * @brief IT defines which can be used with LL_RCC_ReadReg and LL_RCC_WriteReg functions
- * @{
- */
- #define LL_RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE /*!< LSI Ready Interrupt Enable */
- #define LL_RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE /*!< LSE Ready Interrupt Enable */
- #define LL_RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE /*!< HSI Ready Interrupt Enable */
- #define LL_RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE /*!< HSE Ready Interrupt Enable */
- #define LL_RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE /*!< PLL Ready Interrupt Enable */
- #define LL_RCC_CIR_PLLI2SRDYIE RCC_CIR_PLLI2SRDYIE /*!< PLLI2S Ready Interrupt Enable */
- #define LL_RCC_CIR_PLLSAIRDYIE RCC_CIR_PLLSAIRDYIE /*!< PLLSAI Ready Interrupt Enable */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_LSEDRIVE LSE oscillator drive capability
- * @{
- */
- #define LL_RCC_LSEDRIVE_LOW 0x00000000U /*!< Xtal mode lower driving capability */
- #define LL_RCC_LSEDRIVE_MEDIUMHIGH RCC_BDCR_LSEDRV_0 /*!< Xtal mode medium high driving capability */
- #define LL_RCC_LSEDRIVE_MEDIUMLOW RCC_BDCR_LSEDRV_1 /*!< Xtal mode medium low driving capability */
- #define LL_RCC_LSEDRIVE_HIGH RCC_BDCR_LSEDRV /*!< Xtal mode higher driving capability */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SYS_CLKSOURCE System clock switch
- * @{
- */
- #define LL_RCC_SYS_CLKSOURCE_HSI RCC_CFGR_SW_HSI /*!< HSI selection as system clock */
- #define LL_RCC_SYS_CLKSOURCE_HSE RCC_CFGR_SW_HSE /*!< HSE selection as system clock */
- #define LL_RCC_SYS_CLKSOURCE_PLL RCC_CFGR_SW_PLL /*!< PLL selection as system clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SYS_CLKSOURCE_STATUS System clock switch status
- * @{
- */
- #define LL_RCC_SYS_CLKSOURCE_STATUS_HSI RCC_CFGR_SWS_HSI /*!< HSI used as system clock */
- #define LL_RCC_SYS_CLKSOURCE_STATUS_HSE RCC_CFGR_SWS_HSE /*!< HSE used as system clock */
- #define LL_RCC_SYS_CLKSOURCE_STATUS_PLL RCC_CFGR_SWS_PLL /*!< PLL used as system clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SYSCLK_DIV AHB prescaler
- * @{
- */
- #define LL_RCC_SYSCLK_DIV_1 RCC_CFGR_HPRE_DIV1 /*!< SYSCLK not divided */
- #define LL_RCC_SYSCLK_DIV_2 RCC_CFGR_HPRE_DIV2 /*!< SYSCLK divided by 2 */
- #define LL_RCC_SYSCLK_DIV_4 RCC_CFGR_HPRE_DIV4 /*!< SYSCLK divided by 4 */
- #define LL_RCC_SYSCLK_DIV_8 RCC_CFGR_HPRE_DIV8 /*!< SYSCLK divided by 8 */
- #define LL_RCC_SYSCLK_DIV_16 RCC_CFGR_HPRE_DIV16 /*!< SYSCLK divided by 16 */
- #define LL_RCC_SYSCLK_DIV_64 RCC_CFGR_HPRE_DIV64 /*!< SYSCLK divided by 64 */
- #define LL_RCC_SYSCLK_DIV_128 RCC_CFGR_HPRE_DIV128 /*!< SYSCLK divided by 128 */
- #define LL_RCC_SYSCLK_DIV_256 RCC_CFGR_HPRE_DIV256 /*!< SYSCLK divided by 256 */
- #define LL_RCC_SYSCLK_DIV_512 RCC_CFGR_HPRE_DIV512 /*!< SYSCLK divided by 512 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_APB1_DIV APB low-speed prescaler (APB1)
- * @{
- */
- #define LL_RCC_APB1_DIV_1 RCC_CFGR_PPRE1_DIV1 /*!< HCLK not divided */
- #define LL_RCC_APB1_DIV_2 RCC_CFGR_PPRE1_DIV2 /*!< HCLK divided by 2 */
- #define LL_RCC_APB1_DIV_4 RCC_CFGR_PPRE1_DIV4 /*!< HCLK divided by 4 */
- #define LL_RCC_APB1_DIV_8 RCC_CFGR_PPRE1_DIV8 /*!< HCLK divided by 8 */
- #define LL_RCC_APB1_DIV_16 RCC_CFGR_PPRE1_DIV16 /*!< HCLK divided by 16 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_APB2_DIV APB high-speed prescaler (APB2)
- * @{
- */
- #define LL_RCC_APB2_DIV_1 RCC_CFGR_PPRE2_DIV1 /*!< HCLK not divided */
- #define LL_RCC_APB2_DIV_2 RCC_CFGR_PPRE2_DIV2 /*!< HCLK divided by 2 */
- #define LL_RCC_APB2_DIV_4 RCC_CFGR_PPRE2_DIV4 /*!< HCLK divided by 4 */
- #define LL_RCC_APB2_DIV_8 RCC_CFGR_PPRE2_DIV8 /*!< HCLK divided by 8 */
- #define LL_RCC_APB2_DIV_16 RCC_CFGR_PPRE2_DIV16 /*!< HCLK divided by 16 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_MCOxSOURCE MCO source selection
- * @{
- */
- #define LL_RCC_MCO1SOURCE_HSI (uint32_t)(RCC_CFGR_MCO1|0x00000000U) /*!< HSI selection as MCO1 source */
- #define LL_RCC_MCO1SOURCE_LSE (uint32_t)(RCC_CFGR_MCO1|(RCC_CFGR_MCO1_0 >> 16U)) /*!< LSE selection as MCO1 source */
- #define LL_RCC_MCO1SOURCE_HSE (uint32_t)(RCC_CFGR_MCO1|(RCC_CFGR_MCO1_1 >> 16U)) /*!< HSE selection as MCO1 source */
- #define LL_RCC_MCO1SOURCE_PLLCLK (uint32_t)(RCC_CFGR_MCO1|((RCC_CFGR_MCO1_1|RCC_CFGR_MCO1_0) >> 16U)) /*!< PLLCLK selection as MCO1 source */
- #define LL_RCC_MCO2SOURCE_SYSCLK (uint32_t)(RCC_CFGR_MCO2|0x00000000U) /*!< SYSCLK selection as MCO2 source */
- #define LL_RCC_MCO2SOURCE_PLLI2S (uint32_t)(RCC_CFGR_MCO2|(RCC_CFGR_MCO2_0 >> 16U)) /*!< PLLI2S selection as MCO2 source */
- #define LL_RCC_MCO2SOURCE_HSE (uint32_t)(RCC_CFGR_MCO2|(RCC_CFGR_MCO2_1 >> 16U)) /*!< HSE selection as MCO2 source */
- #define LL_RCC_MCO2SOURCE_PLLCLK (uint32_t)(RCC_CFGR_MCO2|((RCC_CFGR_MCO2_1|RCC_CFGR_MCO2_0) >> 16U)) /*!< PLLCLK selection as MCO2 source */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_MCOx_DIV MCO prescaler
- * @{
- */
- #define LL_RCC_MCO1_DIV_1 (uint32_t)(RCC_CFGR_MCO1PRE|0x00000000U) /*!< MCO1 not divided */
- #define LL_RCC_MCO1_DIV_2 (uint32_t)(RCC_CFGR_MCO1PRE|(RCC_CFGR_MCO1PRE_2 >> 16U)) /*!< MCO1 divided by 2 */
- #define LL_RCC_MCO1_DIV_3 (uint32_t)(RCC_CFGR_MCO1PRE|((RCC_CFGR_MCO1PRE_2|RCC_CFGR_MCO1PRE_0) >> 16U)) /*!< MCO1 divided by 3 */
- #define LL_RCC_MCO1_DIV_4 (uint32_t)(RCC_CFGR_MCO1PRE|((RCC_CFGR_MCO1PRE_2|RCC_CFGR_MCO1PRE_1) >> 16U)) /*!< MCO1 divided by 4 */
- #define LL_RCC_MCO1_DIV_5 (uint32_t)(RCC_CFGR_MCO1PRE|(RCC_CFGR_MCO1PRE >> 16U)) /*!< MCO1 divided by 5 */
- #define LL_RCC_MCO2_DIV_1 (uint32_t)(RCC_CFGR_MCO2PRE|0x00000000U) /*!< MCO2 not divided */
- #define LL_RCC_MCO2_DIV_2 (uint32_t)(RCC_CFGR_MCO2PRE|(RCC_CFGR_MCO2PRE_2 >> 16U)) /*!< MCO2 divided by 2 */
- #define LL_RCC_MCO2_DIV_3 (uint32_t)(RCC_CFGR_MCO2PRE|((RCC_CFGR_MCO2PRE_2|RCC_CFGR_MCO2PRE_0) >> 16U)) /*!< MCO2 divided by 3 */
- #define LL_RCC_MCO2_DIV_4 (uint32_t)(RCC_CFGR_MCO2PRE|((RCC_CFGR_MCO2PRE_2|RCC_CFGR_MCO2PRE_1) >> 16U)) /*!< MCO2 divided by 4 */
- #define LL_RCC_MCO2_DIV_5 (uint32_t)(RCC_CFGR_MCO2PRE|(RCC_CFGR_MCO2PRE >> 16U)) /*!< MCO2 divided by 5 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_RTC_HSEDIV HSE prescaler for RTC clock
- * @{
- */
- #define LL_RCC_RTC_NOCLOCK 0x00000000U /*!< HSE not divided */
- #define LL_RCC_RTC_HSE_DIV_2 RCC_CFGR_RTCPRE_1 /*!< HSE clock divided by 2 */
- #define LL_RCC_RTC_HSE_DIV_3 (RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 3 */
- #define LL_RCC_RTC_HSE_DIV_4 RCC_CFGR_RTCPRE_2 /*!< HSE clock divided by 4 */
- #define LL_RCC_RTC_HSE_DIV_5 (RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 5 */
- #define LL_RCC_RTC_HSE_DIV_6 (RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 6 */
- #define LL_RCC_RTC_HSE_DIV_7 (RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 7 */
- #define LL_RCC_RTC_HSE_DIV_8 RCC_CFGR_RTCPRE_3 /*!< HSE clock divided by 8 */
- #define LL_RCC_RTC_HSE_DIV_9 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 9 */
- #define LL_RCC_RTC_HSE_DIV_10 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 10 */
- #define LL_RCC_RTC_HSE_DIV_11 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 11 */
- #define LL_RCC_RTC_HSE_DIV_12 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) /*!< HSE clock divided by 12 */
- #define LL_RCC_RTC_HSE_DIV_13 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 13 */
- #define LL_RCC_RTC_HSE_DIV_14 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 14 */
- #define LL_RCC_RTC_HSE_DIV_15 (RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 15 */
- #define LL_RCC_RTC_HSE_DIV_16 RCC_CFGR_RTCPRE_4 /*!< HSE clock divided by 16 */
- #define LL_RCC_RTC_HSE_DIV_17 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 17 */
- #define LL_RCC_RTC_HSE_DIV_18 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 18 */
- #define LL_RCC_RTC_HSE_DIV_19 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 19 */
- #define LL_RCC_RTC_HSE_DIV_20 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2) /*!< HSE clock divided by 20 */
- #define LL_RCC_RTC_HSE_DIV_21 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 21 */
- #define LL_RCC_RTC_HSE_DIV_22 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 22 */
- #define LL_RCC_RTC_HSE_DIV_23 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 23 */
- #define LL_RCC_RTC_HSE_DIV_24 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3) /*!< HSE clock divided by 24 */
- #define LL_RCC_RTC_HSE_DIV_25 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 25 */
- #define LL_RCC_RTC_HSE_DIV_26 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 26 */
- #define LL_RCC_RTC_HSE_DIV_27 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 27 */
- #define LL_RCC_RTC_HSE_DIV_28 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) /*!< HSE clock divided by 28 */
- #define LL_RCC_RTC_HSE_DIV_29 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 29 */
- #define LL_RCC_RTC_HSE_DIV_30 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) /*!< HSE clock divided by 30 */
- #define LL_RCC_RTC_HSE_DIV_31 (RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) /*!< HSE clock divided by 31 */
- /**
- * @}
- */
- #if defined(USE_FULL_LL_DRIVER)
- /** @defgroup RCC_LL_EC_PERIPH_FREQUENCY Peripheral clock frequency
- * @{
- */
- #define LL_RCC_PERIPH_FREQUENCY_NO 0x00000000U /*!< No clock enabled for the peripheral */
- #define LL_RCC_PERIPH_FREQUENCY_NA 0xFFFFFFFFU /*!< Frequency cannot be provided as external clock */
- /**
- * @}
- */
- #endif /* USE_FULL_LL_DRIVER */
- /** @defgroup RCC_LL_EC_USARTx_CLKSOURCE Peripheral USART clock source selection
- * @{
- */
- #define LL_RCC_USART1_CLKSOURCE_PCLK2 (uint32_t)((RCC_DCKCFGR2_USART1SEL << 16U) | 0x00000000U) /*!< PCLK2 clock used as USART1 clock source */
- #define LL_RCC_USART1_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_USART1SEL << 16U) | RCC_DCKCFGR2_USART1SEL_0) /*!< SYSCLK clock used as USART1 clock source */
- #define LL_RCC_USART1_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_USART1SEL << 16U) | RCC_DCKCFGR2_USART1SEL_1) /*!< HSI clock used as USART1 clock source */
- #define LL_RCC_USART1_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_USART1SEL << 16U) | RCC_DCKCFGR2_USART1SEL) /*!< LSE clock used as USART1 clock source */
- #define LL_RCC_USART2_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_USART2SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as USART2 clock source */
- #define LL_RCC_USART2_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_USART2SEL << 16U) | RCC_DCKCFGR2_USART2SEL_0) /*!< SYSCLK clock used as USART2 clock source */
- #define LL_RCC_USART2_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_USART2SEL << 16U) | RCC_DCKCFGR2_USART2SEL_1) /*!< HSI clock used as USART2 clock source */
- #define LL_RCC_USART2_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_USART2SEL << 16U) | RCC_DCKCFGR2_USART2SEL) /*!< LSE clock used as USART2 clock source */
- #define LL_RCC_USART3_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_USART3SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as USART3 clock source */
- #define LL_RCC_USART3_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_USART3SEL << 16U) | RCC_DCKCFGR2_USART3SEL_0) /*!< SYSCLK clock used as USART3 clock source */
- #define LL_RCC_USART3_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_USART3SEL << 16U) | RCC_DCKCFGR2_USART3SEL_1) /*!< HSI clock used as USART3 clock source */
- #define LL_RCC_USART3_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_USART3SEL << 16U) | RCC_DCKCFGR2_USART3SEL) /*!< LSE clock used as USART3 clock source */
- #define LL_RCC_USART6_CLKSOURCE_PCLK2 (uint32_t)((RCC_DCKCFGR2_USART6SEL << 16U) | 0x00000000U) /*!< PCLK2 clock used as USART6 clock source */
- #define LL_RCC_USART6_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_USART6SEL << 16U) | RCC_DCKCFGR2_USART6SEL_0) /*!< SYSCLK clock used as USART6 clock source */
- #define LL_RCC_USART6_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_USART6SEL << 16U) | RCC_DCKCFGR2_USART6SEL_1) /*!< HSI clock used as USART6 clock source */
- #define LL_RCC_USART6_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_USART6SEL << 16U) | RCC_DCKCFGR2_USART6SEL) /*!< LSE clock used as USART6 clock source */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_UARTx_CLKSOURCE Peripheral UART clock source selection
- * @{
- */
- #define LL_RCC_UART4_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_UART4SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as UART4 clock source */
- #define LL_RCC_UART4_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_UART4SEL << 16U) | RCC_DCKCFGR2_UART4SEL_0) /*!< SYSCLK clock used as UART4 clock source */
- #define LL_RCC_UART4_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_UART4SEL << 16U) | RCC_DCKCFGR2_UART4SEL_1) /*!< HSI clock used as UART4 clock source */
- #define LL_RCC_UART4_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_UART4SEL << 16U) | RCC_DCKCFGR2_UART4SEL) /*!< LSE clock used as UART4 clock source */
- #define LL_RCC_UART5_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_UART5SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as UART5 clock source */
- #define LL_RCC_UART5_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_UART5SEL << 16U) | RCC_DCKCFGR2_UART5SEL_0) /*!< SYSCLK clock used as UART5 clock source */
- #define LL_RCC_UART5_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_UART5SEL << 16U) | RCC_DCKCFGR2_UART5SEL_1) /*!< HSI clock used as UART5 clock source */
- #define LL_RCC_UART5_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_UART5SEL << 16U) | RCC_DCKCFGR2_UART5SEL) /*!< LSE clock used as UART5 clock source */
- #define LL_RCC_UART7_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_UART7SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as UART7 clock source */
- #define LL_RCC_UART7_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_UART7SEL << 16U) | RCC_DCKCFGR2_UART7SEL_0) /*!< SYSCLK clock used as UART7 clock source */
- #define LL_RCC_UART7_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_UART7SEL << 16U) | RCC_DCKCFGR2_UART7SEL_1) /*!< HSI clock used as UART7 clock source */
- #define LL_RCC_UART7_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_UART7SEL << 16U) | RCC_DCKCFGR2_UART7SEL) /*!< LSE clock used as UART7 clock source */
- #define LL_RCC_UART8_CLKSOURCE_PCLK1 (uint32_t)((RCC_DCKCFGR2_UART8SEL << 16U) | 0x00000000U) /*!< PCLK1 clock used as UART8 clock source */
- #define LL_RCC_UART8_CLKSOURCE_SYSCLK (uint32_t)((RCC_DCKCFGR2_UART8SEL << 16U) | RCC_DCKCFGR2_UART8SEL_0) /*!< SYSCLK clock used as UART8 clock source */
- #define LL_RCC_UART8_CLKSOURCE_HSI (uint32_t)((RCC_DCKCFGR2_UART8SEL << 16U) | RCC_DCKCFGR2_UART8SEL_1) /*!< HSI clock used as UART8 clock source */
- #define LL_RCC_UART8_CLKSOURCE_LSE (uint32_t)((RCC_DCKCFGR2_UART8SEL << 16U) | RCC_DCKCFGR2_UART8SEL) /*!< LSE clock used as UART8 clock source */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_I2Cx_CLKSOURCE Peripheral I2C clock source selection
- * @{
- */
- #define LL_RCC_I2C1_CLKSOURCE_PCLK1 (uint32_t)(RCC_DCKCFGR2_I2C1SEL|0x00000000U) /*!< PCLK1 clock used as I2C1 clock source */
- #define LL_RCC_I2C1_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_I2C1SEL|(RCC_DCKCFGR2_I2C1SEL_0 >> 16U)) /*!< SYSCLK clock used as I2C1 clock source */
- #define LL_RCC_I2C1_CLKSOURCE_HSI (uint32_t)(RCC_DCKCFGR2_I2C1SEL|(RCC_DCKCFGR2_I2C1SEL_1 >> 16U)) /*!< HSI clock used as I2C1 clock source */
- #define LL_RCC_I2C2_CLKSOURCE_PCLK1 (uint32_t)(RCC_DCKCFGR2_I2C2SEL|0x00000000U) /*!< PCLK1 clock used as I2C2 clock source */
- #define LL_RCC_I2C2_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_I2C2SEL|(RCC_DCKCFGR2_I2C2SEL_0 >> 16U)) /*!< SYSCLK clock used as I2C2 clock source */
- #define LL_RCC_I2C2_CLKSOURCE_HSI (uint32_t)(RCC_DCKCFGR2_I2C2SEL|(RCC_DCKCFGR2_I2C2SEL_1 >> 16U)) /*!< HSI clock used as I2C2 clock source */
- #define LL_RCC_I2C3_CLKSOURCE_PCLK1 (uint32_t)(RCC_DCKCFGR2_I2C3SEL|0x00000000U) /*!< PCLK1 clock used as I2C3 clock source */
- #define LL_RCC_I2C3_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_I2C3SEL|(RCC_DCKCFGR2_I2C3SEL_0 >> 16U)) /*!< SYSCLK clock used as I2C3 clock source */
- #define LL_RCC_I2C3_CLKSOURCE_HSI (uint32_t)(RCC_DCKCFGR2_I2C3SEL|(RCC_DCKCFGR2_I2C3SEL_1 >> 16U)) /*!< HSI clock used as I2C3 clock source */
- #if defined(I2C4)
- #define LL_RCC_I2C4_CLKSOURCE_PCLK1 (uint32_t)(RCC_DCKCFGR2_I2C4SEL|0x00000000U) /*!< PCLK1 clock used as I2C4 clock source */
- #define LL_RCC_I2C4_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_I2C4SEL|(RCC_DCKCFGR2_I2C4SEL_0 >> 16U)) /*!< SYSCLK clock used as I2C4 clock source */
- #define LL_RCC_I2C4_CLKSOURCE_HSI (uint32_t)(RCC_DCKCFGR2_I2C4SEL|(RCC_DCKCFGR2_I2C4SEL_1 >> 16U)) /*!< HSI clock used as I2C4 clock source */
- #endif /* I2C4 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_LPTIM1_CLKSOURCE Peripheral LPTIM clock source selection
- * @{
- */
- #define LL_RCC_LPTIM1_CLKSOURCE_PCLK1 0x00000000U /*!< PCLK1 clock used as LPTIM1 clock */
- #define LL_RCC_LPTIM1_CLKSOURCE_LSI RCC_DCKCFGR2_LPTIM1SEL_0 /*!< LSI oscillator clock used as LPTIM1 clock */
- #define LL_RCC_LPTIM1_CLKSOURCE_HSI RCC_DCKCFGR2_LPTIM1SEL_1 /*!< HSI oscillator clock used as LPTIM1 clock */
- #define LL_RCC_LPTIM1_CLKSOURCE_LSE (uint32_t)(RCC_DCKCFGR2_LPTIM1SEL_1 | RCC_DCKCFGR2_LPTIM1SEL_0) /*!< LSE oscillator clock used as LPTIM1 clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SAIx_CLKSOURCE Peripheral SAI clock source selection
- * @{
- */
- #define LL_RCC_SAI1_CLKSOURCE_PLLSAI (uint32_t)(RCC_DCKCFGR1_SAI1SEL | 0x00000000U) /*!< PLLSAI clock used as SAI1 clock source */
- #define LL_RCC_SAI1_CLKSOURCE_PLLI2S (uint32_t)(RCC_DCKCFGR1_SAI1SEL | (RCC_DCKCFGR1_SAI1SEL_0 >> 16U)) /*!< PLLI2S clock used as SAI1 clock source */
- #define LL_RCC_SAI1_CLKSOURCE_PIN (uint32_t)(RCC_DCKCFGR1_SAI1SEL | (RCC_DCKCFGR1_SAI1SEL_1 >> 16U)) /*!< External pin clock used as SAI1 clock source */
- #if defined(RCC_SAI1SEL_PLLSRC_SUPPORT)
- #define LL_RCC_SAI1_CLKSOURCE_PLLSRC (uint32_t)(RCC_DCKCFGR1_SAI1SEL | (RCC_DCKCFGR1_SAI1SEL >> 16U)) /*!< Main source clock used as SAI1 clock source */
- #endif /* RCC_SAI1SEL_PLLSRC_SUPPORT */
- #define LL_RCC_SAI2_CLKSOURCE_PLLSAI (uint32_t)(RCC_DCKCFGR1_SAI2SEL | 0x00000000U) /*!< PLLSAI clock used as SAI2 clock source */
- #define LL_RCC_SAI2_CLKSOURCE_PLLI2S (uint32_t)(RCC_DCKCFGR1_SAI2SEL | (RCC_DCKCFGR1_SAI2SEL_0 >> 16U)) /*!< PLLI2S clock used as SAI2 clock source */
- #define LL_RCC_SAI2_CLKSOURCE_PIN (uint32_t)(RCC_DCKCFGR1_SAI2SEL | (RCC_DCKCFGR1_SAI2SEL_1 >> 16U)) /*!< External pin clock used as SAI2 clock source */
- #if defined(RCC_SAI2SEL_PLLSRC_SUPPORT)
- #define LL_RCC_SAI2_CLKSOURCE_PLLSRC (uint32_t)(RCC_DCKCFGR1_SAI2SEL | (RCC_DCKCFGR1_SAI2SEL >> 16U)) /*!< Main source clock used as SAI2 clock source */
- #endif /* RCC_SAI2SEL_PLLSRC_SUPPORT */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SDMMCx_CLKSOURCE Peripheral SDMMC clock source selection
- * @{
- */
- #define LL_RCC_SDMMC1_CLKSOURCE_PLL48CLK (uint32_t)(RCC_DCKCFGR2_SDMMC1SEL | 0x00000000U) /*!< PLL 48M domain clock used as SDMMC1 clock */
- #define LL_RCC_SDMMC1_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_SDMMC1SEL | (RCC_DCKCFGR2_SDMMC1SEL >> 16U)) /*!< System clock clock used as SDMMC1 clock */
- #if defined(SDMMC2)
- #define LL_RCC_SDMMC2_CLKSOURCE_PLL48CLK (uint32_t)(RCC_DCKCFGR2_SDMMC2SEL | 0x00000000U) /*!< PLL 48M domain clock used as SDMMC2 clock */
- #define LL_RCC_SDMMC2_CLKSOURCE_SYSCLK (uint32_t)(RCC_DCKCFGR2_SDMMC2SEL | (RCC_DCKCFGR2_SDMMC2SEL >> 16U)) /*!< System clock clock used as SDMMC2 clock */
- #endif /* SDMMC2 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_RNG_CLKSOURCE Peripheral RNG clock source selection
- * @{
- */
- #define LL_RCC_RNG_CLKSOURCE_PLL 0x00000000U /*!< PLL clock used as RNG clock source */
- #define LL_RCC_RNG_CLKSOURCE_PLLSAI RCC_DCKCFGR2_CK48MSEL /*!< PLLSAI clock used as RNG clock source */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_USB_CLKSOURCE Peripheral USB clock source selection
- * @{
- */
- #define LL_RCC_USB_CLKSOURCE_PLL 0x00000000U /*!< PLL clock used as USB clock source */
- #define LL_RCC_USB_CLKSOURCE_PLLSAI RCC_DCKCFGR2_CK48MSEL /*!< PLLSAI1 clock used as USB clock source */
- /**
- * @}
- */
- #if defined(DSI)
- /** @defgroup RCC_LL_EC_DSI_CLKSOURCE Peripheral DSI clock source selection
- * @{
- */
- #define LL_RCC_DSI_CLKSOURCE_PHY 0x00000000U /*!< DSI-PHY clock used as DSI byte lane clock source */
- #define LL_RCC_DSI_CLKSOURCE_PLL RCC_DCKCFGR2_DSISEL /*!< PLL clock used as DSI byte lane clock source */
- /**
- * @}
- */
- #endif /* DSI */
- #if defined(CEC)
- /** @defgroup RCC_LL_EC_CEC_CLKSOURCE Peripheral CEC clock source selection
- * @{
- */
- #define LL_RCC_CEC_CLKSOURCE_LSE 0x00000000U /*!< LSE oscillator clock used as CEC clock */
- #define LL_RCC_CEC_CLKSOURCE_HSI_DIV488 RCC_DCKCFGR2_CECSEL /*!< HSI oscillator clock divided by 488 used as CEC clock */
- /**
- * @}
- */
- #endif /* CEC */
- /** @defgroup RCC_LL_EC_I2S1_CLKSOURCE Peripheral I2S clock source selection
- * @{
- */
- #define LL_RCC_I2S1_CLKSOURCE_PLLI2S 0x00000000U /*!< I2S oscillator clock used as I2S1 clock */
- #define LL_RCC_I2S1_CLKSOURCE_PIN RCC_CFGR_I2SSRC /*!< External pin clock used as I2S1 clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_CK48M_CLKSOURCE Peripheral 48Mhz domain clock source selection
- * @{
- */
- #define LL_RCC_CK48M_CLKSOURCE_PLL 0x00000000U /*!< PLL oscillator clock used as 48Mhz domain clock */
- #define LL_RCC_CK48M_CLKSOURCE_PLLSAI RCC_DCKCFGR2_CK48MSEL /*!< PLLSAI oscillator clock used as 48Mhz domain clock */
- /**
- * @}
- */
- #if defined(DFSDM1_Channel0)
- /** @defgroup RCC_LL_EC_DFSDM1_AUDIO_CLKSOURCE Peripheral DFSDM Audio clock source selection
- * @{
- */
- #define LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI1 0x00000000U /*!< SAI1 clock used as DFSDM1 Audio clock */
- #define LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI2 RCC_DCKCFGR1_ADFSDM1SEL /*!< SAI2 clock used as DFSDM1 Audio clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_DFSDM1_CLKSOURCE Peripheral DFSDM clock source selection
- * @{
- */
- #define LL_RCC_DFSDM1_CLKSOURCE_PCLK2 0x00000000U /*!< PCLK2 clock used as DFSDM1 clock */
- #define LL_RCC_DFSDM1_CLKSOURCE_SYSCLK RCC_DCKCFGR1_DFSDM1SEL /*!< System clock used as DFSDM1 clock */
- /**
- * @}
- */
- #endif /* DFSDM1_Channel0 */
- /** @defgroup RCC_LL_EC_USARTx Peripheral USART get clock source
- * @{
- */
- #define LL_RCC_USART1_CLKSOURCE RCC_DCKCFGR2_USART1SEL /*!< USART1 Clock source selection */
- #define LL_RCC_USART2_CLKSOURCE RCC_DCKCFGR2_USART2SEL /*!< USART2 Clock source selection */
- #define LL_RCC_USART3_CLKSOURCE RCC_DCKCFGR2_USART3SEL /*!< USART3 Clock source selection */
- #define LL_RCC_USART6_CLKSOURCE RCC_DCKCFGR2_USART6SEL /*!< USART6 Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_UARTx Peripheral UART get clock source
- * @{
- */
- #define LL_RCC_UART4_CLKSOURCE RCC_DCKCFGR2_UART4SEL /*!< UART4 Clock source selection */
- #define LL_RCC_UART5_CLKSOURCE RCC_DCKCFGR2_UART5SEL /*!< UART5 Clock source selection */
- #define LL_RCC_UART7_CLKSOURCE RCC_DCKCFGR2_UART7SEL /*!< UART7 Clock source selection */
- #define LL_RCC_UART8_CLKSOURCE RCC_DCKCFGR2_UART8SEL /*!< UART8 Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_I2Cx Peripheral I2C get clock source
- * @{
- */
- #define LL_RCC_I2C1_CLKSOURCE RCC_DCKCFGR2_I2C1SEL /*!< I2C1 Clock source selection */
- #define LL_RCC_I2C2_CLKSOURCE RCC_DCKCFGR2_I2C2SEL /*!< I2C2 Clock source selection */
- #define LL_RCC_I2C3_CLKSOURCE RCC_DCKCFGR2_I2C3SEL /*!< I2C3 Clock source selection */
- #if defined(I2C4)
- #define LL_RCC_I2C4_CLKSOURCE RCC_DCKCFGR2_I2C4SEL /*!< I2C4 Clock source selection */
- #endif /* I2C4 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_LPTIM1 Peripheral LPTIM get clock source
- * @{
- */
- #define LL_RCC_LPTIM1_CLKSOURCE RCC_DCKCFGR2_LPTIM1SEL /*!< LPTIM1 Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SAIx Peripheral SAI get clock source
- * @{
- */
- #define LL_RCC_SAI1_CLKSOURCE RCC_DCKCFGR1_SAI1SEL /*!< SAI1 Clock source selection */
- #define LL_RCC_SAI2_CLKSOURCE RCC_DCKCFGR1_SAI2SEL /*!< SAI2 Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_SDMMCx Peripheral SDMMC get clock source
- * @{
- */
- #define LL_RCC_SDMMC1_CLKSOURCE RCC_DCKCFGR2_SDMMC1SEL /*!< SDMMC1 Clock source selection */
- #if defined(SDMMC2)
- #define LL_RCC_SDMMC2_CLKSOURCE RCC_DCKCFGR2_SDMMC2SEL /*!< SDMMC2 Clock source selection */
- #endif /* SDMMC2 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_CK48M Peripheral CK48M get clock source
- * @{
- */
- #define LL_RCC_CK48M_CLKSOURCE RCC_DCKCFGR2_CK48MSEL /*!< CK48M Domain clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_RNG Peripheral RNG get clock source
- * @{
- */
- #define LL_RCC_RNG_CLKSOURCE RCC_DCKCFGR2_CK48MSEL /*!< RNG Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_USB Peripheral USB get clock source
- * @{
- */
- #define LL_RCC_USB_CLKSOURCE RCC_DCKCFGR2_CK48MSEL /*!< USB Clock source selection */
- /**
- * @}
- */
- #if defined(CEC)
- /** @defgroup RCC_LL_EC_CEC Peripheral CEC get clock source
- * @{
- */
- #define LL_RCC_CEC_CLKSOURCE RCC_DCKCFGR2_CECSEL /*!< CEC Clock source selection */
- /**
- * @}
- */
- #endif /* CEC */
- /** @defgroup RCC_LL_EC_I2S1 Peripheral I2S get clock source
- * @{
- */
- #define LL_RCC_I2S1_CLKSOURCE RCC_CFGR_I2SSRC /*!< I2S Clock source selection */
- /**
- * @}
- */
- #if defined(DFSDM1_Channel0)
- /** @defgroup RCC_LL_EC_DFSDM_AUDIO Peripheral DFSDM Audio get clock source
- * @{
- */
- #define LL_RCC_DFSDM1_AUDIO_CLKSOURCE RCC_DCKCFGR1_ADFSDM1SEL /*!< DFSDM Audio Clock source selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_DFSDM Peripheral DFSDM get clock source
- * @{
- */
- #define LL_RCC_DFSDM1_CLKSOURCE RCC_DCKCFGR1_DFSDM1SEL /*!< DFSDM Clock source selection */
- /**
- * @}
- */
- #endif /* DFSDM1_Channel0 */
- #if defined(DSI)
- /** @defgroup RCC_LL_EC_DSI Peripheral DSI get clock source
- * @{
- */
- #define LL_RCC_DSI_CLKSOURCE RCC_DCKCFGR2_DSISEL /*!< DSI Clock source selection */
- /**
- * @}
- */
- #endif /* DSI */
- #if defined(LTDC)
- /** @defgroup RCC_LL_EC_LTDC Peripheral LTDC get clock source
- * @{
- */
- #define LL_RCC_LTDC_CLKSOURCE RCC_DCKCFGR1_PLLSAIDIVR /*!< LTDC Clock source selection */
- /**
- * @}
- */
- #endif /* LTDC */
- #if defined(SPDIFRX)
- /** @defgroup RCC_LL_EC_SPDIFRX Peripheral SPDIFRX get clock source
- * @{
- */
- #define LL_RCC_SPDIFRX1_CLKSOURCE RCC_PLLI2SCFGR_PLLI2SP /*!< SPDIFRX Clock source selection */
- /**
- * @}
- */
- #endif /* SPDIFRX */
- /** @defgroup RCC_LL_EC_RTC_CLKSOURCE RTC clock source selection
- * @{
- */
- #define LL_RCC_RTC_CLKSOURCE_NONE 0x00000000U /*!< No clock used as RTC clock */
- #define LL_RCC_RTC_CLKSOURCE_LSE RCC_BDCR_RTCSEL_0 /*!< LSE oscillator clock used as RTC clock */
- #define LL_RCC_RTC_CLKSOURCE_LSI RCC_BDCR_RTCSEL_1 /*!< LSI oscillator clock used as RTC clock */
- #define LL_RCC_RTC_CLKSOURCE_HSE RCC_BDCR_RTCSEL /*!< HSE oscillator clock divided by HSE prescaler used as RTC clock */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_TIM_CLKPRESCALER Timers clocks prescalers selection
- * @{
- */
- #define LL_RCC_TIM_PRESCALER_TWICE 0x00000000U /*!< Timers clock to twice PCLK */
- #define LL_RCC_TIM_PRESCALER_FOUR_TIMES RCC_DCKCFGR1_TIMPRE /*!< Timers clock to four time PCLK */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLSOURCE PLL, PLLI2S and PLLSAI entry clock source
- * @{
- */
- #define LL_RCC_PLLSOURCE_HSI RCC_PLLCFGR_PLLSRC_HSI /*!< HSI16 clock selected as PLL entry clock source */
- #define LL_RCC_PLLSOURCE_HSE RCC_PLLCFGR_PLLSRC_HSE /*!< HSE clock selected as PLL entry clock source */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLM_DIV PLL, PLLI2S and PLLSAI division factor
- * @{
- */
- #define LL_RCC_PLLM_DIV_2 (RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 2 */
- #define LL_RCC_PLLM_DIV_3 (RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 3 */
- #define LL_RCC_PLLM_DIV_4 (RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 4 */
- #define LL_RCC_PLLM_DIV_5 (RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 5 */
- #define LL_RCC_PLLM_DIV_6 (RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 6 */
- #define LL_RCC_PLLM_DIV_7 (RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 7 */
- #define LL_RCC_PLLM_DIV_8 (RCC_PLLCFGR_PLLM_3) /*!< PLL, PLLI2S and PLLSAI division factor by 8 */
- #define LL_RCC_PLLM_DIV_9 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 9 */
- #define LL_RCC_PLLM_DIV_10 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 10 */
- #define LL_RCC_PLLM_DIV_11 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 11 */
- #define LL_RCC_PLLM_DIV_12 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 12 */
- #define LL_RCC_PLLM_DIV_13 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 13 */
- #define LL_RCC_PLLM_DIV_14 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 14 */
- #define LL_RCC_PLLM_DIV_15 (RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 15 */
- #define LL_RCC_PLLM_DIV_16 (RCC_PLLCFGR_PLLM_4) /*!< PLL, PLLI2S and PLLSAI division factor by 16 */
- #define LL_RCC_PLLM_DIV_17 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 17 */
- #define LL_RCC_PLLM_DIV_18 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 18 */
- #define LL_RCC_PLLM_DIV_19 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 19 */
- #define LL_RCC_PLLM_DIV_20 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 20 */
- #define LL_RCC_PLLM_DIV_21 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 21 */
- #define LL_RCC_PLLM_DIV_22 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 22 */
- #define LL_RCC_PLLM_DIV_23 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 23 */
- #define LL_RCC_PLLM_DIV_24 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3) /*!< PLL, PLLI2S and PLLSAI division factor by 24 */
- #define LL_RCC_PLLM_DIV_25 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 25 */
- #define LL_RCC_PLLM_DIV_26 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 26 */
- #define LL_RCC_PLLM_DIV_27 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 27 */
- #define LL_RCC_PLLM_DIV_28 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 28 */
- #define LL_RCC_PLLM_DIV_29 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 29 */
- #define LL_RCC_PLLM_DIV_30 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 30 */
- #define LL_RCC_PLLM_DIV_31 (RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 31 */
- #define LL_RCC_PLLM_DIV_32 (RCC_PLLCFGR_PLLM_5) /*!< PLL, PLLI2S and PLLSAI division factor by 32 */
- #define LL_RCC_PLLM_DIV_33 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 33 */
- #define LL_RCC_PLLM_DIV_34 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 34 */
- #define LL_RCC_PLLM_DIV_35 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 35 */
- #define LL_RCC_PLLM_DIV_36 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 36 */
- #define LL_RCC_PLLM_DIV_37 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 37 */
- #define LL_RCC_PLLM_DIV_38 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 38 */
- #define LL_RCC_PLLM_DIV_39 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 39 */
- #define LL_RCC_PLLM_DIV_40 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3) /*!< PLL, PLLI2S and PLLSAI division factor by 40 */
- #define LL_RCC_PLLM_DIV_41 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 41 */
- #define LL_RCC_PLLM_DIV_42 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 42 */
- #define LL_RCC_PLLM_DIV_43 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 43 */
- #define LL_RCC_PLLM_DIV_44 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 44 */
- #define LL_RCC_PLLM_DIV_45 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 45 */
- #define LL_RCC_PLLM_DIV_46 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 46 */
- #define LL_RCC_PLLM_DIV_47 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 47 */
- #define LL_RCC_PLLM_DIV_48 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4) /*!< PLL, PLLI2S and PLLSAI division factor by 48 */
- #define LL_RCC_PLLM_DIV_49 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 49 */
- #define LL_RCC_PLLM_DIV_50 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 50 */
- #define LL_RCC_PLLM_DIV_51 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 51 */
- #define LL_RCC_PLLM_DIV_52 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 52 */
- #define LL_RCC_PLLM_DIV_53 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 53 */
- #define LL_RCC_PLLM_DIV_54 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 54 */
- #define LL_RCC_PLLM_DIV_55 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 55 */
- #define LL_RCC_PLLM_DIV_56 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3) /*!< PLL, PLLI2S and PLLSAI division factor by 56 */
- #define LL_RCC_PLLM_DIV_57 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 57 */
- #define LL_RCC_PLLM_DIV_58 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 58 */
- #define LL_RCC_PLLM_DIV_59 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 59 */
- #define LL_RCC_PLLM_DIV_60 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2) /*!< PLL, PLLI2S and PLLSAI division factor by 60 */
- #define LL_RCC_PLLM_DIV_61 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 61 */
- #define LL_RCC_PLLM_DIV_62 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1) /*!< PLL, PLLI2S and PLLSAI division factor by 62 */
- #define LL_RCC_PLLM_DIV_63 (RCC_PLLCFGR_PLLM_5 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLM_3 | RCC_PLLCFGR_PLLM_2 | RCC_PLLCFGR_PLLM_1 | RCC_PLLCFGR_PLLM_0) /*!< PLL, PLLI2S and PLLSAI division factor by 63 */
- /**
- * @}
- */
- #if defined(RCC_PLLCFGR_PLLR)
- /** @defgroup RCC_LL_EC_PLLR_DIV PLL division factor (PLLR)
- * @{
- */
- #define LL_RCC_PLLR_DIV_2 (RCC_PLLCFGR_PLLR_1) /*!< Main PLL division factor for PLLCLK (system clock) by 2 */
- #define LL_RCC_PLLR_DIV_3 (RCC_PLLCFGR_PLLR_1|RCC_PLLCFGR_PLLR_0) /*!< Main PLL division factor for PLLCLK (system clock) by 3 */
- #define LL_RCC_PLLR_DIV_4 (RCC_PLLCFGR_PLLR_2) /*!< Main PLL division factor for PLLCLK (system clock) by 4 */
- #define LL_RCC_PLLR_DIV_5 (RCC_PLLCFGR_PLLR_2|RCC_PLLCFGR_PLLR_0) /*!< Main PLL division factor for PLLCLK (system clock) by 5 */
- #define LL_RCC_PLLR_DIV_6 (RCC_PLLCFGR_PLLR_2|RCC_PLLCFGR_PLLR_1) /*!< Main PLL division factor for PLLCLK (system clock) by 6 */
- #define LL_RCC_PLLR_DIV_7 (RCC_PLLCFGR_PLLR) /*!< Main PLL division factor for PLLCLK (system clock) by 7 */
- /**
- * @}
- */
- #endif /* RCC_PLLCFGR_PLLR */
- /** @defgroup RCC_LL_EC_PLLP_DIV PLL division factor (PLLP)
- * @{
- */
- #define LL_RCC_PLLP_DIV_2 0x00000000U /*!< Main PLL division factor for PLLP output by 2 */
- #define LL_RCC_PLLP_DIV_4 RCC_PLLCFGR_PLLP_0 /*!< Main PLL division factor for PLLP output by 4 */
- #define LL_RCC_PLLP_DIV_6 RCC_PLLCFGR_PLLP_1 /*!< Main PLL division factor for PLLP output by 6 */
- #define LL_RCC_PLLP_DIV_8 (RCC_PLLCFGR_PLLP_1 | RCC_PLLCFGR_PLLP_0) /*!< Main PLL division factor for PLLP output by 8 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLQ_DIV PLL division factor (PLLQ)
- * @{
- */
- #define LL_RCC_PLLQ_DIV_2 RCC_PLLCFGR_PLLQ_1 /*!< Main PLL division factor for PLLQ output by 2 */
- #define LL_RCC_PLLQ_DIV_3 (RCC_PLLCFGR_PLLQ_1|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 3 */
- #define LL_RCC_PLLQ_DIV_4 RCC_PLLCFGR_PLLQ_2 /*!< Main PLL division factor for PLLQ output by 4 */
- #define LL_RCC_PLLQ_DIV_5 (RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 5 */
- #define LL_RCC_PLLQ_DIV_6 (RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_1) /*!< Main PLL division factor for PLLQ output by 6 */
- #define LL_RCC_PLLQ_DIV_7 (RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_1|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 7 */
- #define LL_RCC_PLLQ_DIV_8 RCC_PLLCFGR_PLLQ_3 /*!< Main PLL division factor for PLLQ output by 8 */
- #define LL_RCC_PLLQ_DIV_9 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 9 */
- #define LL_RCC_PLLQ_DIV_10 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_1) /*!< Main PLL division factor for PLLQ output by 10 */
- #define LL_RCC_PLLQ_DIV_11 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_1|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 11 */
- #define LL_RCC_PLLQ_DIV_12 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_2) /*!< Main PLL division factor for PLLQ output by 12 */
- #define LL_RCC_PLLQ_DIV_13 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 13 */
- #define LL_RCC_PLLQ_DIV_14 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_1) /*!< Main PLL division factor for PLLQ output by 14 */
- #define LL_RCC_PLLQ_DIV_15 (RCC_PLLCFGR_PLLQ_3|RCC_PLLCFGR_PLLQ_2|RCC_PLLCFGR_PLLQ_1|RCC_PLLCFGR_PLLQ_0) /*!< Main PLL division factor for PLLQ output by 15 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLL_SPRE_SEL PLL Spread Spectrum Selection
- * @{
- */
- #define LL_RCC_SPREAD_SELECT_CENTER 0x00000000U /*!< PLL center spread spectrum selection */
- #define LL_RCC_SPREAD_SELECT_DOWN RCC_SSCGR_SPREADSEL /*!< PLL down spread spectrum selection */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLI2SQ PLLI2SQ division factor (PLLI2SQ)
- * @{
- */
- #define LL_RCC_PLLI2SQ_DIV_2 RCC_PLLI2SCFGR_PLLI2SQ_1 /*!< PLLI2S division factor for PLLI2SQ output by 2 */
- #define LL_RCC_PLLI2SQ_DIV_3 (RCC_PLLI2SCFGR_PLLI2SQ_1 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 3 */
- #define LL_RCC_PLLI2SQ_DIV_4 RCC_PLLI2SCFGR_PLLI2SQ_2 /*!< PLLI2S division factor for PLLI2SQ output by 4 */
- #define LL_RCC_PLLI2SQ_DIV_5 (RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 5 */
- #define LL_RCC_PLLI2SQ_DIV_6 (RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_1) /*!< PLLI2S division factor for PLLI2SQ output by 6 */
- #define LL_RCC_PLLI2SQ_DIV_7 (RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_1 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 7 */
- #define LL_RCC_PLLI2SQ_DIV_8 RCC_PLLI2SCFGR_PLLI2SQ_3 /*!< PLLI2S division factor for PLLI2SQ output by 8 */
- #define LL_RCC_PLLI2SQ_DIV_9 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 9 */
- #define LL_RCC_PLLI2SQ_DIV_10 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_1) /*!< PLLI2S division factor for PLLI2SQ output by 10 */
- #define LL_RCC_PLLI2SQ_DIV_11 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_1 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 11 */
- #define LL_RCC_PLLI2SQ_DIV_12 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_2) /*!< PLLI2S division factor for PLLI2SQ output by 12 */
- #define LL_RCC_PLLI2SQ_DIV_13 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 13 */
- #define LL_RCC_PLLI2SQ_DIV_14 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_1) /*!< PLLI2S division factor for PLLI2SQ output by 14 */
- #define LL_RCC_PLLI2SQ_DIV_15 (RCC_PLLI2SCFGR_PLLI2SQ_3 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SQ_1 | RCC_PLLI2SCFGR_PLLI2SQ_0) /*!< PLLI2S division factor for PLLI2SQ output by 15 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLI2SDIVQ PLLI2SDIVQ division factor (PLLI2SDIVQ)
- * @{
- */
- #define LL_RCC_PLLI2SDIVQ_DIV_1 0x00000000U /*!< PLLI2S division factor for PLLI2SDIVQ output by 1 */
- #define LL_RCC_PLLI2SDIVQ_DIV_2 RCC_DCKCFGR1_PLLI2SDIVQ_0 /*!< PLLI2S division factor for PLLI2SDIVQ output by 2 */
- #define LL_RCC_PLLI2SDIVQ_DIV_3 RCC_DCKCFGR1_PLLI2SDIVQ_1 /*!< PLLI2S division factor for PLLI2SDIVQ output by 3 */
- #define LL_RCC_PLLI2SDIVQ_DIV_4 (RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 4 */
- #define LL_RCC_PLLI2SDIVQ_DIV_5 RCC_DCKCFGR1_PLLI2SDIVQ_2 /*!< PLLI2S division factor for PLLI2SDIVQ output by 5 */
- #define LL_RCC_PLLI2SDIVQ_DIV_6 (RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 6 */
- #define LL_RCC_PLLI2SDIVQ_DIV_7 (RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 7 */
- #define LL_RCC_PLLI2SDIVQ_DIV_8 (RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 8 */
- #define LL_RCC_PLLI2SDIVQ_DIV_9 RCC_DCKCFGR1_PLLI2SDIVQ_3 /*!< PLLI2S division factor for PLLI2SDIVQ output by 9 */
- #define LL_RCC_PLLI2SDIVQ_DIV_10 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 10 */
- #define LL_RCC_PLLI2SDIVQ_DIV_11 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 11 */
- #define LL_RCC_PLLI2SDIVQ_DIV_12 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 12 */
- #define LL_RCC_PLLI2SDIVQ_DIV_13 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2) /*!< PLLI2S division factor for PLLI2SDIVQ output by 13 */
- #define LL_RCC_PLLI2SDIVQ_DIV_14 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 14 */
- #define LL_RCC_PLLI2SDIVQ_DIV_15 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 15 */
- #define LL_RCC_PLLI2SDIVQ_DIV_16 (RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 16 */
- #define LL_RCC_PLLI2SDIVQ_DIV_17 RCC_DCKCFGR1_PLLI2SDIVQ_4 /*!< PLLI2S division factor for PLLI2SDIVQ output by 17 */
- #define LL_RCC_PLLI2SDIVQ_DIV_18 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 18 */
- #define LL_RCC_PLLI2SDIVQ_DIV_19 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 19 */
- #define LL_RCC_PLLI2SDIVQ_DIV_20 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 20 */
- #define LL_RCC_PLLI2SDIVQ_DIV_21 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_2) /*!< PLLI2S division factor for PLLI2SDIVQ output by 21 */
- #define LL_RCC_PLLI2SDIVQ_DIV_22 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 22 */
- #define LL_RCC_PLLI2SDIVQ_DIV_23 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 23 */
- #define LL_RCC_PLLI2SDIVQ_DIV_24 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 24 */
- #define LL_RCC_PLLI2SDIVQ_DIV_25 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3) /*!< PLLI2S division factor for PLLI2SDIVQ output by 25 */
- #define LL_RCC_PLLI2SDIVQ_DIV_26 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 26 */
- #define LL_RCC_PLLI2SDIVQ_DIV_27 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 27 */
- #define LL_RCC_PLLI2SDIVQ_DIV_28 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 28 */
- #define LL_RCC_PLLI2SDIVQ_DIV_29 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2) /*!< PLLI2S division factor for PLLI2SDIVQ output by 29 */
- #define LL_RCC_PLLI2SDIVQ_DIV_30 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 30 */
- #define LL_RCC_PLLI2SDIVQ_DIV_31 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1) /*!< PLLI2S division factor for PLLI2SDIVQ output by 31 */
- #define LL_RCC_PLLI2SDIVQ_DIV_32 (RCC_DCKCFGR1_PLLI2SDIVQ_4 | RCC_DCKCFGR1_PLLI2SDIVQ_3 | RCC_DCKCFGR1_PLLI2SDIVQ_2 | RCC_DCKCFGR1_PLLI2SDIVQ_1 | RCC_DCKCFGR1_PLLI2SDIVQ_0) /*!< PLLI2S division factor for PLLI2SDIVQ output by 32 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLI2SR PLLI2SR division factor (PLLI2SR)
- * @{
- */
- #define LL_RCC_PLLI2SR_DIV_2 RCC_PLLI2SCFGR_PLLI2SR_1 /*!< PLLI2S division factor for PLLI2SR output by 2 */
- #define LL_RCC_PLLI2SR_DIV_3 (RCC_PLLI2SCFGR_PLLI2SR_1 | RCC_PLLI2SCFGR_PLLI2SR_0) /*!< PLLI2S division factor for PLLI2SR output by 3 */
- #define LL_RCC_PLLI2SR_DIV_4 RCC_PLLI2SCFGR_PLLI2SR_2 /*!< PLLI2S division factor for PLLI2SR output by 4 */
- #define LL_RCC_PLLI2SR_DIV_5 (RCC_PLLI2SCFGR_PLLI2SR_2 | RCC_PLLI2SCFGR_PLLI2SR_0) /*!< PLLI2S division factor for PLLI2SR output by 5 */
- #define LL_RCC_PLLI2SR_DIV_6 (RCC_PLLI2SCFGR_PLLI2SR_2 | RCC_PLLI2SCFGR_PLLI2SR_1) /*!< PLLI2S division factor for PLLI2SR output by 6 */
- #define LL_RCC_PLLI2SR_DIV_7 (RCC_PLLI2SCFGR_PLLI2SR_2 | RCC_PLLI2SCFGR_PLLI2SR_1 | RCC_PLLI2SCFGR_PLLI2SR_0) /*!< PLLI2S division factor for PLLI2SR output by 7 */
- /**
- * @}
- */
- #if defined(RCC_PLLI2SCFGR_PLLI2SP)
- /** @defgroup RCC_LL_EC_PLLI2SP PLLI2SP division factor (PLLI2SP)
- * @{
- */
- #define LL_RCC_PLLI2SP_DIV_2 0x00000000U /*!< PLLI2S division factor for PLLI2SP output by 2 */
- #define LL_RCC_PLLI2SP_DIV_4 RCC_PLLI2SCFGR_PLLI2SP_0 /*!< PLLI2S division factor for PLLI2SP output by 4 */
- #define LL_RCC_PLLI2SP_DIV_6 RCC_PLLI2SCFGR_PLLI2SP_1 /*!< PLLI2S division factor for PLLI2SP output by 6 */
- #define LL_RCC_PLLI2SP_DIV_8 (RCC_PLLI2SCFGR_PLLI2SP_1 | RCC_PLLI2SCFGR_PLLI2SP_0) /*!< PLLI2S division factor for PLLI2SP output by 8 */
- /**
- * @}
- */
- #endif /* RCC_PLLI2SCFGR_PLLI2SP */
- /** @defgroup RCC_LL_EC_PLLSAIQ PLLSAIQ division factor (PLLSAIQ)
- * @{
- */
- #define LL_RCC_PLLSAIQ_DIV_2 RCC_PLLSAICFGR_PLLSAIQ_1 /*!< PLLSAI division factor for PLLSAIQ output by 2 */
- #define LL_RCC_PLLSAIQ_DIV_3 (RCC_PLLSAICFGR_PLLSAIQ_1 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 3 */
- #define LL_RCC_PLLSAIQ_DIV_4 RCC_PLLSAICFGR_PLLSAIQ_2 /*!< PLLSAI division factor for PLLSAIQ output by 4 */
- #define LL_RCC_PLLSAIQ_DIV_5 (RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 5 */
- #define LL_RCC_PLLSAIQ_DIV_6 (RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_1) /*!< PLLSAI division factor for PLLSAIQ output by 6 */
- #define LL_RCC_PLLSAIQ_DIV_7 (RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_1 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 7 */
- #define LL_RCC_PLLSAIQ_DIV_8 RCC_PLLSAICFGR_PLLSAIQ_3 /*!< PLLSAI division factor for PLLSAIQ output by 8 */
- #define LL_RCC_PLLSAIQ_DIV_9 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 9 */
- #define LL_RCC_PLLSAIQ_DIV_10 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_1) /*!< PLLSAI division factor for PLLSAIQ output by 10 */
- #define LL_RCC_PLLSAIQ_DIV_11 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_1 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 11 */
- #define LL_RCC_PLLSAIQ_DIV_12 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_2) /*!< PLLSAI division factor for PLLSAIQ output by 12 */
- #define LL_RCC_PLLSAIQ_DIV_13 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 13 */
- #define LL_RCC_PLLSAIQ_DIV_14 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_1) /*!< PLLSAI division factor for PLLSAIQ output by 14 */
- #define LL_RCC_PLLSAIQ_DIV_15 (RCC_PLLSAICFGR_PLLSAIQ_3 | RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIQ_1 | RCC_PLLSAICFGR_PLLSAIQ_0) /*!< PLLSAI division factor for PLLSAIQ output by 15 */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EC_PLLSAIDIVQ PLLSAIDIVQ division factor (PLLSAIDIVQ)
- * @{
- */
- #define LL_RCC_PLLSAIDIVQ_DIV_1 0x00000000U /*!< PLLSAI division factor for PLLSAIDIVQ output by 1 */
- #define LL_RCC_PLLSAIDIVQ_DIV_2 RCC_DCKCFGR1_PLLSAIDIVQ_0 /*!< PLLSAI division factor for PLLSAIDIVQ output by 2 */
- #define LL_RCC_PLLSAIDIVQ_DIV_3 RCC_DCKCFGR1_PLLSAIDIVQ_1 /*!< PLLSAI division factor for PLLSAIDIVQ output by 3 */
- #define LL_RCC_PLLSAIDIVQ_DIV_4 (RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 4 */
- #define LL_RCC_PLLSAIDIVQ_DIV_5 RCC_DCKCFGR1_PLLSAIDIVQ_2 /*!< PLLSAI division factor for PLLSAIDIVQ output by 5 */
- #define LL_RCC_PLLSAIDIVQ_DIV_6 (RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 6 */
- #define LL_RCC_PLLSAIDIVQ_DIV_7 (RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 7 */
- #define LL_RCC_PLLSAIDIVQ_DIV_8 (RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 8 */
- #define LL_RCC_PLLSAIDIVQ_DIV_9 RCC_DCKCFGR1_PLLSAIDIVQ_3 /*!< PLLSAI division factor for PLLSAIDIVQ output by 9 */
- #define LL_RCC_PLLSAIDIVQ_DIV_10 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 10 */
- #define LL_RCC_PLLSAIDIVQ_DIV_11 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 11 */
- #define LL_RCC_PLLSAIDIVQ_DIV_12 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 12 */
- #define LL_RCC_PLLSAIDIVQ_DIV_13 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2) /*!< PLLSAI division factor for PLLSAIDIVQ output by 13 */
- #define LL_RCC_PLLSAIDIVQ_DIV_14 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 14 */
- #define LL_RCC_PLLSAIDIVQ_DIV_15 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 15 */
- #define LL_RCC_PLLSAIDIVQ_DIV_16 (RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 16 */
- #define LL_RCC_PLLSAIDIVQ_DIV_17 RCC_DCKCFGR1_PLLSAIDIVQ_4 /*!< PLLSAI division factor for PLLSAIDIVQ output by 17 */
- #define LL_RCC_PLLSAIDIVQ_DIV_18 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 18 */
- #define LL_RCC_PLLSAIDIVQ_DIV_19 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 19 */
- #define LL_RCC_PLLSAIDIVQ_DIV_20 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 20 */
- #define LL_RCC_PLLSAIDIVQ_DIV_21 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_2) /*!< PLLSAI division factor for PLLSAIDIVQ output by 21 */
- #define LL_RCC_PLLSAIDIVQ_DIV_22 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 22 */
- #define LL_RCC_PLLSAIDIVQ_DIV_23 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 23 */
- #define LL_RCC_PLLSAIDIVQ_DIV_24 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 24 */
- #define LL_RCC_PLLSAIDIVQ_DIV_25 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3) /*!< PLLSAI division factor for PLLSAIDIVQ output by 25 */
- #define LL_RCC_PLLSAIDIVQ_DIV_26 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 26 */
- #define LL_RCC_PLLSAIDIVQ_DIV_27 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 27 */
- #define LL_RCC_PLLSAIDIVQ_DIV_28 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 28 */
- #define LL_RCC_PLLSAIDIVQ_DIV_29 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2) /*!< PLLSAI division factor for PLLSAIDIVQ output by 29 */
- #define LL_RCC_PLLSAIDIVQ_DIV_30 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 30 */
- #define LL_RCC_PLLSAIDIVQ_DIV_31 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1) /*!< PLLSAI division factor for PLLSAIDIVQ output by 31 */
- #define LL_RCC_PLLSAIDIVQ_DIV_32 (RCC_DCKCFGR1_PLLSAIDIVQ_4 | RCC_DCKCFGR1_PLLSAIDIVQ_3 | RCC_DCKCFGR1_PLLSAIDIVQ_2 | RCC_DCKCFGR1_PLLSAIDIVQ_1 | RCC_DCKCFGR1_PLLSAIDIVQ_0) /*!< PLLSAI division factor for PLLSAIDIVQ output by 32 */
- /**
- * @}
- */
- #if defined(RCC_PLLSAICFGR_PLLSAIR)
- /** @defgroup RCC_LL_EC_PLLSAIR PLLSAIR division factor (PLLSAIR)
- * @{
- */
- #define LL_RCC_PLLSAIR_DIV_2 RCC_PLLSAICFGR_PLLSAIR_1 /*!< PLLSAI division factor for PLLSAIR output by 2 */
- #define LL_RCC_PLLSAIR_DIV_3 (RCC_PLLSAICFGR_PLLSAIR_1 | RCC_PLLSAICFGR_PLLSAIR_0) /*!< PLLSAI division factor for PLLSAIR output by 3 */
- #define LL_RCC_PLLSAIR_DIV_4 RCC_PLLSAICFGR_PLLSAIR_2 /*!< PLLSAI division factor for PLLSAIR output by 4 */
- #define LL_RCC_PLLSAIR_DIV_5 (RCC_PLLSAICFGR_PLLSAIR_2 | RCC_PLLSAICFGR_PLLSAIR_0) /*!< PLLSAI division factor for PLLSAIR output by 5 */
- #define LL_RCC_PLLSAIR_DIV_6 (RCC_PLLSAICFGR_PLLSAIR_2 | RCC_PLLSAICFGR_PLLSAIR_1) /*!< PLLSAI division factor for PLLSAIR output by 6 */
- #define LL_RCC_PLLSAIR_DIV_7 (RCC_PLLSAICFGR_PLLSAIR_2 | RCC_PLLSAICFGR_PLLSAIR_1 | RCC_PLLSAICFGR_PLLSAIR_0) /*!< PLLSAI division factor for PLLSAIR output by 7 */
- /**
- * @}
- */
- #endif /* RCC_PLLSAICFGR_PLLSAIR */
- #if defined(RCC_DCKCFGR1_PLLSAIDIVR)
- /** @defgroup RCC_LL_EC_PLLSAIDIVR PLLSAIDIVR division factor (PLLSAIDIVR)
- * @{
- */
- #define LL_RCC_PLLSAIDIVR_DIV_2 0x00000000U /*!< PLLSAI division factor for PLLSAIDIVR output by 2 */
- #define LL_RCC_PLLSAIDIVR_DIV_4 RCC_DCKCFGR1_PLLSAIDIVR_0 /*!< PLLSAI division factor for PLLSAIDIVR output by 4 */
- #define LL_RCC_PLLSAIDIVR_DIV_8 RCC_DCKCFGR1_PLLSAIDIVR_1 /*!< PLLSAI division factor for PLLSAIDIVR output by 8 */
- #define LL_RCC_PLLSAIDIVR_DIV_16 (RCC_DCKCFGR1_PLLSAIDIVR_1 | RCC_DCKCFGR1_PLLSAIDIVR_0) /*!< PLLSAI division factor for PLLSAIDIVR output by 16 */
- /**
- * @}
- */
- #endif /* RCC_DCKCFGR1_PLLSAIDIVR */
- /** @defgroup RCC_LL_EC_PLLSAIP PLLSAIP division factor (PLLSAIP)
- * @{
- */
- #define LL_RCC_PLLSAIP_DIV_2 0x00000000U /*!< PLLSAI division factor for PLLSAIP output by 2 */
- #define LL_RCC_PLLSAIP_DIV_4 RCC_PLLSAICFGR_PLLSAIP_0 /*!< PLLSAI division factor for PLLSAIP output by 4 */
- #define LL_RCC_PLLSAIP_DIV_6 RCC_PLLSAICFGR_PLLSAIP_1 /*!< PLLSAI division factor for PLLSAIP output by 6 */
- #define LL_RCC_PLLSAIP_DIV_8 (RCC_PLLSAICFGR_PLLSAIP_1 | RCC_PLLSAICFGR_PLLSAIP_0) /*!< PLLSAI division factor for PLLSAIP output by 8 */
- /**
- * @}
- */
- /**
- * @}
- */
- /* Exported macro ------------------------------------------------------------*/
- /** @defgroup RCC_LL_Exported_Macros RCC Exported Macros
- * @{
- */
- /** @defgroup RCC_LL_EM_WRITE_READ Common Write and read registers Macros
- * @{
- */
- /**
- * @brief Write a value in RCC register
- * @param __REG__ Register to be written
- * @param __VALUE__ Value to be written in the register
- * @retval None
- */
- #define LL_RCC_WriteReg(__REG__, __VALUE__) WRITE_REG(RCC->__REG__, (__VALUE__))
- /**
- * @brief Read a value in RCC register
- * @param __REG__ Register to be read
- * @retval Register value
- */
- #define LL_RCC_ReadReg(__REG__) READ_REG(RCC->__REG__)
- /**
- * @}
- */
- /** @defgroup RCC_LL_EM_CALC_FREQ Calculate frequencies
- * @{
- */
- /**
- * @brief Helper macro to calculate the PLLCLK frequency on system domain
- * @note ex: @ref __LL_RCC_CALC_PLLCLK_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLL_GetN (), @ref LL_RCC_PLL_GetP ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLN__ Between 50 and 432
- * @param __PLLP__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLP_DIV_2
- * @arg @ref LL_RCC_PLLP_DIV_4
- * @arg @ref LL_RCC_PLLP_DIV_6
- * @arg @ref LL_RCC_PLLP_DIV_8
- * @retval PLL clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLCLK_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLP__) ((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \
- ((((__PLLP__) >> RCC_PLLCFGR_PLLP_Pos ) + 1U) * 2U))
- /**
- * @brief Helper macro to calculate the PLLCLK frequency used on 48M domain
- * @note ex: @ref __LL_RCC_CALC_PLLCLK_48M_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLL_GetN (), @ref LL_RCC_PLL_GetQ ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLN__ Between 50 and 432
- * @param __PLLQ__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLQ_DIV_2
- * @arg @ref LL_RCC_PLLQ_DIV_3
- * @arg @ref LL_RCC_PLLQ_DIV_4
- * @arg @ref LL_RCC_PLLQ_DIV_5
- * @arg @ref LL_RCC_PLLQ_DIV_6
- * @arg @ref LL_RCC_PLLQ_DIV_7
- * @arg @ref LL_RCC_PLLQ_DIV_8
- * @arg @ref LL_RCC_PLLQ_DIV_9
- * @arg @ref LL_RCC_PLLQ_DIV_10
- * @arg @ref LL_RCC_PLLQ_DIV_11
- * @arg @ref LL_RCC_PLLQ_DIV_12
- * @arg @ref LL_RCC_PLLQ_DIV_13
- * @arg @ref LL_RCC_PLLQ_DIV_14
- * @arg @ref LL_RCC_PLLQ_DIV_15
- * @retval PLL clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLCLK_48M_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLQ__) ((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \
- ((__PLLQ__) >> RCC_PLLCFGR_PLLQ_Pos ))
- #if defined(DSI)
- /**
- * @brief Helper macro to calculate the PLLCLK frequency used on DSI
- * @note ex: @ref __LL_RCC_CALC_PLLCLK_DSI_FREQ (HSE_VALUE, @ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLL_GetN (), @ref LL_RCC_PLL_GetR ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLN__ Between 50 and 432
- * @param __PLLR__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLR_DIV_2
- * @arg @ref LL_RCC_PLLR_DIV_3
- * @arg @ref LL_RCC_PLLR_DIV_4
- * @arg @ref LL_RCC_PLLR_DIV_5
- * @arg @ref LL_RCC_PLLR_DIV_6
- * @arg @ref LL_RCC_PLLR_DIV_7
- * @retval PLL clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLCLK_DSI_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLR__) ((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \
- ((__PLLR__) >> RCC_PLLCFGR_PLLR_Pos ))
- #endif /* DSI */
- /**
- * @brief Helper macro to calculate the PLLSAI frequency used for SAI1 and SAI2 domains
- * @note ex: @ref __LL_RCC_CALC_PLLSAI_SAI_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLSAI_GetN (), @ref LL_RCC_PLLSAI_GetQ (), @ref LL_RCC_PLLSAI_GetDIVQ ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLSAIN__ Between 50 and 432
- * @param __PLLSAIQ__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIQ_DIV_15
- * @param __PLLSAIDIVQ__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_32
- * @retval PLLSAI clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLSAI_SAI_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIQ__, __PLLSAIDIVQ__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \
- (((__PLLSAIQ__) >> RCC_PLLSAICFGR_PLLSAIQ_Pos) * (((__PLLSAIDIVQ__) >> RCC_DCKCFGR1_PLLSAIDIVQ_Pos) + 1U)))
- /**
- * @brief Helper macro to calculate the PLLSAI frequency used on 48Mhz domain
- * @note ex: @ref __LL_RCC_CALC_PLLSAI_48M_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLSAI_GetN (), @ref LL_RCC_PLLSAI_GetP ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLSAIN__ Between 50 and 432
- * @param __PLLSAIP__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIP_DIV_2
- * @arg @ref LL_RCC_PLLSAIP_DIV_4
- * @arg @ref LL_RCC_PLLSAIP_DIV_6
- * @arg @ref LL_RCC_PLLSAIP_DIV_8
- * @retval PLLSAI clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLSAI_48M_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIP__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \
- ((((__PLLSAIP__) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U ) * 2U))
- #if defined(LTDC)
- /**
- * @brief Helper macro to calculate the PLLSAI frequency used for LTDC domain
- * @note ex: @ref __LL_RCC_CALC_PLLSAI_LTDC_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLSAI_GetN (), @ref LL_RCC_PLLSAI_GetR (), @ref LL_RCC_PLLSAI_GetDIVR ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLSAIN__ Between 50 and 432
- * @param __PLLSAIR__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIR_DIV_2
- * @arg @ref LL_RCC_PLLSAIR_DIV_3
- * @arg @ref LL_RCC_PLLSAIR_DIV_4
- * @arg @ref LL_RCC_PLLSAIR_DIV_5
- * @arg @ref LL_RCC_PLLSAIR_DIV_6
- * @arg @ref LL_RCC_PLLSAIR_DIV_7
- * @param __PLLSAIDIVR__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_16
- * @retval PLLSAI clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLSAI_LTDC_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIR__, __PLLSAIDIVR__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \
- (((__PLLSAIR__) >> RCC_PLLSAICFGR_PLLSAIR_Pos) * (aRCC_PLLSAIDIVRPrescTable[(__PLLSAIDIVR__) >> RCC_DCKCFGR1_PLLSAIDIVR_Pos])))
- #endif /* LTDC */
- /**
- * @brief Helper macro to calculate the PLLI2S frequency used for SAI1 and SAI2 domains
- * @note ex: @ref __LL_RCC_CALC_PLLI2S_SAI_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLI2S_GetN (), @ref LL_RCC_PLLI2S_GetQ (), @ref LL_RCC_PLLI2S_GetDIVQ ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLI2SN__ Between 50 and 432
- * @param __PLLI2SQ__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SQ_DIV_15
- * @param __PLLI2SDIVQ__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_32
- * @retval PLLI2S clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLI2S_SAI_FREQ(__INPUTFREQ__, __PLLM__, __PLLI2SN__, __PLLI2SQ__, __PLLI2SDIVQ__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLI2SN__) / \
- (((__PLLI2SQ__) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos) * (((__PLLI2SDIVQ__) >> RCC_DCKCFGR1_PLLI2SDIVQ_Pos) + 1U)))
- #if defined(SPDIFRX)
- /**
- * @brief Helper macro to calculate the PLLI2S frequency used on SPDIFRX domain
- * @note ex: @ref __LL_RCC_CALC_PLLI2S_SPDIFRX_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLI2S_GetN (), @ref LL_RCC_PLLI2S_GetP ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLI2SN__ Between 50 and 432
- * @param __PLLI2SP__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SP_DIV_2
- * @arg @ref LL_RCC_PLLI2SP_DIV_4
- * @arg @ref LL_RCC_PLLI2SP_DIV_6
- * @arg @ref LL_RCC_PLLI2SP_DIV_8
- * @retval PLLI2S clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLI2S_SPDIFRX_FREQ(__INPUTFREQ__, __PLLM__, __PLLI2SN__, __PLLI2SP__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLI2SN__) / \
- ((((__PLLI2SP__) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) * 2U))
- #endif /* SPDIFRX */
- /**
- * @brief Helper macro to calculate the PLLI2S frequency used for I2S domain
- * @note ex: @ref __LL_RCC_CALC_PLLI2S_I2S_FREQ (HSE_VALUE,@ref LL_RCC_PLL_GetDivider (),
- * @ref LL_RCC_PLLI2S_GetN (), @ref LL_RCC_PLLI2S_GetR ());
- * @param __INPUTFREQ__ PLL Input frequency (based on HSE/HSI)
- * @param __PLLM__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param __PLLI2SN__ Between 50 and 432
- * @param __PLLI2SR__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SR_DIV_2
- * @arg @ref LL_RCC_PLLI2SR_DIV_3
- * @arg @ref LL_RCC_PLLI2SR_DIV_4
- * @arg @ref LL_RCC_PLLI2SR_DIV_5
- * @arg @ref LL_RCC_PLLI2SR_DIV_6
- * @arg @ref LL_RCC_PLLI2SR_DIV_7
- * @retval PLLI2S clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PLLI2S_I2S_FREQ(__INPUTFREQ__, __PLLM__, __PLLI2SN__, __PLLI2SR__) (((__INPUTFREQ__) / (__PLLM__)) * (__PLLI2SN__) / \
- ((__PLLI2SR__) >> RCC_PLLI2SCFGR_PLLI2SR_Pos))
- /**
- * @brief Helper macro to calculate the HCLK frequency
- * @param __SYSCLKFREQ__ SYSCLK frequency (based on HSE/HSI/PLLCLK)
- * @param __AHBPRESCALER__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_SYSCLK_DIV_1
- * @arg @ref LL_RCC_SYSCLK_DIV_2
- * @arg @ref LL_RCC_SYSCLK_DIV_4
- * @arg @ref LL_RCC_SYSCLK_DIV_8
- * @arg @ref LL_RCC_SYSCLK_DIV_16
- * @arg @ref LL_RCC_SYSCLK_DIV_64
- * @arg @ref LL_RCC_SYSCLK_DIV_128
- * @arg @ref LL_RCC_SYSCLK_DIV_256
- * @arg @ref LL_RCC_SYSCLK_DIV_512
- * @retval HCLK clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_HCLK_FREQ(__SYSCLKFREQ__, __AHBPRESCALER__) ((__SYSCLKFREQ__) >> AHBPrescTable[((__AHBPRESCALER__) & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos])
- /**
- * @brief Helper macro to calculate the PCLK1 frequency (ABP1)
- * @param __HCLKFREQ__ HCLK frequency
- * @param __APB1PRESCALER__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_APB1_DIV_1
- * @arg @ref LL_RCC_APB1_DIV_2
- * @arg @ref LL_RCC_APB1_DIV_4
- * @arg @ref LL_RCC_APB1_DIV_8
- * @arg @ref LL_RCC_APB1_DIV_16
- * @retval PCLK1 clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PCLK1_FREQ(__HCLKFREQ__, __APB1PRESCALER__) ((__HCLKFREQ__) >> APBPrescTable[(__APB1PRESCALER__) >> RCC_CFGR_PPRE1_Pos])
- /**
- * @brief Helper macro to calculate the PCLK2 frequency (ABP2)
- * @param __HCLKFREQ__ HCLK frequency
- * @param __APB2PRESCALER__ This parameter can be one of the following values:
- * @arg @ref LL_RCC_APB2_DIV_1
- * @arg @ref LL_RCC_APB2_DIV_2
- * @arg @ref LL_RCC_APB2_DIV_4
- * @arg @ref LL_RCC_APB2_DIV_8
- * @arg @ref LL_RCC_APB2_DIV_16
- * @retval PCLK2 clock frequency (in Hz)
- */
- #define __LL_RCC_CALC_PCLK2_FREQ(__HCLKFREQ__, __APB2PRESCALER__) ((__HCLKFREQ__) >> APBPrescTable[(__APB2PRESCALER__) >> RCC_CFGR_PPRE2_Pos])
- /**
- * @}
- */
- /**
- * @}
- */
- /* Exported functions --------------------------------------------------------*/
- /** @defgroup RCC_LL_Exported_Functions RCC Exported Functions
- * @{
- */
- /** @defgroup RCC_LL_EF_HSE HSE
- * @{
- */
- /**
- * @brief Enable the Clock Security System.
- * @rmtoll CR CSSON LL_RCC_HSE_EnableCSS
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSE_EnableCSS(void)
- {
- SET_BIT(RCC->CR, RCC_CR_CSSON);
- }
- /**
- * @brief Enable HSE external oscillator (HSE Bypass)
- * @rmtoll CR HSEBYP LL_RCC_HSE_EnableBypass
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSE_EnableBypass(void)
- {
- SET_BIT(RCC->CR, RCC_CR_HSEBYP);
- }
- /**
- * @brief Disable HSE external oscillator (HSE Bypass)
- * @rmtoll CR HSEBYP LL_RCC_HSE_DisableBypass
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSE_DisableBypass(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP);
- }
- /**
- * @brief Enable HSE crystal oscillator (HSE ON)
- * @rmtoll CR HSEON LL_RCC_HSE_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSE_Enable(void)
- {
- SET_BIT(RCC->CR, RCC_CR_HSEON);
- }
- /**
- * @brief Disable HSE crystal oscillator (HSE ON)
- * @rmtoll CR HSEON LL_RCC_HSE_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSE_Disable(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_HSEON);
- }
- /**
- * @brief Check if HSE oscillator Ready
- * @rmtoll CR HSERDY LL_RCC_HSE_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_HSE_IsReady(void)
- {
- return (READ_BIT(RCC->CR, RCC_CR_HSERDY) == (RCC_CR_HSERDY));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_HSI HSI
- * @{
- */
- /**
- * @brief Enable HSI oscillator
- * @rmtoll CR HSION LL_RCC_HSI_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSI_Enable(void)
- {
- SET_BIT(RCC->CR, RCC_CR_HSION);
- }
- /**
- * @brief Disable HSI oscillator
- * @rmtoll CR HSION LL_RCC_HSI_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSI_Disable(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_HSION);
- }
- /**
- * @brief Check if HSI clock is ready
- * @rmtoll CR HSIRDY LL_RCC_HSI_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_HSI_IsReady(void)
- {
- return (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == (RCC_CR_HSIRDY));
- }
- /**
- * @brief Get HSI Calibration value
- * @note When HSITRIM is written, HSICAL is updated with the sum of
- * HSITRIM and the factory trim value
- * @rmtoll CR HSICAL LL_RCC_HSI_GetCalibration
- * @retval Between Min_Data = 0x00 and Max_Data = 0xFF
- */
- __STATIC_INLINE uint32_t LL_RCC_HSI_GetCalibration(void)
- {
- return (uint32_t)(READ_BIT(RCC->CR, RCC_CR_HSICAL) >> RCC_CR_HSICAL_Pos);
- }
- /**
- * @brief Set HSI Calibration trimming
- * @note user-programmable trimming value that is added to the HSICAL
- * @note Default value is 16, which, when added to the HSICAL value,
- * should trim the HSI to 16 MHz +/- 1 %
- * @rmtoll CR HSITRIM LL_RCC_HSI_SetCalibTrimming
- * @param Value Between Min_Data = 0 and Max_Data = 31
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_HSI_SetCalibTrimming(uint32_t Value)
- {
- MODIFY_REG(RCC->CR, RCC_CR_HSITRIM, Value << RCC_CR_HSITRIM_Pos);
- }
- /**
- * @brief Get HSI Calibration trimming
- * @rmtoll CR HSITRIM LL_RCC_HSI_GetCalibTrimming
- * @retval Between Min_Data = 0 and Max_Data = 31
- */
- __STATIC_INLINE uint32_t LL_RCC_HSI_GetCalibTrimming(void)
- {
- return (uint32_t)(READ_BIT(RCC->CR, RCC_CR_HSITRIM) >> RCC_CR_HSITRIM_Pos);
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_LSE LSE
- * @{
- */
- /**
- * @brief Enable Low Speed External (LSE) crystal.
- * @rmtoll BDCR LSEON LL_RCC_LSE_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSE_Enable(void)
- {
- SET_BIT(RCC->BDCR, RCC_BDCR_LSEON);
- }
- /**
- * @brief Disable Low Speed External (LSE) crystal.
- * @rmtoll BDCR LSEON LL_RCC_LSE_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSE_Disable(void)
- {
- CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON);
- }
- /**
- * @brief Enable external clock source (LSE bypass).
- * @rmtoll BDCR LSEBYP LL_RCC_LSE_EnableBypass
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSE_EnableBypass(void)
- {
- SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP);
- }
- /**
- * @brief Disable external clock source (LSE bypass).
- * @rmtoll BDCR LSEBYP LL_RCC_LSE_DisableBypass
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSE_DisableBypass(void)
- {
- CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP);
- }
- /**
- * @brief Set LSE oscillator drive capability
- * @note The oscillator is in Xtal mode when it is not in bypass mode.
- * @rmtoll BDCR LSEDRV LL_RCC_LSE_SetDriveCapability
- * @param LSEDrive This parameter can be one of the following values:
- * @arg @ref LL_RCC_LSEDRIVE_LOW
- * @arg @ref LL_RCC_LSEDRIVE_MEDIUMHIGH
- * @arg @ref LL_RCC_LSEDRIVE_MEDIUMLOW
- * @arg @ref LL_RCC_LSEDRIVE_HIGH
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSE_SetDriveCapability(uint32_t LSEDrive)
- {
- MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, LSEDrive);
- }
- /**
- * @brief Get LSE oscillator drive capability
- * @rmtoll BDCR LSEDRV LL_RCC_LSE_GetDriveCapability
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_LSEDRIVE_LOW
- * @arg @ref LL_RCC_LSEDRIVE_MEDIUMHIGH
- * @arg @ref LL_RCC_LSEDRIVE_MEDIUMLOW
- * @arg @ref LL_RCC_LSEDRIVE_HIGH
- */
- __STATIC_INLINE uint32_t LL_RCC_LSE_GetDriveCapability(void)
- {
- return (uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_LSEDRV));
- }
- /**
- * @brief Check if LSE oscillator Ready
- * @rmtoll BDCR LSERDY LL_RCC_LSE_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_LSE_IsReady(void)
- {
- return (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == (RCC_BDCR_LSERDY));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_LSI LSI
- * @{
- */
- /**
- * @brief Enable LSI Oscillator
- * @rmtoll CSR LSION LL_RCC_LSI_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSI_Enable(void)
- {
- SET_BIT(RCC->CSR, RCC_CSR_LSION);
- }
- /**
- * @brief Disable LSI Oscillator
- * @rmtoll CSR LSION LL_RCC_LSI_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_LSI_Disable(void)
- {
- CLEAR_BIT(RCC->CSR, RCC_CSR_LSION);
- }
- /**
- * @brief Check if LSI is Ready
- * @rmtoll CSR LSIRDY LL_RCC_LSI_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_LSI_IsReady(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == (RCC_CSR_LSIRDY));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_System System
- * @{
- */
- /**
- * @brief Configure the system clock source
- * @rmtoll CFGR SW LL_RCC_SetSysClkSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_SYS_CLKSOURCE_HSI
- * @arg @ref LL_RCC_SYS_CLKSOURCE_HSE
- * @arg @ref LL_RCC_SYS_CLKSOURCE_PLL
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetSysClkSource(uint32_t Source)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, Source);
- }
- /**
- * @brief Get the system clock source
- * @rmtoll CFGR SWS LL_RCC_GetSysClkSource
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_HSI
- * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_HSE
- * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_PLL
- */
- __STATIC_INLINE uint32_t LL_RCC_GetSysClkSource(void)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_SWS));
- }
- /**
- * @brief Set AHB prescaler
- * @rmtoll CFGR HPRE LL_RCC_SetAHBPrescaler
- * @param Prescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_SYSCLK_DIV_1
- * @arg @ref LL_RCC_SYSCLK_DIV_2
- * @arg @ref LL_RCC_SYSCLK_DIV_4
- * @arg @ref LL_RCC_SYSCLK_DIV_8
- * @arg @ref LL_RCC_SYSCLK_DIV_16
- * @arg @ref LL_RCC_SYSCLK_DIV_64
- * @arg @ref LL_RCC_SYSCLK_DIV_128
- * @arg @ref LL_RCC_SYSCLK_DIV_256
- * @arg @ref LL_RCC_SYSCLK_DIV_512
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetAHBPrescaler(uint32_t Prescaler)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, Prescaler);
- }
- /**
- * @brief Set APB1 prescaler
- * @rmtoll CFGR PPRE1 LL_RCC_SetAPB1Prescaler
- * @param Prescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_APB1_DIV_1
- * @arg @ref LL_RCC_APB1_DIV_2
- * @arg @ref LL_RCC_APB1_DIV_4
- * @arg @ref LL_RCC_APB1_DIV_8
- * @arg @ref LL_RCC_APB1_DIV_16
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetAPB1Prescaler(uint32_t Prescaler)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, Prescaler);
- }
- /**
- * @brief Set APB2 prescaler
- * @rmtoll CFGR PPRE2 LL_RCC_SetAPB2Prescaler
- * @param Prescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_APB2_DIV_1
- * @arg @ref LL_RCC_APB2_DIV_2
- * @arg @ref LL_RCC_APB2_DIV_4
- * @arg @ref LL_RCC_APB2_DIV_8
- * @arg @ref LL_RCC_APB2_DIV_16
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetAPB2Prescaler(uint32_t Prescaler)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, Prescaler);
- }
- /**
- * @brief Get AHB prescaler
- * @rmtoll CFGR HPRE LL_RCC_GetAHBPrescaler
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_SYSCLK_DIV_1
- * @arg @ref LL_RCC_SYSCLK_DIV_2
- * @arg @ref LL_RCC_SYSCLK_DIV_4
- * @arg @ref LL_RCC_SYSCLK_DIV_8
- * @arg @ref LL_RCC_SYSCLK_DIV_16
- * @arg @ref LL_RCC_SYSCLK_DIV_64
- * @arg @ref LL_RCC_SYSCLK_DIV_128
- * @arg @ref LL_RCC_SYSCLK_DIV_256
- * @arg @ref LL_RCC_SYSCLK_DIV_512
- */
- __STATIC_INLINE uint32_t LL_RCC_GetAHBPrescaler(void)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_HPRE));
- }
- /**
- * @brief Get APB1 prescaler
- * @rmtoll CFGR PPRE1 LL_RCC_GetAPB1Prescaler
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_APB1_DIV_1
- * @arg @ref LL_RCC_APB1_DIV_2
- * @arg @ref LL_RCC_APB1_DIV_4
- * @arg @ref LL_RCC_APB1_DIV_8
- * @arg @ref LL_RCC_APB1_DIV_16
- */
- __STATIC_INLINE uint32_t LL_RCC_GetAPB1Prescaler(void)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PPRE1));
- }
- /**
- * @brief Get APB2 prescaler
- * @rmtoll CFGR PPRE2 LL_RCC_GetAPB2Prescaler
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_APB2_DIV_1
- * @arg @ref LL_RCC_APB2_DIV_2
- * @arg @ref LL_RCC_APB2_DIV_4
- * @arg @ref LL_RCC_APB2_DIV_8
- * @arg @ref LL_RCC_APB2_DIV_16
- */
- __STATIC_INLINE uint32_t LL_RCC_GetAPB2Prescaler(void)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PPRE2));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_MCO MCO
- * @{
- */
- /**
- * @brief Configure MCOx
- * @rmtoll CFGR MCO1 LL_RCC_ConfigMCO\n
- * CFGR MCO1PRE LL_RCC_ConfigMCO\n
- * CFGR MCO2 LL_RCC_ConfigMCO\n
- * CFGR MCO2PRE LL_RCC_ConfigMCO
- * @param MCOxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_MCO1SOURCE_HSI
- * @arg @ref LL_RCC_MCO1SOURCE_LSE
- * @arg @ref LL_RCC_MCO1SOURCE_HSE
- * @arg @ref LL_RCC_MCO1SOURCE_PLLCLK
- * @arg @ref LL_RCC_MCO2SOURCE_SYSCLK
- * @arg @ref LL_RCC_MCO2SOURCE_PLLI2S
- * @arg @ref LL_RCC_MCO2SOURCE_HSE
- * @arg @ref LL_RCC_MCO2SOURCE_PLLCLK
- * @param MCOxPrescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_MCO1_DIV_1
- * @arg @ref LL_RCC_MCO1_DIV_2
- * @arg @ref LL_RCC_MCO1_DIV_3
- * @arg @ref LL_RCC_MCO1_DIV_4
- * @arg @ref LL_RCC_MCO1_DIV_5
- * @arg @ref LL_RCC_MCO2_DIV_1
- * @arg @ref LL_RCC_MCO2_DIV_2
- * @arg @ref LL_RCC_MCO2_DIV_3
- * @arg @ref LL_RCC_MCO2_DIV_4
- * @arg @ref LL_RCC_MCO2_DIV_5
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ConfigMCO(uint32_t MCOxSource, uint32_t MCOxPrescaler)
- {
- MODIFY_REG(RCC->CFGR, (MCOxSource & 0xFFFF0000U) | (MCOxPrescaler & 0xFFFF0000U), (MCOxSource << 16U) | (MCOxPrescaler << 16U));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_Peripheral_Clock_Source Peripheral Clock Source
- * @{
- */
- /**
- * @brief Configure USARTx clock source
- * @rmtoll DCKCFGR2 USART1SEL LL_RCC_SetUSARTClockSource\n
- * DCKCFGR2 USART2SEL LL_RCC_SetUSARTClockSource\n
- * DCKCFGR2 USART3SEL LL_RCC_SetUSARTClockSource\n
- * DCKCFGR2 USART6SEL LL_RCC_SetUSARTClockSource
- * @param USARTxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_USART1_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_USART1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART1_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART2_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_USART2_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART2_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART2_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART3_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_USART3_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART3_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART3_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART6_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_USART6_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART6_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART6_CLKSOURCE_LSE
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetUSARTClockSource(uint32_t USARTxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, (USARTxSource >> 16U), (USARTxSource & 0x0000FFFFU));
- }
- /**
- * @brief Configure UARTx clock source
- * @rmtoll DCKCFGR2 UART4SEL LL_RCC_SetUARTClockSource\n
- * DCKCFGR2 UART5SEL LL_RCC_SetUARTClockSource\n
- * DCKCFGR2 UART7SEL LL_RCC_SetUARTClockSource\n
- * DCKCFGR2 UART8SEL LL_RCC_SetUARTClockSource
- * @param UARTxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_UART4_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART4_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART4_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART4_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART5_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART5_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART5_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART5_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART7_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART7_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART7_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART7_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART8_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART8_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART8_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART8_CLKSOURCE_LSE
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetUARTClockSource(uint32_t UARTxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, (UARTxSource >> 16U), (UARTxSource & 0x0000FFFFU));
- }
- /**
- * @brief Configure I2Cx clock source
- * @rmtoll DCKCFGR2 I2C1SEL LL_RCC_SetI2CClockSource\n
- * DCKCFGR2 I2C2SEL LL_RCC_SetI2CClockSource\n
- * DCKCFGR2 I2C3SEL LL_RCC_SetI2CClockSource\n
- * DCKCFGR2 I2C4SEL LL_RCC_SetI2CClockSource
- * @param I2CxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK1 (*)
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_SYSCLK (*)
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI (*)
- *
- * (*) value not defined in all devices.
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetI2CClockSource(uint32_t I2CxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, (I2CxSource & 0xFFFF0000U), (I2CxSource << 16U));
- }
- /**
- * @brief Configure LPTIMx clock source
- * @rmtoll DCKCFGR2 LPTIM1SEL LL_RCC_SetLPTIMClockSource
- * @param LPTIMxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetLPTIMClockSource(uint32_t LPTIMxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL, LPTIMxSource);
- }
- /**
- * @brief Configure SAIx clock source
- * @rmtoll DCKCFGR1 SAI1SEL LL_RCC_SetSAIClockSource\n
- * DCKCFGR1 SAI2SEL LL_RCC_SetSAIClockSource
- * @param SAIxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLSAI
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PIN
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLSRC (*)
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLSAI
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PIN
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLSRC (*)
- *
- * (*) value not defined in all devices.
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetSAIClockSource(uint32_t SAIxSource)
- {
- MODIFY_REG(RCC->DCKCFGR1, (SAIxSource & 0xFFFF0000U), (SAIxSource << 16U));
- }
- /**
- * @brief Configure SDMMC clock source
- * @rmtoll DCKCFGR2 SDMMC1SEL LL_RCC_SetSDMMCClockSource\n
- * DCKCFGR2 SDMMC2SEL LL_RCC_SetSDMMCClockSource
- * @param SDMMCxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE_PLL48CLK
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_SDMMC2_CLKSOURCE_PLL48CLK (*)
- * @arg @ref LL_RCC_SDMMC2_CLKSOURCE_SYSCLK (*)
- *
- * (*) value not defined in all devices.
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetSDMMCClockSource(uint32_t SDMMCxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, (SDMMCxSource & 0xFFFF0000U), (SDMMCxSource << 16U));
- }
- /**
- * @brief Configure 48Mhz domain clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_SetCK48MClockSource
- * @param CK48MxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_CK48M_CLKSOURCE_PLL
- * @arg @ref LL_RCC_CK48M_CLKSOURCE_PLLSAI
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetCK48MClockSource(uint32_t CK48MxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL, CK48MxSource);
- }
- /**
- * @brief Configure RNG clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_SetRNGClockSource
- * @param RNGxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_RNG_CLKSOURCE_PLL
- * @arg @ref LL_RCC_RNG_CLKSOURCE_PLLSAI
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetRNGClockSource(uint32_t RNGxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL, RNGxSource);
- }
- /**
- * @brief Configure USB clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_SetUSBClockSource
- * @param USBxSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_USB_CLKSOURCE_PLL
- * @arg @ref LL_RCC_USB_CLKSOURCE_PLLSAI
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetUSBClockSource(uint32_t USBxSource)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL, USBxSource);
- }
- #if defined(CEC)
- /**
- * @brief Configure CEC clock source
- * @rmtoll DCKCFGR2 CECSEL LL_RCC_SetCECClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_CEC_CLKSOURCE_LSE
- * @arg @ref LL_RCC_CEC_CLKSOURCE_HSI_DIV488
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetCECClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CECSEL, Source);
- }
- #endif /* CEC */
- /**
- * @brief Configure I2S clock source
- * @rmtoll CFGR I2SSRC LL_RCC_SetI2SClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_I2S1_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_I2S1_CLKSOURCE_PIN
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetI2SClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_I2SSRC, Source);
- }
- #if defined(DSI)
- /**
- * @brief Configure DSI clock source
- * @rmtoll DCKCFGR2 DSISEL LL_RCC_SetDSIClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_DSI_CLKSOURCE_PHY
- * @arg @ref LL_RCC_DSI_CLKSOURCE_PLL
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetDSIClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_DSISEL, Source);
- }
- #endif /* DSI */
- #if defined(DFSDM1_Channel0)
- /**
- * @brief Configure DFSDM Audio clock source
- * @rmtoll DCKCFGR1 ADFSDM1SEL LL_RCC_SetDFSDMAudioClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI1
- * @arg @ref LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI2
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetDFSDMAudioClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_ADFSDM1SEL, Source);
- }
- /**
- * @brief Configure DFSDM Kernel clock source
- * @rmtoll DCKCFGR1 DFSDM1SEL LL_RCC_SetDFSDMClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_SYSCLK
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetDFSDMClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_DFSDM1SEL, Source);
- }
- #endif /* DFSDM1_Channel0 */
- /**
- * @brief Get USARTx clock source
- * @rmtoll DCKCFGR2 USART1SEL LL_RCC_GetUSARTClockSource\n
- * DCKCFGR2 USART2SEL LL_RCC_GetUSARTClockSource\n
- * DCKCFGR2 USART3SEL LL_RCC_GetUSARTClockSource\n
- * DCKCFGR2 USART6SEL LL_RCC_GetUSARTClockSource
- * @param USARTx This parameter can be one of the following values:
- * @arg @ref LL_RCC_USART1_CLKSOURCE
- * @arg @ref LL_RCC_USART2_CLKSOURCE
- * @arg @ref LL_RCC_USART3_CLKSOURCE
- * @arg @ref LL_RCC_USART6_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_USART1_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_USART1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART1_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART2_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_USART2_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART2_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART2_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART3_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_USART3_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART3_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART3_CLKSOURCE_LSE
- * @arg @ref LL_RCC_USART6_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_USART6_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_USART6_CLKSOURCE_HSI
- * @arg @ref LL_RCC_USART6_CLKSOURCE_LSE
- */
- __STATIC_INLINE uint32_t LL_RCC_GetUSARTClockSource(uint32_t USARTx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, USARTx) | (USARTx << 16U));
- }
- /**
- * @brief Get UARTx clock source
- * @rmtoll DCKCFGR2 UART4SEL LL_RCC_GetUARTClockSource\n
- * DCKCFGR2 UART5SEL LL_RCC_GetUARTClockSource\n
- * DCKCFGR2 UART7SEL LL_RCC_GetUARTClockSource\n
- * DCKCFGR2 UART8SEL LL_RCC_GetUARTClockSource
- * @param UARTx This parameter can be one of the following values:
- * @arg @ref LL_RCC_UART4_CLKSOURCE
- * @arg @ref LL_RCC_UART5_CLKSOURCE
- * @arg @ref LL_RCC_UART7_CLKSOURCE
- * @arg @ref LL_RCC_UART8_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_UART4_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART4_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART4_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART4_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART5_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART5_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART5_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART5_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART7_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART7_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART7_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART7_CLKSOURCE_LSE
- * @arg @ref LL_RCC_UART8_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_UART8_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_UART8_CLKSOURCE_HSI
- * @arg @ref LL_RCC_UART8_CLKSOURCE_LSE
- */
- __STATIC_INLINE uint32_t LL_RCC_GetUARTClockSource(uint32_t UARTx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, UARTx) | (UARTx << 16U));
- }
- /**
- * @brief Get I2Cx clock source
- * @rmtoll DCKCFGR2 I2C1SEL LL_RCC_GetI2CClockSource\n
- * DCKCFGR2 I2C2SEL LL_RCC_GetI2CClockSource\n
- * DCKCFGR2 I2C3SEL LL_RCC_GetI2CClockSource\n
- * DCKCFGR2 I2C4SEL LL_RCC_GetI2CClockSource
- * @param I2Cx This parameter can be one of the following values:
- * @arg @ref LL_RCC_I2C1_CLKSOURCE
- * @arg @ref LL_RCC_I2C2_CLKSOURCE
- * @arg @ref LL_RCC_I2C3_CLKSOURCE
- * @arg @ref LL_RCC_I2C4_CLKSOURCE (*)
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C2_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_I2C3_CLKSOURCE_HSI
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK1 (*)
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_SYSCLK (*)
- * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI (*)
- *
- * (*) value not defined in all devices.
- */
- __STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource(uint32_t I2Cx)
- {
- return (uint32_t)((READ_BIT(RCC->DCKCFGR2, I2Cx) >> 16U) | I2Cx);
- }
- /**
- * @brief Get LPTIMx clock source
- * @rmtoll DCKCFGR2 LPTIM1SEL LL_RCC_GetLPTIMClockSource
- * @param LPTIMx This parameter can be one of the following values:
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_HSI
- * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE
- */
- __STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource(uint32_t LPTIMx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL));
- }
- /**
- * @brief Get SAIx clock source
- * @rmtoll DCKCFGR1 SAI1SEL LL_RCC_GetSAIClockSource\n
- * DCKCFGR1 SAI2SEL LL_RCC_GetSAIClockSource
- * @param SAIx This parameter can be one of the following values:
- * @arg @ref LL_RCC_SAI1_CLKSOURCE
- * @arg @ref LL_RCC_SAI2_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLSAI
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PIN
- * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLLSRC (*)
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLSAI
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PIN
- * @arg @ref LL_RCC_SAI2_CLKSOURCE_PLLSRC (*)
- *
- * (*) value not defined in all devices.
- */
- __STATIC_INLINE uint32_t LL_RCC_GetSAIClockSource(uint32_t SAIx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, SAIx) >> 16U | SAIx);
- }
- /**
- * @brief Get SDMMCx clock source
- * @rmtoll DCKCFGR2 SDMMC1SEL LL_RCC_GetSDMMCClockSource\n
- * DCKCFGR2 SDMMC2SEL LL_RCC_GetSDMMCClockSource
- * @param SDMMCx This parameter can be one of the following values:
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE (*)
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE_PLL48CLK
- * @arg @ref LL_RCC_SDMMC1_CLKSOURCE_SYSCLK
- * @arg @ref LL_RCC_SDMMC2_CLKSOURCE_PLL48CLK (*)
- * @arg @ref LL_RCC_SDMMC2_CLKSOURCE_SYSCLK (*)
- *
- * (*) value not defined in all devices.
- */
- __STATIC_INLINE uint32_t LL_RCC_GetSDMMCClockSource(uint32_t SDMMCx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, SDMMCx) >> 16U | SDMMCx);
- }
- /**
- * @brief Get 48Mhz domain clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_GetCK48MClockSource
- * @param CK48Mx This parameter can be one of the following values:
- * @arg @ref LL_RCC_CK48M_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_CK48M_CLKSOURCE_PLL
- * @arg @ref LL_RCC_CK48M_CLKSOURCE_PLLSAI
- */
- __STATIC_INLINE uint32_t LL_RCC_GetCK48MClockSource(uint32_t CK48Mx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, CK48Mx));
- }
- /**
- * @brief Get RNGx clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_GetRNGClockSource
- * @param RNGx This parameter can be one of the following values:
- * @arg @ref LL_RCC_RNG_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_RNG_CLKSOURCE_PLL
- * @arg @ref LL_RCC_RNG_CLKSOURCE_PLLSAI
- */
- __STATIC_INLINE uint32_t LL_RCC_GetRNGClockSource(uint32_t RNGx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, RNGx));
- }
- /**
- * @brief Get USBx clock source
- * @rmtoll DCKCFGR2 CK48MSEL LL_RCC_GetUSBClockSource
- * @param USBx This parameter can be one of the following values:
- * @arg @ref LL_RCC_USB_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_USB_CLKSOURCE_PLL
- * @arg @ref LL_RCC_USB_CLKSOURCE_PLLSAI
- */
- __STATIC_INLINE uint32_t LL_RCC_GetUSBClockSource(uint32_t USBx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, USBx));
- }
- #if defined(CEC)
- /**
- * @brief Get CEC Clock Source
- * @rmtoll DCKCFGR2 CECSEL LL_RCC_GetCECClockSource
- * @param CECx This parameter can be one of the following values:
- * @arg @ref LL_RCC_CEC_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_CEC_CLKSOURCE_LSE
- * @arg @ref LL_RCC_CEC_CLKSOURCE_HSI_DIV488
- */
- __STATIC_INLINE uint32_t LL_RCC_GetCECClockSource(uint32_t CECx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, CECx));
- }
- #endif /* CEC */
- /**
- * @brief Get I2S Clock Source
- * @rmtoll CFGR I2SSRC LL_RCC_GetI2SClockSource
- * @param I2Sx This parameter can be one of the following values:
- * @arg @ref LL_RCC_I2S1_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_I2S1_CLKSOURCE_PLLI2S
- * @arg @ref LL_RCC_I2S1_CLKSOURCE_PIN
- */
- __STATIC_INLINE uint32_t LL_RCC_GetI2SClockSource(uint32_t I2Sx)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, I2Sx));
- }
- #if defined(DFSDM1_Channel0)
- /**
- * @brief Get DFSDM Audio Clock Source
- * @rmtoll DCKCFGR1 ADFSDM1SEL LL_RCC_GetDFSDMAudioClockSource
- * @param DFSDMx This parameter can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_AUDIO_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI1
- * @arg @ref LL_RCC_DFSDM1_AUDIO_CLKSOURCE_SAI2
- */
- __STATIC_INLINE uint32_t LL_RCC_GetDFSDMAudioClockSource(uint32_t DFSDMx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, DFSDMx));
- }
- /**
- * @brief Get DFSDM Audio Clock Source
- * @rmtoll DCKCFGR1 DFSDM1SEL LL_RCC_GetDFSDMClockSource
- * @param DFSDMx This parameter can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_PCLK2
- * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_SYSCLK
- */
- __STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource(uint32_t DFSDMx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, DFSDMx));
- }
- #endif /* DFSDM1_Channel0 */
- #if defined(DSI)
- /**
- * @brief Get DSI Clock Source
- * @rmtoll DCKCFGR2 DSISEL LL_RCC_GetDSIClockSource
- * @param DSIx This parameter can be one of the following values:
- * @arg @ref LL_RCC_DSI_CLKSOURCE
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_DSI_CLKSOURCE_PHY
- * @arg @ref LL_RCC_DSI_CLKSOURCE_PLL
- */
- __STATIC_INLINE uint32_t LL_RCC_GetDSIClockSource(uint32_t DSIx)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR2, DSIx));
- }
- #endif /* DSI */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_RTC RTC
- * @{
- */
- /**
- * @brief Set RTC Clock Source
- * @note Once the RTC clock source has been selected, it cannot be changed anymore unless
- * the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is
- * set). The BDRST bit can be used to reset them.
- * @rmtoll BDCR RTCSEL LL_RCC_SetRTCClockSource
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_RTC_CLKSOURCE_NONE
- * @arg @ref LL_RCC_RTC_CLKSOURCE_LSE
- * @arg @ref LL_RCC_RTC_CLKSOURCE_LSI
- * @arg @ref LL_RCC_RTC_CLKSOURCE_HSE
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetRTCClockSource(uint32_t Source)
- {
- MODIFY_REG(RCC->BDCR, RCC_BDCR_RTCSEL, Source);
- }
- /**
- * @brief Get RTC Clock Source
- * @rmtoll BDCR RTCSEL LL_RCC_GetRTCClockSource
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_RTC_CLKSOURCE_NONE
- * @arg @ref LL_RCC_RTC_CLKSOURCE_LSE
- * @arg @ref LL_RCC_RTC_CLKSOURCE_LSI
- * @arg @ref LL_RCC_RTC_CLKSOURCE_HSE
- */
- __STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource(void)
- {
- return (uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL));
- }
- /**
- * @brief Enable RTC
- * @rmtoll BDCR RTCEN LL_RCC_EnableRTC
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableRTC(void)
- {
- SET_BIT(RCC->BDCR, RCC_BDCR_RTCEN);
- }
- /**
- * @brief Disable RTC
- * @rmtoll BDCR RTCEN LL_RCC_DisableRTC
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableRTC(void)
- {
- CLEAR_BIT(RCC->BDCR, RCC_BDCR_RTCEN);
- }
- /**
- * @brief Check if RTC has been enabled or not
- * @rmtoll BDCR RTCEN LL_RCC_IsEnabledRTC
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC(void)
- {
- return (READ_BIT(RCC->BDCR, RCC_BDCR_RTCEN) == (RCC_BDCR_RTCEN));
- }
- /**
- * @brief Force the Backup domain reset
- * @rmtoll BDCR BDRST LL_RCC_ForceBackupDomainReset
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ForceBackupDomainReset(void)
- {
- SET_BIT(RCC->BDCR, RCC_BDCR_BDRST);
- }
- /**
- * @brief Release the Backup domain reset
- * @rmtoll BDCR BDRST LL_RCC_ReleaseBackupDomainReset
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset(void)
- {
- CLEAR_BIT(RCC->BDCR, RCC_BDCR_BDRST);
- }
- /**
- * @brief Set HSE Prescalers for RTC Clock
- * @rmtoll CFGR RTCPRE LL_RCC_SetRTC_HSEPrescaler
- * @param Prescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_RTC_NOCLOCK
- * @arg @ref LL_RCC_RTC_HSE_DIV_2
- * @arg @ref LL_RCC_RTC_HSE_DIV_3
- * @arg @ref LL_RCC_RTC_HSE_DIV_4
- * @arg @ref LL_RCC_RTC_HSE_DIV_5
- * @arg @ref LL_RCC_RTC_HSE_DIV_6
- * @arg @ref LL_RCC_RTC_HSE_DIV_7
- * @arg @ref LL_RCC_RTC_HSE_DIV_8
- * @arg @ref LL_RCC_RTC_HSE_DIV_9
- * @arg @ref LL_RCC_RTC_HSE_DIV_10
- * @arg @ref LL_RCC_RTC_HSE_DIV_11
- * @arg @ref LL_RCC_RTC_HSE_DIV_12
- * @arg @ref LL_RCC_RTC_HSE_DIV_13
- * @arg @ref LL_RCC_RTC_HSE_DIV_14
- * @arg @ref LL_RCC_RTC_HSE_DIV_15
- * @arg @ref LL_RCC_RTC_HSE_DIV_16
- * @arg @ref LL_RCC_RTC_HSE_DIV_17
- * @arg @ref LL_RCC_RTC_HSE_DIV_18
- * @arg @ref LL_RCC_RTC_HSE_DIV_19
- * @arg @ref LL_RCC_RTC_HSE_DIV_20
- * @arg @ref LL_RCC_RTC_HSE_DIV_21
- * @arg @ref LL_RCC_RTC_HSE_DIV_22
- * @arg @ref LL_RCC_RTC_HSE_DIV_23
- * @arg @ref LL_RCC_RTC_HSE_DIV_24
- * @arg @ref LL_RCC_RTC_HSE_DIV_25
- * @arg @ref LL_RCC_RTC_HSE_DIV_26
- * @arg @ref LL_RCC_RTC_HSE_DIV_27
- * @arg @ref LL_RCC_RTC_HSE_DIV_28
- * @arg @ref LL_RCC_RTC_HSE_DIV_29
- * @arg @ref LL_RCC_RTC_HSE_DIV_30
- * @arg @ref LL_RCC_RTC_HSE_DIV_31
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetRTC_HSEPrescaler(uint32_t Prescaler)
- {
- MODIFY_REG(RCC->CFGR, RCC_CFGR_RTCPRE, Prescaler);
- }
- /**
- * @brief Get HSE Prescalers for RTC Clock
- * @rmtoll CFGR RTCPRE LL_RCC_GetRTC_HSEPrescaler
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_RTC_NOCLOCK
- * @arg @ref LL_RCC_RTC_HSE_DIV_2
- * @arg @ref LL_RCC_RTC_HSE_DIV_3
- * @arg @ref LL_RCC_RTC_HSE_DIV_4
- * @arg @ref LL_RCC_RTC_HSE_DIV_5
- * @arg @ref LL_RCC_RTC_HSE_DIV_6
- * @arg @ref LL_RCC_RTC_HSE_DIV_7
- * @arg @ref LL_RCC_RTC_HSE_DIV_8
- * @arg @ref LL_RCC_RTC_HSE_DIV_9
- * @arg @ref LL_RCC_RTC_HSE_DIV_10
- * @arg @ref LL_RCC_RTC_HSE_DIV_11
- * @arg @ref LL_RCC_RTC_HSE_DIV_12
- * @arg @ref LL_RCC_RTC_HSE_DIV_13
- * @arg @ref LL_RCC_RTC_HSE_DIV_14
- * @arg @ref LL_RCC_RTC_HSE_DIV_15
- * @arg @ref LL_RCC_RTC_HSE_DIV_16
- * @arg @ref LL_RCC_RTC_HSE_DIV_17
- * @arg @ref LL_RCC_RTC_HSE_DIV_18
- * @arg @ref LL_RCC_RTC_HSE_DIV_19
- * @arg @ref LL_RCC_RTC_HSE_DIV_20
- * @arg @ref LL_RCC_RTC_HSE_DIV_21
- * @arg @ref LL_RCC_RTC_HSE_DIV_22
- * @arg @ref LL_RCC_RTC_HSE_DIV_23
- * @arg @ref LL_RCC_RTC_HSE_DIV_24
- * @arg @ref LL_RCC_RTC_HSE_DIV_25
- * @arg @ref LL_RCC_RTC_HSE_DIV_26
- * @arg @ref LL_RCC_RTC_HSE_DIV_27
- * @arg @ref LL_RCC_RTC_HSE_DIV_28
- * @arg @ref LL_RCC_RTC_HSE_DIV_29
- * @arg @ref LL_RCC_RTC_HSE_DIV_30
- * @arg @ref LL_RCC_RTC_HSE_DIV_31
- */
- __STATIC_INLINE uint32_t LL_RCC_GetRTC_HSEPrescaler(void)
- {
- return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_TIM_CLOCK_PRESCALER TIM
- * @{
- */
- /**
- * @brief Set Timers Clock Prescalers
- * @rmtoll DCKCFGR1 TIMPRE LL_RCC_SetTIMPrescaler
- * @param Prescaler This parameter can be one of the following values:
- * @arg @ref LL_RCC_TIM_PRESCALER_TWICE
- * @arg @ref LL_RCC_TIM_PRESCALER_FOUR_TIMES
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_SetTIMPrescaler(uint32_t Prescaler)
- {
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_TIMPRE, Prescaler);
- }
- /**
- * @brief Get Timers Clock Prescalers
- * @rmtoll DCKCFGR1 TIMPRE LL_RCC_GetTIMPrescaler
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_TIM_PRESCALER_TWICE
- * @arg @ref LL_RCC_TIM_PRESCALER_FOUR_TIMES
- */
- __STATIC_INLINE uint32_t LL_RCC_GetTIMPrescaler(void)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, RCC_DCKCFGR1_TIMPRE));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_PLL PLL
- * @{
- */
- /**
- * @brief Enable PLL
- * @rmtoll CR PLLON LL_RCC_PLL_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_Enable(void)
- {
- SET_BIT(RCC->CR, RCC_CR_PLLON);
- }
- /**
- * @brief Disable PLL
- * @note Cannot be disabled if the PLL clock is used as the system clock
- * @rmtoll CR PLLON LL_RCC_PLL_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_Disable(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_PLLON);
- }
- /**
- * @brief Check if PLL Ready
- * @rmtoll CR PLLRDY LL_RCC_PLL_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_IsReady(void)
- {
- return (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == (RCC_CR_PLLRDY));
- }
- /**
- * @brief Configure PLL used for SYSCLK Domain
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLP can be written only when PLL is disabled
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_SYS\n
- * PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_SYS\n
- * PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_SYS\n
- * PLLCFGR PLLP LL_RCC_PLL_ConfigDomain_SYS
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLP This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLP_DIV_2
- * @arg @ref LL_RCC_PLLP_DIV_4
- * @arg @ref LL_RCC_PLLP_DIV_6
- * @arg @ref LL_RCC_PLLP_DIV_8
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SYS(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM | RCC_PLLCFGR_PLLN | RCC_PLLCFGR_PLLP,
- Source | PLLM | PLLN << RCC_PLLCFGR_PLLN_Pos | PLLP);
- }
- /**
- * @brief Configure PLL used for 48Mhz domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLQ can be written only when PLL is disabled
- * @note This can be selected for USB, RNG, SDMMC1
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_48M\n
- * PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_48M\n
- * PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_48M\n
- * PLLCFGR PLLQ LL_RCC_PLL_ConfigDomain_48M
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLQ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLQ_DIV_2
- * @arg @ref LL_RCC_PLLQ_DIV_3
- * @arg @ref LL_RCC_PLLQ_DIV_4
- * @arg @ref LL_RCC_PLLQ_DIV_5
- * @arg @ref LL_RCC_PLLQ_DIV_6
- * @arg @ref LL_RCC_PLLQ_DIV_7
- * @arg @ref LL_RCC_PLLQ_DIV_8
- * @arg @ref LL_RCC_PLLQ_DIV_9
- * @arg @ref LL_RCC_PLLQ_DIV_10
- * @arg @ref LL_RCC_PLLQ_DIV_11
- * @arg @ref LL_RCC_PLLQ_DIV_12
- * @arg @ref LL_RCC_PLLQ_DIV_13
- * @arg @ref LL_RCC_PLLQ_DIV_14
- * @arg @ref LL_RCC_PLLQ_DIV_15
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_ConfigDomain_48M(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLQ)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM | RCC_PLLCFGR_PLLN | RCC_PLLCFGR_PLLQ,
- Source | PLLM | PLLN << RCC_PLLCFGR_PLLN_Pos | PLLQ);
- }
- #if defined(DSI)
- /**
- * @brief Configure PLL used for DSI clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLR can be written only when PLL is disabled
- * @note This can be selected for DSI
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_DSI\n
- * PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_DSI\n
- * PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_DSI\n
- * PLLCFGR PLLR LL_RCC_PLL_ConfigDomain_DSI
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLR This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLR_DIV_2
- * @arg @ref LL_RCC_PLLR_DIV_3
- * @arg @ref LL_RCC_PLLR_DIV_4
- * @arg @ref LL_RCC_PLLR_DIV_5
- * @arg @ref LL_RCC_PLLR_DIV_6
- * @arg @ref LL_RCC_PLLR_DIV_7
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_ConfigDomain_DSI(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM | RCC_PLLCFGR_PLLN | RCC_PLLCFGR_PLLR,
- Source | PLLM | PLLN << RCC_PLLCFGR_PLLN_Pos | PLLR);
- }
- #endif /* DSI */
- /**
- * @brief Configure PLL clock source
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLL_SetMainSource
- * @param PLLSource This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_SetMainSource(uint32_t PLLSource)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, PLLSource);
- }
- /**
- * @brief Get the oscillator used as PLL clock source.
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLL_GetMainSource
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetMainSource(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC));
- }
- /**
- * @brief Get Main PLL multiplication factor for VCO
- * @rmtoll PLLCFGR PLLN LL_RCC_PLL_GetN
- * @retval Between 50 and 432
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetN(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos);
- }
- /**
- * @brief Get Main PLL division factor for PLLP
- * @rmtoll PLLCFGR PLLP LL_RCC_PLL_GetP
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLP_DIV_2
- * @arg @ref LL_RCC_PLLP_DIV_4
- * @arg @ref LL_RCC_PLLP_DIV_6
- * @arg @ref LL_RCC_PLLP_DIV_8
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetP(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLP));
- }
- /**
- * @brief Get Main PLL division factor for PLLQ
- * @note used for PLL48MCLK selected for USB, RNG, SDMMC (48 MHz clock)
- * @rmtoll PLLCFGR PLLQ LL_RCC_PLL_GetQ
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLQ_DIV_2
- * @arg @ref LL_RCC_PLLQ_DIV_3
- * @arg @ref LL_RCC_PLLQ_DIV_4
- * @arg @ref LL_RCC_PLLQ_DIV_5
- * @arg @ref LL_RCC_PLLQ_DIV_6
- * @arg @ref LL_RCC_PLLQ_DIV_7
- * @arg @ref LL_RCC_PLLQ_DIV_8
- * @arg @ref LL_RCC_PLLQ_DIV_9
- * @arg @ref LL_RCC_PLLQ_DIV_10
- * @arg @ref LL_RCC_PLLQ_DIV_11
- * @arg @ref LL_RCC_PLLQ_DIV_12
- * @arg @ref LL_RCC_PLLQ_DIV_13
- * @arg @ref LL_RCC_PLLQ_DIV_14
- * @arg @ref LL_RCC_PLLQ_DIV_15
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetQ(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ));
- }
- #if defined(RCC_PLLCFGR_PLLR)
- /**
- * @brief Get Main PLL division factor for PLLR
- * @note used for PLLCLK (system clock)
- * @rmtoll PLLCFGR PLLR LL_RCC_PLL_GetR
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLR_DIV_2
- * @arg @ref LL_RCC_PLLR_DIV_3
- * @arg @ref LL_RCC_PLLR_DIV_4
- * @arg @ref LL_RCC_PLLR_DIV_5
- * @arg @ref LL_RCC_PLLR_DIV_6
- * @arg @ref LL_RCC_PLLR_DIV_7
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetR(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLR));
- }
- #endif /* RCC_PLLCFGR_PLLR */
- /**
- * @brief Get Division factor for the main PLL and other PLL
- * @rmtoll PLLCFGR PLLM LL_RCC_PLL_GetDivider
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetDivider(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLM));
- }
- /**
- * @brief Configure Spread Spectrum used for PLL
- * @note These bits must be written before enabling PLL
- * @rmtoll SSCGR MODPER LL_RCC_PLL_ConfigSpreadSpectrum\n
- * SSCGR INCSTEP LL_RCC_PLL_ConfigSpreadSpectrum\n
- * SSCGR SPREADSEL LL_RCC_PLL_ConfigSpreadSpectrum
- * @param Mod Between Min_Data=0 and Max_Data=8191
- * @param Inc Between Min_Data=0 and Max_Data=32767
- * @param Sel This parameter can be one of the following values:
- * @arg @ref LL_RCC_SPREAD_SELECT_CENTER
- * @arg @ref LL_RCC_SPREAD_SELECT_DOWN
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_ConfigSpreadSpectrum(uint32_t Mod, uint32_t Inc, uint32_t Sel)
- {
- MODIFY_REG(RCC->SSCGR, RCC_SSCGR_MODPER | RCC_SSCGR_INCSTEP | RCC_SSCGR_SPREADSEL, Mod | (Inc << RCC_SSCGR_INCSTEP_Pos) | Sel);
- }
- /**
- * @brief Get Spread Spectrum Modulation Period for PLL
- * @rmtoll SSCGR MODPER LL_RCC_PLL_GetPeriodModulation
- * @retval Between Min_Data=0 and Max_Data=8191
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetPeriodModulation(void)
- {
- return (uint32_t)(READ_BIT(RCC->SSCGR, RCC_SSCGR_MODPER));
- }
- /**
- * @brief Get Spread Spectrum Incrementation Step for PLL
- * @note Must be written before enabling PLL
- * @rmtoll SSCGR INCSTEP LL_RCC_PLL_GetStepIncrementation
- * @retval Between Min_Data=0 and Max_Data=32767
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetStepIncrementation(void)
- {
- return (uint32_t)(READ_BIT(RCC->SSCGR, RCC_SSCGR_INCSTEP) >> RCC_SSCGR_INCSTEP_Pos);
- }
- /**
- * @brief Get Spread Spectrum Selection for PLL
- * @note Must be written before enabling PLL
- * @rmtoll SSCGR SPREADSEL LL_RCC_PLL_GetSpreadSelection
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_SPREAD_SELECT_CENTER
- * @arg @ref LL_RCC_SPREAD_SELECT_DOWN
- */
- __STATIC_INLINE uint32_t LL_RCC_PLL_GetSpreadSelection(void)
- {
- return (uint32_t)(READ_BIT(RCC->SSCGR, RCC_SSCGR_SPREADSEL));
- }
- /**
- * @brief Enable Spread Spectrum for PLL.
- * @rmtoll SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Enable(void)
- {
- SET_BIT(RCC->SSCGR, RCC_SSCGR_SSCGEN);
- }
- /**
- * @brief Disable Spread Spectrum for PLL.
- * @rmtoll SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Disable(void)
- {
- CLEAR_BIT(RCC->SSCGR, RCC_SSCGR_SSCGEN);
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_PLLI2S PLLI2S
- * @{
- */
- /**
- * @brief Enable PLLI2S
- * @rmtoll CR PLLI2SON LL_RCC_PLLI2S_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLI2S_Enable(void)
- {
- SET_BIT(RCC->CR, RCC_CR_PLLI2SON);
- }
- /**
- * @brief Disable PLLI2S
- * @rmtoll CR PLLI2SON LL_RCC_PLLI2S_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLI2S_Disable(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_PLLI2SON);
- }
- /**
- * @brief Check if PLLI2S Ready
- * @rmtoll CR PLLI2SRDY LL_RCC_PLLI2S_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_IsReady(void)
- {
- return (READ_BIT(RCC->CR, RCC_CR_PLLI2SRDY) == (RCC_CR_PLLI2SRDY));
- }
- /**
- * @brief Configure PLLI2S used for SAI1 and SAI2 domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLQ can be written only when PLLI2S is disabled
- * @note This can be selected for SAI1 and SAI2
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLI2S_ConfigDomain_SAI\n
- * PLLCFGR PLLM LL_RCC_PLLI2S_ConfigDomain_SAI\n
- * PLLI2SCFGR PLLI2SN LL_RCC_PLLI2S_ConfigDomain_SAI\n
- * PLLI2SCFGR PLLI2SQ LL_RCC_PLLI2S_ConfigDomain_SAI\n
- * DCKCFGR1 PLLI2SDIVQ LL_RCC_PLLI2S_ConfigDomain_SAI
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLQ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SQ_DIV_15
- * @param PLLDIVQ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_32
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLI2S_ConfigDomain_SAI(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLQ, uint32_t PLLDIVQ)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SN | RCC_PLLI2SCFGR_PLLI2SQ, PLLN << RCC_PLLI2SCFGR_PLLI2SN_Pos | PLLQ);
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLI2SDIVQ, PLLDIVQ);
- }
- #if defined(SPDIFRX)
- /**
- * @brief Configure PLLI2S used for SPDIFRX domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLP can be written only when PLLI2S is disabled
- * @note This can be selected for SPDIFRX
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLI2S_ConfigDomain_SPDIFRX\n
- * PLLCFGR PLLM LL_RCC_PLLI2S_ConfigDomain_SPDIFRX\n
- * PLLI2SCFGR PLLI2SN LL_RCC_PLLI2S_ConfigDomain_SPDIFRX\n
- * PLLI2SCFGR PLLI2SP LL_RCC_PLLI2S_ConfigDomain_SPDIFRX
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLP This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SP_DIV_2
- * @arg @ref LL_RCC_PLLI2SP_DIV_4
- * @arg @ref LL_RCC_PLLI2SP_DIV_6
- * @arg @ref LL_RCC_PLLI2SP_DIV_8
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLI2S_ConfigDomain_SPDIFRX(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SN | RCC_PLLI2SCFGR_PLLI2SP, PLLN << RCC_PLLI2SCFGR_PLLI2SN_Pos | PLLP);
- }
- #endif /* SPDIFRX */
- /**
- * @brief Configure PLLI2S used for I2S1 domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLR can be written only when PLLI2S is disabled
- * @note This can be selected for I2S
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLI2S_ConfigDomain_I2S\n
- * PLLCFGR PLLM LL_RCC_PLLI2S_ConfigDomain_I2S\n
- * PLLI2SCFGR PLLI2SN LL_RCC_PLLI2S_ConfigDomain_I2S\n
- * PLLI2SCFGR PLLI2SR LL_RCC_PLLI2S_ConfigDomain_I2S
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLR This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SR_DIV_2
- * @arg @ref LL_RCC_PLLI2SR_DIV_3
- * @arg @ref LL_RCC_PLLI2SR_DIV_4
- * @arg @ref LL_RCC_PLLI2SR_DIV_5
- * @arg @ref LL_RCC_PLLI2SR_DIV_6
- * @arg @ref LL_RCC_PLLI2SR_DIV_7
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLI2S_ConfigDomain_I2S(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SN | RCC_PLLI2SCFGR_PLLI2SR, PLLN << RCC_PLLI2SCFGR_PLLI2SN_Pos | PLLR);
- }
- /**
- * @brief Get I2SPLL multiplication factor for VCO
- * @rmtoll PLLI2SCFGR PLLI2SN LL_RCC_PLLI2S_GetN
- * @retval Between 50 and 432
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_GetN(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos);
- }
- /**
- * @brief Get I2SPLL division factor for PLLI2SQ
- * @rmtoll PLLI2SCFGR PLLI2SQ LL_RCC_PLLI2S_GetQ
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SQ_DIV_15
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_GetQ(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SQ));
- }
- /**
- * @brief Get I2SPLL division factor for PLLI2SR
- * @note used for PLLI2SCLK (I2S clock)
- * @rmtoll PLLI2SCFGR PLLI2SR LL_RCC_PLLI2S_GetR
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SR_DIV_2
- * @arg @ref LL_RCC_PLLI2SR_DIV_3
- * @arg @ref LL_RCC_PLLI2SR_DIV_4
- * @arg @ref LL_RCC_PLLI2SR_DIV_5
- * @arg @ref LL_RCC_PLLI2SR_DIV_6
- * @arg @ref LL_RCC_PLLI2SR_DIV_7
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_GetR(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SR));
- }
- #if defined(RCC_PLLI2SCFGR_PLLI2SP)
- /**
- * @brief Get I2SPLL division factor for PLLI2SP
- * @note used for PLLSPDIFRXCLK (SPDIFRX clock)
- * @rmtoll PLLI2SCFGR PLLI2SP LL_RCC_PLLI2S_GetP
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SP_DIV_2
- * @arg @ref LL_RCC_PLLI2SP_DIV_4
- * @arg @ref LL_RCC_PLLI2SP_DIV_6
- * @arg @ref LL_RCC_PLLI2SP_DIV_8
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_GetP(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLI2SCFGR, RCC_PLLI2SCFGR_PLLI2SP));
- }
- #endif /* RCC_PLLI2SCFGR_PLLI2SP */
- /**
- * @brief Get I2SPLL division factor for PLLI2SDIVQ
- * @note used PLLSAI1CLK, PLLSAI2CLK selected (SAI1 and SAI2 clock)
- * @rmtoll DCKCFGR1 PLLI2SDIVQ LL_RCC_PLLI2S_GetDIVQ
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLI2SDIVQ_DIV_32
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLI2S_GetDIVQ(void)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLI2SDIVQ));
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_PLLSAI PLLSAI
- * @{
- */
- /**
- * @brief Enable PLLSAI
- * @rmtoll CR PLLSAION LL_RCC_PLLSAI_Enable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLSAI_Enable(void)
- {
- SET_BIT(RCC->CR, RCC_CR_PLLSAION);
- }
- /**
- * @brief Disable PLLSAI
- * @rmtoll CR PLLSAION LL_RCC_PLLSAI_Disable
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLSAI_Disable(void)
- {
- CLEAR_BIT(RCC->CR, RCC_CR_PLLSAION);
- }
- /**
- * @brief Check if PLLSAI Ready
- * @rmtoll CR PLLSAIRDY LL_RCC_PLLSAI_IsReady
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_IsReady(void)
- {
- return (READ_BIT(RCC->CR, RCC_CR_PLLSAIRDY) == (RCC_CR_PLLSAIRDY));
- }
- /**
- * @brief Configure PLLSAI used for SAI1 and SAI2 domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLQ can be written only when PLLSAI is disabled
- * @note This can be selected for SAI1 and SAI2
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLSAI_ConfigDomain_SAI\n
- * PLLCFGR PLLM LL_RCC_PLLSAI_ConfigDomain_SAI\n
- * PLLSAICFGR PLLSAIN LL_RCC_PLLSAI_ConfigDomain_SAI\n
- * PLLSAICFGR PLLSAIQ LL_RCC_PLLSAI_ConfigDomain_SAI\n
- * DCKCFGR1 PLLSAIDIVQ LL_RCC_PLLSAI_ConfigDomain_SAI
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLQ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIQ_DIV_15
- * @param PLLDIVQ This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_32
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLSAI_ConfigDomain_SAI(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLQ, uint32_t PLLDIVQ)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIN | RCC_PLLSAICFGR_PLLSAIQ, PLLN << RCC_PLLSAICFGR_PLLSAIN_Pos | PLLQ);
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLSAIDIVQ, PLLDIVQ);
- }
- /**
- * @brief Configure PLLSAI used for 48Mhz domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLP can be written only when PLLSAI is disabled
- * @note This can be selected for USB, RNG, SDMMC1
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLSAI_ConfigDomain_48M\n
- * PLLCFGR PLLM LL_RCC_PLLSAI_ConfigDomain_48M\n
- * PLLSAICFGR PLLSAIN LL_RCC_PLLSAI_ConfigDomain_48M\n
- * PLLSAICFGR PLLSAIP LL_RCC_PLLSAI_ConfigDomain_48M
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLP This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIP_DIV_2
- * @arg @ref LL_RCC_PLLSAIP_DIV_4
- * @arg @ref LL_RCC_PLLSAIP_DIV_6
- * @arg @ref LL_RCC_PLLSAIP_DIV_8
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLSAI_ConfigDomain_48M(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIN | RCC_PLLSAICFGR_PLLSAIP, PLLN << RCC_PLLSAICFGR_PLLSAIN_Pos | PLLP);
- }
- #if defined(LTDC)
- /**
- * @brief Configure PLLSAI used for LTDC domain clock
- * @note PLL Source and PLLM Divider can be written only when PLL,
- * PLLI2S and PLLSAI are disabled
- * @note PLLN/PLLR can be written only when PLLSAI is disabled
- * @note This can be selected for LTDC
- * @rmtoll PLLCFGR PLLSRC LL_RCC_PLLSAI_ConfigDomain_LTDC\n
- * PLLCFGR PLLM LL_RCC_PLLSAI_ConfigDomain_LTDC\n
- * PLLSAICFGR PLLSAIN LL_RCC_PLLSAI_ConfigDomain_LTDC\n
- * PLLSAICFGR PLLSAIR LL_RCC_PLLSAI_ConfigDomain_LTDC\n
- * DCKCFGR1 PLLSAIDIVR LL_RCC_PLLSAI_ConfigDomain_LTDC
- * @param Source This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSOURCE_HSI
- * @arg @ref LL_RCC_PLLSOURCE_HSE
- * @param PLLM This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLM_DIV_2
- * @arg @ref LL_RCC_PLLM_DIV_3
- * @arg @ref LL_RCC_PLLM_DIV_4
- * @arg @ref LL_RCC_PLLM_DIV_5
- * @arg @ref LL_RCC_PLLM_DIV_6
- * @arg @ref LL_RCC_PLLM_DIV_7
- * @arg @ref LL_RCC_PLLM_DIV_8
- * @arg @ref LL_RCC_PLLM_DIV_9
- * @arg @ref LL_RCC_PLLM_DIV_10
- * @arg @ref LL_RCC_PLLM_DIV_11
- * @arg @ref LL_RCC_PLLM_DIV_12
- * @arg @ref LL_RCC_PLLM_DIV_13
- * @arg @ref LL_RCC_PLLM_DIV_14
- * @arg @ref LL_RCC_PLLM_DIV_15
- * @arg @ref LL_RCC_PLLM_DIV_16
- * @arg @ref LL_RCC_PLLM_DIV_17
- * @arg @ref LL_RCC_PLLM_DIV_18
- * @arg @ref LL_RCC_PLLM_DIV_19
- * @arg @ref LL_RCC_PLLM_DIV_20
- * @arg @ref LL_RCC_PLLM_DIV_21
- * @arg @ref LL_RCC_PLLM_DIV_22
- * @arg @ref LL_RCC_PLLM_DIV_23
- * @arg @ref LL_RCC_PLLM_DIV_24
- * @arg @ref LL_RCC_PLLM_DIV_25
- * @arg @ref LL_RCC_PLLM_DIV_26
- * @arg @ref LL_RCC_PLLM_DIV_27
- * @arg @ref LL_RCC_PLLM_DIV_28
- * @arg @ref LL_RCC_PLLM_DIV_29
- * @arg @ref LL_RCC_PLLM_DIV_30
- * @arg @ref LL_RCC_PLLM_DIV_31
- * @arg @ref LL_RCC_PLLM_DIV_32
- * @arg @ref LL_RCC_PLLM_DIV_33
- * @arg @ref LL_RCC_PLLM_DIV_34
- * @arg @ref LL_RCC_PLLM_DIV_35
- * @arg @ref LL_RCC_PLLM_DIV_36
- * @arg @ref LL_RCC_PLLM_DIV_37
- * @arg @ref LL_RCC_PLLM_DIV_38
- * @arg @ref LL_RCC_PLLM_DIV_39
- * @arg @ref LL_RCC_PLLM_DIV_40
- * @arg @ref LL_RCC_PLLM_DIV_41
- * @arg @ref LL_RCC_PLLM_DIV_42
- * @arg @ref LL_RCC_PLLM_DIV_43
- * @arg @ref LL_RCC_PLLM_DIV_44
- * @arg @ref LL_RCC_PLLM_DIV_45
- * @arg @ref LL_RCC_PLLM_DIV_46
- * @arg @ref LL_RCC_PLLM_DIV_47
- * @arg @ref LL_RCC_PLLM_DIV_48
- * @arg @ref LL_RCC_PLLM_DIV_49
- * @arg @ref LL_RCC_PLLM_DIV_50
- * @arg @ref LL_RCC_PLLM_DIV_51
- * @arg @ref LL_RCC_PLLM_DIV_52
- * @arg @ref LL_RCC_PLLM_DIV_53
- * @arg @ref LL_RCC_PLLM_DIV_54
- * @arg @ref LL_RCC_PLLM_DIV_55
- * @arg @ref LL_RCC_PLLM_DIV_56
- * @arg @ref LL_RCC_PLLM_DIV_57
- * @arg @ref LL_RCC_PLLM_DIV_58
- * @arg @ref LL_RCC_PLLM_DIV_59
- * @arg @ref LL_RCC_PLLM_DIV_60
- * @arg @ref LL_RCC_PLLM_DIV_61
- * @arg @ref LL_RCC_PLLM_DIV_62
- * @arg @ref LL_RCC_PLLM_DIV_63
- * @param PLLN Between 50 and 432
- * @param PLLR This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIR_DIV_2
- * @arg @ref LL_RCC_PLLSAIR_DIV_3
- * @arg @ref LL_RCC_PLLSAIR_DIV_4
- * @arg @ref LL_RCC_PLLSAIR_DIV_5
- * @arg @ref LL_RCC_PLLSAIR_DIV_6
- * @arg @ref LL_RCC_PLLSAIR_DIV_7
- * @param PLLDIVR This parameter can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_16
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_PLLSAI_ConfigDomain_LTDC(uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR, uint32_t PLLDIVR)
- {
- MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM, Source | PLLM);
- MODIFY_REG(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIN | RCC_PLLSAICFGR_PLLSAIR, PLLN << RCC_PLLSAICFGR_PLLSAIN_Pos | PLLR);
- MODIFY_REG(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLSAIDIVR, PLLDIVR);
- }
- #endif /* LTDC */
- /**
- * @brief Get SAIPLL multiplication factor for VCO
- * @rmtoll PLLSAICFGR PLLSAIN LL_RCC_PLLSAI_GetN
- * @retval Between 50 and 432
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetN(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIN) >> RCC_PLLSAICFGR_PLLSAIN_Pos);
- }
- /**
- * @brief Get SAIPLL division factor for PLLSAIQ
- * @rmtoll PLLSAICFGR PLLSAIQ LL_RCC_PLLSAI_GetQ
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIQ_DIV_15
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetQ(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIQ));
- }
- #if defined(RCC_PLLSAICFGR_PLLSAIR)
- /**
- * @brief Get SAIPLL division factor for PLLSAIR
- * @note used for PLLSAICLK (SAI clock)
- * @rmtoll PLLSAICFGR PLLSAIR LL_RCC_PLLSAI_GetR
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIR_DIV_2
- * @arg @ref LL_RCC_PLLSAIR_DIV_3
- * @arg @ref LL_RCC_PLLSAIR_DIV_4
- * @arg @ref LL_RCC_PLLSAIR_DIV_5
- * @arg @ref LL_RCC_PLLSAIR_DIV_6
- * @arg @ref LL_RCC_PLLSAIR_DIV_7
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetR(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIR));
- }
- #endif /* RCC_PLLSAICFGR_PLLSAIR */
- /**
- * @brief Get SAIPLL division factor for PLLSAIP
- * @note used for PLL48MCLK (48M domain clock)
- * @rmtoll PLLSAICFGR PLLSAIP LL_RCC_PLLSAI_GetP
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIP_DIV_2
- * @arg @ref LL_RCC_PLLSAIP_DIV_4
- * @arg @ref LL_RCC_PLLSAIP_DIV_6
- * @arg @ref LL_RCC_PLLSAIP_DIV_8
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetP(void)
- {
- return (uint32_t)(READ_BIT(RCC->PLLSAICFGR, RCC_PLLSAICFGR_PLLSAIP));
- }
- /**
- * @brief Get SAIPLL division factor for PLLSAIDIVQ
- * @note used PLLSAI1CLK, PLLSAI2CLK selected (SAI1 and SAI2 clock)
- * @rmtoll DCKCFGR1 PLLSAIDIVQ LL_RCC_PLLSAI_GetDIVQ
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_1
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_3
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_5
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_6
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_7
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_9
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_10
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_11
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_12
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_13
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_14
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_15
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_16
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_17
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_18
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_19
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_20
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_21
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_22
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_23
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_24
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_25
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_26
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_27
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_28
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_29
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_30
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_31
- * @arg @ref LL_RCC_PLLSAIDIVQ_DIV_32
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetDIVQ(void)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLSAIDIVQ));
- }
- #if defined(RCC_DCKCFGR1_PLLSAIDIVR)
- /**
- * @brief Get SAIPLL division factor for PLLSAIDIVR
- * @note used for LTDC domain clock
- * @rmtoll DCKCFGR1 PLLSAIDIVR LL_RCC_PLLSAI_GetDIVR
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_2
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_4
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_8
- * @arg @ref LL_RCC_PLLSAIDIVR_DIV_16
- */
- __STATIC_INLINE uint32_t LL_RCC_PLLSAI_GetDIVR(void)
- {
- return (uint32_t)(READ_BIT(RCC->DCKCFGR1, RCC_DCKCFGR1_PLLSAIDIVR));
- }
- #endif /* RCC_DCKCFGR1_PLLSAIDIVR */
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_FLAG_Management FLAG Management
- * @{
- */
- /**
- * @brief Clear LSI ready interrupt flag
- * @rmtoll CIR LSIRDYC LL_RCC_ClearFlag_LSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_LSIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_LSIRDYC);
- }
- /**
- * @brief Clear LSE ready interrupt flag
- * @rmtoll CIR LSERDYC LL_RCC_ClearFlag_LSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_LSERDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_LSERDYC);
- }
- /**
- * @brief Clear HSI ready interrupt flag
- * @rmtoll CIR HSIRDYC LL_RCC_ClearFlag_HSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_HSIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_HSIRDYC);
- }
- /**
- * @brief Clear HSE ready interrupt flag
- * @rmtoll CIR HSERDYC LL_RCC_ClearFlag_HSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_HSERDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_HSERDYC);
- }
- /**
- * @brief Clear PLL ready interrupt flag
- * @rmtoll CIR PLLRDYC LL_RCC_ClearFlag_PLLRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_PLLRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLRDYC);
- }
- /**
- * @brief Clear PLLI2S ready interrupt flag
- * @rmtoll CIR PLLI2SRDYC LL_RCC_ClearFlag_PLLI2SRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_PLLI2SRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYC);
- }
- /**
- * @brief Clear PLLSAI ready interrupt flag
- * @rmtoll CIR PLLSAIRDYC LL_RCC_ClearFlag_PLLSAIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_PLLSAIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYC);
- }
- /**
- * @brief Clear Clock security system interrupt flag
- * @rmtoll CIR CSSC LL_RCC_ClearFlag_HSECSS
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearFlag_HSECSS(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_CSSC);
- }
- /**
- * @brief Check if LSI ready interrupt occurred or not
- * @rmtoll CIR LSIRDYF LL_RCC_IsActiveFlag_LSIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LSIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_LSIRDYF) == (RCC_CIR_LSIRDYF));
- }
- /**
- * @brief Check if LSE ready interrupt occurred or not
- * @rmtoll CIR LSERDYF LL_RCC_IsActiveFlag_LSERDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LSERDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_LSERDYF) == (RCC_CIR_LSERDYF));
- }
- /**
- * @brief Check if HSI ready interrupt occurred or not
- * @rmtoll CIR HSIRDYF LL_RCC_IsActiveFlag_HSIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_HSIRDYF) == (RCC_CIR_HSIRDYF));
- }
- /**
- * @brief Check if HSE ready interrupt occurred or not
- * @rmtoll CIR HSERDYF LL_RCC_IsActiveFlag_HSERDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSERDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_HSERDYF) == (RCC_CIR_HSERDYF));
- }
- /**
- * @brief Check if PLL ready interrupt occurred or not
- * @rmtoll CIR PLLRDYF LL_RCC_IsActiveFlag_PLLRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLLRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLRDYF) == (RCC_CIR_PLLRDYF));
- }
- /**
- * @brief Check if PLLI2S ready interrupt occurred or not
- * @rmtoll CIR PLLI2SRDYF LL_RCC_IsActiveFlag_PLLI2SRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLLI2SRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYF) == (RCC_CIR_PLLI2SRDYF));
- }
- /**
- * @brief Check if PLLSAI ready interrupt occurred or not
- * @rmtoll CIR PLLSAIRDYF LL_RCC_IsActiveFlag_PLLSAIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLLSAIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYF) == (RCC_CIR_PLLSAIRDYF));
- }
- /**
- * @brief Check if Clock security system interrupt occurred or not
- * @rmtoll CIR CSSF LL_RCC_IsActiveFlag_HSECSS
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSECSS(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_CSSF) == (RCC_CIR_CSSF));
- }
- /**
- * @brief Check if RCC flag Independent Watchdog reset is set or not.
- * @rmtoll CSR IWDGRSTF LL_RCC_IsActiveFlag_IWDGRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_IWDGRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_IWDGRSTF) == (RCC_CSR_IWDGRSTF));
- }
- /**
- * @brief Check if RCC flag Low Power reset is set or not.
- * @rmtoll CSR LPWRRSTF LL_RCC_IsActiveFlag_LPWRRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LPWRRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_LPWRRSTF) == (RCC_CSR_LPWRRSTF));
- }
- /**
- * @brief Check if RCC flag Pin reset is set or not.
- * @rmtoll CSR PINRSTF LL_RCC_IsActiveFlag_PINRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PINRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_PINRSTF) == (RCC_CSR_PINRSTF));
- }
- /**
- * @brief Check if RCC flag POR/PDR reset is set or not.
- * @rmtoll CSR PORRSTF LL_RCC_IsActiveFlag_PORRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PORRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_PORRSTF) == (RCC_CSR_PORRSTF));
- }
- /**
- * @brief Check if RCC flag Software reset is set or not.
- * @rmtoll CSR SFTRSTF LL_RCC_IsActiveFlag_SFTRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_SFTRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_SFTRSTF) == (RCC_CSR_SFTRSTF));
- }
- /**
- * @brief Check if RCC flag Window Watchdog reset is set or not.
- * @rmtoll CSR WWDGRSTF LL_RCC_IsActiveFlag_WWDGRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_WWDGRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_WWDGRSTF) == (RCC_CSR_WWDGRSTF));
- }
- /**
- * @brief Check if RCC flag BOR reset is set or not.
- * @rmtoll CSR BORRSTF LL_RCC_IsActiveFlag_BORRST
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_BORRST(void)
- {
- return (READ_BIT(RCC->CSR, RCC_CSR_BORRSTF) == (RCC_CSR_BORRSTF));
- }
- /**
- * @brief Set RMVF bit to clear the reset flags.
- * @rmtoll CSR RMVF LL_RCC_ClearResetFlags
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_ClearResetFlags(void)
- {
- SET_BIT(RCC->CSR, RCC_CSR_RMVF);
- }
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_IT_Management IT Management
- * @{
- */
- /**
- * @brief Enable LSI ready interrupt
- * @rmtoll CIR LSIRDYIE LL_RCC_EnableIT_LSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_LSIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_LSIRDYIE);
- }
- /**
- * @brief Enable LSE ready interrupt
- * @rmtoll CIR LSERDYIE LL_RCC_EnableIT_LSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_LSERDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_LSERDYIE);
- }
- /**
- * @brief Enable HSI ready interrupt
- * @rmtoll CIR HSIRDYIE LL_RCC_EnableIT_HSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_HSIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_HSIRDYIE);
- }
- /**
- * @brief Enable HSE ready interrupt
- * @rmtoll CIR HSERDYIE LL_RCC_EnableIT_HSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_HSERDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_HSERDYIE);
- }
- /**
- * @brief Enable PLL ready interrupt
- * @rmtoll CIR PLLRDYIE LL_RCC_EnableIT_PLLRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_PLLRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLRDYIE);
- }
- /**
- * @brief Enable PLLI2S ready interrupt
- * @rmtoll CIR PLLI2SRDYIE LL_RCC_EnableIT_PLLI2SRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_PLLI2SRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYIE);
- }
- /**
- * @brief Enable PLLSAI ready interrupt
- * @rmtoll CIR PLLSAIRDYIE LL_RCC_EnableIT_PLLSAIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_EnableIT_PLLSAIRDY(void)
- {
- SET_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYIE);
- }
- /**
- * @brief Disable LSI ready interrupt
- * @rmtoll CIR LSIRDYIE LL_RCC_DisableIT_LSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_LSIRDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_LSIRDYIE);
- }
- /**
- * @brief Disable LSE ready interrupt
- * @rmtoll CIR LSERDYIE LL_RCC_DisableIT_LSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_LSERDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_LSERDYIE);
- }
- /**
- * @brief Disable HSI ready interrupt
- * @rmtoll CIR HSIRDYIE LL_RCC_DisableIT_HSIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_HSIRDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_HSIRDYIE);
- }
- /**
- * @brief Disable HSE ready interrupt
- * @rmtoll CIR HSERDYIE LL_RCC_DisableIT_HSERDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_HSERDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_HSERDYIE);
- }
- /**
- * @brief Disable PLL ready interrupt
- * @rmtoll CIR PLLRDYIE LL_RCC_DisableIT_PLLRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_PLLRDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_PLLRDYIE);
- }
- /**
- * @brief Disable PLLI2S ready interrupt
- * @rmtoll CIR PLLI2SRDYIE LL_RCC_DisableIT_PLLI2SRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_PLLI2SRDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYIE);
- }
- /**
- * @brief Disable PLLSAI ready interrupt
- * @rmtoll CIR PLLSAIRDYIE LL_RCC_DisableIT_PLLSAIRDY
- * @retval None
- */
- __STATIC_INLINE void LL_RCC_DisableIT_PLLSAIRDY(void)
- {
- CLEAR_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYIE);
- }
- /**
- * @brief Checks if LSI ready interrupt source is enabled or disabled.
- * @rmtoll CIR LSIRDYIE LL_RCC_IsEnabledIT_LSIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_LSIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_LSIRDYIE) == (RCC_CIR_LSIRDYIE));
- }
- /**
- * @brief Checks if LSE ready interrupt source is enabled or disabled.
- * @rmtoll CIR LSERDYIE LL_RCC_IsEnabledIT_LSERDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_LSERDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_LSERDYIE) == (RCC_CIR_LSERDYIE));
- }
- /**
- * @brief Checks if HSI ready interrupt source is enabled or disabled.
- * @rmtoll CIR HSIRDYIE LL_RCC_IsEnabledIT_HSIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_HSIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_HSIRDYIE) == (RCC_CIR_HSIRDYIE));
- }
- /**
- * @brief Checks if HSE ready interrupt source is enabled or disabled.
- * @rmtoll CIR HSERDYIE LL_RCC_IsEnabledIT_HSERDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_HSERDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_HSERDYIE) == (RCC_CIR_HSERDYIE));
- }
- /**
- * @brief Checks if PLL ready interrupt source is enabled or disabled.
- * @rmtoll CIR PLLRDYIE LL_RCC_IsEnabledIT_PLLRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_PLLRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLRDYIE) == (RCC_CIR_PLLRDYIE));
- }
- /**
- * @brief Checks if PLLI2S ready interrupt source is enabled or disabled.
- * @rmtoll CIR PLLI2SRDYIE LL_RCC_IsEnabledIT_PLLI2SRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_PLLI2SRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYIE) == (RCC_CIR_PLLI2SRDYIE));
- }
- /**
- * @brief Checks if PLLSAI ready interrupt source is enabled or disabled.
- * @rmtoll CIR PLLSAIRDYIE LL_RCC_IsEnabledIT_PLLSAIRDY
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_RCC_IsEnabledIT_PLLSAIRDY(void)
- {
- return (READ_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYIE) == (RCC_CIR_PLLSAIRDYIE));
- }
- /**
- * @}
- */
- #if defined(USE_FULL_LL_DRIVER)
- /** @defgroup RCC_LL_EF_Init De-initialization function
- * @{
- */
- ErrorStatus LL_RCC_DeInit(void);
- /**
- * @}
- */
- /** @defgroup RCC_LL_EF_Get_Freq Get system and peripherals clocks frequency functions
- * @{
- */
- void LL_RCC_GetSystemClocksFreq(LL_RCC_ClocksTypeDef *RCC_Clocks);
- uint32_t LL_RCC_GetUSARTClockFreq(uint32_t USARTxSource);
- uint32_t LL_RCC_GetUARTClockFreq(uint32_t UARTxSource);
- uint32_t LL_RCC_GetI2CClockFreq(uint32_t I2CxSource);
- uint32_t LL_RCC_GetLPTIMClockFreq(uint32_t LPTIMxSource);
- uint32_t LL_RCC_GetSAIClockFreq(uint32_t SAIxSource);
- uint32_t LL_RCC_GetSDMMCClockFreq(uint32_t SDMMCxSource);
- uint32_t LL_RCC_GetRNGClockFreq(uint32_t RNGxSource);
- uint32_t LL_RCC_GetUSBClockFreq(uint32_t USBxSource);
- #if defined(DFSDM1_Channel0)
- uint32_t LL_RCC_GetDFSDMClockFreq(uint32_t DFSDMxSource);
- uint32_t LL_RCC_GetDFSDMAudioClockFreq(uint32_t DFSDMxSource);
- #endif /* DFSDM1_Channel0 */
- uint32_t LL_RCC_GetI2SClockFreq(uint32_t I2SxSource);
- #if defined(CEC)
- uint32_t LL_RCC_GetCECClockFreq(uint32_t CECxSource);
- #endif /* CEC */
- #if defined(LTDC)
- uint32_t LL_RCC_GetLTDCClockFreq(uint32_t LTDCxSource);
- #endif /* LTDC */
- #if defined(SPDIFRX)
- uint32_t LL_RCC_GetSPDIFRXClockFreq(uint32_t SPDIFRXxSource);
- #endif /* SPDIFRX */
- #if defined(DSI)
- uint32_t LL_RCC_GetDSIClockFreq(uint32_t DSIxSource);
- #endif /* DSI */
- /**
- * @}
- */
- #endif /* USE_FULL_LL_DRIVER */
- /**
- * @}
- */
- /**
- * @}
- */
- #endif /* defined(RCC) */
- /**
- * @}
- */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __STM32F7xx_LL_RCC_H */
|