stm32_hal_legacy.h 230 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334
  1. /**
  2. ******************************************************************************
  3. * @file stm32_hal_legacy.h
  4. * @author MCD Application Team
  5. * @brief This file contains aliases definition for the STM32Cube HAL constants
  6. * macros and functions maintained for legacy purpose.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2021 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef STM32_HAL_LEGACY
  21. #define STM32_HAL_LEGACY
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. /* Exported types ------------------------------------------------------------*/
  27. /* Exported constants --------------------------------------------------------*/
  28. /** @defgroup HAL_AES_Aliased_Defines HAL CRYP Aliased Defines maintained for legacy purpose
  29. * @{
  30. */
  31. #define AES_FLAG_RDERR CRYP_FLAG_RDERR
  32. #define AES_FLAG_WRERR CRYP_FLAG_WRERR
  33. #define AES_CLEARFLAG_CCF CRYP_CLEARFLAG_CCF
  34. #define AES_CLEARFLAG_RDERR CRYP_CLEARFLAG_RDERR
  35. #define AES_CLEARFLAG_WRERR CRYP_CLEARFLAG_WRERR
  36. #if defined(STM32U5) || defined(STM32H7) || defined(STM32MP1)
  37. #define CRYP_DATATYPE_32B CRYP_NO_SWAP
  38. #define CRYP_DATATYPE_16B CRYP_HALFWORD_SWAP
  39. #define CRYP_DATATYPE_8B CRYP_BYTE_SWAP
  40. #define CRYP_DATATYPE_1B CRYP_BIT_SWAP
  41. #if defined(STM32U5)
  42. #define CRYP_CCF_CLEAR CRYP_CLEAR_CCF
  43. #define CRYP_ERR_CLEAR CRYP_CLEAR_RWEIF
  44. #endif /* STM32U5 */
  45. #endif /* STM32U5 || STM32H7 || STM32MP1 */
  46. /**
  47. * @}
  48. */
  49. /** @defgroup HAL_ADC_Aliased_Defines HAL ADC Aliased Defines maintained for legacy purpose
  50. * @{
  51. */
  52. #define ADC_RESOLUTION12b ADC_RESOLUTION_12B
  53. #define ADC_RESOLUTION10b ADC_RESOLUTION_10B
  54. #define ADC_RESOLUTION8b ADC_RESOLUTION_8B
  55. #define ADC_RESOLUTION6b ADC_RESOLUTION_6B
  56. #define OVR_DATA_OVERWRITTEN ADC_OVR_DATA_OVERWRITTEN
  57. #define OVR_DATA_PRESERVED ADC_OVR_DATA_PRESERVED
  58. #define EOC_SINGLE_CONV ADC_EOC_SINGLE_CONV
  59. #define EOC_SEQ_CONV ADC_EOC_SEQ_CONV
  60. #define EOC_SINGLE_SEQ_CONV ADC_EOC_SINGLE_SEQ_CONV
  61. #define REGULAR_GROUP ADC_REGULAR_GROUP
  62. #define INJECTED_GROUP ADC_INJECTED_GROUP
  63. #define REGULAR_INJECTED_GROUP ADC_REGULAR_INJECTED_GROUP
  64. #define AWD_EVENT ADC_AWD_EVENT
  65. #define AWD1_EVENT ADC_AWD1_EVENT
  66. #define AWD2_EVENT ADC_AWD2_EVENT
  67. #define AWD3_EVENT ADC_AWD3_EVENT
  68. #define OVR_EVENT ADC_OVR_EVENT
  69. #define JQOVF_EVENT ADC_JQOVF_EVENT
  70. #define ALL_CHANNELS ADC_ALL_CHANNELS
  71. #define REGULAR_CHANNELS ADC_REGULAR_CHANNELS
  72. #define INJECTED_CHANNELS ADC_INJECTED_CHANNELS
  73. #define SYSCFG_FLAG_SENSOR_ADC ADC_FLAG_SENSOR
  74. #define SYSCFG_FLAG_VREF_ADC ADC_FLAG_VREFINT
  75. #define ADC_CLOCKPRESCALER_PCLK_DIV1 ADC_CLOCK_SYNC_PCLK_DIV1
  76. #define ADC_CLOCKPRESCALER_PCLK_DIV2 ADC_CLOCK_SYNC_PCLK_DIV2
  77. #define ADC_CLOCKPRESCALER_PCLK_DIV4 ADC_CLOCK_SYNC_PCLK_DIV4
  78. #define ADC_CLOCKPRESCALER_PCLK_DIV6 ADC_CLOCK_SYNC_PCLK_DIV6
  79. #define ADC_CLOCKPRESCALER_PCLK_DIV8 ADC_CLOCK_SYNC_PCLK_DIV8
  80. #define ADC_EXTERNALTRIG0_T6_TRGO ADC_EXTERNALTRIGCONV_T6_TRGO
  81. #define ADC_EXTERNALTRIG1_T21_CC2 ADC_EXTERNALTRIGCONV_T21_CC2
  82. #define ADC_EXTERNALTRIG2_T2_TRGO ADC_EXTERNALTRIGCONV_T2_TRGO
  83. #define ADC_EXTERNALTRIG3_T2_CC4 ADC_EXTERNALTRIGCONV_T2_CC4
  84. #define ADC_EXTERNALTRIG4_T22_TRGO ADC_EXTERNALTRIGCONV_T22_TRGO
  85. #define ADC_EXTERNALTRIG7_EXT_IT11 ADC_EXTERNALTRIGCONV_EXT_IT11
  86. #define ADC_CLOCK_ASYNC ADC_CLOCK_ASYNC_DIV1
  87. #define ADC_EXTERNALTRIG_EDGE_NONE ADC_EXTERNALTRIGCONVEDGE_NONE
  88. #define ADC_EXTERNALTRIG_EDGE_RISING ADC_EXTERNALTRIGCONVEDGE_RISING
  89. #define ADC_EXTERNALTRIG_EDGE_FALLING ADC_EXTERNALTRIGCONVEDGE_FALLING
  90. #define ADC_EXTERNALTRIG_EDGE_RISINGFALLING ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING
  91. #define ADC_SAMPLETIME_2CYCLE_5 ADC_SAMPLETIME_2CYCLES_5
  92. #define HAL_ADC_STATE_BUSY_REG HAL_ADC_STATE_REG_BUSY
  93. #define HAL_ADC_STATE_BUSY_INJ HAL_ADC_STATE_INJ_BUSY
  94. #define HAL_ADC_STATE_EOC_REG HAL_ADC_STATE_REG_EOC
  95. #define HAL_ADC_STATE_EOC_INJ HAL_ADC_STATE_INJ_EOC
  96. #define HAL_ADC_STATE_ERROR HAL_ADC_STATE_ERROR_INTERNAL
  97. #define HAL_ADC_STATE_BUSY HAL_ADC_STATE_BUSY_INTERNAL
  98. #define HAL_ADC_STATE_AWD HAL_ADC_STATE_AWD1
  99. #if defined(STM32H7)
  100. #define ADC_CHANNEL_VBAT_DIV4 ADC_CHANNEL_VBAT
  101. #endif /* STM32H7 */
  102. #if defined(STM32U5)
  103. #define ADC_SAMPLETIME_5CYCLE ADC_SAMPLETIME_5CYCLES
  104. #define ADC_SAMPLETIME_391CYCLES_5 ADC_SAMPLETIME_391CYCLES
  105. #define ADC4_SAMPLETIME_160CYCLES_5 ADC4_SAMPLETIME_814CYCLES_5
  106. #endif /* STM32U5 */
  107. #if defined(STM32H5)
  108. #define ADC_CHANNEL_VCORE ADC_CHANNEL_VDDCORE
  109. #endif /* STM32H5 */
  110. /**
  111. * @}
  112. */
  113. /** @defgroup HAL_CEC_Aliased_Defines HAL CEC Aliased Defines maintained for legacy purpose
  114. * @{
  115. */
  116. #define __HAL_CEC_GET_IT __HAL_CEC_GET_FLAG
  117. /**
  118. * @}
  119. */
  120. /** @defgroup HAL_COMP_Aliased_Defines HAL COMP Aliased Defines maintained for legacy purpose
  121. * @{
  122. */
  123. #define COMP_WINDOWMODE_DISABLED COMP_WINDOWMODE_DISABLE
  124. #define COMP_WINDOWMODE_ENABLED COMP_WINDOWMODE_ENABLE
  125. #define COMP_EXTI_LINE_COMP1_EVENT COMP_EXTI_LINE_COMP1
  126. #define COMP_EXTI_LINE_COMP2_EVENT COMP_EXTI_LINE_COMP2
  127. #define COMP_EXTI_LINE_COMP3_EVENT COMP_EXTI_LINE_COMP3
  128. #define COMP_EXTI_LINE_COMP4_EVENT COMP_EXTI_LINE_COMP4
  129. #define COMP_EXTI_LINE_COMP5_EVENT COMP_EXTI_LINE_COMP5
  130. #define COMP_EXTI_LINE_COMP6_EVENT COMP_EXTI_LINE_COMP6
  131. #define COMP_EXTI_LINE_COMP7_EVENT COMP_EXTI_LINE_COMP7
  132. #if defined(STM32L0)
  133. #define COMP_LPTIMCONNECTION_ENABLED ((uint32_t)0x00000003U) /*!< COMPX output generic naming: connected to LPTIM
  134. input 1 for COMP1, LPTIM input 2 for COMP2 */
  135. #endif
  136. #define COMP_OUTPUT_COMP6TIM2OCREFCLR COMP_OUTPUT_COMP6_TIM2OCREFCLR
  137. #if defined(STM32F373xC) || defined(STM32F378xx)
  138. #define COMP_OUTPUT_TIM3IC1 COMP_OUTPUT_COMP1_TIM3IC1
  139. #define COMP_OUTPUT_TIM3OCREFCLR COMP_OUTPUT_COMP1_TIM3OCREFCLR
  140. #endif /* STM32F373xC || STM32F378xx */
  141. #if defined(STM32L0) || defined(STM32L4)
  142. #define COMP_WINDOWMODE_ENABLE COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON
  143. #define COMP_NONINVERTINGINPUT_IO1 COMP_INPUT_PLUS_IO1
  144. #define COMP_NONINVERTINGINPUT_IO2 COMP_INPUT_PLUS_IO2
  145. #define COMP_NONINVERTINGINPUT_IO3 COMP_INPUT_PLUS_IO3
  146. #define COMP_NONINVERTINGINPUT_IO4 COMP_INPUT_PLUS_IO4
  147. #define COMP_NONINVERTINGINPUT_IO5 COMP_INPUT_PLUS_IO5
  148. #define COMP_NONINVERTINGINPUT_IO6 COMP_INPUT_PLUS_IO6
  149. #define COMP_INVERTINGINPUT_1_4VREFINT COMP_INPUT_MINUS_1_4VREFINT
  150. #define COMP_INVERTINGINPUT_1_2VREFINT COMP_INPUT_MINUS_1_2VREFINT
  151. #define COMP_INVERTINGINPUT_3_4VREFINT COMP_INPUT_MINUS_3_4VREFINT
  152. #define COMP_INVERTINGINPUT_VREFINT COMP_INPUT_MINUS_VREFINT
  153. #define COMP_INVERTINGINPUT_DAC1_CH1 COMP_INPUT_MINUS_DAC1_CH1
  154. #define COMP_INVERTINGINPUT_DAC1_CH2 COMP_INPUT_MINUS_DAC1_CH2
  155. #define COMP_INVERTINGINPUT_DAC1 COMP_INPUT_MINUS_DAC1_CH1
  156. #define COMP_INVERTINGINPUT_DAC2 COMP_INPUT_MINUS_DAC1_CH2
  157. #define COMP_INVERTINGINPUT_IO1 COMP_INPUT_MINUS_IO1
  158. #if defined(STM32L0)
  159. /* Issue fixed on STM32L0 COMP driver: only 2 dedicated IO (IO1 and IO2), */
  160. /* IO2 was wrongly assigned to IO shared with DAC and IO3 was corresponding */
  161. /* to the second dedicated IO (only for COMP2). */
  162. #define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_DAC1_CH2
  163. #define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO2
  164. #else
  165. #define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_IO2
  166. #define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO3
  167. #endif
  168. #define COMP_INVERTINGINPUT_IO4 COMP_INPUT_MINUS_IO4
  169. #define COMP_INVERTINGINPUT_IO5 COMP_INPUT_MINUS_IO5
  170. #define COMP_OUTPUTLEVEL_LOW COMP_OUTPUT_LEVEL_LOW
  171. #define COMP_OUTPUTLEVEL_HIGH COMP_OUTPUT_LEVEL_HIGH
  172. /* Note: Literal "COMP_FLAG_LOCK" kept for legacy purpose. */
  173. /* To check COMP lock state, use macro "__HAL_COMP_IS_LOCKED()". */
  174. #if defined(COMP_CSR_LOCK)
  175. #define COMP_FLAG_LOCK COMP_CSR_LOCK
  176. #elif defined(COMP_CSR_COMP1LOCK)
  177. #define COMP_FLAG_LOCK COMP_CSR_COMP1LOCK
  178. #elif defined(COMP_CSR_COMPxLOCK)
  179. #define COMP_FLAG_LOCK COMP_CSR_COMPxLOCK
  180. #endif
  181. #if defined(STM32L4)
  182. #define COMP_BLANKINGSRCE_TIM1OC5 COMP_BLANKINGSRC_TIM1_OC5_COMP1
  183. #define COMP_BLANKINGSRCE_TIM2OC3 COMP_BLANKINGSRC_TIM2_OC3_COMP1
  184. #define COMP_BLANKINGSRCE_TIM3OC3 COMP_BLANKINGSRC_TIM3_OC3_COMP1
  185. #define COMP_BLANKINGSRCE_TIM3OC4 COMP_BLANKINGSRC_TIM3_OC4_COMP2
  186. #define COMP_BLANKINGSRCE_TIM8OC5 COMP_BLANKINGSRC_TIM8_OC5_COMP2
  187. #define COMP_BLANKINGSRCE_TIM15OC1 COMP_BLANKINGSRC_TIM15_OC1_COMP2
  188. #define COMP_BLANKINGSRCE_NONE COMP_BLANKINGSRC_NONE
  189. #endif
  190. #if defined(STM32L0)
  191. #define COMP_MODE_HIGHSPEED COMP_POWERMODE_MEDIUMSPEED
  192. #define COMP_MODE_LOWSPEED COMP_POWERMODE_ULTRALOWPOWER
  193. #else
  194. #define COMP_MODE_HIGHSPEED COMP_POWERMODE_HIGHSPEED
  195. #define COMP_MODE_MEDIUMSPEED COMP_POWERMODE_MEDIUMSPEED
  196. #define COMP_MODE_LOWPOWER COMP_POWERMODE_LOWPOWER
  197. #define COMP_MODE_ULTRALOWPOWER COMP_POWERMODE_ULTRALOWPOWER
  198. #endif
  199. #endif
  200. #if defined(STM32U5)
  201. #define __HAL_COMP_COMP1_EXTI_CLEAR_RASING_FLAG __HAL_COMP_COMP1_EXTI_CLEAR_RISING_FLAG
  202. #endif
  203. /**
  204. * @}
  205. */
  206. /** @defgroup HAL_CORTEX_Aliased_Defines HAL CORTEX Aliased Defines maintained for legacy purpose
  207. * @{
  208. */
  209. #define __HAL_CORTEX_SYSTICKCLK_CONFIG HAL_SYSTICK_CLKSourceConfig
  210. #if defined(STM32U5)
  211. #define MPU_DEVICE_nGnRnE MPU_DEVICE_NGNRNE
  212. #define MPU_DEVICE_nGnRE MPU_DEVICE_NGNRE
  213. #define MPU_DEVICE_nGRE MPU_DEVICE_NGRE
  214. #endif /* STM32U5 */
  215. /**
  216. * @}
  217. */
  218. /** @defgroup CRC_Aliases CRC API aliases
  219. * @{
  220. */
  221. #if defined(STM32H5) || defined(STM32C0)
  222. #else
  223. #define HAL_CRC_Input_Data_Reverse HAL_CRCEx_Input_Data_Reverse /*!< Aliased to HAL_CRCEx_Input_Data_Reverse for
  224. inter STM32 series compatibility */
  225. #define HAL_CRC_Output_Data_Reverse HAL_CRCEx_Output_Data_Reverse /*!< Aliased to HAL_CRCEx_Output_Data_Reverse for
  226. inter STM32 series compatibility */
  227. #endif
  228. /**
  229. * @}
  230. */
  231. /** @defgroup HAL_CRC_Aliased_Defines HAL CRC Aliased Defines maintained for legacy purpose
  232. * @{
  233. */
  234. #define CRC_OUTPUTDATA_INVERSION_DISABLED CRC_OUTPUTDATA_INVERSION_DISABLE
  235. #define CRC_OUTPUTDATA_INVERSION_ENABLED CRC_OUTPUTDATA_INVERSION_ENABLE
  236. /**
  237. * @}
  238. */
  239. /** @defgroup HAL_DAC_Aliased_Defines HAL DAC Aliased Defines maintained for legacy purpose
  240. * @{
  241. */
  242. #define DAC1_CHANNEL_1 DAC_CHANNEL_1
  243. #define DAC1_CHANNEL_2 DAC_CHANNEL_2
  244. #define DAC2_CHANNEL_1 DAC_CHANNEL_1
  245. #define DAC_WAVE_NONE 0x00000000U
  246. #define DAC_WAVE_NOISE DAC_CR_WAVE1_0
  247. #define DAC_WAVE_TRIANGLE DAC_CR_WAVE1_1
  248. #define DAC_WAVEGENERATION_NONE DAC_WAVE_NONE
  249. #define DAC_WAVEGENERATION_NOISE DAC_WAVE_NOISE
  250. #define DAC_WAVEGENERATION_TRIANGLE DAC_WAVE_TRIANGLE
  251. #if defined(STM32G4) || defined(STM32L5) || defined(STM32H7) || defined (STM32U5)
  252. #define DAC_CHIPCONNECT_DISABLE DAC_CHIPCONNECT_EXTERNAL
  253. #define DAC_CHIPCONNECT_ENABLE DAC_CHIPCONNECT_INTERNAL
  254. #endif
  255. #if defined(STM32U5)
  256. #define DAC_TRIGGER_STOP_LPTIM1_OUT DAC_TRIGGER_STOP_LPTIM1_CH1
  257. #define DAC_TRIGGER_STOP_LPTIM3_OUT DAC_TRIGGER_STOP_LPTIM3_CH1
  258. #define DAC_TRIGGER_LPTIM1_OUT DAC_TRIGGER_LPTIM1_CH1
  259. #define DAC_TRIGGER_LPTIM3_OUT DAC_TRIGGER_LPTIM3_CH1
  260. #endif
  261. #if defined(STM32H5)
  262. #define DAC_TRIGGER_LPTIM1_OUT DAC_TRIGGER_LPTIM1_CH1
  263. #define DAC_TRIGGER_LPTIM2_OUT DAC_TRIGGER_LPTIM2_CH1
  264. #endif
  265. #if defined(STM32L1) || defined(STM32L4) || defined(STM32G0) || defined(STM32L5) || defined(STM32H7) || \
  266. defined(STM32F4) || defined(STM32G4)
  267. #define HAL_DAC_MSP_INIT_CB_ID HAL_DAC_MSPINIT_CB_ID
  268. #define HAL_DAC_MSP_DEINIT_CB_ID HAL_DAC_MSPDEINIT_CB_ID
  269. #endif
  270. /**
  271. * @}
  272. */
  273. /** @defgroup HAL_DMA_Aliased_Defines HAL DMA Aliased Defines maintained for legacy purpose
  274. * @{
  275. */
  276. #define HAL_REMAPDMA_ADC_DMA_CH2 DMA_REMAP_ADC_DMA_CH2
  277. #define HAL_REMAPDMA_USART1_TX_DMA_CH4 DMA_REMAP_USART1_TX_DMA_CH4
  278. #define HAL_REMAPDMA_USART1_RX_DMA_CH5 DMA_REMAP_USART1_RX_DMA_CH5
  279. #define HAL_REMAPDMA_TIM16_DMA_CH4 DMA_REMAP_TIM16_DMA_CH4
  280. #define HAL_REMAPDMA_TIM17_DMA_CH2 DMA_REMAP_TIM17_DMA_CH2
  281. #define HAL_REMAPDMA_USART3_DMA_CH32 DMA_REMAP_USART3_DMA_CH32
  282. #define HAL_REMAPDMA_TIM16_DMA_CH6 DMA_REMAP_TIM16_DMA_CH6
  283. #define HAL_REMAPDMA_TIM17_DMA_CH7 DMA_REMAP_TIM17_DMA_CH7
  284. #define HAL_REMAPDMA_SPI2_DMA_CH67 DMA_REMAP_SPI2_DMA_CH67
  285. #define HAL_REMAPDMA_USART2_DMA_CH67 DMA_REMAP_USART2_DMA_CH67
  286. #define HAL_REMAPDMA_I2C1_DMA_CH76 DMA_REMAP_I2C1_DMA_CH76
  287. #define HAL_REMAPDMA_TIM1_DMA_CH6 DMA_REMAP_TIM1_DMA_CH6
  288. #define HAL_REMAPDMA_TIM2_DMA_CH7 DMA_REMAP_TIM2_DMA_CH7
  289. #define HAL_REMAPDMA_TIM3_DMA_CH6 DMA_REMAP_TIM3_DMA_CH6
  290. #define IS_HAL_REMAPDMA IS_DMA_REMAP
  291. #define __HAL_REMAPDMA_CHANNEL_ENABLE __HAL_DMA_REMAP_CHANNEL_ENABLE
  292. #define __HAL_REMAPDMA_CHANNEL_DISABLE __HAL_DMA_REMAP_CHANNEL_DISABLE
  293. #if defined(STM32L4)
  294. #define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0
  295. #define HAL_DMAMUX1_REQUEST_GEN_EXTI1 HAL_DMAMUX1_REQ_GEN_EXTI1
  296. #define HAL_DMAMUX1_REQUEST_GEN_EXTI2 HAL_DMAMUX1_REQ_GEN_EXTI2
  297. #define HAL_DMAMUX1_REQUEST_GEN_EXTI3 HAL_DMAMUX1_REQ_GEN_EXTI3
  298. #define HAL_DMAMUX1_REQUEST_GEN_EXTI4 HAL_DMAMUX1_REQ_GEN_EXTI4
  299. #define HAL_DMAMUX1_REQUEST_GEN_EXTI5 HAL_DMAMUX1_REQ_GEN_EXTI5
  300. #define HAL_DMAMUX1_REQUEST_GEN_EXTI6 HAL_DMAMUX1_REQ_GEN_EXTI6
  301. #define HAL_DMAMUX1_REQUEST_GEN_EXTI7 HAL_DMAMUX1_REQ_GEN_EXTI7
  302. #define HAL_DMAMUX1_REQUEST_GEN_EXTI8 HAL_DMAMUX1_REQ_GEN_EXTI8
  303. #define HAL_DMAMUX1_REQUEST_GEN_EXTI9 HAL_DMAMUX1_REQ_GEN_EXTI9
  304. #define HAL_DMAMUX1_REQUEST_GEN_EXTI10 HAL_DMAMUX1_REQ_GEN_EXTI10
  305. #define HAL_DMAMUX1_REQUEST_GEN_EXTI11 HAL_DMAMUX1_REQ_GEN_EXTI11
  306. #define HAL_DMAMUX1_REQUEST_GEN_EXTI12 HAL_DMAMUX1_REQ_GEN_EXTI12
  307. #define HAL_DMAMUX1_REQUEST_GEN_EXTI13 HAL_DMAMUX1_REQ_GEN_EXTI13
  308. #define HAL_DMAMUX1_REQUEST_GEN_EXTI14 HAL_DMAMUX1_REQ_GEN_EXTI14
  309. #define HAL_DMAMUX1_REQUEST_GEN_EXTI15 HAL_DMAMUX1_REQ_GEN_EXTI15
  310. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT
  311. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT
  312. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT
  313. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH3_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH3_EVT
  314. #define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT
  315. #define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT
  316. #define HAL_DMAMUX1_REQUEST_GEN_DSI_TE HAL_DMAMUX1_REQ_GEN_DSI_TE
  317. #define HAL_DMAMUX1_REQUEST_GEN_DSI_EOT HAL_DMAMUX1_REQ_GEN_DSI_EOT
  318. #define HAL_DMAMUX1_REQUEST_GEN_DMA2D_EOT HAL_DMAMUX1_REQ_GEN_DMA2D_EOT
  319. #define HAL_DMAMUX1_REQUEST_GEN_LTDC_IT HAL_DMAMUX1_REQ_GEN_LTDC_IT
  320. #define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT
  321. #define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING
  322. #define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING
  323. #define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING
  324. #if defined(STM32L4R5xx) || defined(STM32L4R9xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || \
  325. defined(STM32L4S7xx) || defined(STM32L4S9xx)
  326. #define DMA_REQUEST_DCMI_PSSI DMA_REQUEST_DCMI
  327. #endif
  328. #endif /* STM32L4 */
  329. #if defined(STM32G0)
  330. #define DMA_REQUEST_DAC1_CHANNEL1 DMA_REQUEST_DAC1_CH1
  331. #define DMA_REQUEST_DAC1_CHANNEL2 DMA_REQUEST_DAC1_CH2
  332. #define DMA_REQUEST_TIM16_TRIG_COM DMA_REQUEST_TIM16_COM
  333. #define DMA_REQUEST_TIM17_TRIG_COM DMA_REQUEST_TIM17_COM
  334. #define LL_DMAMUX_REQ_TIM16_TRIG_COM LL_DMAMUX_REQ_TIM16_COM
  335. #define LL_DMAMUX_REQ_TIM17_TRIG_COM LL_DMAMUX_REQ_TIM17_COM
  336. #endif
  337. #if defined(STM32H7)
  338. #define DMA_REQUEST_DAC1 DMA_REQUEST_DAC1_CH1
  339. #define DMA_REQUEST_DAC2 DMA_REQUEST_DAC1_CH2
  340. #define BDMA_REQUEST_LP_UART1_RX BDMA_REQUEST_LPUART1_RX
  341. #define BDMA_REQUEST_LP_UART1_TX BDMA_REQUEST_LPUART1_TX
  342. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT
  343. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT
  344. #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT
  345. #define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT
  346. #define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT
  347. #define HAL_DMAMUX1_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX1_REQ_GEN_LPTIM3_OUT
  348. #define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0
  349. #define HAL_DMAMUX1_REQUEST_GEN_TIM12_TRGO HAL_DMAMUX1_REQ_GEN_TIM12_TRGO
  350. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH0_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT
  351. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH1_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT
  352. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH2_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT
  353. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH3_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT
  354. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH4_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT
  355. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH5_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT
  356. #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH6_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT
  357. #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP
  358. #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP
  359. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM2_WKUP
  360. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX2_REQ_GEN_LPTIM2_OUT
  361. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM3_WKUP
  362. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX2_REQ_GEN_LPTIM3_OUT
  363. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM4_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM4_WKUP
  364. #define HAL_DMAMUX2_REQUEST_GEN_LPTIM5_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM5_WKUP
  365. #define HAL_DMAMUX2_REQUEST_GEN_I2C4_WKUP HAL_DMAMUX2_REQ_GEN_I2C4_WKUP
  366. #define HAL_DMAMUX2_REQUEST_GEN_SPI6_WKUP HAL_DMAMUX2_REQ_GEN_SPI6_WKUP
  367. #define HAL_DMAMUX2_REQUEST_GEN_COMP1_OUT HAL_DMAMUX2_REQ_GEN_COMP1_OUT
  368. #define HAL_DMAMUX2_REQUEST_GEN_COMP2_OUT HAL_DMAMUX2_REQ_GEN_COMP2_OUT
  369. #define HAL_DMAMUX2_REQUEST_GEN_RTC_WKUP HAL_DMAMUX2_REQ_GEN_RTC_WKUP
  370. #define HAL_DMAMUX2_REQUEST_GEN_EXTI0 HAL_DMAMUX2_REQ_GEN_EXTI0
  371. #define HAL_DMAMUX2_REQUEST_GEN_EXTI2 HAL_DMAMUX2_REQ_GEN_EXTI2
  372. #define HAL_DMAMUX2_REQUEST_GEN_I2C4_IT_EVT HAL_DMAMUX2_REQ_GEN_I2C4_IT_EVT
  373. #define HAL_DMAMUX2_REQUEST_GEN_SPI6_IT HAL_DMAMUX2_REQ_GEN_SPI6_IT
  374. #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_TX_IT
  375. #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_RX_IT
  376. #define HAL_DMAMUX2_REQUEST_GEN_ADC3_IT HAL_DMAMUX2_REQ_GEN_ADC3_IT
  377. #define HAL_DMAMUX2_REQUEST_GEN_ADC3_AWD1_OUT HAL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT
  378. #define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH0_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH0_IT
  379. #define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH1_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT
  380. #define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT
  381. #define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING
  382. #define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING
  383. #define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING
  384. #define DFSDM_FILTER_EXT_TRIG_LPTIM1 DFSDM_FILTER_EXT_TRIG_LPTIM1_OUT
  385. #define DFSDM_FILTER_EXT_TRIG_LPTIM2 DFSDM_FILTER_EXT_TRIG_LPTIM2_OUT
  386. #define DFSDM_FILTER_EXT_TRIG_LPTIM3 DFSDM_FILTER_EXT_TRIG_LPTIM3_OUT
  387. #define DAC_TRIGGER_LP1_OUT DAC_TRIGGER_LPTIM1_OUT
  388. #define DAC_TRIGGER_LP2_OUT DAC_TRIGGER_LPTIM2_OUT
  389. #endif /* STM32H7 */
  390. #if defined(STM32U5)
  391. #define GPDMA1_REQUEST_DCMI GPDMA1_REQUEST_DCMI_PSSI
  392. #endif /* STM32U5 */
  393. /**
  394. * @}
  395. */
  396. /** @defgroup HAL_FLASH_Aliased_Defines HAL FLASH Aliased Defines maintained for legacy purpose
  397. * @{
  398. */
  399. #define TYPEPROGRAM_BYTE FLASH_TYPEPROGRAM_BYTE
  400. #define TYPEPROGRAM_HALFWORD FLASH_TYPEPROGRAM_HALFWORD
  401. #define TYPEPROGRAM_WORD FLASH_TYPEPROGRAM_WORD
  402. #define TYPEPROGRAM_DOUBLEWORD FLASH_TYPEPROGRAM_DOUBLEWORD
  403. #define TYPEERASE_SECTORS FLASH_TYPEERASE_SECTORS
  404. #define TYPEERASE_PAGES FLASH_TYPEERASE_PAGES
  405. #define TYPEERASE_PAGEERASE FLASH_TYPEERASE_PAGES
  406. #define TYPEERASE_MASSERASE FLASH_TYPEERASE_MASSERASE
  407. #define WRPSTATE_DISABLE OB_WRPSTATE_DISABLE
  408. #define WRPSTATE_ENABLE OB_WRPSTATE_ENABLE
  409. #define HAL_FLASH_TIMEOUT_VALUE FLASH_TIMEOUT_VALUE
  410. #define OBEX_PCROP OPTIONBYTE_PCROP
  411. #define OBEX_BOOTCONFIG OPTIONBYTE_BOOTCONFIG
  412. #define PCROPSTATE_DISABLE OB_PCROP_STATE_DISABLE
  413. #define PCROPSTATE_ENABLE OB_PCROP_STATE_ENABLE
  414. #define TYPEERASEDATA_BYTE FLASH_TYPEERASEDATA_BYTE
  415. #define TYPEERASEDATA_HALFWORD FLASH_TYPEERASEDATA_HALFWORD
  416. #define TYPEERASEDATA_WORD FLASH_TYPEERASEDATA_WORD
  417. #define TYPEPROGRAMDATA_BYTE FLASH_TYPEPROGRAMDATA_BYTE
  418. #define TYPEPROGRAMDATA_HALFWORD FLASH_TYPEPROGRAMDATA_HALFWORD
  419. #define TYPEPROGRAMDATA_WORD FLASH_TYPEPROGRAMDATA_WORD
  420. #define TYPEPROGRAMDATA_FASTBYTE FLASH_TYPEPROGRAMDATA_FASTBYTE
  421. #define TYPEPROGRAMDATA_FASTHALFWORD FLASH_TYPEPROGRAMDATA_FASTHALFWORD
  422. #define TYPEPROGRAMDATA_FASTWORD FLASH_TYPEPROGRAMDATA_FASTWORD
  423. #define PAGESIZE FLASH_PAGE_SIZE
  424. #define TYPEPROGRAM_FASTBYTE FLASH_TYPEPROGRAM_BYTE
  425. #define TYPEPROGRAM_FASTHALFWORD FLASH_TYPEPROGRAM_HALFWORD
  426. #define TYPEPROGRAM_FASTWORD FLASH_TYPEPROGRAM_WORD
  427. #define VOLTAGE_RANGE_1 FLASH_VOLTAGE_RANGE_1
  428. #define VOLTAGE_RANGE_2 FLASH_VOLTAGE_RANGE_2
  429. #define VOLTAGE_RANGE_3 FLASH_VOLTAGE_RANGE_3
  430. #define VOLTAGE_RANGE_4 FLASH_VOLTAGE_RANGE_4
  431. #define TYPEPROGRAM_FAST FLASH_TYPEPROGRAM_FAST
  432. #define TYPEPROGRAM_FAST_AND_LAST FLASH_TYPEPROGRAM_FAST_AND_LAST
  433. #define WRPAREA_BANK1_AREAA OB_WRPAREA_BANK1_AREAA
  434. #define WRPAREA_BANK1_AREAB OB_WRPAREA_BANK1_AREAB
  435. #define WRPAREA_BANK2_AREAA OB_WRPAREA_BANK2_AREAA
  436. #define WRPAREA_BANK2_AREAB OB_WRPAREA_BANK2_AREAB
  437. #define IWDG_STDBY_FREEZE OB_IWDG_STDBY_FREEZE
  438. #define IWDG_STDBY_ACTIVE OB_IWDG_STDBY_RUN
  439. #define IWDG_STOP_FREEZE OB_IWDG_STOP_FREEZE
  440. #define IWDG_STOP_ACTIVE OB_IWDG_STOP_RUN
  441. #define FLASH_ERROR_NONE HAL_FLASH_ERROR_NONE
  442. #define FLASH_ERROR_RD HAL_FLASH_ERROR_RD
  443. #define FLASH_ERROR_PG HAL_FLASH_ERROR_PROG
  444. #define FLASH_ERROR_PGP HAL_FLASH_ERROR_PGS
  445. #define FLASH_ERROR_WRP HAL_FLASH_ERROR_WRP
  446. #define FLASH_ERROR_OPTV HAL_FLASH_ERROR_OPTV
  447. #define FLASH_ERROR_OPTVUSR HAL_FLASH_ERROR_OPTVUSR
  448. #define FLASH_ERROR_PROG HAL_FLASH_ERROR_PROG
  449. #define FLASH_ERROR_OP HAL_FLASH_ERROR_OPERATION
  450. #define FLASH_ERROR_PGA HAL_FLASH_ERROR_PGA
  451. #define FLASH_ERROR_SIZE HAL_FLASH_ERROR_SIZE
  452. #define FLASH_ERROR_SIZ HAL_FLASH_ERROR_SIZE
  453. #define FLASH_ERROR_PGS HAL_FLASH_ERROR_PGS
  454. #define FLASH_ERROR_MIS HAL_FLASH_ERROR_MIS
  455. #define FLASH_ERROR_FAST HAL_FLASH_ERROR_FAST
  456. #define FLASH_ERROR_FWWERR HAL_FLASH_ERROR_FWWERR
  457. #define FLASH_ERROR_NOTZERO HAL_FLASH_ERROR_NOTZERO
  458. #define FLASH_ERROR_OPERATION HAL_FLASH_ERROR_OPERATION
  459. #define FLASH_ERROR_ERS HAL_FLASH_ERROR_ERS
  460. #define OB_WDG_SW OB_IWDG_SW
  461. #define OB_WDG_HW OB_IWDG_HW
  462. #define OB_SDADC12_VDD_MONITOR_SET OB_SDACD_VDD_MONITOR_SET
  463. #define OB_SDADC12_VDD_MONITOR_RESET OB_SDACD_VDD_MONITOR_RESET
  464. #define OB_RAM_PARITY_CHECK_SET OB_SRAM_PARITY_SET
  465. #define OB_RAM_PARITY_CHECK_RESET OB_SRAM_PARITY_RESET
  466. #define IS_OB_SDADC12_VDD_MONITOR IS_OB_SDACD_VDD_MONITOR
  467. #define OB_RDP_LEVEL0 OB_RDP_LEVEL_0
  468. #define OB_RDP_LEVEL1 OB_RDP_LEVEL_1
  469. #define OB_RDP_LEVEL2 OB_RDP_LEVEL_2
  470. #if defined(STM32G0) || defined(STM32C0)
  471. #define OB_BOOT_LOCK_DISABLE OB_BOOT_ENTRY_FORCED_NONE
  472. #define OB_BOOT_LOCK_ENABLE OB_BOOT_ENTRY_FORCED_FLASH
  473. #else
  474. #define OB_BOOT_ENTRY_FORCED_NONE OB_BOOT_LOCK_DISABLE
  475. #define OB_BOOT_ENTRY_FORCED_FLASH OB_BOOT_LOCK_ENABLE
  476. #endif
  477. #if defined(STM32H7)
  478. #define FLASH_FLAG_SNECCE_BANK1RR FLASH_FLAG_SNECCERR_BANK1
  479. #define FLASH_FLAG_DBECCE_BANK1RR FLASH_FLAG_DBECCERR_BANK1
  480. #define FLASH_FLAG_STRBER_BANK1R FLASH_FLAG_STRBERR_BANK1
  481. #define FLASH_FLAG_SNECCE_BANK2RR FLASH_FLAG_SNECCERR_BANK2
  482. #define FLASH_FLAG_DBECCE_BANK2RR FLASH_FLAG_DBECCERR_BANK2
  483. #define FLASH_FLAG_STRBER_BANK2R FLASH_FLAG_STRBERR_BANK2
  484. #define FLASH_FLAG_WDW FLASH_FLAG_WBNE
  485. #define OB_WRP_SECTOR_All OB_WRP_SECTOR_ALL
  486. #endif /* STM32H7 */
  487. #if defined(STM32U5)
  488. #define OB_USER_nRST_STOP OB_USER_NRST_STOP
  489. #define OB_USER_nRST_STDBY OB_USER_NRST_STDBY
  490. #define OB_USER_nRST_SHDW OB_USER_NRST_SHDW
  491. #define OB_USER_nSWBOOT0 OB_USER_NSWBOOT0
  492. #define OB_USER_nBOOT0 OB_USER_NBOOT0
  493. #define OB_nBOOT0_RESET OB_NBOOT0_RESET
  494. #define OB_nBOOT0_SET OB_NBOOT0_SET
  495. #define OB_USER_SRAM134_RST OB_USER_SRAM_RST
  496. #define OB_SRAM134_RST_ERASE OB_SRAM_RST_ERASE
  497. #define OB_SRAM134_RST_NOT_ERASE OB_SRAM_RST_NOT_ERASE
  498. #endif /* STM32U5 */
  499. /**
  500. * @}
  501. */
  502. /** @defgroup HAL_JPEG_Aliased_Macros HAL JPEG Aliased Macros maintained for legacy purpose
  503. * @{
  504. */
  505. #if defined(STM32H7)
  506. #define __HAL_RCC_JPEG_CLK_ENABLE __HAL_RCC_JPGDECEN_CLK_ENABLE
  507. #define __HAL_RCC_JPEG_CLK_DISABLE __HAL_RCC_JPGDECEN_CLK_DISABLE
  508. #define __HAL_RCC_JPEG_FORCE_RESET __HAL_RCC_JPGDECRST_FORCE_RESET
  509. #define __HAL_RCC_JPEG_RELEASE_RESET __HAL_RCC_JPGDECRST_RELEASE_RESET
  510. #define __HAL_RCC_JPEG_CLK_SLEEP_ENABLE __HAL_RCC_JPGDEC_CLK_SLEEP_ENABLE
  511. #define __HAL_RCC_JPEG_CLK_SLEEP_DISABLE __HAL_RCC_JPGDEC_CLK_SLEEP_DISABLE
  512. #endif /* STM32H7 */
  513. /**
  514. * @}
  515. */
  516. /** @defgroup HAL_SYSCFG_Aliased_Defines HAL SYSCFG Aliased Defines maintained for legacy purpose
  517. * @{
  518. */
  519. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PA9 I2C_FASTMODEPLUS_PA9
  520. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PA10 I2C_FASTMODEPLUS_PA10
  521. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB6 I2C_FASTMODEPLUS_PB6
  522. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB7 I2C_FASTMODEPLUS_PB7
  523. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB8 I2C_FASTMODEPLUS_PB8
  524. #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB9 I2C_FASTMODEPLUS_PB9
  525. #define HAL_SYSCFG_FASTMODEPLUS_I2C1 I2C_FASTMODEPLUS_I2C1
  526. #define HAL_SYSCFG_FASTMODEPLUS_I2C2 I2C_FASTMODEPLUS_I2C2
  527. #define HAL_SYSCFG_FASTMODEPLUS_I2C3 I2C_FASTMODEPLUS_I2C3
  528. #if defined(STM32G4)
  529. #define HAL_SYSCFG_EnableIOAnalogSwitchBooster HAL_SYSCFG_EnableIOSwitchBooster
  530. #define HAL_SYSCFG_DisableIOAnalogSwitchBooster HAL_SYSCFG_DisableIOSwitchBooster
  531. #define HAL_SYSCFG_EnableIOAnalogSwitchVDD HAL_SYSCFG_EnableIOSwitchVDD
  532. #define HAL_SYSCFG_DisableIOAnalogSwitchVDD HAL_SYSCFG_DisableIOSwitchVDD
  533. #endif /* STM32G4 */
  534. #if defined(STM32H5)
  535. #define SYSCFG_IT_FPU_IOC SBS_IT_FPU_IOC
  536. #define SYSCFG_IT_FPU_DZC SBS_IT_FPU_DZC
  537. #define SYSCFG_IT_FPU_UFC SBS_IT_FPU_UFC
  538. #define SYSCFG_IT_FPU_OFC SBS_IT_FPU_OFC
  539. #define SYSCFG_IT_FPU_IDC SBS_IT_FPU_IDC
  540. #define SYSCFG_IT_FPU_IXC SBS_IT_FPU_IXC
  541. #define SYSCFG_BREAK_FLASH_ECC SBS_BREAK_FLASH_ECC
  542. #define SYSCFG_BREAK_PVD SBS_BREAK_PVD
  543. #define SYSCFG_BREAK_SRAM_ECC SBS_BREAK_SRAM_ECC
  544. #define SYSCFG_BREAK_LOCKUP SBS_BREAK_LOCKUP
  545. #define SYSCFG_VREFBUF_VOLTAGE_SCALE0 VREFBUF_VOLTAGE_SCALE0
  546. #define SYSCFG_VREFBUF_VOLTAGE_SCALE1 VREFBUF_VOLTAGE_SCALE1
  547. #define SYSCFG_VREFBUF_VOLTAGE_SCALE2 VREFBUF_VOLTAGE_SCALE2
  548. #define SYSCFG_VREFBUF_VOLTAGE_SCALE3 VREFBUF_VOLTAGE_SCALE3
  549. #define SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE VREFBUF_HIGH_IMPEDANCE_DISABLE
  550. #define SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE VREFBUF_HIGH_IMPEDANCE_ENABLE
  551. #define SYSCFG_FASTMODEPLUS_PB6 SBS_FASTMODEPLUS_PB6
  552. #define SYSCFG_FASTMODEPLUS_PB7 SBS_FASTMODEPLUS_PB7
  553. #define SYSCFG_FASTMODEPLUS_PB8 SBS_FASTMODEPLUS_PB8
  554. #define SYSCFG_FASTMODEPLUS_PB9 SBS_FASTMODEPLUS_PB9
  555. #define SYSCFG_ETH_MII SBS_ETH_MII
  556. #define SYSCFG_ETH_RMII SBS_ETH_RMII
  557. #define IS_SYSCFG_ETHERNET_CONFIG IS_SBS_ETHERNET_CONFIG
  558. #define SYSCFG_MEMORIES_ERASE_FLAG_IPMEE SBS_MEMORIES_ERASE_FLAG_IPMEE
  559. #define SYSCFG_MEMORIES_ERASE_FLAG_MCLR SBS_MEMORIES_ERASE_FLAG_MCLR
  560. #define IS_SYSCFG_MEMORIES_ERASE_FLAG IS_SBS_MEMORIES_ERASE_FLAG
  561. #define IS_SYSCFG_CODE_CONFIG IS_SBS_CODE_CONFIG
  562. #define SYSCFG_MPU_NSEC SBS_MPU_NSEC
  563. #define SYSCFG_VTOR_NSEC SBS_VTOR_NSEC
  564. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  565. #define SYSCFG_SAU SBS_SAU
  566. #define SYSCFG_MPU_SEC SBS_MPU_SEC
  567. #define SYSCFG_VTOR_AIRCR_SEC SBS_VTOR_AIRCR_SEC
  568. #define SYSCFG_LOCK_ALL SBS_LOCK_ALL
  569. #else
  570. #define SYSCFG_LOCK_ALL SBS_LOCK_ALL
  571. #endif /* __ARM_FEATURE_CMSE */
  572. #define SYSCFG_CLK SBS_CLK
  573. #define SYSCFG_CLASSB SBS_CLASSB
  574. #define SYSCFG_FPU SBS_FPU
  575. #define SYSCFG_ALL SBS_ALL
  576. #define SYSCFG_SEC SBS_SEC
  577. #define SYSCFG_NSEC SBS_NSEC
  578. #define __HAL_SYSCFG_FPU_INTERRUPT_ENABLE __HAL_SBS_FPU_INTERRUPT_ENABLE
  579. #define __HAL_SYSCFG_FPU_INTERRUPT_DISABLE __HAL_SBS_FPU_INTERRUPT_DISABLE
  580. #define __HAL_SYSCFG_BREAK_ECC_LOCK __HAL_SBS_BREAK_ECC_LOCK
  581. #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK __HAL_SBS_BREAK_LOCKUP_LOCK
  582. #define __HAL_SYSCFG_BREAK_PVD_LOCK __HAL_SBS_BREAK_PVD_LOCK
  583. #define __HAL_SYSCFG_BREAK_SRAM_ECC_LOCK __HAL_SBS_BREAK_SRAM_ECC_LOCK
  584. #define __HAL_SYSCFG_FASTMODEPLUS_ENABLE __HAL_SBS_FASTMODEPLUS_ENABLE
  585. #define __HAL_SYSCFG_FASTMODEPLUS_DISABLE __HAL_SBS_FASTMODEPLUS_DISABLE
  586. #define __HAL_SYSCFG_GET_MEMORIES_ERASE_STATUS __HAL_SBS_GET_MEMORIES_ERASE_STATUS
  587. #define __HAL_SYSCFG_CLEAR_MEMORIES_ERASE_STATUS __HAL_SBS_CLEAR_MEMORIES_ERASE_STATUS
  588. #define IS_SYSCFG_FPU_INTERRUPT IS_SBS_FPU_INTERRUPT
  589. #define IS_SYSCFG_BREAK_CONFIG IS_SBS_BREAK_CONFIG
  590. #define IS_SYSCFG_VREFBUF_VOLTAGE_SCALE IS_VREFBUF_VOLTAGE_SCALE
  591. #define IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE IS_VREFBUF_HIGH_IMPEDANCE
  592. #define IS_SYSCFG_VREFBUF_TRIMMING IS_VREFBUF_TRIMMING
  593. #define IS_SYSCFG_FASTMODEPLUS IS_SBS_FASTMODEPLUS
  594. #define IS_SYSCFG_ITEMS_ATTRIBUTES IS_SBS_ITEMS_ATTRIBUTES
  595. #define IS_SYSCFG_ATTRIBUTES IS_SBS_ATTRIBUTES
  596. #define IS_SYSCFG_LOCK_ITEMS IS_SBS_LOCK_ITEMS
  597. #define HAL_SYSCFG_VREFBUF_VoltageScalingConfig HAL_VREFBUF_VoltageScalingConfig
  598. #define HAL_SYSCFG_VREFBUF_HighImpedanceConfig HAL_VREFBUF_HighImpedanceConfig
  599. #define HAL_SYSCFG_VREFBUF_TrimmingConfig HAL_VREFBUF_TrimmingConfig
  600. #define HAL_SYSCFG_EnableVREFBUF HAL_EnableVREFBUF
  601. #define HAL_SYSCFG_DisableVREFBUF HAL_DisableVREFBUF
  602. #define HAL_SYSCFG_EnableIOAnalogSwitchBooster HAL_SBS_EnableIOAnalogSwitchBooster
  603. #define HAL_SYSCFG_DisableIOAnalogSwitchBooster HAL_SBS_DisableIOAnalogSwitchBooster
  604. #define HAL_SYSCFG_ETHInterfaceSelect HAL_SBS_ETHInterfaceSelect
  605. #define HAL_SYSCFG_Lock HAL_SBS_Lock
  606. #define HAL_SYSCFG_GetLock HAL_SBS_GetLock
  607. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  608. #define HAL_SYSCFG_ConfigAttributes HAL_SBS_ConfigAttributes
  609. #define HAL_SYSCFG_GetConfigAttributes HAL_SBS_GetConfigAttributes
  610. #endif /* __ARM_FEATURE_CMSE */
  611. #endif /* STM32H5 */
  612. /**
  613. * @}
  614. */
  615. /** @defgroup LL_FMC_Aliased_Defines LL FMC Aliased Defines maintained for compatibility purpose
  616. * @{
  617. */
  618. #if defined(STM32L4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4)
  619. #define FMC_NAND_PCC_WAIT_FEATURE_DISABLE FMC_NAND_WAIT_FEATURE_DISABLE
  620. #define FMC_NAND_PCC_WAIT_FEATURE_ENABLE FMC_NAND_WAIT_FEATURE_ENABLE
  621. #define FMC_NAND_PCC_MEM_BUS_WIDTH_8 FMC_NAND_MEM_BUS_WIDTH_8
  622. #define FMC_NAND_PCC_MEM_BUS_WIDTH_16 FMC_NAND_MEM_BUS_WIDTH_16
  623. #elif defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4)
  624. #define FMC_NAND_WAIT_FEATURE_DISABLE FMC_NAND_PCC_WAIT_FEATURE_DISABLE
  625. #define FMC_NAND_WAIT_FEATURE_ENABLE FMC_NAND_PCC_WAIT_FEATURE_ENABLE
  626. #define FMC_NAND_MEM_BUS_WIDTH_8 FMC_NAND_PCC_MEM_BUS_WIDTH_8
  627. #define FMC_NAND_MEM_BUS_WIDTH_16 FMC_NAND_PCC_MEM_BUS_WIDTH_16
  628. #endif
  629. /**
  630. * @}
  631. */
  632. /** @defgroup LL_FSMC_Aliased_Defines LL FSMC Aliased Defines maintained for legacy purpose
  633. * @{
  634. */
  635. #define FSMC_NORSRAM_TYPEDEF FSMC_NORSRAM_TypeDef
  636. #define FSMC_NORSRAM_EXTENDED_TYPEDEF FSMC_NORSRAM_EXTENDED_TypeDef
  637. /**
  638. * @}
  639. */
  640. /** @defgroup HAL_GPIO_Aliased_Macros HAL GPIO Aliased Macros maintained for legacy purpose
  641. * @{
  642. */
  643. #define GET_GPIO_SOURCE GPIO_GET_INDEX
  644. #define GET_GPIO_INDEX GPIO_GET_INDEX
  645. #if defined(STM32F4)
  646. #define GPIO_AF12_SDMMC GPIO_AF12_SDIO
  647. #define GPIO_AF12_SDMMC1 GPIO_AF12_SDIO
  648. #endif
  649. #if defined(STM32F7)
  650. #define GPIO_AF12_SDIO GPIO_AF12_SDMMC1
  651. #define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1
  652. #endif
  653. #if defined(STM32L4)
  654. #define GPIO_AF12_SDIO GPIO_AF12_SDMMC1
  655. #define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1
  656. #endif
  657. #if defined(STM32H7)
  658. #define GPIO_AF7_SDIO1 GPIO_AF7_SDMMC1
  659. #define GPIO_AF8_SDIO1 GPIO_AF8_SDMMC1
  660. #define GPIO_AF12_SDIO1 GPIO_AF12_SDMMC1
  661. #define GPIO_AF9_SDIO2 GPIO_AF9_SDMMC2
  662. #define GPIO_AF10_SDIO2 GPIO_AF10_SDMMC2
  663. #define GPIO_AF11_SDIO2 GPIO_AF11_SDMMC2
  664. #if defined (STM32H743xx) || defined (STM32H753xx) || defined (STM32H750xx) || defined (STM32H742xx) || \
  665. defined (STM32H745xx) || defined (STM32H755xx) || defined (STM32H747xx) || defined (STM32H757xx)
  666. #define GPIO_AF10_OTG2_HS GPIO_AF10_OTG2_FS
  667. #define GPIO_AF10_OTG1_FS GPIO_AF10_OTG1_HS
  668. #define GPIO_AF12_OTG2_FS GPIO_AF12_OTG1_FS
  669. #endif /*STM32H743xx || STM32H753xx || STM32H750xx || STM32H742xx || STM32H745xx || STM32H755xx || STM32H747xx || \
  670. STM32H757xx */
  671. #endif /* STM32H7 */
  672. #define GPIO_AF0_LPTIM GPIO_AF0_LPTIM1
  673. #define GPIO_AF1_LPTIM GPIO_AF1_LPTIM1
  674. #define GPIO_AF2_LPTIM GPIO_AF2_LPTIM1
  675. #if defined(STM32L0) || defined(STM32L4) || defined(STM32F4) || defined(STM32F2) || defined(STM32F7) || \
  676. defined(STM32G4) || defined(STM32H7) || defined(STM32WB) || defined(STM32U5)
  677. #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW
  678. #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM
  679. #define GPIO_SPEED_FAST GPIO_SPEED_FREQ_HIGH
  680. #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH
  681. #endif /* STM32L0 || STM32L4 || STM32F4 || STM32F2 || STM32F7 || STM32G4 || STM32H7 || STM32WB || STM32U5*/
  682. #if defined(STM32L1)
  683. #define GPIO_SPEED_VERY_LOW GPIO_SPEED_FREQ_LOW
  684. #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_MEDIUM
  685. #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_HIGH
  686. #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH
  687. #endif /* STM32L1 */
  688. #if defined(STM32F0) || defined(STM32F3) || defined(STM32F1)
  689. #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW
  690. #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM
  691. #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_HIGH
  692. #endif /* STM32F0 || STM32F3 || STM32F1 */
  693. #define GPIO_AF6_DFSDM GPIO_AF6_DFSDM1
  694. #if defined(STM32U5) || defined(STM32H5)
  695. #define GPIO_AF0_RTC_50Hz GPIO_AF0_RTC_50HZ
  696. #endif /* STM32U5 || STM32H5 */
  697. #if defined(STM32U5)
  698. #define GPIO_AF0_S2DSTOP GPIO_AF0_SRDSTOP
  699. #define GPIO_AF11_LPGPIO GPIO_AF11_LPGPIO1
  700. #endif /* STM32U5 */
  701. /**
  702. * @}
  703. */
  704. /** @defgroup HAL_GTZC_Aliased_Defines HAL GTZC Aliased Defines maintained for legacy purpose
  705. * @{
  706. */
  707. #if defined(STM32U5)
  708. #define GTZC_PERIPH_DCMI GTZC_PERIPH_DCMI_PSSI
  709. #define GTZC_PERIPH_LTDC GTZC_PERIPH_LTDCUSB
  710. #endif /* STM32U5 */
  711. #if defined(STM32H5)
  712. #define GTZC_PERIPH_DAC12 GTZC_PERIPH_DAC1
  713. #define GTZC_PERIPH_ADC12 GTZC_PERIPH_ADC
  714. #define GTZC_PERIPH_USBFS GTZC_PERIPH_USB
  715. #endif /* STM32H5 */
  716. #if defined(STM32H5) || defined(STM32U5)
  717. #define GTZC_MCPBB_NB_VCTR_REG_MAX GTZC_MPCBB_NB_VCTR_REG_MAX
  718. #define GTZC_MCPBB_NB_LCK_VCTR_REG_MAX GTZC_MPCBB_NB_LCK_VCTR_REG_MAX
  719. #define GTZC_MCPBB_SUPERBLOCK_UNLOCKED GTZC_MPCBB_SUPERBLOCK_UNLOCKED
  720. #define GTZC_MCPBB_SUPERBLOCK_LOCKED GTZC_MPCBB_SUPERBLOCK_LOCKED
  721. #define GTZC_MCPBB_BLOCK_NSEC GTZC_MPCBB_BLOCK_NSEC
  722. #define GTZC_MCPBB_BLOCK_SEC GTZC_MPCBB_BLOCK_SEC
  723. #define GTZC_MCPBB_BLOCK_NPRIV GTZC_MPCBB_BLOCK_NPRIV
  724. #define GTZC_MCPBB_BLOCK_PRIV GTZC_MPCBB_BLOCK_PRIV
  725. #define GTZC_MCPBB_LOCK_OFF GTZC_MPCBB_LOCK_OFF
  726. #define GTZC_MCPBB_LOCK_ON GTZC_MPCBB_LOCK_ON
  727. #endif /* STM32H5 || STM32U5 */
  728. /**
  729. * @}
  730. */
  731. /** @defgroup HAL_HRTIM_Aliased_Macros HAL HRTIM Aliased Macros maintained for legacy purpose
  732. * @{
  733. */
  734. #define HRTIM_TIMDELAYEDPROTECTION_DISABLED HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED
  735. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6
  736. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6
  737. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6
  738. #define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6
  739. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7
  740. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7
  741. #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7
  742. #define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7
  743. #define __HAL_HRTIM_SetCounter __HAL_HRTIM_SETCOUNTER
  744. #define __HAL_HRTIM_GetCounter __HAL_HRTIM_GETCOUNTER
  745. #define __HAL_HRTIM_SetPeriod __HAL_HRTIM_SETPERIOD
  746. #define __HAL_HRTIM_GetPeriod __HAL_HRTIM_GETPERIOD
  747. #define __HAL_HRTIM_SetClockPrescaler __HAL_HRTIM_SETCLOCKPRESCALER
  748. #define __HAL_HRTIM_GetClockPrescaler __HAL_HRTIM_GETCLOCKPRESCALER
  749. #define __HAL_HRTIM_SetCompare __HAL_HRTIM_SETCOMPARE
  750. #define __HAL_HRTIM_GetCompare __HAL_HRTIM_GETCOMPARE
  751. #if defined(STM32G4)
  752. #define HAL_HRTIM_ExternalEventCounterConfig HAL_HRTIM_ExtEventCounterConfig
  753. #define HAL_HRTIM_ExternalEventCounterEnable HAL_HRTIM_ExtEventCounterEnable
  754. #define HAL_HRTIM_ExternalEventCounterDisable HAL_HRTIM_ExtEventCounterDisable
  755. #define HAL_HRTIM_ExternalEventCounterReset HAL_HRTIM_ExtEventCounterReset
  756. #define HRTIM_TIMEEVENT_A HRTIM_EVENTCOUNTER_A
  757. #define HRTIM_TIMEEVENT_B HRTIM_EVENTCOUNTER_B
  758. #define HRTIM_TIMEEVENTRESETMODE_UNCONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_UNCONDITIONAL
  759. #define HRTIM_TIMEEVENTRESETMODE_CONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_CONDITIONAL
  760. #endif /* STM32G4 */
  761. #if defined(STM32H7)
  762. #define HRTIM_OUTPUTSET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1
  763. #define HRTIM_OUTPUTSET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2
  764. #define HRTIM_OUTPUTSET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3
  765. #define HRTIM_OUTPUTSET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4
  766. #define HRTIM_OUTPUTSET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5
  767. #define HRTIM_OUTPUTSET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6
  768. #define HRTIM_OUTPUTSET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
  769. #define HRTIM_OUTPUTSET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
  770. #define HRTIM_OUTPUTSET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
  771. #define HRTIM_OUTPUTSET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  772. #define HRTIM_OUTPUTSET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
  773. #define HRTIM_OUTPUTSET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3
  774. #define HRTIM_OUTPUTSET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4
  775. #define HRTIM_OUTPUTSET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5
  776. #define HRTIM_OUTPUTSET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
  777. #define HRTIM_OUTPUTSET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7
  778. #define HRTIM_OUTPUTSET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
  779. #define HRTIM_OUTPUTSET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
  780. #define HRTIM_OUTPUTSET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  781. #define HRTIM_OUTPUTSET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
  782. #define HRTIM_OUTPUTSET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
  783. #define HRTIM_OUTPUTSET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4
  784. #define HRTIM_OUTPUTSET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
  785. #define HRTIM_OUTPUTSET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
  786. #define HRTIM_OUTPUTSET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
  787. #define HRTIM_OUTPUTSET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
  788. #define HRTIM_OUTPUTSET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9
  789. #define HRTIM_OUTPUTSET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  790. #define HRTIM_OUTPUTSET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2
  791. #define HRTIM_OUTPUTSET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
  792. #define HRTIM_OUTPUTSET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4
  793. #define HRTIM_OUTPUTSET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
  794. #define HRTIM_OUTPUTSET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6
  795. #define HRTIM_OUTPUTSET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7
  796. #define HRTIM_OUTPUTSET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8
  797. #define HRTIM_OUTPUTSET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
  798. #define HRTIM_OUTPUTSET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1
  799. #define HRTIM_OUTPUTSET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2
  800. #define HRTIM_OUTPUTSET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
  801. #define HRTIM_OUTPUTSET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
  802. #define HRTIM_OUTPUTSET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
  803. #define HRTIM_OUTPUTSET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6
  804. #define HRTIM_OUTPUTSET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7
  805. #define HRTIM_OUTPUTSET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8
  806. #define HRTIM_OUTPUTSET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
  807. #define HRTIM_OUTPUTSET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1
  808. #define HRTIM_OUTPUTSET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2
  809. #define HRTIM_OUTPUTSET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
  810. #define HRTIM_OUTPUTSET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
  811. #define HRTIM_OUTPUTSET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
  812. #define HRTIM_OUTPUTSET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6
  813. #define HRTIM_OUTPUTSET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7
  814. #define HRTIM_OUTPUTSET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
  815. #define HRTIM_OUTPUTSET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9
  816. #define HRTIM_OUTPUTRESET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1
  817. #define HRTIM_OUTPUTRESET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2
  818. #define HRTIM_OUTPUTRESET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3
  819. #define HRTIM_OUTPUTRESET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4
  820. #define HRTIM_OUTPUTRESET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5
  821. #define HRTIM_OUTPUTRESET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6
  822. #define HRTIM_OUTPUTRESET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
  823. #define HRTIM_OUTPUTRESET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
  824. #define HRTIM_OUTPUTRESET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
  825. #define HRTIM_OUTPUTRESET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  826. #define HRTIM_OUTPUTRESET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
  827. #define HRTIM_OUTPUTRESET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3
  828. #define HRTIM_OUTPUTRESET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4
  829. #define HRTIM_OUTPUTRESET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5
  830. #define HRTIM_OUTPUTRESET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
  831. #define HRTIM_OUTPUTRESET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7
  832. #define HRTIM_OUTPUTRESET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
  833. #define HRTIM_OUTPUTRESET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
  834. #define HRTIM_OUTPUTRESET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  835. #define HRTIM_OUTPUTRESET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
  836. #define HRTIM_OUTPUTRESET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
  837. #define HRTIM_OUTPUTRESET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4
  838. #define HRTIM_OUTPUTRESET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
  839. #define HRTIM_OUTPUTRESET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
  840. #define HRTIM_OUTPUTRESET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
  841. #define HRTIM_OUTPUTRESET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
  842. #define HRTIM_OUTPUTRESET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9
  843. #define HRTIM_OUTPUTRESET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
  844. #define HRTIM_OUTPUTRESET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2
  845. #define HRTIM_OUTPUTRESET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
  846. #define HRTIM_OUTPUTRESET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4
  847. #define HRTIM_OUTPUTRESET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
  848. #define HRTIM_OUTPUTRESET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6
  849. #define HRTIM_OUTPUTRESET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7
  850. #define HRTIM_OUTPUTRESET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8
  851. #define HRTIM_OUTPUTRESET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
  852. #define HRTIM_OUTPUTRESET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1
  853. #define HRTIM_OUTPUTRESET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2
  854. #define HRTIM_OUTPUTRESET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
  855. #define HRTIM_OUTPUTRESET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
  856. #define HRTIM_OUTPUTRESET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
  857. #define HRTIM_OUTPUTRESET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6
  858. #define HRTIM_OUTPUTRESET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7
  859. #define HRTIM_OUTPUTRESET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8
  860. #define HRTIM_OUTPUTRESET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
  861. #define HRTIM_OUTPUTRESET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1
  862. #define HRTIM_OUTPUTRESET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2
  863. #define HRTIM_OUTPUTRESET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
  864. #define HRTIM_OUTPUTRESET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
  865. #define HRTIM_OUTPUTRESET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
  866. #define HRTIM_OUTPUTRESET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6
  867. #define HRTIM_OUTPUTRESET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7
  868. #define HRTIM_OUTPUTRESET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
  869. #define HRTIM_OUTPUTRESET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9
  870. #endif /* STM32H7 */
  871. #if defined(STM32F3)
  872. /** @brief Constants defining available sources associated to external events.
  873. */
  874. #define HRTIM_EVENTSRC_1 (0x00000000U)
  875. #define HRTIM_EVENTSRC_2 (HRTIM_EECR1_EE1SRC_0)
  876. #define HRTIM_EVENTSRC_3 (HRTIM_EECR1_EE1SRC_1)
  877. #define HRTIM_EVENTSRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0)
  878. /** @brief Constants defining the DLL calibration periods (in micro seconds)
  879. */
  880. #define HRTIM_CALIBRATIONRATE_7300 0x00000000U
  881. #define HRTIM_CALIBRATIONRATE_910 (HRTIM_DLLCR_CALRTE_0)
  882. #define HRTIM_CALIBRATIONRATE_114 (HRTIM_DLLCR_CALRTE_1)
  883. #define HRTIM_CALIBRATIONRATE_14 (HRTIM_DLLCR_CALRTE_1 | HRTIM_DLLCR_CALRTE_0)
  884. #endif /* STM32F3 */
  885. /**
  886. * @}
  887. */
  888. /** @defgroup HAL_I2C_Aliased_Defines HAL I2C Aliased Defines maintained for legacy purpose
  889. * @{
  890. */
  891. #define I2C_DUALADDRESS_DISABLED I2C_DUALADDRESS_DISABLE
  892. #define I2C_DUALADDRESS_ENABLED I2C_DUALADDRESS_ENABLE
  893. #define I2C_GENERALCALL_DISABLED I2C_GENERALCALL_DISABLE
  894. #define I2C_GENERALCALL_ENABLED I2C_GENERALCALL_ENABLE
  895. #define I2C_NOSTRETCH_DISABLED I2C_NOSTRETCH_DISABLE
  896. #define I2C_NOSTRETCH_ENABLED I2C_NOSTRETCH_ENABLE
  897. #define I2C_ANALOGFILTER_ENABLED I2C_ANALOGFILTER_ENABLE
  898. #define I2C_ANALOGFILTER_DISABLED I2C_ANALOGFILTER_DISABLE
  899. #if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32G0) || defined(STM32L4) || \
  900. defined(STM32L1) || defined(STM32F7)
  901. #define HAL_I2C_STATE_MEM_BUSY_TX HAL_I2C_STATE_BUSY_TX
  902. #define HAL_I2C_STATE_MEM_BUSY_RX HAL_I2C_STATE_BUSY_RX
  903. #define HAL_I2C_STATE_MASTER_BUSY_TX HAL_I2C_STATE_BUSY_TX
  904. #define HAL_I2C_STATE_MASTER_BUSY_RX HAL_I2C_STATE_BUSY_RX
  905. #define HAL_I2C_STATE_SLAVE_BUSY_TX HAL_I2C_STATE_BUSY_TX
  906. #define HAL_I2C_STATE_SLAVE_BUSY_RX HAL_I2C_STATE_BUSY_RX
  907. #endif
  908. /**
  909. * @}
  910. */
  911. /** @defgroup HAL_IRDA_Aliased_Defines HAL IRDA Aliased Defines maintained for legacy purpose
  912. * @{
  913. */
  914. #define IRDA_ONE_BIT_SAMPLE_DISABLED IRDA_ONE_BIT_SAMPLE_DISABLE
  915. #define IRDA_ONE_BIT_SAMPLE_ENABLED IRDA_ONE_BIT_SAMPLE_ENABLE
  916. /**
  917. * @}
  918. */
  919. /** @defgroup HAL_IWDG_Aliased_Defines HAL IWDG Aliased Defines maintained for legacy purpose
  920. * @{
  921. */
  922. #define KR_KEY_RELOAD IWDG_KEY_RELOAD
  923. #define KR_KEY_ENABLE IWDG_KEY_ENABLE
  924. #define KR_KEY_EWA IWDG_KEY_WRITE_ACCESS_ENABLE
  925. #define KR_KEY_DWA IWDG_KEY_WRITE_ACCESS_DISABLE
  926. /**
  927. * @}
  928. */
  929. /** @defgroup HAL_LPTIM_Aliased_Defines HAL LPTIM Aliased Defines maintained for legacy purpose
  930. * @{
  931. */
  932. #define LPTIM_CLOCKSAMPLETIME_DIRECTTRANSISTION LPTIM_CLOCKSAMPLETIME_DIRECTTRANSITION
  933. #define LPTIM_CLOCKSAMPLETIME_2TRANSISTIONS LPTIM_CLOCKSAMPLETIME_2TRANSITIONS
  934. #define LPTIM_CLOCKSAMPLETIME_4TRANSISTIONS LPTIM_CLOCKSAMPLETIME_4TRANSITIONS
  935. #define LPTIM_CLOCKSAMPLETIME_8TRANSISTIONS LPTIM_CLOCKSAMPLETIME_8TRANSITIONS
  936. #define LPTIM_CLOCKPOLARITY_RISINGEDGE LPTIM_CLOCKPOLARITY_RISING
  937. #define LPTIM_CLOCKPOLARITY_FALLINGEDGE LPTIM_CLOCKPOLARITY_FALLING
  938. #define LPTIM_CLOCKPOLARITY_BOTHEDGES LPTIM_CLOCKPOLARITY_RISING_FALLING
  939. #define LPTIM_TRIGSAMPLETIME_DIRECTTRANSISTION LPTIM_TRIGSAMPLETIME_DIRECTTRANSITION
  940. #define LPTIM_TRIGSAMPLETIME_2TRANSISTIONS LPTIM_TRIGSAMPLETIME_2TRANSITIONS
  941. #define LPTIM_TRIGSAMPLETIME_4TRANSISTIONS LPTIM_TRIGSAMPLETIME_4TRANSITIONS
  942. #define LPTIM_TRIGSAMPLETIME_8TRANSISTIONS LPTIM_TRIGSAMPLETIME_8TRANSITIONS
  943. /* The following 3 definition have also been present in a temporary version of lptim.h */
  944. /* They need to be renamed also to the right name, just in case */
  945. #define LPTIM_TRIGSAMPLETIME_2TRANSITION LPTIM_TRIGSAMPLETIME_2TRANSITIONS
  946. #define LPTIM_TRIGSAMPLETIME_4TRANSITION LPTIM_TRIGSAMPLETIME_4TRANSITIONS
  947. #define LPTIM_TRIGSAMPLETIME_8TRANSITION LPTIM_TRIGSAMPLETIME_8TRANSITIONS
  948. /** @defgroup HAL_LPTIM_Aliased_Defines HAL LPTIM Aliased Defines maintained for legacy purpose
  949. * @{
  950. */
  951. #define HAL_LPTIM_ReadCompare HAL_LPTIM_ReadCapturedValue
  952. /**
  953. * @}
  954. */
  955. #if defined(STM32U5)
  956. #define LPTIM_ISR_CC1 LPTIM_ISR_CC1IF
  957. #define LPTIM_ISR_CC2 LPTIM_ISR_CC2IF
  958. #define LPTIM_CHANNEL_ALL 0x00000000U
  959. #endif /* STM32U5 */
  960. /**
  961. * @}
  962. */
  963. /** @defgroup HAL_NAND_Aliased_Defines HAL NAND Aliased Defines maintained for legacy purpose
  964. * @{
  965. */
  966. #define HAL_NAND_Read_Page HAL_NAND_Read_Page_8b
  967. #define HAL_NAND_Write_Page HAL_NAND_Write_Page_8b
  968. #define HAL_NAND_Read_SpareArea HAL_NAND_Read_SpareArea_8b
  969. #define HAL_NAND_Write_SpareArea HAL_NAND_Write_SpareArea_8b
  970. #define NAND_AddressTypedef NAND_AddressTypeDef
  971. #define __ARRAY_ADDRESS ARRAY_ADDRESS
  972. #define __ADDR_1st_CYCLE ADDR_1ST_CYCLE
  973. #define __ADDR_2nd_CYCLE ADDR_2ND_CYCLE
  974. #define __ADDR_3rd_CYCLE ADDR_3RD_CYCLE
  975. #define __ADDR_4th_CYCLE ADDR_4TH_CYCLE
  976. /**
  977. * @}
  978. */
  979. /** @defgroup HAL_NOR_Aliased_Defines HAL NOR Aliased Defines maintained for legacy purpose
  980. * @{
  981. */
  982. #define NOR_StatusTypedef HAL_NOR_StatusTypeDef
  983. #define NOR_SUCCESS HAL_NOR_STATUS_SUCCESS
  984. #define NOR_ONGOING HAL_NOR_STATUS_ONGOING
  985. #define NOR_ERROR HAL_NOR_STATUS_ERROR
  986. #define NOR_TIMEOUT HAL_NOR_STATUS_TIMEOUT
  987. #define __NOR_WRITE NOR_WRITE
  988. #define __NOR_ADDR_SHIFT NOR_ADDR_SHIFT
  989. /**
  990. * @}
  991. */
  992. /** @defgroup HAL_OPAMP_Aliased_Defines HAL OPAMP Aliased Defines maintained for legacy purpose
  993. * @{
  994. */
  995. #define OPAMP_NONINVERTINGINPUT_VP0 OPAMP_NONINVERTINGINPUT_IO0
  996. #define OPAMP_NONINVERTINGINPUT_VP1 OPAMP_NONINVERTINGINPUT_IO1
  997. #define OPAMP_NONINVERTINGINPUT_VP2 OPAMP_NONINVERTINGINPUT_IO2
  998. #define OPAMP_NONINVERTINGINPUT_VP3 OPAMP_NONINVERTINGINPUT_IO3
  999. #define OPAMP_SEC_NONINVERTINGINPUT_VP0 OPAMP_SEC_NONINVERTINGINPUT_IO0
  1000. #define OPAMP_SEC_NONINVERTINGINPUT_VP1 OPAMP_SEC_NONINVERTINGINPUT_IO1
  1001. #define OPAMP_SEC_NONINVERTINGINPUT_VP2 OPAMP_SEC_NONINVERTINGINPUT_IO2
  1002. #define OPAMP_SEC_NONINVERTINGINPUT_VP3 OPAMP_SEC_NONINVERTINGINPUT_IO3
  1003. #define OPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0
  1004. #define OPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1
  1005. #define IOPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0
  1006. #define IOPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1
  1007. #define OPAMP_SEC_INVERTINGINPUT_VM0 OPAMP_SEC_INVERTINGINPUT_IO0
  1008. #define OPAMP_SEC_INVERTINGINPUT_VM1 OPAMP_SEC_INVERTINGINPUT_IO1
  1009. #define OPAMP_INVERTINGINPUT_VINM OPAMP_SEC_INVERTINGINPUT_IO1
  1010. #define OPAMP_PGACONNECT_NO OPAMP_PGA_CONNECT_INVERTINGINPUT_NO
  1011. #define OPAMP_PGACONNECT_VM0 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0
  1012. #define OPAMP_PGACONNECT_VM1 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO1
  1013. #if defined(STM32L1) || defined(STM32L4) || defined(STM32L5) || defined(STM32H7) || defined(STM32G4) || defined(STM32U5)
  1014. #define HAL_OPAMP_MSP_INIT_CB_ID HAL_OPAMP_MSPINIT_CB_ID
  1015. #define HAL_OPAMP_MSP_DEINIT_CB_ID HAL_OPAMP_MSPDEINIT_CB_ID
  1016. #endif
  1017. #if defined(STM32L4) || defined(STM32L5)
  1018. #define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALPOWER
  1019. #elif defined(STM32G4)
  1020. #define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALSPEED
  1021. #endif
  1022. /**
  1023. * @}
  1024. */
  1025. /** @defgroup HAL_I2S_Aliased_Defines HAL I2S Aliased Defines maintained for legacy purpose
  1026. * @{
  1027. */
  1028. #define I2S_STANDARD_PHILLIPS I2S_STANDARD_PHILIPS
  1029. #if defined(STM32H7)
  1030. #define I2S_IT_TXE I2S_IT_TXP
  1031. #define I2S_IT_RXNE I2S_IT_RXP
  1032. #define I2S_FLAG_TXE I2S_FLAG_TXP
  1033. #define I2S_FLAG_RXNE I2S_FLAG_RXP
  1034. #endif
  1035. #if defined(STM32F7)
  1036. #define I2S_CLOCK_SYSCLK I2S_CLOCK_PLL
  1037. #endif
  1038. /**
  1039. * @}
  1040. */
  1041. /** @defgroup HAL_PCCARD_Aliased_Defines HAL PCCARD Aliased Defines maintained for legacy purpose
  1042. * @{
  1043. */
  1044. /* Compact Flash-ATA registers description */
  1045. #define CF_DATA ATA_DATA
  1046. #define CF_SECTOR_COUNT ATA_SECTOR_COUNT
  1047. #define CF_SECTOR_NUMBER ATA_SECTOR_NUMBER
  1048. #define CF_CYLINDER_LOW ATA_CYLINDER_LOW
  1049. #define CF_CYLINDER_HIGH ATA_CYLINDER_HIGH
  1050. #define CF_CARD_HEAD ATA_CARD_HEAD
  1051. #define CF_STATUS_CMD ATA_STATUS_CMD
  1052. #define CF_STATUS_CMD_ALTERNATE ATA_STATUS_CMD_ALTERNATE
  1053. #define CF_COMMON_DATA_AREA ATA_COMMON_DATA_AREA
  1054. /* Compact Flash-ATA commands */
  1055. #define CF_READ_SECTOR_CMD ATA_READ_SECTOR_CMD
  1056. #define CF_WRITE_SECTOR_CMD ATA_WRITE_SECTOR_CMD
  1057. #define CF_ERASE_SECTOR_CMD ATA_ERASE_SECTOR_CMD
  1058. #define CF_IDENTIFY_CMD ATA_IDENTIFY_CMD
  1059. #define PCCARD_StatusTypedef HAL_PCCARD_StatusTypeDef
  1060. #define PCCARD_SUCCESS HAL_PCCARD_STATUS_SUCCESS
  1061. #define PCCARD_ONGOING HAL_PCCARD_STATUS_ONGOING
  1062. #define PCCARD_ERROR HAL_PCCARD_STATUS_ERROR
  1063. #define PCCARD_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT
  1064. /**
  1065. * @}
  1066. */
  1067. /** @defgroup HAL_RTC_Aliased_Defines HAL RTC Aliased Defines maintained for legacy purpose
  1068. * @{
  1069. */
  1070. #define FORMAT_BIN RTC_FORMAT_BIN
  1071. #define FORMAT_BCD RTC_FORMAT_BCD
  1072. #define RTC_ALARMSUBSECONDMASK_None RTC_ALARMSUBSECONDMASK_NONE
  1073. #define RTC_TAMPERERASEBACKUP_DISABLED RTC_TAMPER_ERASE_BACKUP_DISABLE
  1074. #define RTC_TAMPERMASK_FLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE
  1075. #define RTC_TAMPERMASK_FLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE
  1076. #define RTC_MASKTAMPERFLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE
  1077. #define RTC_MASKTAMPERFLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE
  1078. #define RTC_TAMPERERASEBACKUP_ENABLED RTC_TAMPER_ERASE_BACKUP_ENABLE
  1079. #define RTC_TAMPER1_2_INTERRUPT RTC_ALL_TAMPER_INTERRUPT
  1080. #define RTC_TAMPER1_2_3_INTERRUPT RTC_ALL_TAMPER_INTERRUPT
  1081. #define RTC_TIMESTAMPPIN_PC13 RTC_TIMESTAMPPIN_DEFAULT
  1082. #define RTC_TIMESTAMPPIN_PA0 RTC_TIMESTAMPPIN_POS1
  1083. #define RTC_TIMESTAMPPIN_PI8 RTC_TIMESTAMPPIN_POS1
  1084. #define RTC_TIMESTAMPPIN_PC1 RTC_TIMESTAMPPIN_POS2
  1085. #define RTC_OUTPUT_REMAP_PC13 RTC_OUTPUT_REMAP_NONE
  1086. #define RTC_OUTPUT_REMAP_PB14 RTC_OUTPUT_REMAP_POS1
  1087. #define RTC_OUTPUT_REMAP_PB2 RTC_OUTPUT_REMAP_POS1
  1088. #define RTC_TAMPERPIN_PC13 RTC_TAMPERPIN_DEFAULT
  1089. #define RTC_TAMPERPIN_PA0 RTC_TAMPERPIN_POS1
  1090. #define RTC_TAMPERPIN_PI8 RTC_TAMPERPIN_POS1
  1091. #if defined(STM32H5)
  1092. #define TAMP_SECRETDEVICE_ERASE_NONE TAMP_DEVICESECRETS_ERASE_NONE
  1093. #define TAMP_SECRETDEVICE_ERASE_BKP_SRAM TAMP_DEVICESECRETS_ERASE_BKPSRAM
  1094. #endif /* STM32H5 */
  1095. #if defined(STM32WBA)
  1096. #define TAMP_SECRETDEVICE_ERASE_NONE TAMP_DEVICESECRETS_ERASE_NONE
  1097. #define TAMP_SECRETDEVICE_ERASE_SRAM2 TAMP_DEVICESECRETS_ERASE_SRAM2
  1098. #define TAMP_SECRETDEVICE_ERASE_RHUK TAMP_DEVICESECRETS_ERASE_RHUK
  1099. #define TAMP_SECRETDEVICE_ERASE_ICACHE TAMP_DEVICESECRETS_ERASE_ICACHE
  1100. #define TAMP_SECRETDEVICE_ERASE_SAES_AES_HASH TAMP_DEVICESECRETS_ERASE_SAES_AES_HASH
  1101. #define TAMP_SECRETDEVICE_ERASE_PKA_SRAM TAMP_DEVICESECRETS_ERASE_PKA_SRAM
  1102. #define TAMP_SECRETDEVICE_ERASE_ALL TAMP_DEVICESECRETS_ERASE_ALL
  1103. #endif /* STM32WBA */
  1104. #if defined(STM32H5) || defined(STM32WBA)
  1105. #define TAMP_SECRETDEVICE_ERASE_DISABLE TAMP_DEVICESECRETS_ERASE_NONE
  1106. #define TAMP_SECRETDEVICE_ERASE_ENABLE TAMP_SECRETDEVICE_ERASE_ALL
  1107. #endif /* STM32H5 || STM32WBA */
  1108. #if defined(STM32F7)
  1109. #define RTC_TAMPCR_TAMPXE RTC_TAMPER_ENABLE_BITS_MASK
  1110. #define RTC_TAMPCR_TAMPXIE RTC_TAMPER_IT_ENABLE_BITS_MASK
  1111. #endif /* STM32F7 */
  1112. #if defined(STM32H7)
  1113. #define RTC_TAMPCR_TAMPXE RTC_TAMPER_X
  1114. #define RTC_TAMPCR_TAMPXIE RTC_TAMPER_X_INTERRUPT
  1115. #endif /* STM32H7 */
  1116. #if defined(STM32F7) || defined(STM32H7) || defined(STM32L0)
  1117. #define RTC_TAMPER1_INTERRUPT RTC_IT_TAMP1
  1118. #define RTC_TAMPER2_INTERRUPT RTC_IT_TAMP2
  1119. #define RTC_TAMPER3_INTERRUPT RTC_IT_TAMP3
  1120. #define RTC_ALL_TAMPER_INTERRUPT RTC_IT_TAMP
  1121. #endif /* STM32F7 || STM32H7 || STM32L0 */
  1122. /**
  1123. * @}
  1124. */
  1125. /** @defgroup HAL_SMARTCARD_Aliased_Defines HAL SMARTCARD Aliased Defines maintained for legacy purpose
  1126. * @{
  1127. */
  1128. #define SMARTCARD_NACK_ENABLED SMARTCARD_NACK_ENABLE
  1129. #define SMARTCARD_NACK_DISABLED SMARTCARD_NACK_DISABLE
  1130. #define SMARTCARD_ONEBIT_SAMPLING_DISABLED SMARTCARD_ONE_BIT_SAMPLE_DISABLE
  1131. #define SMARTCARD_ONEBIT_SAMPLING_ENABLED SMARTCARD_ONE_BIT_SAMPLE_ENABLE
  1132. #define SMARTCARD_ONEBIT_SAMPLING_DISABLE SMARTCARD_ONE_BIT_SAMPLE_DISABLE
  1133. #define SMARTCARD_ONEBIT_SAMPLING_ENABLE SMARTCARD_ONE_BIT_SAMPLE_ENABLE
  1134. #define SMARTCARD_TIMEOUT_DISABLED SMARTCARD_TIMEOUT_DISABLE
  1135. #define SMARTCARD_TIMEOUT_ENABLED SMARTCARD_TIMEOUT_ENABLE
  1136. #define SMARTCARD_LASTBIT_DISABLED SMARTCARD_LASTBIT_DISABLE
  1137. #define SMARTCARD_LASTBIT_ENABLED SMARTCARD_LASTBIT_ENABLE
  1138. /**
  1139. * @}
  1140. */
  1141. /** @defgroup HAL_SMBUS_Aliased_Defines HAL SMBUS Aliased Defines maintained for legacy purpose
  1142. * @{
  1143. */
  1144. #define SMBUS_DUALADDRESS_DISABLED SMBUS_DUALADDRESS_DISABLE
  1145. #define SMBUS_DUALADDRESS_ENABLED SMBUS_DUALADDRESS_ENABLE
  1146. #define SMBUS_GENERALCALL_DISABLED SMBUS_GENERALCALL_DISABLE
  1147. #define SMBUS_GENERALCALL_ENABLED SMBUS_GENERALCALL_ENABLE
  1148. #define SMBUS_NOSTRETCH_DISABLED SMBUS_NOSTRETCH_DISABLE
  1149. #define SMBUS_NOSTRETCH_ENABLED SMBUS_NOSTRETCH_ENABLE
  1150. #define SMBUS_ANALOGFILTER_ENABLED SMBUS_ANALOGFILTER_ENABLE
  1151. #define SMBUS_ANALOGFILTER_DISABLED SMBUS_ANALOGFILTER_DISABLE
  1152. #define SMBUS_PEC_DISABLED SMBUS_PEC_DISABLE
  1153. #define SMBUS_PEC_ENABLED SMBUS_PEC_ENABLE
  1154. #define HAL_SMBUS_STATE_SLAVE_LISTEN HAL_SMBUS_STATE_LISTEN
  1155. /**
  1156. * @}
  1157. */
  1158. /** @defgroup HAL_SPI_Aliased_Defines HAL SPI Aliased Defines maintained for legacy purpose
  1159. * @{
  1160. */
  1161. #define SPI_TIMODE_DISABLED SPI_TIMODE_DISABLE
  1162. #define SPI_TIMODE_ENABLED SPI_TIMODE_ENABLE
  1163. #define SPI_CRCCALCULATION_DISABLED SPI_CRCCALCULATION_DISABLE
  1164. #define SPI_CRCCALCULATION_ENABLED SPI_CRCCALCULATION_ENABLE
  1165. #define SPI_NSS_PULSE_DISABLED SPI_NSS_PULSE_DISABLE
  1166. #define SPI_NSS_PULSE_ENABLED SPI_NSS_PULSE_ENABLE
  1167. #if defined(STM32H7)
  1168. #define SPI_FLAG_TXE SPI_FLAG_TXP
  1169. #define SPI_FLAG_RXNE SPI_FLAG_RXP
  1170. #define SPI_IT_TXE SPI_IT_TXP
  1171. #define SPI_IT_RXNE SPI_IT_RXP
  1172. #define SPI_FRLVL_EMPTY SPI_RX_FIFO_0PACKET
  1173. #define SPI_FRLVL_QUARTER_FULL SPI_RX_FIFO_1PACKET
  1174. #define SPI_FRLVL_HALF_FULL SPI_RX_FIFO_2PACKET
  1175. #define SPI_FRLVL_FULL SPI_RX_FIFO_3PACKET
  1176. #endif /* STM32H7 */
  1177. /**
  1178. * @}
  1179. */
  1180. /** @defgroup HAL_TIM_Aliased_Defines HAL TIM Aliased Defines maintained for legacy purpose
  1181. * @{
  1182. */
  1183. #define CCER_CCxE_MASK TIM_CCER_CCxE_MASK
  1184. #define CCER_CCxNE_MASK TIM_CCER_CCxNE_MASK
  1185. #define TIM_DMABase_CR1 TIM_DMABASE_CR1
  1186. #define TIM_DMABase_CR2 TIM_DMABASE_CR2
  1187. #define TIM_DMABase_SMCR TIM_DMABASE_SMCR
  1188. #define TIM_DMABase_DIER TIM_DMABASE_DIER
  1189. #define TIM_DMABase_SR TIM_DMABASE_SR
  1190. #define TIM_DMABase_EGR TIM_DMABASE_EGR
  1191. #define TIM_DMABase_CCMR1 TIM_DMABASE_CCMR1
  1192. #define TIM_DMABase_CCMR2 TIM_DMABASE_CCMR2
  1193. #define TIM_DMABase_CCER TIM_DMABASE_CCER
  1194. #define TIM_DMABase_CNT TIM_DMABASE_CNT
  1195. #define TIM_DMABase_PSC TIM_DMABASE_PSC
  1196. #define TIM_DMABase_ARR TIM_DMABASE_ARR
  1197. #define TIM_DMABase_RCR TIM_DMABASE_RCR
  1198. #define TIM_DMABase_CCR1 TIM_DMABASE_CCR1
  1199. #define TIM_DMABase_CCR2 TIM_DMABASE_CCR2
  1200. #define TIM_DMABase_CCR3 TIM_DMABASE_CCR3
  1201. #define TIM_DMABase_CCR4 TIM_DMABASE_CCR4
  1202. #define TIM_DMABase_BDTR TIM_DMABASE_BDTR
  1203. #define TIM_DMABase_DCR TIM_DMABASE_DCR
  1204. #define TIM_DMABase_DMAR TIM_DMABASE_DMAR
  1205. #define TIM_DMABase_OR1 TIM_DMABASE_OR1
  1206. #define TIM_DMABase_CCMR3 TIM_DMABASE_CCMR3
  1207. #define TIM_DMABase_CCR5 TIM_DMABASE_CCR5
  1208. #define TIM_DMABase_CCR6 TIM_DMABASE_CCR6
  1209. #define TIM_DMABase_OR2 TIM_DMABASE_OR2
  1210. #define TIM_DMABase_OR3 TIM_DMABASE_OR3
  1211. #define TIM_DMABase_OR TIM_DMABASE_OR
  1212. #define TIM_EventSource_Update TIM_EVENTSOURCE_UPDATE
  1213. #define TIM_EventSource_CC1 TIM_EVENTSOURCE_CC1
  1214. #define TIM_EventSource_CC2 TIM_EVENTSOURCE_CC2
  1215. #define TIM_EventSource_CC3 TIM_EVENTSOURCE_CC3
  1216. #define TIM_EventSource_CC4 TIM_EVENTSOURCE_CC4
  1217. #define TIM_EventSource_COM TIM_EVENTSOURCE_COM
  1218. #define TIM_EventSource_Trigger TIM_EVENTSOURCE_TRIGGER
  1219. #define TIM_EventSource_Break TIM_EVENTSOURCE_BREAK
  1220. #define TIM_EventSource_Break2 TIM_EVENTSOURCE_BREAK2
  1221. #define TIM_DMABurstLength_1Transfer TIM_DMABURSTLENGTH_1TRANSFER
  1222. #define TIM_DMABurstLength_2Transfers TIM_DMABURSTLENGTH_2TRANSFERS
  1223. #define TIM_DMABurstLength_3Transfers TIM_DMABURSTLENGTH_3TRANSFERS
  1224. #define TIM_DMABurstLength_4Transfers TIM_DMABURSTLENGTH_4TRANSFERS
  1225. #define TIM_DMABurstLength_5Transfers TIM_DMABURSTLENGTH_5TRANSFERS
  1226. #define TIM_DMABurstLength_6Transfers TIM_DMABURSTLENGTH_6TRANSFERS
  1227. #define TIM_DMABurstLength_7Transfers TIM_DMABURSTLENGTH_7TRANSFERS
  1228. #define TIM_DMABurstLength_8Transfers TIM_DMABURSTLENGTH_8TRANSFERS
  1229. #define TIM_DMABurstLength_9Transfers TIM_DMABURSTLENGTH_9TRANSFERS
  1230. #define TIM_DMABurstLength_10Transfers TIM_DMABURSTLENGTH_10TRANSFERS
  1231. #define TIM_DMABurstLength_11Transfers TIM_DMABURSTLENGTH_11TRANSFERS
  1232. #define TIM_DMABurstLength_12Transfers TIM_DMABURSTLENGTH_12TRANSFERS
  1233. #define TIM_DMABurstLength_13Transfers TIM_DMABURSTLENGTH_13TRANSFERS
  1234. #define TIM_DMABurstLength_14Transfers TIM_DMABURSTLENGTH_14TRANSFERS
  1235. #define TIM_DMABurstLength_15Transfers TIM_DMABURSTLENGTH_15TRANSFERS
  1236. #define TIM_DMABurstLength_16Transfers TIM_DMABURSTLENGTH_16TRANSFERS
  1237. #define TIM_DMABurstLength_17Transfers TIM_DMABURSTLENGTH_17TRANSFERS
  1238. #define TIM_DMABurstLength_18Transfers TIM_DMABURSTLENGTH_18TRANSFERS
  1239. #if defined(STM32L0)
  1240. #define TIM22_TI1_GPIO1 TIM22_TI1_GPIO
  1241. #define TIM22_TI1_GPIO2 TIM22_TI1_GPIO
  1242. #endif
  1243. #if defined(STM32F3)
  1244. #define IS_TIM_HALL_INTERFACE_INSTANCE IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE
  1245. #endif
  1246. #if defined(STM32H7)
  1247. #define TIM_TIM1_ETR_COMP1_OUT TIM_TIM1_ETR_COMP1
  1248. #define TIM_TIM1_ETR_COMP2_OUT TIM_TIM1_ETR_COMP2
  1249. #define TIM_TIM8_ETR_COMP1_OUT TIM_TIM8_ETR_COMP1
  1250. #define TIM_TIM8_ETR_COMP2_OUT TIM_TIM8_ETR_COMP2
  1251. #define TIM_TIM2_ETR_COMP1_OUT TIM_TIM2_ETR_COMP1
  1252. #define TIM_TIM2_ETR_COMP2_OUT TIM_TIM2_ETR_COMP2
  1253. #define TIM_TIM3_ETR_COMP1_OUT TIM_TIM3_ETR_COMP1
  1254. #define TIM_TIM1_TI1_COMP1_OUT TIM_TIM1_TI1_COMP1
  1255. #define TIM_TIM8_TI1_COMP2_OUT TIM_TIM8_TI1_COMP2
  1256. #define TIM_TIM2_TI4_COMP1_OUT TIM_TIM2_TI4_COMP1
  1257. #define TIM_TIM2_TI4_COMP2_OUT TIM_TIM2_TI4_COMP2
  1258. #define TIM_TIM2_TI4_COMP1COMP2_OUT TIM_TIM2_TI4_COMP1_COMP2
  1259. #define TIM_TIM3_TI1_COMP1_OUT TIM_TIM3_TI1_COMP1
  1260. #define TIM_TIM3_TI1_COMP2_OUT TIM_TIM3_TI1_COMP2
  1261. #define TIM_TIM3_TI1_COMP1COMP2_OUT TIM_TIM3_TI1_COMP1_COMP2
  1262. #endif
  1263. #if defined(STM32U5)
  1264. #define OCREF_CLEAR_SELECT_Pos OCREF_CLEAR_SELECT_POS
  1265. #define OCREF_CLEAR_SELECT_Msk OCREF_CLEAR_SELECT_MSK
  1266. #endif
  1267. /**
  1268. * @}
  1269. */
  1270. /** @defgroup HAL_TSC_Aliased_Defines HAL TSC Aliased Defines maintained for legacy purpose
  1271. * @{
  1272. */
  1273. #define TSC_SYNC_POL_FALL TSC_SYNC_POLARITY_FALLING
  1274. #define TSC_SYNC_POL_RISE_HIGH TSC_SYNC_POLARITY_RISING
  1275. /**
  1276. * @}
  1277. */
  1278. /** @defgroup HAL_UART_Aliased_Defines HAL UART Aliased Defines maintained for legacy purpose
  1279. * @{
  1280. */
  1281. #define UART_ONEBIT_SAMPLING_DISABLED UART_ONE_BIT_SAMPLE_DISABLE
  1282. #define UART_ONEBIT_SAMPLING_ENABLED UART_ONE_BIT_SAMPLE_ENABLE
  1283. #define UART_ONE_BIT_SAMPLE_DISABLED UART_ONE_BIT_SAMPLE_DISABLE
  1284. #define UART_ONE_BIT_SAMPLE_ENABLED UART_ONE_BIT_SAMPLE_ENABLE
  1285. #define __HAL_UART_ONEBIT_ENABLE __HAL_UART_ONE_BIT_SAMPLE_ENABLE
  1286. #define __HAL_UART_ONEBIT_DISABLE __HAL_UART_ONE_BIT_SAMPLE_DISABLE
  1287. #define __DIV_SAMPLING16 UART_DIV_SAMPLING16
  1288. #define __DIVMANT_SAMPLING16 UART_DIVMANT_SAMPLING16
  1289. #define __DIVFRAQ_SAMPLING16 UART_DIVFRAQ_SAMPLING16
  1290. #define __UART_BRR_SAMPLING16 UART_BRR_SAMPLING16
  1291. #define __DIV_SAMPLING8 UART_DIV_SAMPLING8
  1292. #define __DIVMANT_SAMPLING8 UART_DIVMANT_SAMPLING8
  1293. #define __DIVFRAQ_SAMPLING8 UART_DIVFRAQ_SAMPLING8
  1294. #define __UART_BRR_SAMPLING8 UART_BRR_SAMPLING8
  1295. #define __DIV_LPUART UART_DIV_LPUART
  1296. #define UART_WAKEUPMETHODE_IDLELINE UART_WAKEUPMETHOD_IDLELINE
  1297. #define UART_WAKEUPMETHODE_ADDRESSMARK UART_WAKEUPMETHOD_ADDRESSMARK
  1298. /**
  1299. * @}
  1300. */
  1301. /** @defgroup HAL_USART_Aliased_Defines HAL USART Aliased Defines maintained for legacy purpose
  1302. * @{
  1303. */
  1304. #define USART_CLOCK_DISABLED USART_CLOCK_DISABLE
  1305. #define USART_CLOCK_ENABLED USART_CLOCK_ENABLE
  1306. #define USARTNACK_ENABLED USART_NACK_ENABLE
  1307. #define USARTNACK_DISABLED USART_NACK_DISABLE
  1308. /**
  1309. * @}
  1310. */
  1311. /** @defgroup HAL_WWDG_Aliased_Defines HAL WWDG Aliased Defines maintained for legacy purpose
  1312. * @{
  1313. */
  1314. #define CFR_BASE WWDG_CFR_BASE
  1315. /**
  1316. * @}
  1317. */
  1318. /** @defgroup HAL_CAN_Aliased_Defines HAL CAN Aliased Defines maintained for legacy purpose
  1319. * @{
  1320. */
  1321. #define CAN_FilterFIFO0 CAN_FILTER_FIFO0
  1322. #define CAN_FilterFIFO1 CAN_FILTER_FIFO1
  1323. #define CAN_IT_RQCP0 CAN_IT_TME
  1324. #define CAN_IT_RQCP1 CAN_IT_TME
  1325. #define CAN_IT_RQCP2 CAN_IT_TME
  1326. #define INAK_TIMEOUT CAN_TIMEOUT_VALUE
  1327. #define SLAK_TIMEOUT CAN_TIMEOUT_VALUE
  1328. #define CAN_TXSTATUS_FAILED ((uint8_t)0x00U)
  1329. #define CAN_TXSTATUS_OK ((uint8_t)0x01U)
  1330. #define CAN_TXSTATUS_PENDING ((uint8_t)0x02U)
  1331. /**
  1332. * @}
  1333. */
  1334. /** @defgroup HAL_ETH_Aliased_Defines HAL ETH Aliased Defines maintained for legacy purpose
  1335. * @{
  1336. */
  1337. #define VLAN_TAG ETH_VLAN_TAG
  1338. #define MIN_ETH_PAYLOAD ETH_MIN_ETH_PAYLOAD
  1339. #define MAX_ETH_PAYLOAD ETH_MAX_ETH_PAYLOAD
  1340. #define JUMBO_FRAME_PAYLOAD ETH_JUMBO_FRAME_PAYLOAD
  1341. #define MACMIIAR_CR_MASK ETH_MACMIIAR_CR_MASK
  1342. #define MACCR_CLEAR_MASK ETH_MACCR_CLEAR_MASK
  1343. #define MACFCR_CLEAR_MASK ETH_MACFCR_CLEAR_MASK
  1344. #define DMAOMR_CLEAR_MASK ETH_DMAOMR_CLEAR_MASK
  1345. #define ETH_MMCCR 0x00000100U
  1346. #define ETH_MMCRIR 0x00000104U
  1347. #define ETH_MMCTIR 0x00000108U
  1348. #define ETH_MMCRIMR 0x0000010CU
  1349. #define ETH_MMCTIMR 0x00000110U
  1350. #define ETH_MMCTGFSCCR 0x0000014CU
  1351. #define ETH_MMCTGFMSCCR 0x00000150U
  1352. #define ETH_MMCTGFCR 0x00000168U
  1353. #define ETH_MMCRFCECR 0x00000194U
  1354. #define ETH_MMCRFAECR 0x00000198U
  1355. #define ETH_MMCRGUFCR 0x000001C4U
  1356. #define ETH_MAC_TXFIFO_FULL 0x02000000U /* Tx FIFO full */
  1357. #define ETH_MAC_TXFIFONOT_EMPTY 0x01000000U /* Tx FIFO not empty */
  1358. #define ETH_MAC_TXFIFO_WRITE_ACTIVE 0x00400000U /* Tx FIFO write active */
  1359. #define ETH_MAC_TXFIFO_IDLE 0x00000000U /* Tx FIFO read status: Idle */
  1360. #define ETH_MAC_TXFIFO_READ 0x00100000U /* Tx FIFO read status: Read (transferring data to
  1361. the MAC transmitter) */
  1362. #define ETH_MAC_TXFIFO_WAITING 0x00200000U /* Tx FIFO read status: Waiting for TxStatus from
  1363. MAC transmitter */
  1364. #define ETH_MAC_TXFIFO_WRITING 0x00300000U /* Tx FIFO read status: Writing the received TxStatus
  1365. or flushing the TxFIFO */
  1366. #define ETH_MAC_TRANSMISSION_PAUSE 0x00080000U /* MAC transmitter in pause */
  1367. #define ETH_MAC_TRANSMITFRAMECONTROLLER_IDLE 0x00000000U /* MAC transmit frame controller: Idle */
  1368. #define ETH_MAC_TRANSMITFRAMECONTROLLER_WAITING 0x00020000U /* MAC transmit frame controller: Waiting for Status
  1369. of previous frame or IFG/backoff period to be over */
  1370. #define ETH_MAC_TRANSMITFRAMECONTROLLER_GENRATING_PCF 0x00040000U /* MAC transmit frame controller: Generating and
  1371. transmitting a Pause control frame (in full duplex mode) */
  1372. #define ETH_MAC_TRANSMITFRAMECONTROLLER_TRANSFERRING 0x00060000U /* MAC transmit frame controller: Transferring input
  1373. frame for transmission */
  1374. #define ETH_MAC_MII_TRANSMIT_ACTIVE 0x00010000U /* MAC MII transmit engine active */
  1375. #define ETH_MAC_RXFIFO_EMPTY 0x00000000U /* Rx FIFO fill level: empty */
  1376. #define ETH_MAC_RXFIFO_BELOW_THRESHOLD 0x00000100U /* Rx FIFO fill level: fill-level below flow-control
  1377. de-activate threshold */
  1378. #define ETH_MAC_RXFIFO_ABOVE_THRESHOLD 0x00000200U /* Rx FIFO fill level: fill-level above flow-control
  1379. activate threshold */
  1380. #define ETH_MAC_RXFIFO_FULL 0x00000300U /* Rx FIFO fill level: full */
  1381. #if defined(STM32F1)
  1382. #else
  1383. #define ETH_MAC_READCONTROLLER_IDLE 0x00000000U /* Rx FIFO read controller IDLE state */
  1384. #define ETH_MAC_READCONTROLLER_READING_DATA 0x00000020U /* Rx FIFO read controller Reading frame data */
  1385. #define ETH_MAC_READCONTROLLER_READING_STATUS 0x00000040U /* Rx FIFO read controller Reading frame status
  1386. (or time-stamp) */
  1387. #endif
  1388. #define ETH_MAC_READCONTROLLER_FLUSHING 0x00000060U /* Rx FIFO read controller Flushing the frame data and
  1389. status */
  1390. #define ETH_MAC_RXFIFO_WRITE_ACTIVE 0x00000010U /* Rx FIFO write controller active */
  1391. #define ETH_MAC_SMALL_FIFO_NOTACTIVE 0x00000000U /* MAC small FIFO read / write controllers not active */
  1392. #define ETH_MAC_SMALL_FIFO_READ_ACTIVE 0x00000002U /* MAC small FIFO read controller active */
  1393. #define ETH_MAC_SMALL_FIFO_WRITE_ACTIVE 0x00000004U /* MAC small FIFO write controller active */
  1394. #define ETH_MAC_SMALL_FIFO_RW_ACTIVE 0x00000006U /* MAC small FIFO read / write controllers active */
  1395. #define ETH_MAC_MII_RECEIVE_PROTOCOL_ACTIVE 0x00000001U /* MAC MII receive protocol engine active */
  1396. /**
  1397. * @}
  1398. */
  1399. /** @defgroup HAL_DCMI_Aliased_Defines HAL DCMI Aliased Defines maintained for legacy purpose
  1400. * @{
  1401. */
  1402. #define HAL_DCMI_ERROR_OVF HAL_DCMI_ERROR_OVR
  1403. #define DCMI_IT_OVF DCMI_IT_OVR
  1404. #define DCMI_FLAG_OVFRI DCMI_FLAG_OVRRI
  1405. #define DCMI_FLAG_OVFMI DCMI_FLAG_OVRMI
  1406. #define HAL_DCMI_ConfigCROP HAL_DCMI_ConfigCrop
  1407. #define HAL_DCMI_EnableCROP HAL_DCMI_EnableCrop
  1408. #define HAL_DCMI_DisableCROP HAL_DCMI_DisableCrop
  1409. /**
  1410. * @}
  1411. */
  1412. #if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \
  1413. || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \
  1414. || defined(STM32H7)
  1415. /** @defgroup HAL_DMA2D_Aliased_Defines HAL DMA2D Aliased Defines maintained for legacy purpose
  1416. * @{
  1417. */
  1418. #define DMA2D_ARGB8888 DMA2D_OUTPUT_ARGB8888
  1419. #define DMA2D_RGB888 DMA2D_OUTPUT_RGB888
  1420. #define DMA2D_RGB565 DMA2D_OUTPUT_RGB565
  1421. #define DMA2D_ARGB1555 DMA2D_OUTPUT_ARGB1555
  1422. #define DMA2D_ARGB4444 DMA2D_OUTPUT_ARGB4444
  1423. #define CM_ARGB8888 DMA2D_INPUT_ARGB8888
  1424. #define CM_RGB888 DMA2D_INPUT_RGB888
  1425. #define CM_RGB565 DMA2D_INPUT_RGB565
  1426. #define CM_ARGB1555 DMA2D_INPUT_ARGB1555
  1427. #define CM_ARGB4444 DMA2D_INPUT_ARGB4444
  1428. #define CM_L8 DMA2D_INPUT_L8
  1429. #define CM_AL44 DMA2D_INPUT_AL44
  1430. #define CM_AL88 DMA2D_INPUT_AL88
  1431. #define CM_L4 DMA2D_INPUT_L4
  1432. #define CM_A8 DMA2D_INPUT_A8
  1433. #define CM_A4 DMA2D_INPUT_A4
  1434. /**
  1435. * @}
  1436. */
  1437. #endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 */
  1438. #if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \
  1439. || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \
  1440. || defined(STM32H7) || defined(STM32U5)
  1441. /** @defgroup DMA2D_Aliases DMA2D API Aliases
  1442. * @{
  1443. */
  1444. #define HAL_DMA2D_DisableCLUT HAL_DMA2D_CLUTLoading_Abort /*!< Aliased to HAL_DMA2D_CLUTLoading_Abort
  1445. for compatibility with legacy code */
  1446. /**
  1447. * @}
  1448. */
  1449. #endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 || STM32U5 */
  1450. /** @defgroup HAL_PPP_Aliased_Defines HAL PPP Aliased Defines maintained for legacy purpose
  1451. * @{
  1452. */
  1453. /**
  1454. * @}
  1455. */
  1456. /* Exported functions --------------------------------------------------------*/
  1457. /** @defgroup HAL_CRYP_Aliased_Functions HAL CRYP Aliased Functions maintained for legacy purpose
  1458. * @{
  1459. */
  1460. #define HAL_CRYP_ComputationCpltCallback HAL_CRYPEx_ComputationCpltCallback
  1461. /**
  1462. * @}
  1463. */
  1464. /** @defgroup HAL_DCACHE_Aliased_Functions HAL DCACHE Aliased Functions maintained for legacy purpose
  1465. * @{
  1466. */
  1467. #if defined(STM32U5)
  1468. #define HAL_DCACHE_CleanInvalidateByAddr HAL_DCACHE_CleanInvalidByAddr
  1469. #define HAL_DCACHE_CleanInvalidateByAddr_IT HAL_DCACHE_CleanInvalidByAddr_IT
  1470. #endif /* STM32U5 */
  1471. /**
  1472. * @}
  1473. */
  1474. #if !defined(STM32F2)
  1475. /** @defgroup HASH_alias HASH API alias
  1476. * @{
  1477. */
  1478. #define HAL_HASHEx_IRQHandler HAL_HASH_IRQHandler /*!< Redirection for compatibility with legacy code */
  1479. /**
  1480. *
  1481. * @}
  1482. */
  1483. #endif /* STM32F2 */
  1484. /** @defgroup HAL_HASH_Aliased_Functions HAL HASH Aliased Functions maintained for legacy purpose
  1485. * @{
  1486. */
  1487. #define HAL_HASH_STATETypeDef HAL_HASH_StateTypeDef
  1488. #define HAL_HASHPhaseTypeDef HAL_HASH_PhaseTypeDef
  1489. #define HAL_HMAC_MD5_Finish HAL_HASH_MD5_Finish
  1490. #define HAL_HMAC_SHA1_Finish HAL_HASH_SHA1_Finish
  1491. #define HAL_HMAC_SHA224_Finish HAL_HASH_SHA224_Finish
  1492. #define HAL_HMAC_SHA256_Finish HAL_HASH_SHA256_Finish
  1493. /*HASH Algorithm Selection*/
  1494. #define HASH_AlgoSelection_SHA1 HASH_ALGOSELECTION_SHA1
  1495. #define HASH_AlgoSelection_SHA224 HASH_ALGOSELECTION_SHA224
  1496. #define HASH_AlgoSelection_SHA256 HASH_ALGOSELECTION_SHA256
  1497. #define HASH_AlgoSelection_MD5 HASH_ALGOSELECTION_MD5
  1498. #define HASH_AlgoMode_HASH HASH_ALGOMODE_HASH
  1499. #define HASH_AlgoMode_HMAC HASH_ALGOMODE_HMAC
  1500. #define HASH_HMACKeyType_ShortKey HASH_HMAC_KEYTYPE_SHORTKEY
  1501. #define HASH_HMACKeyType_LongKey HASH_HMAC_KEYTYPE_LONGKEY
  1502. #if defined(STM32L4) || defined(STM32L5) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
  1503. #define HAL_HASH_MD5_Accumulate HAL_HASH_MD5_Accmlt
  1504. #define HAL_HASH_MD5_Accumulate_End HAL_HASH_MD5_Accmlt_End
  1505. #define HAL_HASH_MD5_Accumulate_IT HAL_HASH_MD5_Accmlt_IT
  1506. #define HAL_HASH_MD5_Accumulate_End_IT HAL_HASH_MD5_Accmlt_End_IT
  1507. #define HAL_HASH_SHA1_Accumulate HAL_HASH_SHA1_Accmlt
  1508. #define HAL_HASH_SHA1_Accumulate_End HAL_HASH_SHA1_Accmlt_End
  1509. #define HAL_HASH_SHA1_Accumulate_IT HAL_HASH_SHA1_Accmlt_IT
  1510. #define HAL_HASH_SHA1_Accumulate_End_IT HAL_HASH_SHA1_Accmlt_End_IT
  1511. #define HAL_HASHEx_SHA224_Accumulate HAL_HASHEx_SHA224_Accmlt
  1512. #define HAL_HASHEx_SHA224_Accumulate_End HAL_HASHEx_SHA224_Accmlt_End
  1513. #define HAL_HASHEx_SHA224_Accumulate_IT HAL_HASHEx_SHA224_Accmlt_IT
  1514. #define HAL_HASHEx_SHA224_Accumulate_End_IT HAL_HASHEx_SHA224_Accmlt_End_IT
  1515. #define HAL_HASHEx_SHA256_Accumulate HAL_HASHEx_SHA256_Accmlt
  1516. #define HAL_HASHEx_SHA256_Accumulate_End HAL_HASHEx_SHA256_Accmlt_End
  1517. #define HAL_HASHEx_SHA256_Accumulate_IT HAL_HASHEx_SHA256_Accmlt_IT
  1518. #define HAL_HASHEx_SHA256_Accumulate_End_IT HAL_HASHEx_SHA256_Accmlt_End_IT
  1519. #endif /* STM32L4 || STM32L5 || STM32F2 || STM32F4 || STM32F7 || STM32H7 */
  1520. /**
  1521. * @}
  1522. */
  1523. /** @defgroup HAL_Aliased_Functions HAL Generic Aliased Functions maintained for legacy purpose
  1524. * @{
  1525. */
  1526. #define HAL_EnableDBGSleepMode HAL_DBGMCU_EnableDBGSleepMode
  1527. #define HAL_DisableDBGSleepMode HAL_DBGMCU_DisableDBGSleepMode
  1528. #define HAL_EnableDBGStopMode HAL_DBGMCU_EnableDBGStopMode
  1529. #define HAL_DisableDBGStopMode HAL_DBGMCU_DisableDBGStopMode
  1530. #define HAL_EnableDBGStandbyMode HAL_DBGMCU_EnableDBGStandbyMode
  1531. #define HAL_DisableDBGStandbyMode HAL_DBGMCU_DisableDBGStandbyMode
  1532. #define HAL_DBG_LowPowerConfig(Periph, cmd) (((cmd\
  1533. )==ENABLE)? HAL_DBGMCU_DBG_EnableLowPowerConfig(Periph) : \
  1534. HAL_DBGMCU_DBG_DisableLowPowerConfig(Periph))
  1535. #define HAL_VREFINT_OutputSelect HAL_SYSCFG_VREFINT_OutputSelect
  1536. #define HAL_Lock_Cmd(cmd) (((cmd)==ENABLE) ? HAL_SYSCFG_Enable_Lock_VREFINT() : HAL_SYSCFG_Disable_Lock_VREFINT())
  1537. #if defined(STM32L0)
  1538. #else
  1539. #define HAL_VREFINT_Cmd(cmd) (((cmd)==ENABLE)? HAL_SYSCFG_EnableVREFINT() : HAL_SYSCFG_DisableVREFINT())
  1540. #endif
  1541. #define HAL_ADC_EnableBuffer_Cmd(cmd) (((cmd)==ENABLE) ? HAL_ADCEx_EnableVREFINT() : HAL_ADCEx_DisableVREFINT())
  1542. #define HAL_ADC_EnableBufferSensor_Cmd(cmd) (((cmd\
  1543. )==ENABLE) ? HAL_ADCEx_EnableVREFINTTempSensor() : \
  1544. HAL_ADCEx_DisableVREFINTTempSensor())
  1545. #if defined(STM32H7A3xx) || defined(STM32H7B3xx) || defined(STM32H7B0xx) || defined(STM32H7A3xxQ) || \
  1546. defined(STM32H7B3xxQ) || defined(STM32H7B0xxQ)
  1547. #define HAL_EnableSRDomainDBGStopMode HAL_EnableDomain3DBGStopMode
  1548. #define HAL_DisableSRDomainDBGStopMode HAL_DisableDomain3DBGStopMode
  1549. #define HAL_EnableSRDomainDBGStandbyMode HAL_EnableDomain3DBGStandbyMode
  1550. #define HAL_DisableSRDomainDBGStandbyMode HAL_DisableDomain3DBGStandbyMode
  1551. #endif /* STM32H7A3xx || STM32H7B3xx || STM32H7B0xx || STM32H7A3xxQ || STM32H7B3xxQ || STM32H7B0xxQ */
  1552. /**
  1553. * @}
  1554. */
  1555. /** @defgroup HAL_FLASH_Aliased_Functions HAL FLASH Aliased Functions maintained for legacy purpose
  1556. * @{
  1557. */
  1558. #define FLASH_HalfPageProgram HAL_FLASHEx_HalfPageProgram
  1559. #define FLASH_EnableRunPowerDown HAL_FLASHEx_EnableRunPowerDown
  1560. #define FLASH_DisableRunPowerDown HAL_FLASHEx_DisableRunPowerDown
  1561. #define HAL_DATA_EEPROMEx_Unlock HAL_FLASHEx_DATAEEPROM_Unlock
  1562. #define HAL_DATA_EEPROMEx_Lock HAL_FLASHEx_DATAEEPROM_Lock
  1563. #define HAL_DATA_EEPROMEx_Erase HAL_FLASHEx_DATAEEPROM_Erase
  1564. #define HAL_DATA_EEPROMEx_Program HAL_FLASHEx_DATAEEPROM_Program
  1565. /**
  1566. * @}
  1567. */
  1568. /** @defgroup HAL_I2C_Aliased_Functions HAL I2C Aliased Functions maintained for legacy purpose
  1569. * @{
  1570. */
  1571. #define HAL_I2CEx_AnalogFilter_Config HAL_I2CEx_ConfigAnalogFilter
  1572. #define HAL_I2CEx_DigitalFilter_Config HAL_I2CEx_ConfigDigitalFilter
  1573. #define HAL_FMPI2CEx_AnalogFilter_Config HAL_FMPI2CEx_ConfigAnalogFilter
  1574. #define HAL_FMPI2CEx_DigitalFilter_Config HAL_FMPI2CEx_ConfigDigitalFilter
  1575. #define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) ((cmd == ENABLE)? \
  1576. HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): \
  1577. HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus))
  1578. #if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || \
  1579. defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || \
  1580. defined(STM32L4) || defined(STM32L5) || defined(STM32G4) || defined(STM32L1)
  1581. #define HAL_I2C_Master_Sequential_Transmit_IT HAL_I2C_Master_Seq_Transmit_IT
  1582. #define HAL_I2C_Master_Sequential_Receive_IT HAL_I2C_Master_Seq_Receive_IT
  1583. #define HAL_I2C_Slave_Sequential_Transmit_IT HAL_I2C_Slave_Seq_Transmit_IT
  1584. #define HAL_I2C_Slave_Sequential_Receive_IT HAL_I2C_Slave_Seq_Receive_IT
  1585. #endif /* STM32H7 || STM32WB || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 ||
  1586. STM32L4 || STM32L5 || STM32G4 || STM32L1 */
  1587. #if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F4) || defined(STM32F7) || \
  1588. defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4)|| defined(STM32L1)
  1589. #define HAL_I2C_Master_Sequential_Transmit_DMA HAL_I2C_Master_Seq_Transmit_DMA
  1590. #define HAL_I2C_Master_Sequential_Receive_DMA HAL_I2C_Master_Seq_Receive_DMA
  1591. #define HAL_I2C_Slave_Sequential_Transmit_DMA HAL_I2C_Slave_Seq_Transmit_DMA
  1592. #define HAL_I2C_Slave_Sequential_Receive_DMA HAL_I2C_Slave_Seq_Receive_DMA
  1593. #endif /* STM32H7 || STM32WB || STM32G0 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */
  1594. #if defined(STM32F4)
  1595. #define HAL_FMPI2C_Master_Sequential_Transmit_IT HAL_FMPI2C_Master_Seq_Transmit_IT
  1596. #define HAL_FMPI2C_Master_Sequential_Receive_IT HAL_FMPI2C_Master_Seq_Receive_IT
  1597. #define HAL_FMPI2C_Slave_Sequential_Transmit_IT HAL_FMPI2C_Slave_Seq_Transmit_IT
  1598. #define HAL_FMPI2C_Slave_Sequential_Receive_IT HAL_FMPI2C_Slave_Seq_Receive_IT
  1599. #define HAL_FMPI2C_Master_Sequential_Transmit_DMA HAL_FMPI2C_Master_Seq_Transmit_DMA
  1600. #define HAL_FMPI2C_Master_Sequential_Receive_DMA HAL_FMPI2C_Master_Seq_Receive_DMA
  1601. #define HAL_FMPI2C_Slave_Sequential_Transmit_DMA HAL_FMPI2C_Slave_Seq_Transmit_DMA
  1602. #define HAL_FMPI2C_Slave_Sequential_Receive_DMA HAL_FMPI2C_Slave_Seq_Receive_DMA
  1603. #endif /* STM32F4 */
  1604. /**
  1605. * @}
  1606. */
  1607. /** @defgroup HAL_PWR_Aliased HAL PWR Aliased maintained for legacy purpose
  1608. * @{
  1609. */
  1610. #if defined(STM32G0)
  1611. #define HAL_PWR_ConfigPVD HAL_PWREx_ConfigPVD
  1612. #define HAL_PWR_EnablePVD HAL_PWREx_EnablePVD
  1613. #define HAL_PWR_DisablePVD HAL_PWREx_DisablePVD
  1614. #define HAL_PWR_PVD_IRQHandler HAL_PWREx_PVD_IRQHandler
  1615. #endif
  1616. #define HAL_PWR_PVDConfig HAL_PWR_ConfigPVD
  1617. #define HAL_PWR_DisableBkUpReg HAL_PWREx_DisableBkUpReg
  1618. #define HAL_PWR_DisableFlashPowerDown HAL_PWREx_DisableFlashPowerDown
  1619. #define HAL_PWR_DisableVddio2Monitor HAL_PWREx_DisableVddio2Monitor
  1620. #define HAL_PWR_EnableBkUpReg HAL_PWREx_EnableBkUpReg
  1621. #define HAL_PWR_EnableFlashPowerDown HAL_PWREx_EnableFlashPowerDown
  1622. #define HAL_PWR_EnableVddio2Monitor HAL_PWREx_EnableVddio2Monitor
  1623. #define HAL_PWR_PVD_PVM_IRQHandler HAL_PWREx_PVD_PVM_IRQHandler
  1624. #define HAL_PWR_PVDLevelConfig HAL_PWR_ConfigPVD
  1625. #define HAL_PWR_Vddio2Monitor_IRQHandler HAL_PWREx_Vddio2Monitor_IRQHandler
  1626. #define HAL_PWR_Vddio2MonitorCallback HAL_PWREx_Vddio2MonitorCallback
  1627. #define HAL_PWREx_ActivateOverDrive HAL_PWREx_EnableOverDrive
  1628. #define HAL_PWREx_DeactivateOverDrive HAL_PWREx_DisableOverDrive
  1629. #define HAL_PWREx_DisableSDADCAnalog HAL_PWREx_DisableSDADC
  1630. #define HAL_PWREx_EnableSDADCAnalog HAL_PWREx_EnableSDADC
  1631. #define HAL_PWREx_PVMConfig HAL_PWREx_ConfigPVM
  1632. #define PWR_MODE_NORMAL PWR_PVD_MODE_NORMAL
  1633. #define PWR_MODE_IT_RISING PWR_PVD_MODE_IT_RISING
  1634. #define PWR_MODE_IT_FALLING PWR_PVD_MODE_IT_FALLING
  1635. #define PWR_MODE_IT_RISING_FALLING PWR_PVD_MODE_IT_RISING_FALLING
  1636. #define PWR_MODE_EVENT_RISING PWR_PVD_MODE_EVENT_RISING
  1637. #define PWR_MODE_EVENT_FALLING PWR_PVD_MODE_EVENT_FALLING
  1638. #define PWR_MODE_EVENT_RISING_FALLING PWR_PVD_MODE_EVENT_RISING_FALLING
  1639. #define CR_OFFSET_BB PWR_CR_OFFSET_BB
  1640. #define CSR_OFFSET_BB PWR_CSR_OFFSET_BB
  1641. #define PMODE_BIT_NUMBER VOS_BIT_NUMBER
  1642. #define CR_PMODE_BB CR_VOS_BB
  1643. #define DBP_BitNumber DBP_BIT_NUMBER
  1644. #define PVDE_BitNumber PVDE_BIT_NUMBER
  1645. #define PMODE_BitNumber PMODE_BIT_NUMBER
  1646. #define EWUP_BitNumber EWUP_BIT_NUMBER
  1647. #define FPDS_BitNumber FPDS_BIT_NUMBER
  1648. #define ODEN_BitNumber ODEN_BIT_NUMBER
  1649. #define ODSWEN_BitNumber ODSWEN_BIT_NUMBER
  1650. #define MRLVDS_BitNumber MRLVDS_BIT_NUMBER
  1651. #define LPLVDS_BitNumber LPLVDS_BIT_NUMBER
  1652. #define BRE_BitNumber BRE_BIT_NUMBER
  1653. #define PWR_MODE_EVT PWR_PVD_MODE_NORMAL
  1654. #if defined (STM32U5)
  1655. #define PWR_SRAM1_PAGE1_STOP_RETENTION PWR_SRAM1_PAGE1_STOP
  1656. #define PWR_SRAM1_PAGE2_STOP_RETENTION PWR_SRAM1_PAGE2_STOP
  1657. #define PWR_SRAM1_PAGE3_STOP_RETENTION PWR_SRAM1_PAGE3_STOP
  1658. #define PWR_SRAM1_PAGE4_STOP_RETENTION PWR_SRAM1_PAGE4_STOP
  1659. #define PWR_SRAM1_PAGE5_STOP_RETENTION PWR_SRAM1_PAGE5_STOP
  1660. #define PWR_SRAM1_PAGE6_STOP_RETENTION PWR_SRAM1_PAGE6_STOP
  1661. #define PWR_SRAM1_PAGE7_STOP_RETENTION PWR_SRAM1_PAGE7_STOP
  1662. #define PWR_SRAM1_PAGE8_STOP_RETENTION PWR_SRAM1_PAGE8_STOP
  1663. #define PWR_SRAM1_PAGE9_STOP_RETENTION PWR_SRAM1_PAGE9_STOP
  1664. #define PWR_SRAM1_PAGE10_STOP_RETENTION PWR_SRAM1_PAGE10_STOP
  1665. #define PWR_SRAM1_PAGE11_STOP_RETENTION PWR_SRAM1_PAGE11_STOP
  1666. #define PWR_SRAM1_PAGE12_STOP_RETENTION PWR_SRAM1_PAGE12_STOP
  1667. #define PWR_SRAM1_FULL_STOP_RETENTION PWR_SRAM1_FULL_STOP
  1668. #define PWR_SRAM2_PAGE1_STOP_RETENTION PWR_SRAM2_PAGE1_STOP
  1669. #define PWR_SRAM2_PAGE2_STOP_RETENTION PWR_SRAM2_PAGE2_STOP
  1670. #define PWR_SRAM2_FULL_STOP_RETENTION PWR_SRAM2_FULL_STOP
  1671. #define PWR_SRAM3_PAGE1_STOP_RETENTION PWR_SRAM3_PAGE1_STOP
  1672. #define PWR_SRAM3_PAGE2_STOP_RETENTION PWR_SRAM3_PAGE2_STOP
  1673. #define PWR_SRAM3_PAGE3_STOP_RETENTION PWR_SRAM3_PAGE3_STOP
  1674. #define PWR_SRAM3_PAGE4_STOP_RETENTION PWR_SRAM3_PAGE4_STOP
  1675. #define PWR_SRAM3_PAGE5_STOP_RETENTION PWR_SRAM3_PAGE5_STOP
  1676. #define PWR_SRAM3_PAGE6_STOP_RETENTION PWR_SRAM3_PAGE6_STOP
  1677. #define PWR_SRAM3_PAGE7_STOP_RETENTION PWR_SRAM3_PAGE7_STOP
  1678. #define PWR_SRAM3_PAGE8_STOP_RETENTION PWR_SRAM3_PAGE8_STOP
  1679. #define PWR_SRAM3_PAGE9_STOP_RETENTION PWR_SRAM3_PAGE9_STOP
  1680. #define PWR_SRAM3_PAGE10_STOP_RETENTION PWR_SRAM3_PAGE10_STOP
  1681. #define PWR_SRAM3_PAGE11_STOP_RETENTION PWR_SRAM3_PAGE11_STOP
  1682. #define PWR_SRAM3_PAGE12_STOP_RETENTION PWR_SRAM3_PAGE12_STOP
  1683. #define PWR_SRAM3_PAGE13_STOP_RETENTION PWR_SRAM3_PAGE13_STOP
  1684. #define PWR_SRAM3_FULL_STOP_RETENTION PWR_SRAM3_FULL_STOP
  1685. #define PWR_SRAM4_FULL_STOP_RETENTION PWR_SRAM4_FULL_STOP
  1686. #define PWR_SRAM5_PAGE1_STOP_RETENTION PWR_SRAM5_PAGE1_STOP
  1687. #define PWR_SRAM5_PAGE2_STOP_RETENTION PWR_SRAM5_PAGE2_STOP
  1688. #define PWR_SRAM5_PAGE3_STOP_RETENTION PWR_SRAM5_PAGE3_STOP
  1689. #define PWR_SRAM5_PAGE4_STOP_RETENTION PWR_SRAM5_PAGE4_STOP
  1690. #define PWR_SRAM5_PAGE5_STOP_RETENTION PWR_SRAM5_PAGE5_STOP
  1691. #define PWR_SRAM5_PAGE6_STOP_RETENTION PWR_SRAM5_PAGE6_STOP
  1692. #define PWR_SRAM5_PAGE7_STOP_RETENTION PWR_SRAM5_PAGE7_STOP
  1693. #define PWR_SRAM5_PAGE8_STOP_RETENTION PWR_SRAM5_PAGE8_STOP
  1694. #define PWR_SRAM5_PAGE9_STOP_RETENTION PWR_SRAM5_PAGE9_STOP
  1695. #define PWR_SRAM5_PAGE10_STOP_RETENTION PWR_SRAM5_PAGE10_STOP
  1696. #define PWR_SRAM5_PAGE11_STOP_RETENTION PWR_SRAM5_PAGE11_STOP
  1697. #define PWR_SRAM5_PAGE12_STOP_RETENTION PWR_SRAM5_PAGE12_STOP
  1698. #define PWR_SRAM5_PAGE13_STOP_RETENTION PWR_SRAM5_PAGE13_STOP
  1699. #define PWR_SRAM5_FULL_STOP_RETENTION PWR_SRAM5_FULL_STOP
  1700. #define PWR_SRAM6_PAGE1_STOP_RETENTION PWR_SRAM6_PAGE1_STOP
  1701. #define PWR_SRAM6_PAGE2_STOP_RETENTION PWR_SRAM6_PAGE2_STOP
  1702. #define PWR_SRAM6_PAGE3_STOP_RETENTION PWR_SRAM6_PAGE3_STOP
  1703. #define PWR_SRAM6_PAGE4_STOP_RETENTION PWR_SRAM6_PAGE4_STOP
  1704. #define PWR_SRAM6_PAGE5_STOP_RETENTION PWR_SRAM6_PAGE5_STOP
  1705. #define PWR_SRAM6_PAGE6_STOP_RETENTION PWR_SRAM6_PAGE6_STOP
  1706. #define PWR_SRAM6_PAGE7_STOP_RETENTION PWR_SRAM6_PAGE7_STOP
  1707. #define PWR_SRAM6_PAGE8_STOP_RETENTION PWR_SRAM6_PAGE8_STOP
  1708. #define PWR_SRAM6_FULL_STOP_RETENTION PWR_SRAM6_FULL_STOP
  1709. #define PWR_ICACHE_FULL_STOP_RETENTION PWR_ICACHE_FULL_STOP
  1710. #define PWR_DCACHE1_FULL_STOP_RETENTION PWR_DCACHE1_FULL_STOP
  1711. #define PWR_DCACHE2_FULL_STOP_RETENTION PWR_DCACHE2_FULL_STOP
  1712. #define PWR_DMA2DRAM_FULL_STOP_RETENTION PWR_DMA2DRAM_FULL_STOP
  1713. #define PWR_PERIPHRAM_FULL_STOP_RETENTION PWR_PERIPHRAM_FULL_STOP
  1714. #define PWR_PKA32RAM_FULL_STOP_RETENTION PWR_PKA32RAM_FULL_STOP
  1715. #define PWR_GRAPHICPRAM_FULL_STOP_RETENTION PWR_GRAPHICPRAM_FULL_STOP
  1716. #define PWR_DSIRAM_FULL_STOP_RETENTION PWR_DSIRAM_FULL_STOP
  1717. #define PWR_JPEGRAM_FULL_STOP_RETENTION PWR_JPEGRAM_FULL_STOP
  1718. #define PWR_SRAM2_PAGE1_STANDBY_RETENTION PWR_SRAM2_PAGE1_STANDBY
  1719. #define PWR_SRAM2_PAGE2_STANDBY_RETENTION PWR_SRAM2_PAGE2_STANDBY
  1720. #define PWR_SRAM2_FULL_STANDBY_RETENTION PWR_SRAM2_FULL_STANDBY
  1721. #define PWR_SRAM1_FULL_RUN_RETENTION PWR_SRAM1_FULL_RUN
  1722. #define PWR_SRAM2_FULL_RUN_RETENTION PWR_SRAM2_FULL_RUN
  1723. #define PWR_SRAM3_FULL_RUN_RETENTION PWR_SRAM3_FULL_RUN
  1724. #define PWR_SRAM4_FULL_RUN_RETENTION PWR_SRAM4_FULL_RUN
  1725. #define PWR_SRAM5_FULL_RUN_RETENTION PWR_SRAM5_FULL_RUN
  1726. #define PWR_SRAM6_FULL_RUN_RETENTION PWR_SRAM6_FULL_RUN
  1727. #define PWR_ALL_RAM_RUN_RETENTION_MASK PWR_ALL_RAM_RUN_MASK
  1728. #endif
  1729. /**
  1730. * @}
  1731. */
  1732. /** @defgroup HAL_RTC_Aliased_Functions HAL RTC Aliased Functions maintained for legacy purpose
  1733. * @{
  1734. */
  1735. #if defined(STM32H5) || defined(STM32WBA)
  1736. #define HAL_RTCEx_SetBoothardwareKey HAL_RTCEx_LockBootHardwareKey
  1737. #define HAL_RTCEx_BKUPBlock_Enable HAL_RTCEx_BKUPBlock
  1738. #define HAL_RTCEx_BKUPBlock_Disable HAL_RTCEx_BKUPUnblock
  1739. #define HAL_RTCEx_Erase_SecretDev_Conf HAL_RTCEx_ConfigEraseDeviceSecrets
  1740. #endif /* STM32H5 || STM32WBA */
  1741. /**
  1742. * @}
  1743. */
  1744. /** @defgroup HAL_SMBUS_Aliased_Functions HAL SMBUS Aliased Functions maintained for legacy purpose
  1745. * @{
  1746. */
  1747. #define HAL_SMBUS_Slave_Listen_IT HAL_SMBUS_EnableListen_IT
  1748. #define HAL_SMBUS_SlaveAddrCallback HAL_SMBUS_AddrCallback
  1749. #define HAL_SMBUS_SlaveListenCpltCallback HAL_SMBUS_ListenCpltCallback
  1750. /**
  1751. * @}
  1752. */
  1753. /** @defgroup HAL_SPI_Aliased_Functions HAL SPI Aliased Functions maintained for legacy purpose
  1754. * @{
  1755. */
  1756. #define HAL_SPI_FlushRxFifo HAL_SPIEx_FlushRxFifo
  1757. /**
  1758. * @}
  1759. */
  1760. /** @defgroup HAL_TIM_Aliased_Functions HAL TIM Aliased Functions maintained for legacy purpose
  1761. * @{
  1762. */
  1763. #define HAL_TIM_DMADelayPulseCplt TIM_DMADelayPulseCplt
  1764. #define HAL_TIM_DMAError TIM_DMAError
  1765. #define HAL_TIM_DMACaptureCplt TIM_DMACaptureCplt
  1766. #define HAL_TIMEx_DMACommutationCplt TIMEx_DMACommutationCplt
  1767. #if defined(STM32H7) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || \
  1768. defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4)
  1769. #define HAL_TIM_SlaveConfigSynchronization HAL_TIM_SlaveConfigSynchro
  1770. #define HAL_TIM_SlaveConfigSynchronization_IT HAL_TIM_SlaveConfigSynchro_IT
  1771. #define HAL_TIMEx_CommutationCallback HAL_TIMEx_CommutCallback
  1772. #define HAL_TIMEx_ConfigCommutationEvent HAL_TIMEx_ConfigCommutEvent
  1773. #define HAL_TIMEx_ConfigCommutationEvent_IT HAL_TIMEx_ConfigCommutEvent_IT
  1774. #define HAL_TIMEx_ConfigCommutationEvent_DMA HAL_TIMEx_ConfigCommutEvent_DMA
  1775. #endif /* STM32H7 || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 */
  1776. /**
  1777. * @}
  1778. */
  1779. /** @defgroup HAL_UART_Aliased_Functions HAL UART Aliased Functions maintained for legacy purpose
  1780. * @{
  1781. */
  1782. #define HAL_UART_WakeupCallback HAL_UARTEx_WakeupCallback
  1783. /**
  1784. * @}
  1785. */
  1786. /** @defgroup HAL_LTDC_Aliased_Functions HAL LTDC Aliased Functions maintained for legacy purpose
  1787. * @{
  1788. */
  1789. #define HAL_LTDC_LineEvenCallback HAL_LTDC_LineEventCallback
  1790. #define HAL_LTDC_Relaod HAL_LTDC_Reload
  1791. #define HAL_LTDC_StructInitFromVideoConfig HAL_LTDCEx_StructInitFromVideoConfig
  1792. #define HAL_LTDC_StructInitFromAdaptedCommandConfig HAL_LTDCEx_StructInitFromAdaptedCommandConfig
  1793. /**
  1794. * @}
  1795. */
  1796. /** @defgroup HAL_PPP_Aliased_Functions HAL PPP Aliased Functions maintained for legacy purpose
  1797. * @{
  1798. */
  1799. /**
  1800. * @}
  1801. */
  1802. /* Exported macros ------------------------------------------------------------*/
  1803. /** @defgroup HAL_AES_Aliased_Macros HAL CRYP Aliased Macros maintained for legacy purpose
  1804. * @{
  1805. */
  1806. #define AES_IT_CC CRYP_IT_CC
  1807. #define AES_IT_ERR CRYP_IT_ERR
  1808. #define AES_FLAG_CCF CRYP_FLAG_CCF
  1809. /**
  1810. * @}
  1811. */
  1812. /** @defgroup HAL_Aliased_Macros HAL Generic Aliased Macros maintained for legacy purpose
  1813. * @{
  1814. */
  1815. #define __HAL_GET_BOOT_MODE __HAL_SYSCFG_GET_BOOT_MODE
  1816. #define __HAL_REMAPMEMORY_FLASH __HAL_SYSCFG_REMAPMEMORY_FLASH
  1817. #define __HAL_REMAPMEMORY_SYSTEMFLASH __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH
  1818. #define __HAL_REMAPMEMORY_SRAM __HAL_SYSCFG_REMAPMEMORY_SRAM
  1819. #define __HAL_REMAPMEMORY_FMC __HAL_SYSCFG_REMAPMEMORY_FMC
  1820. #define __HAL_REMAPMEMORY_FMC_SDRAM __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM
  1821. #define __HAL_REMAPMEMORY_FSMC __HAL_SYSCFG_REMAPMEMORY_FSMC
  1822. #define __HAL_REMAPMEMORY_QUADSPI __HAL_SYSCFG_REMAPMEMORY_QUADSPI
  1823. #define __HAL_FMC_BANK __HAL_SYSCFG_FMC_BANK
  1824. #define __HAL_GET_FLAG __HAL_SYSCFG_GET_FLAG
  1825. #define __HAL_CLEAR_FLAG __HAL_SYSCFG_CLEAR_FLAG
  1826. #define __HAL_VREFINT_OUT_ENABLE __HAL_SYSCFG_VREFINT_OUT_ENABLE
  1827. #define __HAL_VREFINT_OUT_DISABLE __HAL_SYSCFG_VREFINT_OUT_DISABLE
  1828. #define __HAL_SYSCFG_SRAM2_WRP_ENABLE __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE
  1829. #define SYSCFG_FLAG_VREF_READY SYSCFG_FLAG_VREFINT_READY
  1830. #define SYSCFG_FLAG_RC48 RCC_FLAG_HSI48
  1831. #define IS_SYSCFG_FASTMODEPLUS_CONFIG IS_I2C_FASTMODEPLUS
  1832. #define UFB_MODE_BitNumber UFB_MODE_BIT_NUMBER
  1833. #define CMP_PD_BitNumber CMP_PD_BIT_NUMBER
  1834. /**
  1835. * @}
  1836. */
  1837. /** @defgroup HAL_ADC_Aliased_Macros HAL ADC Aliased Macros maintained for legacy purpose
  1838. * @{
  1839. */
  1840. #define __ADC_ENABLE __HAL_ADC_ENABLE
  1841. #define __ADC_DISABLE __HAL_ADC_DISABLE
  1842. #define __HAL_ADC_ENABLING_CONDITIONS ADC_ENABLING_CONDITIONS
  1843. #define __HAL_ADC_DISABLING_CONDITIONS ADC_DISABLING_CONDITIONS
  1844. #define __HAL_ADC_IS_ENABLED ADC_IS_ENABLE
  1845. #define __ADC_IS_ENABLED ADC_IS_ENABLE
  1846. #define __HAL_ADC_IS_SOFTWARE_START_REGULAR ADC_IS_SOFTWARE_START_REGULAR
  1847. #define __HAL_ADC_IS_SOFTWARE_START_INJECTED ADC_IS_SOFTWARE_START_INJECTED
  1848. #define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED
  1849. #define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR ADC_IS_CONVERSION_ONGOING_REGULAR
  1850. #define __HAL_ADC_IS_CONVERSION_ONGOING_INJECTED ADC_IS_CONVERSION_ONGOING_INJECTED
  1851. #define __HAL_ADC_IS_CONVERSION_ONGOING ADC_IS_CONVERSION_ONGOING
  1852. #define __HAL_ADC_CLEAR_ERRORCODE ADC_CLEAR_ERRORCODE
  1853. #define __HAL_ADC_GET_RESOLUTION ADC_GET_RESOLUTION
  1854. #define __HAL_ADC_JSQR_RK ADC_JSQR_RK
  1855. #define __HAL_ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_SHIFT
  1856. #define __HAL_ADC_CFGR_AWD23CR ADC_CFGR_AWD23CR
  1857. #define __HAL_ADC_CFGR_INJECT_AUTO_CONVERSION ADC_CFGR_INJECT_AUTO_CONVERSION
  1858. #define __HAL_ADC_CFGR_INJECT_CONTEXT_QUEUE ADC_CFGR_INJECT_CONTEXT_QUEUE
  1859. #define __HAL_ADC_CFGR_INJECT_DISCCONTINUOUS ADC_CFGR_INJECT_DISCCONTINUOUS
  1860. #define __HAL_ADC_CFGR_REG_DISCCONTINUOUS ADC_CFGR_REG_DISCCONTINUOUS
  1861. #define __HAL_ADC_CFGR_DISCONTINUOUS_NUM ADC_CFGR_DISCONTINUOUS_NUM
  1862. #define __HAL_ADC_CFGR_AUTOWAIT ADC_CFGR_AUTOWAIT
  1863. #define __HAL_ADC_CFGR_CONTINUOUS ADC_CFGR_CONTINUOUS
  1864. #define __HAL_ADC_CFGR_OVERRUN ADC_CFGR_OVERRUN
  1865. #define __HAL_ADC_CFGR_DMACONTREQ ADC_CFGR_DMACONTREQ
  1866. #define __HAL_ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_SET
  1867. #define __HAL_ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_SET
  1868. #define __HAL_ADC_OFR_CHANNEL ADC_OFR_CHANNEL
  1869. #define __HAL_ADC_DIFSEL_CHANNEL ADC_DIFSEL_CHANNEL
  1870. #define __HAL_ADC_CALFACT_DIFF_SET ADC_CALFACT_DIFF_SET
  1871. #define __HAL_ADC_CALFACT_DIFF_GET ADC_CALFACT_DIFF_GET
  1872. #define __HAL_ADC_TRX_HIGHTHRESHOLD ADC_TRX_HIGHTHRESHOLD
  1873. #define __HAL_ADC_OFFSET_SHIFT_RESOLUTION ADC_OFFSET_SHIFT_RESOLUTION
  1874. #define __HAL_ADC_AWD1THRESHOLD_SHIFT_RESOLUTION ADC_AWD1THRESHOLD_SHIFT_RESOLUTION
  1875. #define __HAL_ADC_AWD23THRESHOLD_SHIFT_RESOLUTION ADC_AWD23THRESHOLD_SHIFT_RESOLUTION
  1876. #define __HAL_ADC_COMMON_REGISTER ADC_COMMON_REGISTER
  1877. #define __HAL_ADC_COMMON_CCR_MULTI ADC_COMMON_CCR_MULTI
  1878. #define __HAL_ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE
  1879. #define __ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE
  1880. #define __HAL_ADC_NONMULTIMODE_OR_MULTIMODEMASTER ADC_NONMULTIMODE_OR_MULTIMODEMASTER
  1881. #define __HAL_ADC_COMMON_ADC_OTHER ADC_COMMON_ADC_OTHER
  1882. #define __HAL_ADC_MULTI_SLAVE ADC_MULTI_SLAVE
  1883. #define __HAL_ADC_SQR1_L ADC_SQR1_L_SHIFT
  1884. #define __HAL_ADC_JSQR_JL ADC_JSQR_JL_SHIFT
  1885. #define __HAL_ADC_JSQR_RK_JL ADC_JSQR_RK_JL
  1886. #define __HAL_ADC_CR1_DISCONTINUOUS_NUM ADC_CR1_DISCONTINUOUS_NUM
  1887. #define __HAL_ADC_CR1_SCAN ADC_CR1_SCAN_SET
  1888. #define __HAL_ADC_CONVCYCLES_MAX_RANGE ADC_CONVCYCLES_MAX_RANGE
  1889. #define __HAL_ADC_CLOCK_PRESCALER_RANGE ADC_CLOCK_PRESCALER_RANGE
  1890. #define __HAL_ADC_GET_CLOCK_PRESCALER ADC_GET_CLOCK_PRESCALER
  1891. #define __HAL_ADC_SQR1 ADC_SQR1
  1892. #define __HAL_ADC_SMPR1 ADC_SMPR1
  1893. #define __HAL_ADC_SMPR2 ADC_SMPR2
  1894. #define __HAL_ADC_SQR3_RK ADC_SQR3_RK
  1895. #define __HAL_ADC_SQR2_RK ADC_SQR2_RK
  1896. #define __HAL_ADC_SQR1_RK ADC_SQR1_RK
  1897. #define __HAL_ADC_CR2_CONTINUOUS ADC_CR2_CONTINUOUS
  1898. #define __HAL_ADC_CR1_DISCONTINUOUS ADC_CR1_DISCONTINUOUS
  1899. #define __HAL_ADC_CR1_SCANCONV ADC_CR1_SCANCONV
  1900. #define __HAL_ADC_CR2_EOCSelection ADC_CR2_EOCSelection
  1901. #define __HAL_ADC_CR2_DMAContReq ADC_CR2_DMAContReq
  1902. #define __HAL_ADC_JSQR ADC_JSQR
  1903. #define __HAL_ADC_CHSELR_CHANNEL ADC_CHSELR_CHANNEL
  1904. #define __HAL_ADC_CFGR1_REG_DISCCONTINUOUS ADC_CFGR1_REG_DISCCONTINUOUS
  1905. #define __HAL_ADC_CFGR1_AUTOOFF ADC_CFGR1_AUTOOFF
  1906. #define __HAL_ADC_CFGR1_AUTOWAIT ADC_CFGR1_AUTOWAIT
  1907. #define __HAL_ADC_CFGR1_CONTINUOUS ADC_CFGR1_CONTINUOUS
  1908. #define __HAL_ADC_CFGR1_OVERRUN ADC_CFGR1_OVERRUN
  1909. #define __HAL_ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR
  1910. #define __HAL_ADC_CFGR1_DMACONTREQ ADC_CFGR1_DMACONTREQ
  1911. /**
  1912. * @}
  1913. */
  1914. /** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose
  1915. * @{
  1916. */
  1917. #define __HAL_DHR12R1_ALIGNEMENT DAC_DHR12R1_ALIGNMENT
  1918. #define __HAL_DHR12R2_ALIGNEMENT DAC_DHR12R2_ALIGNMENT
  1919. #define __HAL_DHR12RD_ALIGNEMENT DAC_DHR12RD_ALIGNMENT
  1920. #define IS_DAC_GENERATE_WAVE IS_DAC_WAVE
  1921. /**
  1922. * @}
  1923. */
  1924. /** @defgroup HAL_DBGMCU_Aliased_Macros HAL DBGMCU Aliased Macros maintained for legacy purpose
  1925. * @{
  1926. */
  1927. #define __HAL_FREEZE_TIM1_DBGMCU __HAL_DBGMCU_FREEZE_TIM1
  1928. #define __HAL_UNFREEZE_TIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM1
  1929. #define __HAL_FREEZE_TIM2_DBGMCU __HAL_DBGMCU_FREEZE_TIM2
  1930. #define __HAL_UNFREEZE_TIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM2
  1931. #define __HAL_FREEZE_TIM3_DBGMCU __HAL_DBGMCU_FREEZE_TIM3
  1932. #define __HAL_UNFREEZE_TIM3_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM3
  1933. #define __HAL_FREEZE_TIM4_DBGMCU __HAL_DBGMCU_FREEZE_TIM4
  1934. #define __HAL_UNFREEZE_TIM4_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM4
  1935. #define __HAL_FREEZE_TIM5_DBGMCU __HAL_DBGMCU_FREEZE_TIM5
  1936. #define __HAL_UNFREEZE_TIM5_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM5
  1937. #define __HAL_FREEZE_TIM6_DBGMCU __HAL_DBGMCU_FREEZE_TIM6
  1938. #define __HAL_UNFREEZE_TIM6_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM6
  1939. #define __HAL_FREEZE_TIM7_DBGMCU __HAL_DBGMCU_FREEZE_TIM7
  1940. #define __HAL_UNFREEZE_TIM7_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM7
  1941. #define __HAL_FREEZE_TIM8_DBGMCU __HAL_DBGMCU_FREEZE_TIM8
  1942. #define __HAL_UNFREEZE_TIM8_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM8
  1943. #define __HAL_FREEZE_TIM9_DBGMCU __HAL_DBGMCU_FREEZE_TIM9
  1944. #define __HAL_UNFREEZE_TIM9_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM9
  1945. #define __HAL_FREEZE_TIM10_DBGMCU __HAL_DBGMCU_FREEZE_TIM10
  1946. #define __HAL_UNFREEZE_TIM10_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM10
  1947. #define __HAL_FREEZE_TIM11_DBGMCU __HAL_DBGMCU_FREEZE_TIM11
  1948. #define __HAL_UNFREEZE_TIM11_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM11
  1949. #define __HAL_FREEZE_TIM12_DBGMCU __HAL_DBGMCU_FREEZE_TIM12
  1950. #define __HAL_UNFREEZE_TIM12_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM12
  1951. #define __HAL_FREEZE_TIM13_DBGMCU __HAL_DBGMCU_FREEZE_TIM13
  1952. #define __HAL_UNFREEZE_TIM13_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM13
  1953. #define __HAL_FREEZE_TIM14_DBGMCU __HAL_DBGMCU_FREEZE_TIM14
  1954. #define __HAL_UNFREEZE_TIM14_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM14
  1955. #define __HAL_FREEZE_CAN2_DBGMCU __HAL_DBGMCU_FREEZE_CAN2
  1956. #define __HAL_UNFREEZE_CAN2_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN2
  1957. #define __HAL_FREEZE_TIM15_DBGMCU __HAL_DBGMCU_FREEZE_TIM15
  1958. #define __HAL_UNFREEZE_TIM15_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM15
  1959. #define __HAL_FREEZE_TIM16_DBGMCU __HAL_DBGMCU_FREEZE_TIM16
  1960. #define __HAL_UNFREEZE_TIM16_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM16
  1961. #define __HAL_FREEZE_TIM17_DBGMCU __HAL_DBGMCU_FREEZE_TIM17
  1962. #define __HAL_UNFREEZE_TIM17_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM17
  1963. #define __HAL_FREEZE_RTC_DBGMCU __HAL_DBGMCU_FREEZE_RTC
  1964. #define __HAL_UNFREEZE_RTC_DBGMCU __HAL_DBGMCU_UNFREEZE_RTC
  1965. #if defined(STM32H7)
  1966. #define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG1
  1967. #define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UnFreeze_WWDG1
  1968. #define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG1
  1969. #define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UnFreeze_IWDG1
  1970. #else
  1971. #define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG
  1972. #define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_WWDG
  1973. #define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG
  1974. #define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_IWDG
  1975. #endif /* STM32H7 */
  1976. #define __HAL_FREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT
  1977. #define __HAL_UNFREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT
  1978. #define __HAL_FREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT
  1979. #define __HAL_UNFREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT
  1980. #define __HAL_FREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT
  1981. #define __HAL_UNFREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT
  1982. #define __HAL_FREEZE_CAN1_DBGMCU __HAL_DBGMCU_FREEZE_CAN1
  1983. #define __HAL_UNFREEZE_CAN1_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN1
  1984. #define __HAL_FREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM1
  1985. #define __HAL_UNFREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM1
  1986. #define __HAL_FREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM2
  1987. #define __HAL_UNFREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM2
  1988. /**
  1989. * @}
  1990. */
  1991. /** @defgroup HAL_COMP_Aliased_Macros HAL COMP Aliased Macros maintained for legacy purpose
  1992. * @{
  1993. */
  1994. #if defined(STM32F3)
  1995. #define COMP_START __HAL_COMP_ENABLE
  1996. #define COMP_STOP __HAL_COMP_DISABLE
  1997. #define COMP_LOCK __HAL_COMP_LOCK
  1998. #if defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) || defined(STM32F303x8) || \
  1999. defined(STM32F334x8) || defined(STM32F328xx)
  2000. #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
  2001. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
  2002. __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE())
  2003. #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
  2004. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
  2005. __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE())
  2006. #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
  2007. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
  2008. __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE())
  2009. #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
  2010. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
  2011. __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE())
  2012. #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
  2013. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
  2014. __HAL_COMP_COMP6_EXTI_ENABLE_IT())
  2015. #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
  2016. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
  2017. __HAL_COMP_COMP6_EXTI_DISABLE_IT())
  2018. #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
  2019. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
  2020. __HAL_COMP_COMP6_EXTI_GET_FLAG())
  2021. #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
  2022. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
  2023. __HAL_COMP_COMP6_EXTI_CLEAR_FLAG())
  2024. # endif
  2025. # if defined(STM32F302xE) || defined(STM32F302xC)
  2026. #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
  2027. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
  2028. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
  2029. __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE())
  2030. #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
  2031. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
  2032. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
  2033. __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE())
  2034. #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
  2035. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
  2036. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
  2037. __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE())
  2038. #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
  2039. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
  2040. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
  2041. __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE())
  2042. #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
  2043. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
  2044. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
  2045. __HAL_COMP_COMP6_EXTI_ENABLE_IT())
  2046. #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
  2047. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
  2048. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
  2049. __HAL_COMP_COMP6_EXTI_DISABLE_IT())
  2050. #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
  2051. ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
  2052. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
  2053. __HAL_COMP_COMP6_EXTI_GET_FLAG())
  2054. #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
  2055. ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
  2056. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
  2057. __HAL_COMP_COMP6_EXTI_CLEAR_FLAG())
  2058. # endif
  2059. # if defined(STM32F303xE) || defined(STM32F398xx) || defined(STM32F303xC) || defined(STM32F358xx)
  2060. #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
  2061. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
  2062. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_RISING_EDGE() : \
  2063. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
  2064. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_RISING_EDGE() : \
  2065. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE() : \
  2066. __HAL_COMP_COMP7_EXTI_ENABLE_RISING_EDGE())
  2067. #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
  2068. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
  2069. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_RISING_EDGE() : \
  2070. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
  2071. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_RISING_EDGE() : \
  2072. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE() : \
  2073. __HAL_COMP_COMP7_EXTI_DISABLE_RISING_EDGE())
  2074. #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
  2075. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
  2076. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_FALLING_EDGE() : \
  2077. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
  2078. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_FALLING_EDGE() : \
  2079. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE() : \
  2080. __HAL_COMP_COMP7_EXTI_ENABLE_FALLING_EDGE())
  2081. #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
  2082. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
  2083. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_FALLING_EDGE() : \
  2084. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
  2085. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_FALLING_EDGE() : \
  2086. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE() : \
  2087. __HAL_COMP_COMP7_EXTI_DISABLE_FALLING_EDGE())
  2088. #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
  2089. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
  2090. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_IT() : \
  2091. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
  2092. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_IT() : \
  2093. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_IT() : \
  2094. __HAL_COMP_COMP7_EXTI_ENABLE_IT())
  2095. #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
  2096. ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
  2097. ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_IT() : \
  2098. ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
  2099. ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_IT() : \
  2100. ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_IT() : \
  2101. __HAL_COMP_COMP7_EXTI_DISABLE_IT())
  2102. #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
  2103. ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
  2104. ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_GET_FLAG() : \
  2105. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
  2106. ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_GET_FLAG() : \
  2107. ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_GET_FLAG() : \
  2108. __HAL_COMP_COMP7_EXTI_GET_FLAG())
  2109. #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
  2110. ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
  2111. ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_CLEAR_FLAG() : \
  2112. ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
  2113. ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_CLEAR_FLAG() : \
  2114. ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_CLEAR_FLAG() : \
  2115. __HAL_COMP_COMP7_EXTI_CLEAR_FLAG())
  2116. # endif
  2117. # if defined(STM32F373xC) ||defined(STM32F378xx)
  2118. #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
  2119. __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE())
  2120. #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
  2121. __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE())
  2122. #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
  2123. __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE())
  2124. #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
  2125. __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE())
  2126. #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
  2127. __HAL_COMP_COMP2_EXTI_ENABLE_IT())
  2128. #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
  2129. __HAL_COMP_COMP2_EXTI_DISABLE_IT())
  2130. #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
  2131. __HAL_COMP_COMP2_EXTI_GET_FLAG())
  2132. #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
  2133. __HAL_COMP_COMP2_EXTI_CLEAR_FLAG())
  2134. # endif
  2135. #else
  2136. #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
  2137. __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE())
  2138. #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
  2139. __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE())
  2140. #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
  2141. __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE())
  2142. #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
  2143. __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE())
  2144. #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
  2145. __HAL_COMP_COMP2_EXTI_ENABLE_IT())
  2146. #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
  2147. __HAL_COMP_COMP2_EXTI_DISABLE_IT())
  2148. #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
  2149. __HAL_COMP_COMP2_EXTI_GET_FLAG())
  2150. #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
  2151. __HAL_COMP_COMP2_EXTI_CLEAR_FLAG())
  2152. #endif
  2153. #define __HAL_COMP_GET_EXTI_LINE COMP_GET_EXTI_LINE
  2154. #if defined(STM32L0) || defined(STM32L4)
  2155. /* Note: On these STM32 families, the only argument of this macro */
  2156. /* is COMP_FLAG_LOCK. */
  2157. /* This macro is replaced by __HAL_COMP_IS_LOCKED with only HAL handle */
  2158. /* argument. */
  2159. #define __HAL_COMP_GET_FLAG(__HANDLE__, __FLAG__) (__HAL_COMP_IS_LOCKED(__HANDLE__))
  2160. #endif
  2161. /**
  2162. * @}
  2163. */
  2164. #if defined(STM32L0) || defined(STM32L4)
  2165. /** @defgroup HAL_COMP_Aliased_Functions HAL COMP Aliased Functions maintained for legacy purpose
  2166. * @{
  2167. */
  2168. #define HAL_COMP_Start_IT HAL_COMP_Start /* Function considered as legacy as EXTI event or IT configuration is
  2169. done into HAL_COMP_Init() */
  2170. #define HAL_COMP_Stop_IT HAL_COMP_Stop /* Function considered as legacy as EXTI event or IT configuration is
  2171. done into HAL_COMP_Init() */
  2172. /**
  2173. * @}
  2174. */
  2175. #endif
  2176. /** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose
  2177. * @{
  2178. */
  2179. #define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_WAVE_NONE) || \
  2180. ((WAVE) == DAC_WAVE_NOISE)|| \
  2181. ((WAVE) == DAC_WAVE_TRIANGLE))
  2182. /**
  2183. * @}
  2184. */
  2185. /** @defgroup HAL_FLASH_Aliased_Macros HAL FLASH Aliased Macros maintained for legacy purpose
  2186. * @{
  2187. */
  2188. #define IS_WRPAREA IS_OB_WRPAREA
  2189. #define IS_TYPEPROGRAM IS_FLASH_TYPEPROGRAM
  2190. #define IS_TYPEPROGRAMFLASH IS_FLASH_TYPEPROGRAM
  2191. #define IS_TYPEERASE IS_FLASH_TYPEERASE
  2192. #define IS_NBSECTORS IS_FLASH_NBSECTORS
  2193. #define IS_OB_WDG_SOURCE IS_OB_IWDG_SOURCE
  2194. /**
  2195. * @}
  2196. */
  2197. /** @defgroup HAL_I2C_Aliased_Macros HAL I2C Aliased Macros maintained for legacy purpose
  2198. * @{
  2199. */
  2200. #define __HAL_I2C_RESET_CR2 I2C_RESET_CR2
  2201. #define __HAL_I2C_GENERATE_START I2C_GENERATE_START
  2202. #if defined(STM32F1)
  2203. #define __HAL_I2C_FREQ_RANGE I2C_FREQRANGE
  2204. #else
  2205. #define __HAL_I2C_FREQ_RANGE I2C_FREQ_RANGE
  2206. #endif /* STM32F1 */
  2207. #define __HAL_I2C_RISE_TIME I2C_RISE_TIME
  2208. #define __HAL_I2C_SPEED_STANDARD I2C_SPEED_STANDARD
  2209. #define __HAL_I2C_SPEED_FAST I2C_SPEED_FAST
  2210. #define __HAL_I2C_SPEED I2C_SPEED
  2211. #define __HAL_I2C_7BIT_ADD_WRITE I2C_7BIT_ADD_WRITE
  2212. #define __HAL_I2C_7BIT_ADD_READ I2C_7BIT_ADD_READ
  2213. #define __HAL_I2C_10BIT_ADDRESS I2C_10BIT_ADDRESS
  2214. #define __HAL_I2C_10BIT_HEADER_WRITE I2C_10BIT_HEADER_WRITE
  2215. #define __HAL_I2C_10BIT_HEADER_READ I2C_10BIT_HEADER_READ
  2216. #define __HAL_I2C_MEM_ADD_MSB I2C_MEM_ADD_MSB
  2217. #define __HAL_I2C_MEM_ADD_LSB I2C_MEM_ADD_LSB
  2218. #define __HAL_I2C_FREQRANGE I2C_FREQRANGE
  2219. /**
  2220. * @}
  2221. */
  2222. /** @defgroup HAL_I2S_Aliased_Macros HAL I2S Aliased Macros maintained for legacy purpose
  2223. * @{
  2224. */
  2225. #define IS_I2S_INSTANCE IS_I2S_ALL_INSTANCE
  2226. #define IS_I2S_INSTANCE_EXT IS_I2S_ALL_INSTANCE_EXT
  2227. #if defined(STM32H7)
  2228. #define __HAL_I2S_CLEAR_FREFLAG __HAL_I2S_CLEAR_TIFREFLAG
  2229. #endif
  2230. /**
  2231. * @}
  2232. */
  2233. /** @defgroup HAL_IRDA_Aliased_Macros HAL IRDA Aliased Macros maintained for legacy purpose
  2234. * @{
  2235. */
  2236. #define __IRDA_DISABLE __HAL_IRDA_DISABLE
  2237. #define __IRDA_ENABLE __HAL_IRDA_ENABLE
  2238. #define __HAL_IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE
  2239. #define __HAL_IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION
  2240. #define __IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE
  2241. #define __IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION
  2242. #define IS_IRDA_ONEBIT_SAMPLE IS_IRDA_ONE_BIT_SAMPLE
  2243. /**
  2244. * @}
  2245. */
  2246. /** @defgroup HAL_IWDG_Aliased_Macros HAL IWDG Aliased Macros maintained for legacy purpose
  2247. * @{
  2248. */
  2249. #define __HAL_IWDG_ENABLE_WRITE_ACCESS IWDG_ENABLE_WRITE_ACCESS
  2250. #define __HAL_IWDG_DISABLE_WRITE_ACCESS IWDG_DISABLE_WRITE_ACCESS
  2251. /**
  2252. * @}
  2253. */
  2254. /** @defgroup HAL_LPTIM_Aliased_Macros HAL LPTIM Aliased Macros maintained for legacy purpose
  2255. * @{
  2256. */
  2257. #define __HAL_LPTIM_ENABLE_INTERRUPT __HAL_LPTIM_ENABLE_IT
  2258. #define __HAL_LPTIM_DISABLE_INTERRUPT __HAL_LPTIM_DISABLE_IT
  2259. #define __HAL_LPTIM_GET_ITSTATUS __HAL_LPTIM_GET_IT_SOURCE
  2260. /**
  2261. * @}
  2262. */
  2263. /** @defgroup HAL_OPAMP_Aliased_Macros HAL OPAMP Aliased Macros maintained for legacy purpose
  2264. * @{
  2265. */
  2266. #define __OPAMP_CSR_OPAXPD OPAMP_CSR_OPAXPD
  2267. #define __OPAMP_CSR_S3SELX OPAMP_CSR_S3SELX
  2268. #define __OPAMP_CSR_S4SELX OPAMP_CSR_S4SELX
  2269. #define __OPAMP_CSR_S5SELX OPAMP_CSR_S5SELX
  2270. #define __OPAMP_CSR_S6SELX OPAMP_CSR_S6SELX
  2271. #define __OPAMP_CSR_OPAXCAL_L OPAMP_CSR_OPAXCAL_L
  2272. #define __OPAMP_CSR_OPAXCAL_H OPAMP_CSR_OPAXCAL_H
  2273. #define __OPAMP_CSR_OPAXLPM OPAMP_CSR_OPAXLPM
  2274. #define __OPAMP_CSR_ALL_SWITCHES OPAMP_CSR_ALL_SWITCHES
  2275. #define __OPAMP_CSR_ANAWSELX OPAMP_CSR_ANAWSELX
  2276. #define __OPAMP_CSR_OPAXCALOUT OPAMP_CSR_OPAXCALOUT
  2277. #define __OPAMP_OFFSET_TRIM_BITSPOSITION OPAMP_OFFSET_TRIM_BITSPOSITION
  2278. #define __OPAMP_OFFSET_TRIM_SET OPAMP_OFFSET_TRIM_SET
  2279. /**
  2280. * @}
  2281. */
  2282. /** @defgroup HAL_PWR_Aliased_Macros HAL PWR Aliased Macros maintained for legacy purpose
  2283. * @{
  2284. */
  2285. #define __HAL_PVD_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT
  2286. #define __HAL_PVD_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT
  2287. #define __HAL_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE
  2288. #define __HAL_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
  2289. #define __HAL_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE
  2290. #define __HAL_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
  2291. #define __HAL_PVM_EVENT_DISABLE __HAL_PWR_PVM_EVENT_DISABLE
  2292. #define __HAL_PVM_EVENT_ENABLE __HAL_PWR_PVM_EVENT_ENABLE
  2293. #define __HAL_PVM_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_DISABLE
  2294. #define __HAL_PVM_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_ENABLE
  2295. #define __HAL_PVM_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_DISABLE
  2296. #define __HAL_PVM_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_ENABLE
  2297. #define __HAL_PWR_INTERNALWAKEUP_DISABLE HAL_PWREx_DisableInternalWakeUpLine
  2298. #define __HAL_PWR_INTERNALWAKEUP_ENABLE HAL_PWREx_EnableInternalWakeUpLine
  2299. #define __HAL_PWR_PULL_UP_DOWN_CONFIG_DISABLE HAL_PWREx_DisablePullUpPullDownConfig
  2300. #define __HAL_PWR_PULL_UP_DOWN_CONFIG_ENABLE HAL_PWREx_EnablePullUpPullDownConfig
  2301. #define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() do { __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(); \
  2302. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); \
  2303. } while(0)
  2304. #define __HAL_PWR_PVD_EXTI_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT
  2305. #define __HAL_PWR_PVD_EXTI_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT
  2306. #define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE
  2307. #define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
  2308. #define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE
  2309. #define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
  2310. #define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
  2311. #define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
  2312. #define __HAL_PWR_PVM_DISABLE() do { HAL_PWREx_DisablePVM1();HAL_PWREx_DisablePVM2(); \
  2313. HAL_PWREx_DisablePVM3();HAL_PWREx_DisablePVM4(); \
  2314. } while(0)
  2315. #define __HAL_PWR_PVM_ENABLE() do { HAL_PWREx_EnablePVM1();HAL_PWREx_EnablePVM2(); \
  2316. HAL_PWREx_EnablePVM3();HAL_PWREx_EnablePVM4(); \
  2317. } while(0)
  2318. #define __HAL_PWR_SRAM2CONTENT_PRESERVE_DISABLE HAL_PWREx_DisableSRAM2ContentRetention
  2319. #define __HAL_PWR_SRAM2CONTENT_PRESERVE_ENABLE HAL_PWREx_EnableSRAM2ContentRetention
  2320. #define __HAL_PWR_VDDIO2_DISABLE HAL_PWREx_DisableVddIO2
  2321. #define __HAL_PWR_VDDIO2_ENABLE HAL_PWREx_EnableVddIO2
  2322. #define __HAL_PWR_VDDIO2_EXTI_CLEAR_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE
  2323. #define __HAL_PWR_VDDIO2_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE
  2324. #define __HAL_PWR_VDDUSB_DISABLE HAL_PWREx_DisableVddUSB
  2325. #define __HAL_PWR_VDDUSB_ENABLE HAL_PWREx_EnableVddUSB
  2326. #if defined (STM32F4)
  2327. #define __HAL_PVD_EXTI_ENABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_ENABLE_IT()
  2328. #define __HAL_PVD_EXTI_DISABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_DISABLE_IT()
  2329. #define __HAL_PVD_EXTI_GET_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GET_FLAG()
  2330. #define __HAL_PVD_EXTI_CLEAR_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_CLEAR_FLAG()
  2331. #define __HAL_PVD_EXTI_GENERATE_SWIT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GENERATE_SWIT()
  2332. #else
  2333. #define __HAL_PVD_EXTI_CLEAR_FLAG __HAL_PWR_PVD_EXTI_CLEAR_FLAG
  2334. #define __HAL_PVD_EXTI_DISABLE_IT __HAL_PWR_PVD_EXTI_DISABLE_IT
  2335. #define __HAL_PVD_EXTI_ENABLE_IT __HAL_PWR_PVD_EXTI_ENABLE_IT
  2336. #define __HAL_PVD_EXTI_GENERATE_SWIT __HAL_PWR_PVD_EXTI_GENERATE_SWIT
  2337. #define __HAL_PVD_EXTI_GET_FLAG __HAL_PWR_PVD_EXTI_GET_FLAG
  2338. #endif /* STM32F4 */
  2339. /**
  2340. * @}
  2341. */
  2342. /** @defgroup HAL_RCC_Aliased HAL RCC Aliased maintained for legacy purpose
  2343. * @{
  2344. */
  2345. #define RCC_StopWakeUpClock_MSI RCC_STOP_WAKEUPCLOCK_MSI
  2346. #define RCC_StopWakeUpClock_HSI RCC_STOP_WAKEUPCLOCK_HSI
  2347. #define HAL_RCC_CCSCallback HAL_RCC_CSSCallback
  2348. #define HAL_RC48_EnableBuffer_Cmd(cmd) (((cmd)==ENABLE) ? \
  2349. HAL_RCCEx_EnableHSI48_VREFINT() : HAL_RCCEx_DisableHSI48_VREFINT())
  2350. #define __ADC_CLK_DISABLE __HAL_RCC_ADC_CLK_DISABLE
  2351. #define __ADC_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE
  2352. #define __ADC_CLK_SLEEP_DISABLE __HAL_RCC_ADC_CLK_SLEEP_DISABLE
  2353. #define __ADC_CLK_SLEEP_ENABLE __HAL_RCC_ADC_CLK_SLEEP_ENABLE
  2354. #define __ADC_FORCE_RESET __HAL_RCC_ADC_FORCE_RESET
  2355. #define __ADC_RELEASE_RESET __HAL_RCC_ADC_RELEASE_RESET
  2356. #define __ADC1_CLK_DISABLE __HAL_RCC_ADC1_CLK_DISABLE
  2357. #define __ADC1_CLK_ENABLE __HAL_RCC_ADC1_CLK_ENABLE
  2358. #define __ADC1_FORCE_RESET __HAL_RCC_ADC1_FORCE_RESET
  2359. #define __ADC1_RELEASE_RESET __HAL_RCC_ADC1_RELEASE_RESET
  2360. #define __ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC1_CLK_SLEEP_ENABLE
  2361. #define __ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC1_CLK_SLEEP_DISABLE
  2362. #define __ADC2_CLK_DISABLE __HAL_RCC_ADC2_CLK_DISABLE
  2363. #define __ADC2_CLK_ENABLE __HAL_RCC_ADC2_CLK_ENABLE
  2364. #define __ADC2_FORCE_RESET __HAL_RCC_ADC2_FORCE_RESET
  2365. #define __ADC2_RELEASE_RESET __HAL_RCC_ADC2_RELEASE_RESET
  2366. #define __ADC3_CLK_DISABLE __HAL_RCC_ADC3_CLK_DISABLE
  2367. #define __ADC3_CLK_ENABLE __HAL_RCC_ADC3_CLK_ENABLE
  2368. #define __ADC3_FORCE_RESET __HAL_RCC_ADC3_FORCE_RESET
  2369. #define __ADC3_RELEASE_RESET __HAL_RCC_ADC3_RELEASE_RESET
  2370. #define __AES_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE
  2371. #define __AES_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE
  2372. #define __AES_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE
  2373. #define __AES_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE
  2374. #define __AES_FORCE_RESET __HAL_RCC_AES_FORCE_RESET
  2375. #define __AES_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET
  2376. #define __CRYP_CLK_SLEEP_ENABLE __HAL_RCC_CRYP_CLK_SLEEP_ENABLE
  2377. #define __CRYP_CLK_SLEEP_DISABLE __HAL_RCC_CRYP_CLK_SLEEP_DISABLE
  2378. #define __CRYP_CLK_ENABLE __HAL_RCC_CRYP_CLK_ENABLE
  2379. #define __CRYP_CLK_DISABLE __HAL_RCC_CRYP_CLK_DISABLE
  2380. #define __CRYP_FORCE_RESET __HAL_RCC_CRYP_FORCE_RESET
  2381. #define __CRYP_RELEASE_RESET __HAL_RCC_CRYP_RELEASE_RESET
  2382. #define __AFIO_CLK_DISABLE __HAL_RCC_AFIO_CLK_DISABLE
  2383. #define __AFIO_CLK_ENABLE __HAL_RCC_AFIO_CLK_ENABLE
  2384. #define __AFIO_FORCE_RESET __HAL_RCC_AFIO_FORCE_RESET
  2385. #define __AFIO_RELEASE_RESET __HAL_RCC_AFIO_RELEASE_RESET
  2386. #define __AHB_FORCE_RESET __HAL_RCC_AHB_FORCE_RESET
  2387. #define __AHB_RELEASE_RESET __HAL_RCC_AHB_RELEASE_RESET
  2388. #define __AHB1_FORCE_RESET __HAL_RCC_AHB1_FORCE_RESET
  2389. #define __AHB1_RELEASE_RESET __HAL_RCC_AHB1_RELEASE_RESET
  2390. #define __AHB2_FORCE_RESET __HAL_RCC_AHB2_FORCE_RESET
  2391. #define __AHB2_RELEASE_RESET __HAL_RCC_AHB2_RELEASE_RESET
  2392. #define __AHB3_FORCE_RESET __HAL_RCC_AHB3_FORCE_RESET
  2393. #define __AHB3_RELEASE_RESET __HAL_RCC_AHB3_RELEASE_RESET
  2394. #define __APB1_FORCE_RESET __HAL_RCC_APB1_FORCE_RESET
  2395. #define __APB1_RELEASE_RESET __HAL_RCC_APB1_RELEASE_RESET
  2396. #define __APB2_FORCE_RESET __HAL_RCC_APB2_FORCE_RESET
  2397. #define __APB2_RELEASE_RESET __HAL_RCC_APB2_RELEASE_RESET
  2398. #define __BKP_CLK_DISABLE __HAL_RCC_BKP_CLK_DISABLE
  2399. #define __BKP_CLK_ENABLE __HAL_RCC_BKP_CLK_ENABLE
  2400. #define __BKP_FORCE_RESET __HAL_RCC_BKP_FORCE_RESET
  2401. #define __BKP_RELEASE_RESET __HAL_RCC_BKP_RELEASE_RESET
  2402. #define __CAN1_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE
  2403. #define __CAN1_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE
  2404. #define __CAN1_CLK_SLEEP_DISABLE __HAL_RCC_CAN1_CLK_SLEEP_DISABLE
  2405. #define __CAN1_CLK_SLEEP_ENABLE __HAL_RCC_CAN1_CLK_SLEEP_ENABLE
  2406. #define __CAN1_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET
  2407. #define __CAN1_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET
  2408. #define __CAN_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE
  2409. #define __CAN_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE
  2410. #define __CAN_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET
  2411. #define __CAN_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET
  2412. #define __CAN2_CLK_DISABLE __HAL_RCC_CAN2_CLK_DISABLE
  2413. #define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE
  2414. #define __CAN2_FORCE_RESET __HAL_RCC_CAN2_FORCE_RESET
  2415. #define __CAN2_RELEASE_RESET __HAL_RCC_CAN2_RELEASE_RESET
  2416. #define __CEC_CLK_DISABLE __HAL_RCC_CEC_CLK_DISABLE
  2417. #define __CEC_CLK_ENABLE __HAL_RCC_CEC_CLK_ENABLE
  2418. #define __COMP_CLK_DISABLE __HAL_RCC_COMP_CLK_DISABLE
  2419. #define __COMP_CLK_ENABLE __HAL_RCC_COMP_CLK_ENABLE
  2420. #define __COMP_FORCE_RESET __HAL_RCC_COMP_FORCE_RESET
  2421. #define __COMP_RELEASE_RESET __HAL_RCC_COMP_RELEASE_RESET
  2422. #define __COMP_CLK_SLEEP_ENABLE __HAL_RCC_COMP_CLK_SLEEP_ENABLE
  2423. #define __COMP_CLK_SLEEP_DISABLE __HAL_RCC_COMP_CLK_SLEEP_DISABLE
  2424. #define __CEC_FORCE_RESET __HAL_RCC_CEC_FORCE_RESET
  2425. #define __CEC_RELEASE_RESET __HAL_RCC_CEC_RELEASE_RESET
  2426. #define __CRC_CLK_DISABLE __HAL_RCC_CRC_CLK_DISABLE
  2427. #define __CRC_CLK_ENABLE __HAL_RCC_CRC_CLK_ENABLE
  2428. #define __CRC_CLK_SLEEP_DISABLE __HAL_RCC_CRC_CLK_SLEEP_DISABLE
  2429. #define __CRC_CLK_SLEEP_ENABLE __HAL_RCC_CRC_CLK_SLEEP_ENABLE
  2430. #define __CRC_FORCE_RESET __HAL_RCC_CRC_FORCE_RESET
  2431. #define __CRC_RELEASE_RESET __HAL_RCC_CRC_RELEASE_RESET
  2432. #define __DAC_CLK_DISABLE __HAL_RCC_DAC_CLK_DISABLE
  2433. #define __DAC_CLK_ENABLE __HAL_RCC_DAC_CLK_ENABLE
  2434. #define __DAC_FORCE_RESET __HAL_RCC_DAC_FORCE_RESET
  2435. #define __DAC_RELEASE_RESET __HAL_RCC_DAC_RELEASE_RESET
  2436. #define __DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE
  2437. #define __DAC1_CLK_ENABLE __HAL_RCC_DAC1_CLK_ENABLE
  2438. #define __DAC1_CLK_SLEEP_DISABLE __HAL_RCC_DAC1_CLK_SLEEP_DISABLE
  2439. #define __DAC1_CLK_SLEEP_ENABLE __HAL_RCC_DAC1_CLK_SLEEP_ENABLE
  2440. #define __DAC1_FORCE_RESET __HAL_RCC_DAC1_FORCE_RESET
  2441. #define __DAC1_RELEASE_RESET __HAL_RCC_DAC1_RELEASE_RESET
  2442. #define __DBGMCU_CLK_ENABLE __HAL_RCC_DBGMCU_CLK_ENABLE
  2443. #define __DBGMCU_CLK_DISABLE __HAL_RCC_DBGMCU_CLK_DISABLE
  2444. #define __DBGMCU_FORCE_RESET __HAL_RCC_DBGMCU_FORCE_RESET
  2445. #define __DBGMCU_RELEASE_RESET __HAL_RCC_DBGMCU_RELEASE_RESET
  2446. #define __DFSDM_CLK_DISABLE __HAL_RCC_DFSDM_CLK_DISABLE
  2447. #define __DFSDM_CLK_ENABLE __HAL_RCC_DFSDM_CLK_ENABLE
  2448. #define __DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE
  2449. #define __DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE
  2450. #define __DFSDM_FORCE_RESET __HAL_RCC_DFSDM_FORCE_RESET
  2451. #define __DFSDM_RELEASE_RESET __HAL_RCC_DFSDM_RELEASE_RESET
  2452. #define __DMA1_CLK_DISABLE __HAL_RCC_DMA1_CLK_DISABLE
  2453. #define __DMA1_CLK_ENABLE __HAL_RCC_DMA1_CLK_ENABLE
  2454. #define __DMA1_CLK_SLEEP_DISABLE __HAL_RCC_DMA1_CLK_SLEEP_DISABLE
  2455. #define __DMA1_CLK_SLEEP_ENABLE __HAL_RCC_DMA1_CLK_SLEEP_ENABLE
  2456. #define __DMA1_FORCE_RESET __HAL_RCC_DMA1_FORCE_RESET
  2457. #define __DMA1_RELEASE_RESET __HAL_RCC_DMA1_RELEASE_RESET
  2458. #define __DMA2_CLK_DISABLE __HAL_RCC_DMA2_CLK_DISABLE
  2459. #define __DMA2_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE
  2460. #define __DMA2_CLK_SLEEP_DISABLE __HAL_RCC_DMA2_CLK_SLEEP_DISABLE
  2461. #define __DMA2_CLK_SLEEP_ENABLE __HAL_RCC_DMA2_CLK_SLEEP_ENABLE
  2462. #define __DMA2_FORCE_RESET __HAL_RCC_DMA2_FORCE_RESET
  2463. #define __DMA2_RELEASE_RESET __HAL_RCC_DMA2_RELEASE_RESET
  2464. #define __ETHMAC_CLK_DISABLE __HAL_RCC_ETHMAC_CLK_DISABLE
  2465. #define __ETHMAC_CLK_ENABLE __HAL_RCC_ETHMAC_CLK_ENABLE
  2466. #define __ETHMAC_FORCE_RESET __HAL_RCC_ETHMAC_FORCE_RESET
  2467. #define __ETHMAC_RELEASE_RESET __HAL_RCC_ETHMAC_RELEASE_RESET
  2468. #define __ETHMACRX_CLK_DISABLE __HAL_RCC_ETHMACRX_CLK_DISABLE
  2469. #define __ETHMACRX_CLK_ENABLE __HAL_RCC_ETHMACRX_CLK_ENABLE
  2470. #define __ETHMACTX_CLK_DISABLE __HAL_RCC_ETHMACTX_CLK_DISABLE
  2471. #define __ETHMACTX_CLK_ENABLE __HAL_RCC_ETHMACTX_CLK_ENABLE
  2472. #define __FIREWALL_CLK_DISABLE __HAL_RCC_FIREWALL_CLK_DISABLE
  2473. #define __FIREWALL_CLK_ENABLE __HAL_RCC_FIREWALL_CLK_ENABLE
  2474. #define __FLASH_CLK_DISABLE __HAL_RCC_FLASH_CLK_DISABLE
  2475. #define __FLASH_CLK_ENABLE __HAL_RCC_FLASH_CLK_ENABLE
  2476. #define __FLASH_CLK_SLEEP_DISABLE __HAL_RCC_FLASH_CLK_SLEEP_DISABLE
  2477. #define __FLASH_CLK_SLEEP_ENABLE __HAL_RCC_FLASH_CLK_SLEEP_ENABLE
  2478. #define __FLASH_FORCE_RESET __HAL_RCC_FLASH_FORCE_RESET
  2479. #define __FLASH_RELEASE_RESET __HAL_RCC_FLASH_RELEASE_RESET
  2480. #define __FLITF_CLK_DISABLE __HAL_RCC_FLITF_CLK_DISABLE
  2481. #define __FLITF_CLK_ENABLE __HAL_RCC_FLITF_CLK_ENABLE
  2482. #define __FLITF_FORCE_RESET __HAL_RCC_FLITF_FORCE_RESET
  2483. #define __FLITF_RELEASE_RESET __HAL_RCC_FLITF_RELEASE_RESET
  2484. #define __FLITF_CLK_SLEEP_ENABLE __HAL_RCC_FLITF_CLK_SLEEP_ENABLE
  2485. #define __FLITF_CLK_SLEEP_DISABLE __HAL_RCC_FLITF_CLK_SLEEP_DISABLE
  2486. #define __FMC_CLK_DISABLE __HAL_RCC_FMC_CLK_DISABLE
  2487. #define __FMC_CLK_ENABLE __HAL_RCC_FMC_CLK_ENABLE
  2488. #define __FMC_CLK_SLEEP_DISABLE __HAL_RCC_FMC_CLK_SLEEP_DISABLE
  2489. #define __FMC_CLK_SLEEP_ENABLE __HAL_RCC_FMC_CLK_SLEEP_ENABLE
  2490. #define __FMC_FORCE_RESET __HAL_RCC_FMC_FORCE_RESET
  2491. #define __FMC_RELEASE_RESET __HAL_RCC_FMC_RELEASE_RESET
  2492. #define __FSMC_CLK_DISABLE __HAL_RCC_FSMC_CLK_DISABLE
  2493. #define __FSMC_CLK_ENABLE __HAL_RCC_FSMC_CLK_ENABLE
  2494. #define __GPIOA_CLK_DISABLE __HAL_RCC_GPIOA_CLK_DISABLE
  2495. #define __GPIOA_CLK_ENABLE __HAL_RCC_GPIOA_CLK_ENABLE
  2496. #define __GPIOA_CLK_SLEEP_DISABLE __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE
  2497. #define __GPIOA_CLK_SLEEP_ENABLE __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE
  2498. #define __GPIOA_FORCE_RESET __HAL_RCC_GPIOA_FORCE_RESET
  2499. #define __GPIOA_RELEASE_RESET __HAL_RCC_GPIOA_RELEASE_RESET
  2500. #define __GPIOB_CLK_DISABLE __HAL_RCC_GPIOB_CLK_DISABLE
  2501. #define __GPIOB_CLK_ENABLE __HAL_RCC_GPIOB_CLK_ENABLE
  2502. #define __GPIOB_CLK_SLEEP_DISABLE __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE
  2503. #define __GPIOB_CLK_SLEEP_ENABLE __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE
  2504. #define __GPIOB_FORCE_RESET __HAL_RCC_GPIOB_FORCE_RESET
  2505. #define __GPIOB_RELEASE_RESET __HAL_RCC_GPIOB_RELEASE_RESET
  2506. #define __GPIOC_CLK_DISABLE __HAL_RCC_GPIOC_CLK_DISABLE
  2507. #define __GPIOC_CLK_ENABLE __HAL_RCC_GPIOC_CLK_ENABLE
  2508. #define __GPIOC_CLK_SLEEP_DISABLE __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE
  2509. #define __GPIOC_CLK_SLEEP_ENABLE __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE
  2510. #define __GPIOC_FORCE_RESET __HAL_RCC_GPIOC_FORCE_RESET
  2511. #define __GPIOC_RELEASE_RESET __HAL_RCC_GPIOC_RELEASE_RESET
  2512. #define __GPIOD_CLK_DISABLE __HAL_RCC_GPIOD_CLK_DISABLE
  2513. #define __GPIOD_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE
  2514. #define __GPIOD_CLK_SLEEP_DISABLE __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE
  2515. #define __GPIOD_CLK_SLEEP_ENABLE __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE
  2516. #define __GPIOD_FORCE_RESET __HAL_RCC_GPIOD_FORCE_RESET
  2517. #define __GPIOD_RELEASE_RESET __HAL_RCC_GPIOD_RELEASE_RESET
  2518. #define __GPIOE_CLK_DISABLE __HAL_RCC_GPIOE_CLK_DISABLE
  2519. #define __GPIOE_CLK_ENABLE __HAL_RCC_GPIOE_CLK_ENABLE
  2520. #define __GPIOE_CLK_SLEEP_DISABLE __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE
  2521. #define __GPIOE_CLK_SLEEP_ENABLE __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE
  2522. #define __GPIOE_FORCE_RESET __HAL_RCC_GPIOE_FORCE_RESET
  2523. #define __GPIOE_RELEASE_RESET __HAL_RCC_GPIOE_RELEASE_RESET
  2524. #define __GPIOF_CLK_DISABLE __HAL_RCC_GPIOF_CLK_DISABLE
  2525. #define __GPIOF_CLK_ENABLE __HAL_RCC_GPIOF_CLK_ENABLE
  2526. #define __GPIOF_CLK_SLEEP_DISABLE __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE
  2527. #define __GPIOF_CLK_SLEEP_ENABLE __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE
  2528. #define __GPIOF_FORCE_RESET __HAL_RCC_GPIOF_FORCE_RESET
  2529. #define __GPIOF_RELEASE_RESET __HAL_RCC_GPIOF_RELEASE_RESET
  2530. #define __GPIOG_CLK_DISABLE __HAL_RCC_GPIOG_CLK_DISABLE
  2531. #define __GPIOG_CLK_ENABLE __HAL_RCC_GPIOG_CLK_ENABLE
  2532. #define __GPIOG_CLK_SLEEP_DISABLE __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE
  2533. #define __GPIOG_CLK_SLEEP_ENABLE __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE
  2534. #define __GPIOG_FORCE_RESET __HAL_RCC_GPIOG_FORCE_RESET
  2535. #define __GPIOG_RELEASE_RESET __HAL_RCC_GPIOG_RELEASE_RESET
  2536. #define __GPIOH_CLK_DISABLE __HAL_RCC_GPIOH_CLK_DISABLE
  2537. #define __GPIOH_CLK_ENABLE __HAL_RCC_GPIOH_CLK_ENABLE
  2538. #define __GPIOH_CLK_SLEEP_DISABLE __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE
  2539. #define __GPIOH_CLK_SLEEP_ENABLE __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE
  2540. #define __GPIOH_FORCE_RESET __HAL_RCC_GPIOH_FORCE_RESET
  2541. #define __GPIOH_RELEASE_RESET __HAL_RCC_GPIOH_RELEASE_RESET
  2542. #define __I2C1_CLK_DISABLE __HAL_RCC_I2C1_CLK_DISABLE
  2543. #define __I2C1_CLK_ENABLE __HAL_RCC_I2C1_CLK_ENABLE
  2544. #define __I2C1_CLK_SLEEP_DISABLE __HAL_RCC_I2C1_CLK_SLEEP_DISABLE
  2545. #define __I2C1_CLK_SLEEP_ENABLE __HAL_RCC_I2C1_CLK_SLEEP_ENABLE
  2546. #define __I2C1_FORCE_RESET __HAL_RCC_I2C1_FORCE_RESET
  2547. #define __I2C1_RELEASE_RESET __HAL_RCC_I2C1_RELEASE_RESET
  2548. #define __I2C2_CLK_DISABLE __HAL_RCC_I2C2_CLK_DISABLE
  2549. #define __I2C2_CLK_ENABLE __HAL_RCC_I2C2_CLK_ENABLE
  2550. #define __I2C2_CLK_SLEEP_DISABLE __HAL_RCC_I2C2_CLK_SLEEP_DISABLE
  2551. #define __I2C2_CLK_SLEEP_ENABLE __HAL_RCC_I2C2_CLK_SLEEP_ENABLE
  2552. #define __I2C2_FORCE_RESET __HAL_RCC_I2C2_FORCE_RESET
  2553. #define __I2C2_RELEASE_RESET __HAL_RCC_I2C2_RELEASE_RESET
  2554. #define __I2C3_CLK_DISABLE __HAL_RCC_I2C3_CLK_DISABLE
  2555. #define __I2C3_CLK_ENABLE __HAL_RCC_I2C3_CLK_ENABLE
  2556. #define __I2C3_CLK_SLEEP_DISABLE __HAL_RCC_I2C3_CLK_SLEEP_DISABLE
  2557. #define __I2C3_CLK_SLEEP_ENABLE __HAL_RCC_I2C3_CLK_SLEEP_ENABLE
  2558. #define __I2C3_FORCE_RESET __HAL_RCC_I2C3_FORCE_RESET
  2559. #define __I2C3_RELEASE_RESET __HAL_RCC_I2C3_RELEASE_RESET
  2560. #define __LCD_CLK_DISABLE __HAL_RCC_LCD_CLK_DISABLE
  2561. #define __LCD_CLK_ENABLE __HAL_RCC_LCD_CLK_ENABLE
  2562. #define __LCD_CLK_SLEEP_DISABLE __HAL_RCC_LCD_CLK_SLEEP_DISABLE
  2563. #define __LCD_CLK_SLEEP_ENABLE __HAL_RCC_LCD_CLK_SLEEP_ENABLE
  2564. #define __LCD_FORCE_RESET __HAL_RCC_LCD_FORCE_RESET
  2565. #define __LCD_RELEASE_RESET __HAL_RCC_LCD_RELEASE_RESET
  2566. #define __LPTIM1_CLK_DISABLE __HAL_RCC_LPTIM1_CLK_DISABLE
  2567. #define __LPTIM1_CLK_ENABLE __HAL_RCC_LPTIM1_CLK_ENABLE
  2568. #define __LPTIM1_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE
  2569. #define __LPTIM1_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE
  2570. #define __LPTIM1_FORCE_RESET __HAL_RCC_LPTIM1_FORCE_RESET
  2571. #define __LPTIM1_RELEASE_RESET __HAL_RCC_LPTIM1_RELEASE_RESET
  2572. #define __LPTIM2_CLK_DISABLE __HAL_RCC_LPTIM2_CLK_DISABLE
  2573. #define __LPTIM2_CLK_ENABLE __HAL_RCC_LPTIM2_CLK_ENABLE
  2574. #define __LPTIM2_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM2_CLK_SLEEP_DISABLE
  2575. #define __LPTIM2_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM2_CLK_SLEEP_ENABLE
  2576. #define __LPTIM2_FORCE_RESET __HAL_RCC_LPTIM2_FORCE_RESET
  2577. #define __LPTIM2_RELEASE_RESET __HAL_RCC_LPTIM2_RELEASE_RESET
  2578. #define __LPUART1_CLK_DISABLE __HAL_RCC_LPUART1_CLK_DISABLE
  2579. #define __LPUART1_CLK_ENABLE __HAL_RCC_LPUART1_CLK_ENABLE
  2580. #define __LPUART1_CLK_SLEEP_DISABLE __HAL_RCC_LPUART1_CLK_SLEEP_DISABLE
  2581. #define __LPUART1_CLK_SLEEP_ENABLE __HAL_RCC_LPUART1_CLK_SLEEP_ENABLE
  2582. #define __LPUART1_FORCE_RESET __HAL_RCC_LPUART1_FORCE_RESET
  2583. #define __LPUART1_RELEASE_RESET __HAL_RCC_LPUART1_RELEASE_RESET
  2584. #define __OPAMP_CLK_DISABLE __HAL_RCC_OPAMP_CLK_DISABLE
  2585. #define __OPAMP_CLK_ENABLE __HAL_RCC_OPAMP_CLK_ENABLE
  2586. #define __OPAMP_CLK_SLEEP_DISABLE __HAL_RCC_OPAMP_CLK_SLEEP_DISABLE
  2587. #define __OPAMP_CLK_SLEEP_ENABLE __HAL_RCC_OPAMP_CLK_SLEEP_ENABLE
  2588. #define __OPAMP_FORCE_RESET __HAL_RCC_OPAMP_FORCE_RESET
  2589. #define __OPAMP_RELEASE_RESET __HAL_RCC_OPAMP_RELEASE_RESET
  2590. #define __OTGFS_CLK_DISABLE __HAL_RCC_OTGFS_CLK_DISABLE
  2591. #define __OTGFS_CLK_ENABLE __HAL_RCC_OTGFS_CLK_ENABLE
  2592. #define __OTGFS_CLK_SLEEP_DISABLE __HAL_RCC_OTGFS_CLK_SLEEP_DISABLE
  2593. #define __OTGFS_CLK_SLEEP_ENABLE __HAL_RCC_OTGFS_CLK_SLEEP_ENABLE
  2594. #define __OTGFS_FORCE_RESET __HAL_RCC_OTGFS_FORCE_RESET
  2595. #define __OTGFS_RELEASE_RESET __HAL_RCC_OTGFS_RELEASE_RESET
  2596. #define __PWR_CLK_DISABLE __HAL_RCC_PWR_CLK_DISABLE
  2597. #define __PWR_CLK_ENABLE __HAL_RCC_PWR_CLK_ENABLE
  2598. #define __PWR_CLK_SLEEP_DISABLE __HAL_RCC_PWR_CLK_SLEEP_DISABLE
  2599. #define __PWR_CLK_SLEEP_ENABLE __HAL_RCC_PWR_CLK_SLEEP_ENABLE
  2600. #define __PWR_FORCE_RESET __HAL_RCC_PWR_FORCE_RESET
  2601. #define __PWR_RELEASE_RESET __HAL_RCC_PWR_RELEASE_RESET
  2602. #define __QSPI_CLK_DISABLE __HAL_RCC_QSPI_CLK_DISABLE
  2603. #define __QSPI_CLK_ENABLE __HAL_RCC_QSPI_CLK_ENABLE
  2604. #define __QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QSPI_CLK_SLEEP_DISABLE
  2605. #define __QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QSPI_CLK_SLEEP_ENABLE
  2606. #define __QSPI_FORCE_RESET __HAL_RCC_QSPI_FORCE_RESET
  2607. #define __QSPI_RELEASE_RESET __HAL_RCC_QSPI_RELEASE_RESET
  2608. #if defined(STM32WB)
  2609. #define __HAL_RCC_QSPI_CLK_DISABLE __HAL_RCC_QUADSPI_CLK_DISABLE
  2610. #define __HAL_RCC_QSPI_CLK_ENABLE __HAL_RCC_QUADSPI_CLK_ENABLE
  2611. #define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QUADSPI_CLK_SLEEP_DISABLE
  2612. #define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QUADSPI_CLK_SLEEP_ENABLE
  2613. #define __HAL_RCC_QSPI_FORCE_RESET __HAL_RCC_QUADSPI_FORCE_RESET
  2614. #define __HAL_RCC_QSPI_RELEASE_RESET __HAL_RCC_QUADSPI_RELEASE_RESET
  2615. #define __HAL_RCC_QSPI_IS_CLK_ENABLED __HAL_RCC_QUADSPI_IS_CLK_ENABLED
  2616. #define __HAL_RCC_QSPI_IS_CLK_DISABLED __HAL_RCC_QUADSPI_IS_CLK_DISABLED
  2617. #define __HAL_RCC_QSPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_ENABLED
  2618. #define __HAL_RCC_QSPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_DISABLED
  2619. #define QSPI_IRQHandler QUADSPI_IRQHandler
  2620. #endif /* __HAL_RCC_QUADSPI_CLK_ENABLE */
  2621. #define __RNG_CLK_DISABLE __HAL_RCC_RNG_CLK_DISABLE
  2622. #define __RNG_CLK_ENABLE __HAL_RCC_RNG_CLK_ENABLE
  2623. #define __RNG_CLK_SLEEP_DISABLE __HAL_RCC_RNG_CLK_SLEEP_DISABLE
  2624. #define __RNG_CLK_SLEEP_ENABLE __HAL_RCC_RNG_CLK_SLEEP_ENABLE
  2625. #define __RNG_FORCE_RESET __HAL_RCC_RNG_FORCE_RESET
  2626. #define __RNG_RELEASE_RESET __HAL_RCC_RNG_RELEASE_RESET
  2627. #define __SAI1_CLK_DISABLE __HAL_RCC_SAI1_CLK_DISABLE
  2628. #define __SAI1_CLK_ENABLE __HAL_RCC_SAI1_CLK_ENABLE
  2629. #define __SAI1_CLK_SLEEP_DISABLE __HAL_RCC_SAI1_CLK_SLEEP_DISABLE
  2630. #define __SAI1_CLK_SLEEP_ENABLE __HAL_RCC_SAI1_CLK_SLEEP_ENABLE
  2631. #define __SAI1_FORCE_RESET __HAL_RCC_SAI1_FORCE_RESET
  2632. #define __SAI1_RELEASE_RESET __HAL_RCC_SAI1_RELEASE_RESET
  2633. #define __SAI2_CLK_DISABLE __HAL_RCC_SAI2_CLK_DISABLE
  2634. #define __SAI2_CLK_ENABLE __HAL_RCC_SAI2_CLK_ENABLE
  2635. #define __SAI2_CLK_SLEEP_DISABLE __HAL_RCC_SAI2_CLK_SLEEP_DISABLE
  2636. #define __SAI2_CLK_SLEEP_ENABLE __HAL_RCC_SAI2_CLK_SLEEP_ENABLE
  2637. #define __SAI2_FORCE_RESET __HAL_RCC_SAI2_FORCE_RESET
  2638. #define __SAI2_RELEASE_RESET __HAL_RCC_SAI2_RELEASE_RESET
  2639. #define __SDIO_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE
  2640. #define __SDIO_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE
  2641. #define __SDMMC_CLK_DISABLE __HAL_RCC_SDMMC_CLK_DISABLE
  2642. #define __SDMMC_CLK_ENABLE __HAL_RCC_SDMMC_CLK_ENABLE
  2643. #define __SDMMC_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC_CLK_SLEEP_DISABLE
  2644. #define __SDMMC_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC_CLK_SLEEP_ENABLE
  2645. #define __SDMMC_FORCE_RESET __HAL_RCC_SDMMC_FORCE_RESET
  2646. #define __SDMMC_RELEASE_RESET __HAL_RCC_SDMMC_RELEASE_RESET
  2647. #define __SPI1_CLK_DISABLE __HAL_RCC_SPI1_CLK_DISABLE
  2648. #define __SPI1_CLK_ENABLE __HAL_RCC_SPI1_CLK_ENABLE
  2649. #define __SPI1_CLK_SLEEP_DISABLE __HAL_RCC_SPI1_CLK_SLEEP_DISABLE
  2650. #define __SPI1_CLK_SLEEP_ENABLE __HAL_RCC_SPI1_CLK_SLEEP_ENABLE
  2651. #define __SPI1_FORCE_RESET __HAL_RCC_SPI1_FORCE_RESET
  2652. #define __SPI1_RELEASE_RESET __HAL_RCC_SPI1_RELEASE_RESET
  2653. #define __SPI2_CLK_DISABLE __HAL_RCC_SPI2_CLK_DISABLE
  2654. #define __SPI2_CLK_ENABLE __HAL_RCC_SPI2_CLK_ENABLE
  2655. #define __SPI2_CLK_SLEEP_DISABLE __HAL_RCC_SPI2_CLK_SLEEP_DISABLE
  2656. #define __SPI2_CLK_SLEEP_ENABLE __HAL_RCC_SPI2_CLK_SLEEP_ENABLE
  2657. #define __SPI2_FORCE_RESET __HAL_RCC_SPI2_FORCE_RESET
  2658. #define __SPI2_RELEASE_RESET __HAL_RCC_SPI2_RELEASE_RESET
  2659. #define __SPI3_CLK_DISABLE __HAL_RCC_SPI3_CLK_DISABLE
  2660. #define __SPI3_CLK_ENABLE __HAL_RCC_SPI3_CLK_ENABLE
  2661. #define __SPI3_CLK_SLEEP_DISABLE __HAL_RCC_SPI3_CLK_SLEEP_DISABLE
  2662. #define __SPI3_CLK_SLEEP_ENABLE __HAL_RCC_SPI3_CLK_SLEEP_ENABLE
  2663. #define __SPI3_FORCE_RESET __HAL_RCC_SPI3_FORCE_RESET
  2664. #define __SPI3_RELEASE_RESET __HAL_RCC_SPI3_RELEASE_RESET
  2665. #define __SRAM_CLK_DISABLE __HAL_RCC_SRAM_CLK_DISABLE
  2666. #define __SRAM_CLK_ENABLE __HAL_RCC_SRAM_CLK_ENABLE
  2667. #define __SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE
  2668. #define __SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE
  2669. #define __SRAM2_CLK_SLEEP_DISABLE __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE
  2670. #define __SRAM2_CLK_SLEEP_ENABLE __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE
  2671. #define __SWPMI1_CLK_DISABLE __HAL_RCC_SWPMI1_CLK_DISABLE
  2672. #define __SWPMI1_CLK_ENABLE __HAL_RCC_SWPMI1_CLK_ENABLE
  2673. #define __SWPMI1_CLK_SLEEP_DISABLE __HAL_RCC_SWPMI1_CLK_SLEEP_DISABLE
  2674. #define __SWPMI1_CLK_SLEEP_ENABLE __HAL_RCC_SWPMI1_CLK_SLEEP_ENABLE
  2675. #define __SWPMI1_FORCE_RESET __HAL_RCC_SWPMI1_FORCE_RESET
  2676. #define __SWPMI1_RELEASE_RESET __HAL_RCC_SWPMI1_RELEASE_RESET
  2677. #define __SYSCFG_CLK_DISABLE __HAL_RCC_SYSCFG_CLK_DISABLE
  2678. #define __SYSCFG_CLK_ENABLE __HAL_RCC_SYSCFG_CLK_ENABLE
  2679. #define __SYSCFG_CLK_SLEEP_DISABLE __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE
  2680. #define __SYSCFG_CLK_SLEEP_ENABLE __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE
  2681. #define __SYSCFG_FORCE_RESET __HAL_RCC_SYSCFG_FORCE_RESET
  2682. #define __SYSCFG_RELEASE_RESET __HAL_RCC_SYSCFG_RELEASE_RESET
  2683. #define __TIM1_CLK_DISABLE __HAL_RCC_TIM1_CLK_DISABLE
  2684. #define __TIM1_CLK_ENABLE __HAL_RCC_TIM1_CLK_ENABLE
  2685. #define __TIM1_CLK_SLEEP_DISABLE __HAL_RCC_TIM1_CLK_SLEEP_DISABLE
  2686. #define __TIM1_CLK_SLEEP_ENABLE __HAL_RCC_TIM1_CLK_SLEEP_ENABLE
  2687. #define __TIM1_FORCE_RESET __HAL_RCC_TIM1_FORCE_RESET
  2688. #define __TIM1_RELEASE_RESET __HAL_RCC_TIM1_RELEASE_RESET
  2689. #define __TIM10_CLK_DISABLE __HAL_RCC_TIM10_CLK_DISABLE
  2690. #define __TIM10_CLK_ENABLE __HAL_RCC_TIM10_CLK_ENABLE
  2691. #define __TIM10_FORCE_RESET __HAL_RCC_TIM10_FORCE_RESET
  2692. #define __TIM10_RELEASE_RESET __HAL_RCC_TIM10_RELEASE_RESET
  2693. #define __TIM11_CLK_DISABLE __HAL_RCC_TIM11_CLK_DISABLE
  2694. #define __TIM11_CLK_ENABLE __HAL_RCC_TIM11_CLK_ENABLE
  2695. #define __TIM11_FORCE_RESET __HAL_RCC_TIM11_FORCE_RESET
  2696. #define __TIM11_RELEASE_RESET __HAL_RCC_TIM11_RELEASE_RESET
  2697. #define __TIM12_CLK_DISABLE __HAL_RCC_TIM12_CLK_DISABLE
  2698. #define __TIM12_CLK_ENABLE __HAL_RCC_TIM12_CLK_ENABLE
  2699. #define __TIM12_FORCE_RESET __HAL_RCC_TIM12_FORCE_RESET
  2700. #define __TIM12_RELEASE_RESET __HAL_RCC_TIM12_RELEASE_RESET
  2701. #define __TIM13_CLK_DISABLE __HAL_RCC_TIM13_CLK_DISABLE
  2702. #define __TIM13_CLK_ENABLE __HAL_RCC_TIM13_CLK_ENABLE
  2703. #define __TIM13_FORCE_RESET __HAL_RCC_TIM13_FORCE_RESET
  2704. #define __TIM13_RELEASE_RESET __HAL_RCC_TIM13_RELEASE_RESET
  2705. #define __TIM14_CLK_DISABLE __HAL_RCC_TIM14_CLK_DISABLE
  2706. #define __TIM14_CLK_ENABLE __HAL_RCC_TIM14_CLK_ENABLE
  2707. #define __TIM14_FORCE_RESET __HAL_RCC_TIM14_FORCE_RESET
  2708. #define __TIM14_RELEASE_RESET __HAL_RCC_TIM14_RELEASE_RESET
  2709. #define __TIM15_CLK_DISABLE __HAL_RCC_TIM15_CLK_DISABLE
  2710. #define __TIM15_CLK_ENABLE __HAL_RCC_TIM15_CLK_ENABLE
  2711. #define __TIM15_CLK_SLEEP_DISABLE __HAL_RCC_TIM15_CLK_SLEEP_DISABLE
  2712. #define __TIM15_CLK_SLEEP_ENABLE __HAL_RCC_TIM15_CLK_SLEEP_ENABLE
  2713. #define __TIM15_FORCE_RESET __HAL_RCC_TIM15_FORCE_RESET
  2714. #define __TIM15_RELEASE_RESET __HAL_RCC_TIM15_RELEASE_RESET
  2715. #define __TIM16_CLK_DISABLE __HAL_RCC_TIM16_CLK_DISABLE
  2716. #define __TIM16_CLK_ENABLE __HAL_RCC_TIM16_CLK_ENABLE
  2717. #define __TIM16_CLK_SLEEP_DISABLE __HAL_RCC_TIM16_CLK_SLEEP_DISABLE
  2718. #define __TIM16_CLK_SLEEP_ENABLE __HAL_RCC_TIM16_CLK_SLEEP_ENABLE
  2719. #define __TIM16_FORCE_RESET __HAL_RCC_TIM16_FORCE_RESET
  2720. #define __TIM16_RELEASE_RESET __HAL_RCC_TIM16_RELEASE_RESET
  2721. #define __TIM17_CLK_DISABLE __HAL_RCC_TIM17_CLK_DISABLE
  2722. #define __TIM17_CLK_ENABLE __HAL_RCC_TIM17_CLK_ENABLE
  2723. #define __TIM17_CLK_SLEEP_DISABLE __HAL_RCC_TIM17_CLK_SLEEP_DISABLE
  2724. #define __TIM17_CLK_SLEEP_ENABLE __HAL_RCC_TIM17_CLK_SLEEP_ENABLE
  2725. #define __TIM17_FORCE_RESET __HAL_RCC_TIM17_FORCE_RESET
  2726. #define __TIM17_RELEASE_RESET __HAL_RCC_TIM17_RELEASE_RESET
  2727. #define __TIM2_CLK_DISABLE __HAL_RCC_TIM2_CLK_DISABLE
  2728. #define __TIM2_CLK_ENABLE __HAL_RCC_TIM2_CLK_ENABLE
  2729. #define __TIM2_CLK_SLEEP_DISABLE __HAL_RCC_TIM2_CLK_SLEEP_DISABLE
  2730. #define __TIM2_CLK_SLEEP_ENABLE __HAL_RCC_TIM2_CLK_SLEEP_ENABLE
  2731. #define __TIM2_FORCE_RESET __HAL_RCC_TIM2_FORCE_RESET
  2732. #define __TIM2_RELEASE_RESET __HAL_RCC_TIM2_RELEASE_RESET
  2733. #define __TIM3_CLK_DISABLE __HAL_RCC_TIM3_CLK_DISABLE
  2734. #define __TIM3_CLK_ENABLE __HAL_RCC_TIM3_CLK_ENABLE
  2735. #define __TIM3_CLK_SLEEP_DISABLE __HAL_RCC_TIM3_CLK_SLEEP_DISABLE
  2736. #define __TIM3_CLK_SLEEP_ENABLE __HAL_RCC_TIM3_CLK_SLEEP_ENABLE
  2737. #define __TIM3_FORCE_RESET __HAL_RCC_TIM3_FORCE_RESET
  2738. #define __TIM3_RELEASE_RESET __HAL_RCC_TIM3_RELEASE_RESET
  2739. #define __TIM4_CLK_DISABLE __HAL_RCC_TIM4_CLK_DISABLE
  2740. #define __TIM4_CLK_ENABLE __HAL_RCC_TIM4_CLK_ENABLE
  2741. #define __TIM4_CLK_SLEEP_DISABLE __HAL_RCC_TIM4_CLK_SLEEP_DISABLE
  2742. #define __TIM4_CLK_SLEEP_ENABLE __HAL_RCC_TIM4_CLK_SLEEP_ENABLE
  2743. #define __TIM4_FORCE_RESET __HAL_RCC_TIM4_FORCE_RESET
  2744. #define __TIM4_RELEASE_RESET __HAL_RCC_TIM4_RELEASE_RESET
  2745. #define __TIM5_CLK_DISABLE __HAL_RCC_TIM5_CLK_DISABLE
  2746. #define __TIM5_CLK_ENABLE __HAL_RCC_TIM5_CLK_ENABLE
  2747. #define __TIM5_CLK_SLEEP_DISABLE __HAL_RCC_TIM5_CLK_SLEEP_DISABLE
  2748. #define __TIM5_CLK_SLEEP_ENABLE __HAL_RCC_TIM5_CLK_SLEEP_ENABLE
  2749. #define __TIM5_FORCE_RESET __HAL_RCC_TIM5_FORCE_RESET
  2750. #define __TIM5_RELEASE_RESET __HAL_RCC_TIM5_RELEASE_RESET
  2751. #define __TIM6_CLK_DISABLE __HAL_RCC_TIM6_CLK_DISABLE
  2752. #define __TIM6_CLK_ENABLE __HAL_RCC_TIM6_CLK_ENABLE
  2753. #define __TIM6_CLK_SLEEP_DISABLE __HAL_RCC_TIM6_CLK_SLEEP_DISABLE
  2754. #define __TIM6_CLK_SLEEP_ENABLE __HAL_RCC_TIM6_CLK_SLEEP_ENABLE
  2755. #define __TIM6_FORCE_RESET __HAL_RCC_TIM6_FORCE_RESET
  2756. #define __TIM6_RELEASE_RESET __HAL_RCC_TIM6_RELEASE_RESET
  2757. #define __TIM7_CLK_DISABLE __HAL_RCC_TIM7_CLK_DISABLE
  2758. #define __TIM7_CLK_ENABLE __HAL_RCC_TIM7_CLK_ENABLE
  2759. #define __TIM7_CLK_SLEEP_DISABLE __HAL_RCC_TIM7_CLK_SLEEP_DISABLE
  2760. #define __TIM7_CLK_SLEEP_ENABLE __HAL_RCC_TIM7_CLK_SLEEP_ENABLE
  2761. #define __TIM7_FORCE_RESET __HAL_RCC_TIM7_FORCE_RESET
  2762. #define __TIM7_RELEASE_RESET __HAL_RCC_TIM7_RELEASE_RESET
  2763. #define __TIM8_CLK_DISABLE __HAL_RCC_TIM8_CLK_DISABLE
  2764. #define __TIM8_CLK_ENABLE __HAL_RCC_TIM8_CLK_ENABLE
  2765. #define __TIM8_CLK_SLEEP_DISABLE __HAL_RCC_TIM8_CLK_SLEEP_DISABLE
  2766. #define __TIM8_CLK_SLEEP_ENABLE __HAL_RCC_TIM8_CLK_SLEEP_ENABLE
  2767. #define __TIM8_FORCE_RESET __HAL_RCC_TIM8_FORCE_RESET
  2768. #define __TIM8_RELEASE_RESET __HAL_RCC_TIM8_RELEASE_RESET
  2769. #define __TIM9_CLK_DISABLE __HAL_RCC_TIM9_CLK_DISABLE
  2770. #define __TIM9_CLK_ENABLE __HAL_RCC_TIM9_CLK_ENABLE
  2771. #define __TIM9_FORCE_RESET __HAL_RCC_TIM9_FORCE_RESET
  2772. #define __TIM9_RELEASE_RESET __HAL_RCC_TIM9_RELEASE_RESET
  2773. #define __TSC_CLK_DISABLE __HAL_RCC_TSC_CLK_DISABLE
  2774. #define __TSC_CLK_ENABLE __HAL_RCC_TSC_CLK_ENABLE
  2775. #define __TSC_CLK_SLEEP_DISABLE __HAL_RCC_TSC_CLK_SLEEP_DISABLE
  2776. #define __TSC_CLK_SLEEP_ENABLE __HAL_RCC_TSC_CLK_SLEEP_ENABLE
  2777. #define __TSC_FORCE_RESET __HAL_RCC_TSC_FORCE_RESET
  2778. #define __TSC_RELEASE_RESET __HAL_RCC_TSC_RELEASE_RESET
  2779. #define __UART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE
  2780. #define __UART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE
  2781. #define __UART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE
  2782. #define __UART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE
  2783. #define __UART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET
  2784. #define __UART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET
  2785. #define __UART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE
  2786. #define __UART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE
  2787. #define __UART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE
  2788. #define __UART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE
  2789. #define __UART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET
  2790. #define __UART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET
  2791. #define __USART1_CLK_DISABLE __HAL_RCC_USART1_CLK_DISABLE
  2792. #define __USART1_CLK_ENABLE __HAL_RCC_USART1_CLK_ENABLE
  2793. #define __USART1_CLK_SLEEP_DISABLE __HAL_RCC_USART1_CLK_SLEEP_DISABLE
  2794. #define __USART1_CLK_SLEEP_ENABLE __HAL_RCC_USART1_CLK_SLEEP_ENABLE
  2795. #define __USART1_FORCE_RESET __HAL_RCC_USART1_FORCE_RESET
  2796. #define __USART1_RELEASE_RESET __HAL_RCC_USART1_RELEASE_RESET
  2797. #define __USART2_CLK_DISABLE __HAL_RCC_USART2_CLK_DISABLE
  2798. #define __USART2_CLK_ENABLE __HAL_RCC_USART2_CLK_ENABLE
  2799. #define __USART2_CLK_SLEEP_DISABLE __HAL_RCC_USART2_CLK_SLEEP_DISABLE
  2800. #define __USART2_CLK_SLEEP_ENABLE __HAL_RCC_USART2_CLK_SLEEP_ENABLE
  2801. #define __USART2_FORCE_RESET __HAL_RCC_USART2_FORCE_RESET
  2802. #define __USART2_RELEASE_RESET __HAL_RCC_USART2_RELEASE_RESET
  2803. #define __USART3_CLK_DISABLE __HAL_RCC_USART3_CLK_DISABLE
  2804. #define __USART3_CLK_ENABLE __HAL_RCC_USART3_CLK_ENABLE
  2805. #define __USART3_CLK_SLEEP_DISABLE __HAL_RCC_USART3_CLK_SLEEP_DISABLE
  2806. #define __USART3_CLK_SLEEP_ENABLE __HAL_RCC_USART3_CLK_SLEEP_ENABLE
  2807. #define __USART3_FORCE_RESET __HAL_RCC_USART3_FORCE_RESET
  2808. #define __USART3_RELEASE_RESET __HAL_RCC_USART3_RELEASE_RESET
  2809. #define __USART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE
  2810. #define __USART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE
  2811. #define __USART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE
  2812. #define __USART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE
  2813. #define __USART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET
  2814. #define __USART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET
  2815. #define __USART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE
  2816. #define __USART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE
  2817. #define __USART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE
  2818. #define __USART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE
  2819. #define __USART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET
  2820. #define __USART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET
  2821. #define __USART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE
  2822. #define __USART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE
  2823. #define __USART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET
  2824. #define __USART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET
  2825. #define __USART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE
  2826. #define __USART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE
  2827. #define __USART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET
  2828. #define __USART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET
  2829. #define __USB_CLK_DISABLE __HAL_RCC_USB_CLK_DISABLE
  2830. #define __USB_CLK_ENABLE __HAL_RCC_USB_CLK_ENABLE
  2831. #define __USB_FORCE_RESET __HAL_RCC_USB_FORCE_RESET
  2832. #define __USB_CLK_SLEEP_ENABLE __HAL_RCC_USB_CLK_SLEEP_ENABLE
  2833. #define __USB_CLK_SLEEP_DISABLE __HAL_RCC_USB_CLK_SLEEP_DISABLE
  2834. #define __USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB_OTG_FS_CLK_DISABLE
  2835. #define __USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB_OTG_FS_CLK_ENABLE
  2836. #define __USB_RELEASE_RESET __HAL_RCC_USB_RELEASE_RESET
  2837. #if defined(STM32H7)
  2838. #define __HAL_RCC_WWDG_CLK_DISABLE __HAL_RCC_WWDG1_CLK_DISABLE
  2839. #define __HAL_RCC_WWDG_CLK_ENABLE __HAL_RCC_WWDG1_CLK_ENABLE
  2840. #define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG1_CLK_SLEEP_DISABLE
  2841. #define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG1_CLK_SLEEP_ENABLE
  2842. #define __HAL_RCC_WWDG_FORCE_RESET ((void)0U) /* Not available on the STM32H7*/
  2843. #define __HAL_RCC_WWDG_RELEASE_RESET ((void)0U) /* Not available on the STM32H7*/
  2844. #define __HAL_RCC_WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG1_IS_CLK_ENABLED
  2845. #define __HAL_RCC_WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG1_IS_CLK_DISABLED
  2846. #define RCC_SPI4CLKSOURCE_D2PCLK1 RCC_SPI4CLKSOURCE_D2PCLK2
  2847. #define RCC_SPI5CLKSOURCE_D2PCLK1 RCC_SPI5CLKSOURCE_D2PCLK2
  2848. #define RCC_SPI45CLKSOURCE_D2PCLK1 RCC_SPI45CLKSOURCE_D2PCLK2
  2849. #define RCC_SPI45CLKSOURCE_CDPCLK1 RCC_SPI45CLKSOURCE_CDPCLK2
  2850. #define RCC_SPI45CLKSOURCE_PCLK1 RCC_SPI45CLKSOURCE_PCLK2
  2851. #endif
  2852. #define __WWDG_CLK_DISABLE __HAL_RCC_WWDG_CLK_DISABLE
  2853. #define __WWDG_CLK_ENABLE __HAL_RCC_WWDG_CLK_ENABLE
  2854. #define __WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG_CLK_SLEEP_DISABLE
  2855. #define __WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG_CLK_SLEEP_ENABLE
  2856. #define __WWDG_FORCE_RESET __HAL_RCC_WWDG_FORCE_RESET
  2857. #define __WWDG_RELEASE_RESET __HAL_RCC_WWDG_RELEASE_RESET
  2858. #define __TIM21_CLK_ENABLE __HAL_RCC_TIM21_CLK_ENABLE
  2859. #define __TIM21_CLK_DISABLE __HAL_RCC_TIM21_CLK_DISABLE
  2860. #define __TIM21_FORCE_RESET __HAL_RCC_TIM21_FORCE_RESET
  2861. #define __TIM21_RELEASE_RESET __HAL_RCC_TIM21_RELEASE_RESET
  2862. #define __TIM21_CLK_SLEEP_ENABLE __HAL_RCC_TIM21_CLK_SLEEP_ENABLE
  2863. #define __TIM21_CLK_SLEEP_DISABLE __HAL_RCC_TIM21_CLK_SLEEP_DISABLE
  2864. #define __TIM22_CLK_ENABLE __HAL_RCC_TIM22_CLK_ENABLE
  2865. #define __TIM22_CLK_DISABLE __HAL_RCC_TIM22_CLK_DISABLE
  2866. #define __TIM22_FORCE_RESET __HAL_RCC_TIM22_FORCE_RESET
  2867. #define __TIM22_RELEASE_RESET __HAL_RCC_TIM22_RELEASE_RESET
  2868. #define __TIM22_CLK_SLEEP_ENABLE __HAL_RCC_TIM22_CLK_SLEEP_ENABLE
  2869. #define __TIM22_CLK_SLEEP_DISABLE __HAL_RCC_TIM22_CLK_SLEEP_DISABLE
  2870. #define __CRS_CLK_DISABLE __HAL_RCC_CRS_CLK_DISABLE
  2871. #define __CRS_CLK_ENABLE __HAL_RCC_CRS_CLK_ENABLE
  2872. #define __CRS_CLK_SLEEP_DISABLE __HAL_RCC_CRS_CLK_SLEEP_DISABLE
  2873. #define __CRS_CLK_SLEEP_ENABLE __HAL_RCC_CRS_CLK_SLEEP_ENABLE
  2874. #define __CRS_FORCE_RESET __HAL_RCC_CRS_FORCE_RESET
  2875. #define __CRS_RELEASE_RESET __HAL_RCC_CRS_RELEASE_RESET
  2876. #define __RCC_BACKUPRESET_FORCE __HAL_RCC_BACKUPRESET_FORCE
  2877. #define __RCC_BACKUPRESET_RELEASE __HAL_RCC_BACKUPRESET_RELEASE
  2878. #define __USB_OTG_FS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET
  2879. #define __USB_OTG_FS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET
  2880. #define __USB_OTG_FS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE
  2881. #define __USB_OTG_FS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE
  2882. #define __USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE
  2883. #define __USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE
  2884. #define __USB_OTG_HS_ULPI_CLK_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE
  2885. #define __USB_OTG_HS_ULPI_CLK_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE
  2886. #define __TIM9_CLK_SLEEP_ENABLE __HAL_RCC_TIM9_CLK_SLEEP_ENABLE
  2887. #define __TIM9_CLK_SLEEP_DISABLE __HAL_RCC_TIM9_CLK_SLEEP_DISABLE
  2888. #define __TIM10_CLK_SLEEP_ENABLE __HAL_RCC_TIM10_CLK_SLEEP_ENABLE
  2889. #define __TIM10_CLK_SLEEP_DISABLE __HAL_RCC_TIM10_CLK_SLEEP_DISABLE
  2890. #define __TIM11_CLK_SLEEP_ENABLE __HAL_RCC_TIM11_CLK_SLEEP_ENABLE
  2891. #define __TIM11_CLK_SLEEP_DISABLE __HAL_RCC_TIM11_CLK_SLEEP_DISABLE
  2892. #define __ETHMACPTP_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE
  2893. #define __ETHMACPTP_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE
  2894. #define __ETHMACPTP_CLK_ENABLE __HAL_RCC_ETHMACPTP_CLK_ENABLE
  2895. #define __ETHMACPTP_CLK_DISABLE __HAL_RCC_ETHMACPTP_CLK_DISABLE
  2896. #define __HASH_CLK_ENABLE __HAL_RCC_HASH_CLK_ENABLE
  2897. #define __HASH_FORCE_RESET __HAL_RCC_HASH_FORCE_RESET
  2898. #define __HASH_RELEASE_RESET __HAL_RCC_HASH_RELEASE_RESET
  2899. #define __HASH_CLK_SLEEP_ENABLE __HAL_RCC_HASH_CLK_SLEEP_ENABLE
  2900. #define __HASH_CLK_SLEEP_DISABLE __HAL_RCC_HASH_CLK_SLEEP_DISABLE
  2901. #define __HASH_CLK_DISABLE __HAL_RCC_HASH_CLK_DISABLE
  2902. #define __SPI5_CLK_ENABLE __HAL_RCC_SPI5_CLK_ENABLE
  2903. #define __SPI5_CLK_DISABLE __HAL_RCC_SPI5_CLK_DISABLE
  2904. #define __SPI5_FORCE_RESET __HAL_RCC_SPI5_FORCE_RESET
  2905. #define __SPI5_RELEASE_RESET __HAL_RCC_SPI5_RELEASE_RESET
  2906. #define __SPI5_CLK_SLEEP_ENABLE __HAL_RCC_SPI5_CLK_SLEEP_ENABLE
  2907. #define __SPI5_CLK_SLEEP_DISABLE __HAL_RCC_SPI5_CLK_SLEEP_DISABLE
  2908. #define __SPI6_CLK_ENABLE __HAL_RCC_SPI6_CLK_ENABLE
  2909. #define __SPI6_CLK_DISABLE __HAL_RCC_SPI6_CLK_DISABLE
  2910. #define __SPI6_FORCE_RESET __HAL_RCC_SPI6_FORCE_RESET
  2911. #define __SPI6_RELEASE_RESET __HAL_RCC_SPI6_RELEASE_RESET
  2912. #define __SPI6_CLK_SLEEP_ENABLE __HAL_RCC_SPI6_CLK_SLEEP_ENABLE
  2913. #define __SPI6_CLK_SLEEP_DISABLE __HAL_RCC_SPI6_CLK_SLEEP_DISABLE
  2914. #define __LTDC_CLK_ENABLE __HAL_RCC_LTDC_CLK_ENABLE
  2915. #define __LTDC_CLK_DISABLE __HAL_RCC_LTDC_CLK_DISABLE
  2916. #define __LTDC_FORCE_RESET __HAL_RCC_LTDC_FORCE_RESET
  2917. #define __LTDC_RELEASE_RESET __HAL_RCC_LTDC_RELEASE_RESET
  2918. #define __LTDC_CLK_SLEEP_ENABLE __HAL_RCC_LTDC_CLK_SLEEP_ENABLE
  2919. #define __ETHMAC_CLK_SLEEP_ENABLE __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE
  2920. #define __ETHMAC_CLK_SLEEP_DISABLE __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE
  2921. #define __ETHMACTX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE
  2922. #define __ETHMACTX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE
  2923. #define __ETHMACRX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE
  2924. #define __ETHMACRX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE
  2925. #define __TIM12_CLK_SLEEP_ENABLE __HAL_RCC_TIM12_CLK_SLEEP_ENABLE
  2926. #define __TIM12_CLK_SLEEP_DISABLE __HAL_RCC_TIM12_CLK_SLEEP_DISABLE
  2927. #define __TIM13_CLK_SLEEP_ENABLE __HAL_RCC_TIM13_CLK_SLEEP_ENABLE
  2928. #define __TIM13_CLK_SLEEP_DISABLE __HAL_RCC_TIM13_CLK_SLEEP_DISABLE
  2929. #define __TIM14_CLK_SLEEP_ENABLE __HAL_RCC_TIM14_CLK_SLEEP_ENABLE
  2930. #define __TIM14_CLK_SLEEP_DISABLE __HAL_RCC_TIM14_CLK_SLEEP_DISABLE
  2931. #define __BKPSRAM_CLK_ENABLE __HAL_RCC_BKPSRAM_CLK_ENABLE
  2932. #define __BKPSRAM_CLK_DISABLE __HAL_RCC_BKPSRAM_CLK_DISABLE
  2933. #define __BKPSRAM_CLK_SLEEP_ENABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE
  2934. #define __BKPSRAM_CLK_SLEEP_DISABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE
  2935. #define __CCMDATARAMEN_CLK_ENABLE __HAL_RCC_CCMDATARAMEN_CLK_ENABLE
  2936. #define __CCMDATARAMEN_CLK_DISABLE __HAL_RCC_CCMDATARAMEN_CLK_DISABLE
  2937. #define __USART6_CLK_ENABLE __HAL_RCC_USART6_CLK_ENABLE
  2938. #define __USART6_CLK_DISABLE __HAL_RCC_USART6_CLK_DISABLE
  2939. #define __USART6_FORCE_RESET __HAL_RCC_USART6_FORCE_RESET
  2940. #define __USART6_RELEASE_RESET __HAL_RCC_USART6_RELEASE_RESET
  2941. #define __USART6_CLK_SLEEP_ENABLE __HAL_RCC_USART6_CLK_SLEEP_ENABLE
  2942. #define __USART6_CLK_SLEEP_DISABLE __HAL_RCC_USART6_CLK_SLEEP_DISABLE
  2943. #define __SPI4_CLK_ENABLE __HAL_RCC_SPI4_CLK_ENABLE
  2944. #define __SPI4_CLK_DISABLE __HAL_RCC_SPI4_CLK_DISABLE
  2945. #define __SPI4_FORCE_RESET __HAL_RCC_SPI4_FORCE_RESET
  2946. #define __SPI4_RELEASE_RESET __HAL_RCC_SPI4_RELEASE_RESET
  2947. #define __SPI4_CLK_SLEEP_ENABLE __HAL_RCC_SPI4_CLK_SLEEP_ENABLE
  2948. #define __SPI4_CLK_SLEEP_DISABLE __HAL_RCC_SPI4_CLK_SLEEP_DISABLE
  2949. #define __GPIOI_CLK_ENABLE __HAL_RCC_GPIOI_CLK_ENABLE
  2950. #define __GPIOI_CLK_DISABLE __HAL_RCC_GPIOI_CLK_DISABLE
  2951. #define __GPIOI_FORCE_RESET __HAL_RCC_GPIOI_FORCE_RESET
  2952. #define __GPIOI_RELEASE_RESET __HAL_RCC_GPIOI_RELEASE_RESET
  2953. #define __GPIOI_CLK_SLEEP_ENABLE __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE
  2954. #define __GPIOI_CLK_SLEEP_DISABLE __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE
  2955. #define __GPIOJ_CLK_ENABLE __HAL_RCC_GPIOJ_CLK_ENABLE
  2956. #define __GPIOJ_CLK_DISABLE __HAL_RCC_GPIOJ_CLK_DISABLE
  2957. #define __GPIOJ_FORCE_RESET __HAL_RCC_GPIOJ_FORCE_RESET
  2958. #define __GPIOJ_RELEASE_RESET __HAL_RCC_GPIOJ_RELEASE_RESET
  2959. #define __GPIOJ_CLK_SLEEP_ENABLE __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE
  2960. #define __GPIOJ_CLK_SLEEP_DISABLE __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE
  2961. #define __GPIOK_CLK_ENABLE __HAL_RCC_GPIOK_CLK_ENABLE
  2962. #define __GPIOK_CLK_DISABLE __HAL_RCC_GPIOK_CLK_DISABLE
  2963. #define __GPIOK_RELEASE_RESET __HAL_RCC_GPIOK_RELEASE_RESET
  2964. #define __GPIOK_CLK_SLEEP_ENABLE __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE
  2965. #define __GPIOK_CLK_SLEEP_DISABLE __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE
  2966. #define __ETH_CLK_ENABLE __HAL_RCC_ETH_CLK_ENABLE
  2967. #define __ETH_CLK_DISABLE __HAL_RCC_ETH_CLK_DISABLE
  2968. #define __DCMI_CLK_ENABLE __HAL_RCC_DCMI_CLK_ENABLE
  2969. #define __DCMI_CLK_DISABLE __HAL_RCC_DCMI_CLK_DISABLE
  2970. #define __DCMI_FORCE_RESET __HAL_RCC_DCMI_FORCE_RESET
  2971. #define __DCMI_RELEASE_RESET __HAL_RCC_DCMI_RELEASE_RESET
  2972. #define __DCMI_CLK_SLEEP_ENABLE __HAL_RCC_DCMI_CLK_SLEEP_ENABLE
  2973. #define __DCMI_CLK_SLEEP_DISABLE __HAL_RCC_DCMI_CLK_SLEEP_DISABLE
  2974. #define __UART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE
  2975. #define __UART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE
  2976. #define __UART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET
  2977. #define __UART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET
  2978. #define __UART7_CLK_SLEEP_ENABLE __HAL_RCC_UART7_CLK_SLEEP_ENABLE
  2979. #define __UART7_CLK_SLEEP_DISABLE __HAL_RCC_UART7_CLK_SLEEP_DISABLE
  2980. #define __UART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE
  2981. #define __UART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE
  2982. #define __UART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET
  2983. #define __UART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET
  2984. #define __UART8_CLK_SLEEP_ENABLE __HAL_RCC_UART8_CLK_SLEEP_ENABLE
  2985. #define __UART8_CLK_SLEEP_DISABLE __HAL_RCC_UART8_CLK_SLEEP_DISABLE
  2986. #define __OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE
  2987. #define __OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE
  2988. #define __OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET
  2989. #define __OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET
  2990. #define __OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE
  2991. #define __OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE
  2992. #define __HAL_RCC_OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE
  2993. #define __HAL_RCC_OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE
  2994. #define __HAL_RCC_OTGHS_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_ENABLED
  2995. #define __HAL_RCC_OTGHS_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_DISABLED
  2996. #define __HAL_RCC_OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET
  2997. #define __HAL_RCC_OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET
  2998. #define __HAL_RCC_OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE
  2999. #define __HAL_RCC_OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE
  3000. #define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_ENABLED
  3001. #define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_DISABLED
  3002. #define __SRAM3_CLK_SLEEP_ENABLE __HAL_RCC_SRAM3_CLK_SLEEP_ENABLE
  3003. #define __CAN2_CLK_SLEEP_ENABLE __HAL_RCC_CAN2_CLK_SLEEP_ENABLE
  3004. #define __CAN2_CLK_SLEEP_DISABLE __HAL_RCC_CAN2_CLK_SLEEP_DISABLE
  3005. #define __DAC_CLK_SLEEP_ENABLE __HAL_RCC_DAC_CLK_SLEEP_ENABLE
  3006. #define __DAC_CLK_SLEEP_DISABLE __HAL_RCC_DAC_CLK_SLEEP_DISABLE
  3007. #define __ADC2_CLK_SLEEP_ENABLE __HAL_RCC_ADC2_CLK_SLEEP_ENABLE
  3008. #define __ADC2_CLK_SLEEP_DISABLE __HAL_RCC_ADC2_CLK_SLEEP_DISABLE
  3009. #define __ADC3_CLK_SLEEP_ENABLE __HAL_RCC_ADC3_CLK_SLEEP_ENABLE
  3010. #define __ADC3_CLK_SLEEP_DISABLE __HAL_RCC_ADC3_CLK_SLEEP_DISABLE
  3011. #define __FSMC_FORCE_RESET __HAL_RCC_FSMC_FORCE_RESET
  3012. #define __FSMC_RELEASE_RESET __HAL_RCC_FSMC_RELEASE_RESET
  3013. #define __FSMC_CLK_SLEEP_ENABLE __HAL_RCC_FSMC_CLK_SLEEP_ENABLE
  3014. #define __FSMC_CLK_SLEEP_DISABLE __HAL_RCC_FSMC_CLK_SLEEP_DISABLE
  3015. #define __SDIO_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET
  3016. #define __SDIO_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET
  3017. #define __SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE
  3018. #define __SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE
  3019. #define __DMA2D_CLK_ENABLE __HAL_RCC_DMA2D_CLK_ENABLE
  3020. #define __DMA2D_CLK_DISABLE __HAL_RCC_DMA2D_CLK_DISABLE
  3021. #define __DMA2D_FORCE_RESET __HAL_RCC_DMA2D_FORCE_RESET
  3022. #define __DMA2D_RELEASE_RESET __HAL_RCC_DMA2D_RELEASE_RESET
  3023. #define __DMA2D_CLK_SLEEP_ENABLE __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE
  3024. #define __DMA2D_CLK_SLEEP_DISABLE __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE
  3025. /* alias define maintained for legacy */
  3026. #define __HAL_RCC_OTGFS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET
  3027. #define __HAL_RCC_OTGFS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET
  3028. #define __ADC12_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE
  3029. #define __ADC12_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE
  3030. #define __ADC34_CLK_ENABLE __HAL_RCC_ADC34_CLK_ENABLE
  3031. #define __ADC34_CLK_DISABLE __HAL_RCC_ADC34_CLK_DISABLE
  3032. #define __DAC2_CLK_ENABLE __HAL_RCC_DAC2_CLK_ENABLE
  3033. #define __DAC2_CLK_DISABLE __HAL_RCC_DAC2_CLK_DISABLE
  3034. #define __TIM18_CLK_ENABLE __HAL_RCC_TIM18_CLK_ENABLE
  3035. #define __TIM18_CLK_DISABLE __HAL_RCC_TIM18_CLK_DISABLE
  3036. #define __TIM19_CLK_ENABLE __HAL_RCC_TIM19_CLK_ENABLE
  3037. #define __TIM19_CLK_DISABLE __HAL_RCC_TIM19_CLK_DISABLE
  3038. #define __TIM20_CLK_ENABLE __HAL_RCC_TIM20_CLK_ENABLE
  3039. #define __TIM20_CLK_DISABLE __HAL_RCC_TIM20_CLK_DISABLE
  3040. #define __HRTIM1_CLK_ENABLE __HAL_RCC_HRTIM1_CLK_ENABLE
  3041. #define __HRTIM1_CLK_DISABLE __HAL_RCC_HRTIM1_CLK_DISABLE
  3042. #define __SDADC1_CLK_ENABLE __HAL_RCC_SDADC1_CLK_ENABLE
  3043. #define __SDADC2_CLK_ENABLE __HAL_RCC_SDADC2_CLK_ENABLE
  3044. #define __SDADC3_CLK_ENABLE __HAL_RCC_SDADC3_CLK_ENABLE
  3045. #define __SDADC1_CLK_DISABLE __HAL_RCC_SDADC1_CLK_DISABLE
  3046. #define __SDADC2_CLK_DISABLE __HAL_RCC_SDADC2_CLK_DISABLE
  3047. #define __SDADC3_CLK_DISABLE __HAL_RCC_SDADC3_CLK_DISABLE
  3048. #define __ADC12_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET
  3049. #define __ADC12_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET
  3050. #define __ADC34_FORCE_RESET __HAL_RCC_ADC34_FORCE_RESET
  3051. #define __ADC34_RELEASE_RESET __HAL_RCC_ADC34_RELEASE_RESET
  3052. #define __DAC2_FORCE_RESET __HAL_RCC_DAC2_FORCE_RESET
  3053. #define __DAC2_RELEASE_RESET __HAL_RCC_DAC2_RELEASE_RESET
  3054. #define __TIM18_FORCE_RESET __HAL_RCC_TIM18_FORCE_RESET
  3055. #define __TIM18_RELEASE_RESET __HAL_RCC_TIM18_RELEASE_RESET
  3056. #define __TIM19_FORCE_RESET __HAL_RCC_TIM19_FORCE_RESET
  3057. #define __TIM19_RELEASE_RESET __HAL_RCC_TIM19_RELEASE_RESET
  3058. #define __TIM20_FORCE_RESET __HAL_RCC_TIM20_FORCE_RESET
  3059. #define __TIM20_RELEASE_RESET __HAL_RCC_TIM20_RELEASE_RESET
  3060. #define __HRTIM1_FORCE_RESET __HAL_RCC_HRTIM1_FORCE_RESET
  3061. #define __HRTIM1_RELEASE_RESET __HAL_RCC_HRTIM1_RELEASE_RESET
  3062. #define __SDADC1_FORCE_RESET __HAL_RCC_SDADC1_FORCE_RESET
  3063. #define __SDADC2_FORCE_RESET __HAL_RCC_SDADC2_FORCE_RESET
  3064. #define __SDADC3_FORCE_RESET __HAL_RCC_SDADC3_FORCE_RESET
  3065. #define __SDADC1_RELEASE_RESET __HAL_RCC_SDADC1_RELEASE_RESET
  3066. #define __SDADC2_RELEASE_RESET __HAL_RCC_SDADC2_RELEASE_RESET
  3067. #define __SDADC3_RELEASE_RESET __HAL_RCC_SDADC3_RELEASE_RESET
  3068. #define __ADC1_IS_CLK_ENABLED __HAL_RCC_ADC1_IS_CLK_ENABLED
  3069. #define __ADC1_IS_CLK_DISABLED __HAL_RCC_ADC1_IS_CLK_DISABLED
  3070. #define __ADC12_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED
  3071. #define __ADC12_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED
  3072. #define __ADC34_IS_CLK_ENABLED __HAL_RCC_ADC34_IS_CLK_ENABLED
  3073. #define __ADC34_IS_CLK_DISABLED __HAL_RCC_ADC34_IS_CLK_DISABLED
  3074. #define __CEC_IS_CLK_ENABLED __HAL_RCC_CEC_IS_CLK_ENABLED
  3075. #define __CEC_IS_CLK_DISABLED __HAL_RCC_CEC_IS_CLK_DISABLED
  3076. #define __CRC_IS_CLK_ENABLED __HAL_RCC_CRC_IS_CLK_ENABLED
  3077. #define __CRC_IS_CLK_DISABLED __HAL_RCC_CRC_IS_CLK_DISABLED
  3078. #define __DAC1_IS_CLK_ENABLED __HAL_RCC_DAC1_IS_CLK_ENABLED
  3079. #define __DAC1_IS_CLK_DISABLED __HAL_RCC_DAC1_IS_CLK_DISABLED
  3080. #define __DAC2_IS_CLK_ENABLED __HAL_RCC_DAC2_IS_CLK_ENABLED
  3081. #define __DAC2_IS_CLK_DISABLED __HAL_RCC_DAC2_IS_CLK_DISABLED
  3082. #define __DMA1_IS_CLK_ENABLED __HAL_RCC_DMA1_IS_CLK_ENABLED
  3083. #define __DMA1_IS_CLK_DISABLED __HAL_RCC_DMA1_IS_CLK_DISABLED
  3084. #define __DMA2_IS_CLK_ENABLED __HAL_RCC_DMA2_IS_CLK_ENABLED
  3085. #define __DMA2_IS_CLK_DISABLED __HAL_RCC_DMA2_IS_CLK_DISABLED
  3086. #define __FLITF_IS_CLK_ENABLED __HAL_RCC_FLITF_IS_CLK_ENABLED
  3087. #define __FLITF_IS_CLK_DISABLED __HAL_RCC_FLITF_IS_CLK_DISABLED
  3088. #define __FMC_IS_CLK_ENABLED __HAL_RCC_FMC_IS_CLK_ENABLED
  3089. #define __FMC_IS_CLK_DISABLED __HAL_RCC_FMC_IS_CLK_DISABLED
  3090. #define __GPIOA_IS_CLK_ENABLED __HAL_RCC_GPIOA_IS_CLK_ENABLED
  3091. #define __GPIOA_IS_CLK_DISABLED __HAL_RCC_GPIOA_IS_CLK_DISABLED
  3092. #define __GPIOB_IS_CLK_ENABLED __HAL_RCC_GPIOB_IS_CLK_ENABLED
  3093. #define __GPIOB_IS_CLK_DISABLED __HAL_RCC_GPIOB_IS_CLK_DISABLED
  3094. #define __GPIOC_IS_CLK_ENABLED __HAL_RCC_GPIOC_IS_CLK_ENABLED
  3095. #define __GPIOC_IS_CLK_DISABLED __HAL_RCC_GPIOC_IS_CLK_DISABLED
  3096. #define __GPIOD_IS_CLK_ENABLED __HAL_RCC_GPIOD_IS_CLK_ENABLED
  3097. #define __GPIOD_IS_CLK_DISABLED __HAL_RCC_GPIOD_IS_CLK_DISABLED
  3098. #define __GPIOE_IS_CLK_ENABLED __HAL_RCC_GPIOE_IS_CLK_ENABLED
  3099. #define __GPIOE_IS_CLK_DISABLED __HAL_RCC_GPIOE_IS_CLK_DISABLED
  3100. #define __GPIOF_IS_CLK_ENABLED __HAL_RCC_GPIOF_IS_CLK_ENABLED
  3101. #define __GPIOF_IS_CLK_DISABLED __HAL_RCC_GPIOF_IS_CLK_DISABLED
  3102. #define __GPIOG_IS_CLK_ENABLED __HAL_RCC_GPIOG_IS_CLK_ENABLED
  3103. #define __GPIOG_IS_CLK_DISABLED __HAL_RCC_GPIOG_IS_CLK_DISABLED
  3104. #define __GPIOH_IS_CLK_ENABLED __HAL_RCC_GPIOH_IS_CLK_ENABLED
  3105. #define __GPIOH_IS_CLK_DISABLED __HAL_RCC_GPIOH_IS_CLK_DISABLED
  3106. #define __HRTIM1_IS_CLK_ENABLED __HAL_RCC_HRTIM1_IS_CLK_ENABLED
  3107. #define __HRTIM1_IS_CLK_DISABLED __HAL_RCC_HRTIM1_IS_CLK_DISABLED
  3108. #define __I2C1_IS_CLK_ENABLED __HAL_RCC_I2C1_IS_CLK_ENABLED
  3109. #define __I2C1_IS_CLK_DISABLED __HAL_RCC_I2C1_IS_CLK_DISABLED
  3110. #define __I2C2_IS_CLK_ENABLED __HAL_RCC_I2C2_IS_CLK_ENABLED
  3111. #define __I2C2_IS_CLK_DISABLED __HAL_RCC_I2C2_IS_CLK_DISABLED
  3112. #define __I2C3_IS_CLK_ENABLED __HAL_RCC_I2C3_IS_CLK_ENABLED
  3113. #define __I2C3_IS_CLK_DISABLED __HAL_RCC_I2C3_IS_CLK_DISABLED
  3114. #define __PWR_IS_CLK_ENABLED __HAL_RCC_PWR_IS_CLK_ENABLED
  3115. #define __PWR_IS_CLK_DISABLED __HAL_RCC_PWR_IS_CLK_DISABLED
  3116. #define __SYSCFG_IS_CLK_ENABLED __HAL_RCC_SYSCFG_IS_CLK_ENABLED
  3117. #define __SYSCFG_IS_CLK_DISABLED __HAL_RCC_SYSCFG_IS_CLK_DISABLED
  3118. #define __SPI1_IS_CLK_ENABLED __HAL_RCC_SPI1_IS_CLK_ENABLED
  3119. #define __SPI1_IS_CLK_DISABLED __HAL_RCC_SPI1_IS_CLK_DISABLED
  3120. #define __SPI2_IS_CLK_ENABLED __HAL_RCC_SPI2_IS_CLK_ENABLED
  3121. #define __SPI2_IS_CLK_DISABLED __HAL_RCC_SPI2_IS_CLK_DISABLED
  3122. #define __SPI3_IS_CLK_ENABLED __HAL_RCC_SPI3_IS_CLK_ENABLED
  3123. #define __SPI3_IS_CLK_DISABLED __HAL_RCC_SPI3_IS_CLK_DISABLED
  3124. #define __SPI4_IS_CLK_ENABLED __HAL_RCC_SPI4_IS_CLK_ENABLED
  3125. #define __SPI4_IS_CLK_DISABLED __HAL_RCC_SPI4_IS_CLK_DISABLED
  3126. #define __SDADC1_IS_CLK_ENABLED __HAL_RCC_SDADC1_IS_CLK_ENABLED
  3127. #define __SDADC1_IS_CLK_DISABLED __HAL_RCC_SDADC1_IS_CLK_DISABLED
  3128. #define __SDADC2_IS_CLK_ENABLED __HAL_RCC_SDADC2_IS_CLK_ENABLED
  3129. #define __SDADC2_IS_CLK_DISABLED __HAL_RCC_SDADC2_IS_CLK_DISABLED
  3130. #define __SDADC3_IS_CLK_ENABLED __HAL_RCC_SDADC3_IS_CLK_ENABLED
  3131. #define __SDADC3_IS_CLK_DISABLED __HAL_RCC_SDADC3_IS_CLK_DISABLED
  3132. #define __SRAM_IS_CLK_ENABLED __HAL_RCC_SRAM_IS_CLK_ENABLED
  3133. #define __SRAM_IS_CLK_DISABLED __HAL_RCC_SRAM_IS_CLK_DISABLED
  3134. #define __TIM1_IS_CLK_ENABLED __HAL_RCC_TIM1_IS_CLK_ENABLED
  3135. #define __TIM1_IS_CLK_DISABLED __HAL_RCC_TIM1_IS_CLK_DISABLED
  3136. #define __TIM2_IS_CLK_ENABLED __HAL_RCC_TIM2_IS_CLK_ENABLED
  3137. #define __TIM2_IS_CLK_DISABLED __HAL_RCC_TIM2_IS_CLK_DISABLED
  3138. #define __TIM3_IS_CLK_ENABLED __HAL_RCC_TIM3_IS_CLK_ENABLED
  3139. #define __TIM3_IS_CLK_DISABLED __HAL_RCC_TIM3_IS_CLK_DISABLED
  3140. #define __TIM4_IS_CLK_ENABLED __HAL_RCC_TIM4_IS_CLK_ENABLED
  3141. #define __TIM4_IS_CLK_DISABLED __HAL_RCC_TIM4_IS_CLK_DISABLED
  3142. #define __TIM5_IS_CLK_ENABLED __HAL_RCC_TIM5_IS_CLK_ENABLED
  3143. #define __TIM5_IS_CLK_DISABLED __HAL_RCC_TIM5_IS_CLK_DISABLED
  3144. #define __TIM6_IS_CLK_ENABLED __HAL_RCC_TIM6_IS_CLK_ENABLED
  3145. #define __TIM6_IS_CLK_DISABLED __HAL_RCC_TIM6_IS_CLK_DISABLED
  3146. #define __TIM7_IS_CLK_ENABLED __HAL_RCC_TIM7_IS_CLK_ENABLED
  3147. #define __TIM7_IS_CLK_DISABLED __HAL_RCC_TIM7_IS_CLK_DISABLED
  3148. #define __TIM8_IS_CLK_ENABLED __HAL_RCC_TIM8_IS_CLK_ENABLED
  3149. #define __TIM8_IS_CLK_DISABLED __HAL_RCC_TIM8_IS_CLK_DISABLED
  3150. #define __TIM12_IS_CLK_ENABLED __HAL_RCC_TIM12_IS_CLK_ENABLED
  3151. #define __TIM12_IS_CLK_DISABLED __HAL_RCC_TIM12_IS_CLK_DISABLED
  3152. #define __TIM13_IS_CLK_ENABLED __HAL_RCC_TIM13_IS_CLK_ENABLED
  3153. #define __TIM13_IS_CLK_DISABLED __HAL_RCC_TIM13_IS_CLK_DISABLED
  3154. #define __TIM14_IS_CLK_ENABLED __HAL_RCC_TIM14_IS_CLK_ENABLED
  3155. #define __TIM14_IS_CLK_DISABLED __HAL_RCC_TIM14_IS_CLK_DISABLED
  3156. #define __TIM15_IS_CLK_ENABLED __HAL_RCC_TIM15_IS_CLK_ENABLED
  3157. #define __TIM15_IS_CLK_DISABLED __HAL_RCC_TIM15_IS_CLK_DISABLED
  3158. #define __TIM16_IS_CLK_ENABLED __HAL_RCC_TIM16_IS_CLK_ENABLED
  3159. #define __TIM16_IS_CLK_DISABLED __HAL_RCC_TIM16_IS_CLK_DISABLED
  3160. #define __TIM17_IS_CLK_ENABLED __HAL_RCC_TIM17_IS_CLK_ENABLED
  3161. #define __TIM17_IS_CLK_DISABLED __HAL_RCC_TIM17_IS_CLK_DISABLED
  3162. #define __TIM18_IS_CLK_ENABLED __HAL_RCC_TIM18_IS_CLK_ENABLED
  3163. #define __TIM18_IS_CLK_DISABLED __HAL_RCC_TIM18_IS_CLK_DISABLED
  3164. #define __TIM19_IS_CLK_ENABLED __HAL_RCC_TIM19_IS_CLK_ENABLED
  3165. #define __TIM19_IS_CLK_DISABLED __HAL_RCC_TIM19_IS_CLK_DISABLED
  3166. #define __TIM20_IS_CLK_ENABLED __HAL_RCC_TIM20_IS_CLK_ENABLED
  3167. #define __TIM20_IS_CLK_DISABLED __HAL_RCC_TIM20_IS_CLK_DISABLED
  3168. #define __TSC_IS_CLK_ENABLED __HAL_RCC_TSC_IS_CLK_ENABLED
  3169. #define __TSC_IS_CLK_DISABLED __HAL_RCC_TSC_IS_CLK_DISABLED
  3170. #define __UART4_IS_CLK_ENABLED __HAL_RCC_UART4_IS_CLK_ENABLED
  3171. #define __UART4_IS_CLK_DISABLED __HAL_RCC_UART4_IS_CLK_DISABLED
  3172. #define __UART5_IS_CLK_ENABLED __HAL_RCC_UART5_IS_CLK_ENABLED
  3173. #define __UART5_IS_CLK_DISABLED __HAL_RCC_UART5_IS_CLK_DISABLED
  3174. #define __USART1_IS_CLK_ENABLED __HAL_RCC_USART1_IS_CLK_ENABLED
  3175. #define __USART1_IS_CLK_DISABLED __HAL_RCC_USART1_IS_CLK_DISABLED
  3176. #define __USART2_IS_CLK_ENABLED __HAL_RCC_USART2_IS_CLK_ENABLED
  3177. #define __USART2_IS_CLK_DISABLED __HAL_RCC_USART2_IS_CLK_DISABLED
  3178. #define __USART3_IS_CLK_ENABLED __HAL_RCC_USART3_IS_CLK_ENABLED
  3179. #define __USART3_IS_CLK_DISABLED __HAL_RCC_USART3_IS_CLK_DISABLED
  3180. #define __USB_IS_CLK_ENABLED __HAL_RCC_USB_IS_CLK_ENABLED
  3181. #define __USB_IS_CLK_DISABLED __HAL_RCC_USB_IS_CLK_DISABLED
  3182. #define __WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG_IS_CLK_ENABLED
  3183. #define __WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG_IS_CLK_DISABLED
  3184. #if defined(STM32L1)
  3185. #define __HAL_RCC_CRYP_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE
  3186. #define __HAL_RCC_CRYP_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE
  3187. #define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE
  3188. #define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE
  3189. #define __HAL_RCC_CRYP_FORCE_RESET __HAL_RCC_AES_FORCE_RESET
  3190. #define __HAL_RCC_CRYP_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET
  3191. #endif /* STM32L1 */
  3192. #if defined(STM32F4)
  3193. #define __HAL_RCC_SDMMC1_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET
  3194. #define __HAL_RCC_SDMMC1_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET
  3195. #define __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE
  3196. #define __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE
  3197. #define __HAL_RCC_SDMMC1_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE
  3198. #define __HAL_RCC_SDMMC1_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE
  3199. #define __HAL_RCC_SDMMC1_IS_CLK_ENABLED __HAL_RCC_SDIO_IS_CLK_ENABLED
  3200. #define __HAL_RCC_SDMMC1_IS_CLK_DISABLED __HAL_RCC_SDIO_IS_CLK_DISABLED
  3201. #define Sdmmc1ClockSelection SdioClockSelection
  3202. #define RCC_PERIPHCLK_SDMMC1 RCC_PERIPHCLK_SDIO
  3203. #define RCC_SDMMC1CLKSOURCE_CLK48 RCC_SDIOCLKSOURCE_CK48
  3204. #define RCC_SDMMC1CLKSOURCE_SYSCLK RCC_SDIOCLKSOURCE_SYSCLK
  3205. #define __HAL_RCC_SDMMC1_CONFIG __HAL_RCC_SDIO_CONFIG
  3206. #define __HAL_RCC_GET_SDMMC1_SOURCE __HAL_RCC_GET_SDIO_SOURCE
  3207. #endif
  3208. #if defined(STM32F7) || defined(STM32L4)
  3209. #define __HAL_RCC_SDIO_FORCE_RESET __HAL_RCC_SDMMC1_FORCE_RESET
  3210. #define __HAL_RCC_SDIO_RELEASE_RESET __HAL_RCC_SDMMC1_RELEASE_RESET
  3211. #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE
  3212. #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE
  3213. #define __HAL_RCC_SDIO_CLK_ENABLE __HAL_RCC_SDMMC1_CLK_ENABLE
  3214. #define __HAL_RCC_SDIO_CLK_DISABLE __HAL_RCC_SDMMC1_CLK_DISABLE
  3215. #define __HAL_RCC_SDIO_IS_CLK_ENABLED __HAL_RCC_SDMMC1_IS_CLK_ENABLED
  3216. #define __HAL_RCC_SDIO_IS_CLK_DISABLED __HAL_RCC_SDMMC1_IS_CLK_DISABLED
  3217. #define SdioClockSelection Sdmmc1ClockSelection
  3218. #define RCC_PERIPHCLK_SDIO RCC_PERIPHCLK_SDMMC1
  3219. #define __HAL_RCC_SDIO_CONFIG __HAL_RCC_SDMMC1_CONFIG
  3220. #define __HAL_RCC_GET_SDIO_SOURCE __HAL_RCC_GET_SDMMC1_SOURCE
  3221. #endif
  3222. #if defined(STM32F7)
  3223. #define RCC_SDIOCLKSOURCE_CLK48 RCC_SDMMC1CLKSOURCE_CLK48
  3224. #define RCC_SDIOCLKSOURCE_SYSCLK RCC_SDMMC1CLKSOURCE_SYSCLK
  3225. #endif
  3226. #if defined(STM32H7)
  3227. #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_ENABLE()
  3228. #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE()
  3229. #define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_DISABLE()
  3230. #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_DISABLE()
  3231. #define __HAL_RCC_USB_OTG_HS_FORCE_RESET() __HAL_RCC_USB1_OTG_HS_FORCE_RESET()
  3232. #define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() __HAL_RCC_USB1_OTG_HS_RELEASE_RESET()
  3233. #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_ENABLE()
  3234. #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE()
  3235. #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_DISABLE()
  3236. #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE()
  3237. #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_ENABLE()
  3238. #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE()
  3239. #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_DISABLE()
  3240. #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_DISABLE()
  3241. #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() __HAL_RCC_USB2_OTG_FS_FORCE_RESET()
  3242. #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() __HAL_RCC_USB2_OTG_FS_RELEASE_RESET()
  3243. #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_ENABLE()
  3244. #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE()
  3245. #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_DISABLE()
  3246. #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE()
  3247. #endif
  3248. #define __HAL_RCC_I2SCLK __HAL_RCC_I2S_CONFIG
  3249. #define __HAL_RCC_I2SCLK_CONFIG __HAL_RCC_I2S_CONFIG
  3250. #define __RCC_PLLSRC RCC_GET_PLL_OSCSOURCE
  3251. #define IS_RCC_MSIRANGE IS_RCC_MSI_CLOCK_RANGE
  3252. #define IS_RCC_RTCCLK_SOURCE IS_RCC_RTCCLKSOURCE
  3253. #define IS_RCC_SYSCLK_DIV IS_RCC_HCLK
  3254. #define IS_RCC_HCLK_DIV IS_RCC_PCLK
  3255. #define IS_RCC_PERIPHCLK IS_RCC_PERIPHCLOCK
  3256. #define RCC_IT_HSI14 RCC_IT_HSI14RDY
  3257. #define RCC_IT_CSSLSE RCC_IT_LSECSS
  3258. #define RCC_IT_CSSHSE RCC_IT_CSS
  3259. #define RCC_PLLMUL_3 RCC_PLL_MUL3
  3260. #define RCC_PLLMUL_4 RCC_PLL_MUL4
  3261. #define RCC_PLLMUL_6 RCC_PLL_MUL6
  3262. #define RCC_PLLMUL_8 RCC_PLL_MUL8
  3263. #define RCC_PLLMUL_12 RCC_PLL_MUL12
  3264. #define RCC_PLLMUL_16 RCC_PLL_MUL16
  3265. #define RCC_PLLMUL_24 RCC_PLL_MUL24
  3266. #define RCC_PLLMUL_32 RCC_PLL_MUL32
  3267. #define RCC_PLLMUL_48 RCC_PLL_MUL48
  3268. #define RCC_PLLDIV_2 RCC_PLL_DIV2
  3269. #define RCC_PLLDIV_3 RCC_PLL_DIV3
  3270. #define RCC_PLLDIV_4 RCC_PLL_DIV4
  3271. #define IS_RCC_MCOSOURCE IS_RCC_MCO1SOURCE
  3272. #define __HAL_RCC_MCO_CONFIG __HAL_RCC_MCO1_CONFIG
  3273. #define RCC_MCO_NODIV RCC_MCODIV_1
  3274. #define RCC_MCO_DIV1 RCC_MCODIV_1
  3275. #define RCC_MCO_DIV2 RCC_MCODIV_2
  3276. #define RCC_MCO_DIV4 RCC_MCODIV_4
  3277. #define RCC_MCO_DIV8 RCC_MCODIV_8
  3278. #define RCC_MCO_DIV16 RCC_MCODIV_16
  3279. #define RCC_MCO_DIV32 RCC_MCODIV_32
  3280. #define RCC_MCO_DIV64 RCC_MCODIV_64
  3281. #define RCC_MCO_DIV128 RCC_MCODIV_128
  3282. #define RCC_MCOSOURCE_NONE RCC_MCO1SOURCE_NOCLOCK
  3283. #define RCC_MCOSOURCE_LSI RCC_MCO1SOURCE_LSI
  3284. #define RCC_MCOSOURCE_LSE RCC_MCO1SOURCE_LSE
  3285. #define RCC_MCOSOURCE_SYSCLK RCC_MCO1SOURCE_SYSCLK
  3286. #define RCC_MCOSOURCE_HSI RCC_MCO1SOURCE_HSI
  3287. #define RCC_MCOSOURCE_HSI14 RCC_MCO1SOURCE_HSI14
  3288. #define RCC_MCOSOURCE_HSI48 RCC_MCO1SOURCE_HSI48
  3289. #define RCC_MCOSOURCE_HSE RCC_MCO1SOURCE_HSE
  3290. #define RCC_MCOSOURCE_PLLCLK_DIV1 RCC_MCO1SOURCE_PLLCLK
  3291. #define RCC_MCOSOURCE_PLLCLK_NODIV RCC_MCO1SOURCE_PLLCLK
  3292. #define RCC_MCOSOURCE_PLLCLK_DIV2 RCC_MCO1SOURCE_PLLCLK_DIV2
  3293. #if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || \
  3294. defined(STM32WL) || defined(STM32C0)
  3295. #define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE
  3296. #else
  3297. #define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK
  3298. #endif
  3299. #define RCC_USBCLK_PLLSAI1 RCC_USBCLKSOURCE_PLLSAI1
  3300. #define RCC_USBCLK_PLL RCC_USBCLKSOURCE_PLL
  3301. #define RCC_USBCLK_MSI RCC_USBCLKSOURCE_MSI
  3302. #define RCC_USBCLKSOURCE_PLLCLK RCC_USBCLKSOURCE_PLL
  3303. #define RCC_USBPLLCLK_DIV1 RCC_USBCLKSOURCE_PLL
  3304. #define RCC_USBPLLCLK_DIV1_5 RCC_USBCLKSOURCE_PLL_DIV1_5
  3305. #define RCC_USBPLLCLK_DIV2 RCC_USBCLKSOURCE_PLL_DIV2
  3306. #define RCC_USBPLLCLK_DIV3 RCC_USBCLKSOURCE_PLL_DIV3
  3307. #define HSION_BitNumber RCC_HSION_BIT_NUMBER
  3308. #define HSION_BITNUMBER RCC_HSION_BIT_NUMBER
  3309. #define HSEON_BitNumber RCC_HSEON_BIT_NUMBER
  3310. #define HSEON_BITNUMBER RCC_HSEON_BIT_NUMBER
  3311. #define MSION_BITNUMBER RCC_MSION_BIT_NUMBER
  3312. #define CSSON_BitNumber RCC_CSSON_BIT_NUMBER
  3313. #define CSSON_BITNUMBER RCC_CSSON_BIT_NUMBER
  3314. #define PLLON_BitNumber RCC_PLLON_BIT_NUMBER
  3315. #define PLLON_BITNUMBER RCC_PLLON_BIT_NUMBER
  3316. #define PLLI2SON_BitNumber RCC_PLLI2SON_BIT_NUMBER
  3317. #define I2SSRC_BitNumber RCC_I2SSRC_BIT_NUMBER
  3318. #define RTCEN_BitNumber RCC_RTCEN_BIT_NUMBER
  3319. #define RTCEN_BITNUMBER RCC_RTCEN_BIT_NUMBER
  3320. #define BDRST_BitNumber RCC_BDRST_BIT_NUMBER
  3321. #define BDRST_BITNUMBER RCC_BDRST_BIT_NUMBER
  3322. #define RTCRST_BITNUMBER RCC_RTCRST_BIT_NUMBER
  3323. #define LSION_BitNumber RCC_LSION_BIT_NUMBER
  3324. #define LSION_BITNUMBER RCC_LSION_BIT_NUMBER
  3325. #define LSEON_BitNumber RCC_LSEON_BIT_NUMBER
  3326. #define LSEON_BITNUMBER RCC_LSEON_BIT_NUMBER
  3327. #define LSEBYP_BITNUMBER RCC_LSEBYP_BIT_NUMBER
  3328. #define PLLSAION_BitNumber RCC_PLLSAION_BIT_NUMBER
  3329. #define TIMPRE_BitNumber RCC_TIMPRE_BIT_NUMBER
  3330. #define RMVF_BitNumber RCC_RMVF_BIT_NUMBER
  3331. #define RMVF_BITNUMBER RCC_RMVF_BIT_NUMBER
  3332. #define RCC_CR2_HSI14TRIM_BitNumber RCC_HSI14TRIM_BIT_NUMBER
  3333. #define CR_BYTE2_ADDRESS RCC_CR_BYTE2_ADDRESS
  3334. #define CIR_BYTE1_ADDRESS RCC_CIR_BYTE1_ADDRESS
  3335. #define CIR_BYTE2_ADDRESS RCC_CIR_BYTE2_ADDRESS
  3336. #define BDCR_BYTE0_ADDRESS RCC_BDCR_BYTE0_ADDRESS
  3337. #define DBP_TIMEOUT_VALUE RCC_DBP_TIMEOUT_VALUE
  3338. #define LSE_TIMEOUT_VALUE RCC_LSE_TIMEOUT_VALUE
  3339. #define CR_HSION_BB RCC_CR_HSION_BB
  3340. #define CR_CSSON_BB RCC_CR_CSSON_BB
  3341. #define CR_PLLON_BB RCC_CR_PLLON_BB
  3342. #define CR_PLLI2SON_BB RCC_CR_PLLI2SON_BB
  3343. #define CR_MSION_BB RCC_CR_MSION_BB
  3344. #define CSR_LSION_BB RCC_CSR_LSION_BB
  3345. #define CSR_LSEON_BB RCC_CSR_LSEON_BB
  3346. #define CSR_LSEBYP_BB RCC_CSR_LSEBYP_BB
  3347. #define CSR_RTCEN_BB RCC_CSR_RTCEN_BB
  3348. #define CSR_RTCRST_BB RCC_CSR_RTCRST_BB
  3349. #define CFGR_I2SSRC_BB RCC_CFGR_I2SSRC_BB
  3350. #define BDCR_RTCEN_BB RCC_BDCR_RTCEN_BB
  3351. #define BDCR_BDRST_BB RCC_BDCR_BDRST_BB
  3352. #define CR_HSEON_BB RCC_CR_HSEON_BB
  3353. #define CSR_RMVF_BB RCC_CSR_RMVF_BB
  3354. #define CR_PLLSAION_BB RCC_CR_PLLSAION_BB
  3355. #define DCKCFGR_TIMPRE_BB RCC_DCKCFGR_TIMPRE_BB
  3356. #define __HAL_RCC_CRS_ENABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE
  3357. #define __HAL_RCC_CRS_DISABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE
  3358. #define __HAL_RCC_CRS_ENABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE
  3359. #define __HAL_RCC_CRS_DISABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE
  3360. #define __HAL_RCC_CRS_CALCULATE_RELOADVALUE __HAL_RCC_CRS_RELOADVALUE_CALCULATE
  3361. #define __HAL_RCC_GET_IT_SOURCE __HAL_RCC_GET_IT
  3362. #define RCC_CRS_SYNCWARM RCC_CRS_SYNCWARN
  3363. #define RCC_CRS_TRIMOV RCC_CRS_TRIMOVF
  3364. #define RCC_PERIPHCLK_CK48 RCC_PERIPHCLK_CLK48
  3365. #define RCC_CK48CLKSOURCE_PLLQ RCC_CLK48CLKSOURCE_PLLQ
  3366. #define RCC_CK48CLKSOURCE_PLLSAIP RCC_CLK48CLKSOURCE_PLLSAIP
  3367. #define RCC_CK48CLKSOURCE_PLLI2SQ RCC_CLK48CLKSOURCE_PLLI2SQ
  3368. #define IS_RCC_CK48CLKSOURCE IS_RCC_CLK48CLKSOURCE
  3369. #define RCC_SDIOCLKSOURCE_CK48 RCC_SDIOCLKSOURCE_CLK48
  3370. #define __HAL_RCC_DFSDM_CLK_ENABLE __HAL_RCC_DFSDM1_CLK_ENABLE
  3371. #define __HAL_RCC_DFSDM_CLK_DISABLE __HAL_RCC_DFSDM1_CLK_DISABLE
  3372. #define __HAL_RCC_DFSDM_IS_CLK_ENABLED __HAL_RCC_DFSDM1_IS_CLK_ENABLED
  3373. #define __HAL_RCC_DFSDM_IS_CLK_DISABLED __HAL_RCC_DFSDM1_IS_CLK_DISABLED
  3374. #define __HAL_RCC_DFSDM_FORCE_RESET __HAL_RCC_DFSDM1_FORCE_RESET
  3375. #define __HAL_RCC_DFSDM_RELEASE_RESET __HAL_RCC_DFSDM1_RELEASE_RESET
  3376. #define __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE
  3377. #define __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE
  3378. #define __HAL_RCC_DFSDM_IS_CLK_SLEEP_ENABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_ENABLED
  3379. #define __HAL_RCC_DFSDM_IS_CLK_SLEEP_DISABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_DISABLED
  3380. #define DfsdmClockSelection Dfsdm1ClockSelection
  3381. #define RCC_PERIPHCLK_DFSDM RCC_PERIPHCLK_DFSDM1
  3382. #define RCC_DFSDMCLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2
  3383. #define RCC_DFSDMCLKSOURCE_SYSCLK RCC_DFSDM1CLKSOURCE_SYSCLK
  3384. #define __HAL_RCC_DFSDM_CONFIG __HAL_RCC_DFSDM1_CONFIG
  3385. #define __HAL_RCC_GET_DFSDM_SOURCE __HAL_RCC_GET_DFSDM1_SOURCE
  3386. #define RCC_DFSDM1CLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2
  3387. #define RCC_SWPMI1CLKSOURCE_PCLK RCC_SWPMI1CLKSOURCE_PCLK1
  3388. #define RCC_LPTIM1CLKSOURCE_PCLK RCC_LPTIM1CLKSOURCE_PCLK1
  3389. #define RCC_LPTIM2CLKSOURCE_PCLK RCC_LPTIM2CLKSOURCE_PCLK1
  3390. #define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM1AUDIOCLKSOURCE_I2S1
  3391. #define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM1AUDIOCLKSOURCE_I2S2
  3392. #define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM2AUDIOCLKSOURCE_I2S1
  3393. #define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM2AUDIOCLKSOURCE_I2S2
  3394. #define RCC_DFSDM1CLKSOURCE_APB2 RCC_DFSDM1CLKSOURCE_PCLK2
  3395. #define RCC_DFSDM2CLKSOURCE_APB2 RCC_DFSDM2CLKSOURCE_PCLK2
  3396. #define RCC_FMPI2C1CLKSOURCE_APB RCC_FMPI2C1CLKSOURCE_PCLK1
  3397. #if defined(STM32U5)
  3398. #define MSIKPLLModeSEL RCC_MSIKPLL_MODE_SEL
  3399. #define MSISPLLModeSEL RCC_MSISPLL_MODE_SEL
  3400. #define __HAL_RCC_AHB21_CLK_DISABLE __HAL_RCC_AHB2_1_CLK_DISABLE
  3401. #define __HAL_RCC_AHB22_CLK_DISABLE __HAL_RCC_AHB2_2_CLK_DISABLE
  3402. #define __HAL_RCC_AHB1_CLK_Disable_Clear __HAL_RCC_AHB1_CLK_ENABLE
  3403. #define __HAL_RCC_AHB21_CLK_Disable_Clear __HAL_RCC_AHB2_1_CLK_ENABLE
  3404. #define __HAL_RCC_AHB22_CLK_Disable_Clear __HAL_RCC_AHB2_2_CLK_ENABLE
  3405. #define __HAL_RCC_AHB3_CLK_Disable_Clear __HAL_RCC_AHB3_CLK_ENABLE
  3406. #define __HAL_RCC_APB1_CLK_Disable_Clear __HAL_RCC_APB1_CLK_ENABLE
  3407. #define __HAL_RCC_APB2_CLK_Disable_Clear __HAL_RCC_APB2_CLK_ENABLE
  3408. #define __HAL_RCC_APB3_CLK_Disable_Clear __HAL_RCC_APB3_CLK_ENABLE
  3409. #define IS_RCC_MSIPLLModeSelection IS_RCC_MSIPLLMODE_SELECT
  3410. #define RCC_PERIPHCLK_CLK48 RCC_PERIPHCLK_ICLK
  3411. #define RCC_CLK48CLKSOURCE_HSI48 RCC_ICLK_CLKSOURCE_HSI48
  3412. #define RCC_CLK48CLKSOURCE_PLL2 RCC_ICLK_CLKSOURCE_PLL2
  3413. #define RCC_CLK48CLKSOURCE_PLL1 RCC_ICLK_CLKSOURCE_PLL1
  3414. #define RCC_CLK48CLKSOURCE_MSIK RCC_ICLK_CLKSOURCE_MSIK
  3415. #define __HAL_RCC_ADC1_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE
  3416. #define __HAL_RCC_ADC1_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE
  3417. #define __HAL_RCC_ADC1_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED
  3418. #define __HAL_RCC_ADC1_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED
  3419. #define __HAL_RCC_ADC1_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET
  3420. #define __HAL_RCC_ADC1_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET
  3421. #define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC12_CLK_SLEEP_ENABLE
  3422. #define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC12_CLK_SLEEP_DISABLE
  3423. #define __HAL_RCC_GET_CLK48_SOURCE __HAL_RCC_GET_ICLK_SOURCE
  3424. #define __HAL_RCC_PLLFRACN_ENABLE __HAL_RCC_PLL_FRACN_ENABLE
  3425. #define __HAL_RCC_PLLFRACN_DISABLE __HAL_RCC_PLL_FRACN_DISABLE
  3426. #define __HAL_RCC_PLLFRACN_CONFIG __HAL_RCC_PLL_FRACN_CONFIG
  3427. #define IS_RCC_PLLFRACN_VALUE IS_RCC_PLL_FRACN_VALUE
  3428. #endif /* STM32U5 */
  3429. #if defined(STM32H5)
  3430. #define __HAL_RCC_PLLFRACN_ENABLE __HAL_RCC_PLL_FRACN_ENABLE
  3431. #define __HAL_RCC_PLLFRACN_DISABLE __HAL_RCC_PLL_FRACN_DISABLE
  3432. #define __HAL_RCC_PLLFRACN_CONFIG __HAL_RCC_PLL_FRACN_CONFIG
  3433. #define IS_RCC_PLLFRACN_VALUE IS_RCC_PLL_FRACN_VALUE
  3434. #define RCC_PLLSOURCE_NONE RCC_PLL1_SOURCE_NONE
  3435. #define RCC_PLLSOURCE_HSI RCC_PLL1_SOURCE_HSI
  3436. #define RCC_PLLSOURCE_CSI RCC_PLL1_SOURCE_CSI
  3437. #define RCC_PLLSOURCE_HSE RCC_PLL1_SOURCE_HSE
  3438. #define RCC_PLLVCIRANGE_0 RCC_PLL1_VCIRANGE_0
  3439. #define RCC_PLLVCIRANGE_1 RCC_PLL1_VCIRANGE_1
  3440. #define RCC_PLLVCIRANGE_2 RCC_PLL1_VCIRANGE_2
  3441. #define RCC_PLLVCIRANGE_3 RCC_PLL1_VCIRANGE_3
  3442. #define RCC_PLL1VCOWIDE RCC_PLL1_VCORANGE_WIDE
  3443. #define RCC_PLL1VCOMEDIUM RCC_PLL1_VCORANGE_MEDIUM
  3444. #define IS_RCC_PLLSOURCE IS_RCC_PLL1_SOURCE
  3445. #define IS_RCC_PLLRGE_VALUE IS_RCC_PLL1_VCIRGE_VALUE
  3446. #define IS_RCC_PLLVCORGE_VALUE IS_RCC_PLL1_VCORGE_VALUE
  3447. #define IS_RCC_PLLCLOCKOUT_VALUE IS_RCC_PLL1_CLOCKOUT_VALUE
  3448. #define IS_RCC_PLL_FRACN_VALUE IS_RCC_PLL1_FRACN_VALUE
  3449. #define IS_RCC_PLLM_VALUE IS_RCC_PLL1_DIVM_VALUE
  3450. #define IS_RCC_PLLN_VALUE IS_RCC_PLL1_MULN_VALUE
  3451. #define IS_RCC_PLLP_VALUE IS_RCC_PLL1_DIVP_VALUE
  3452. #define IS_RCC_PLLQ_VALUE IS_RCC_PLL1_DIVQ_VALUE
  3453. #define IS_RCC_PLLR_VALUE IS_RCC_PLL1_DIVR_VALUE
  3454. #define __HAL_RCC_PLL_ENABLE __HAL_RCC_PLL1_ENABLE
  3455. #define __HAL_RCC_PLL_DISABLE __HAL_RCC_PLL1_DISABLE
  3456. #define __HAL_RCC_PLL_FRACN_ENABLE __HAL_RCC_PLL1_FRACN_ENABLE
  3457. #define __HAL_RCC_PLL_FRACN_DISABLE __HAL_RCC_PLL1_FRACN_DISABLE
  3458. #define __HAL_RCC_PLL_CONFIG __HAL_RCC_PLL1_CONFIG
  3459. #define __HAL_RCC_PLL_PLLSOURCE_CONFIG __HAL_RCC_PLL1_PLLSOURCE_CONFIG
  3460. #define __HAL_RCC_PLL_DIVM_CONFIG __HAL_RCC_PLL1_DIVM_CONFIG
  3461. #define __HAL_RCC_PLL_FRACN_CONFIG __HAL_RCC_PLL1_FRACN_CONFIG
  3462. #define __HAL_RCC_PLL_VCIRANGE __HAL_RCC_PLL1_VCIRANGE
  3463. #define __HAL_RCC_PLL_VCORANGE __HAL_RCC_PLL1_VCORANGE
  3464. #define __HAL_RCC_GET_PLL_OSCSOURCE __HAL_RCC_GET_PLL1_OSCSOURCE
  3465. #define __HAL_RCC_PLLCLKOUT_ENABLE __HAL_RCC_PLL1_CLKOUT_ENABLE
  3466. #define __HAL_RCC_PLLCLKOUT_DISABLE __HAL_RCC_PLL1_CLKOUT_DISABLE
  3467. #define __HAL_RCC_GET_PLLCLKOUT_CONFIG __HAL_RCC_GET_PLL1_CLKOUT_CONFIG
  3468. #define __HAL_RCC_PLL2FRACN_ENABLE __HAL_RCC_PLL2_FRACN_ENABLE
  3469. #define __HAL_RCC_PLL2FRACN_DISABLE __HAL_RCC_PLL2_FRACN_DISABLE
  3470. #define __HAL_RCC_PLL2CLKOUT_ENABLE __HAL_RCC_PLL2_CLKOUT_ENABLE
  3471. #define __HAL_RCC_PLL2CLKOUT_DISABLE __HAL_RCC_PLL2_CLKOUT_DISABLE
  3472. #define __HAL_RCC_PLL2FRACN_CONFIG __HAL_RCC_PLL2_FRACN_CONFIG
  3473. #define __HAL_RCC_GET_PLL2CLKOUT_CONFIG __HAL_RCC_GET_PLL2_CLKOUT_CONFIG
  3474. #define __HAL_RCC_PLL3FRACN_ENABLE __HAL_RCC_PLL3_FRACN_ENABLE
  3475. #define __HAL_RCC_PLL3FRACN_DISABLE __HAL_RCC_PLL3_FRACN_DISABLE
  3476. #define __HAL_RCC_PLL3CLKOUT_ENABLE __HAL_RCC_PLL3_CLKOUT_ENABLE
  3477. #define __HAL_RCC_PLL3CLKOUT_DISABLE __HAL_RCC_PLL3_CLKOUT_DISABLE
  3478. #define __HAL_RCC_PLL3FRACN_CONFIG __HAL_RCC_PLL3_FRACN_CONFIG
  3479. #define __HAL_RCC_GET_PLL3CLKOUT_CONFIG __HAL_RCC_GET_PLL3_CLKOUT_CONFIG
  3480. #define RCC_PLL2VCIRANGE_0 RCC_PLL2_VCIRANGE_0
  3481. #define RCC_PLL2VCIRANGE_1 RCC_PLL2_VCIRANGE_1
  3482. #define RCC_PLL2VCIRANGE_2 RCC_PLL2_VCIRANGE_2
  3483. #define RCC_PLL2VCIRANGE_3 RCC_PLL2_VCIRANGE_3
  3484. #define RCC_PLL2VCOWIDE RCC_PLL2_VCORANGE_WIDE
  3485. #define RCC_PLL2VCOMEDIUM RCC_PLL2_VCORANGE_MEDIUM
  3486. #define RCC_PLL2SOURCE_NONE RCC_PLL2_SOURCE_NONE
  3487. #define RCC_PLL2SOURCE_HSI RCC_PLL2_SOURCE_HSI
  3488. #define RCC_PLL2SOURCE_CSI RCC_PLL2_SOURCE_CSI
  3489. #define RCC_PLL2SOURCE_HSE RCC_PLL2_SOURCE_HSE
  3490. #define RCC_PLL3VCIRANGE_0 RCC_PLL3_VCIRANGE_0
  3491. #define RCC_PLL3VCIRANGE_1 RCC_PLL3_VCIRANGE_1
  3492. #define RCC_PLL3VCIRANGE_2 RCC_PLL3_VCIRANGE_2
  3493. #define RCC_PLL3VCIRANGE_3 RCC_PLL3_VCIRANGE_3
  3494. #define RCC_PLL3VCOWIDE RCC_PLL3_VCORANGE_WIDE
  3495. #define RCC_PLL3VCOMEDIUM RCC_PLL3_VCORANGE_MEDIUM
  3496. #define RCC_PLL3SOURCE_NONE RCC_PLL3_SOURCE_NONE
  3497. #define RCC_PLL3SOURCE_HSI RCC_PLL3_SOURCE_HSI
  3498. #define RCC_PLL3SOURCE_CSI RCC_PLL3_SOURCE_CSI
  3499. #define RCC_PLL3SOURCE_HSE RCC_PLL3_SOURCE_HSE
  3500. #endif /* STM32H5 */
  3501. /**
  3502. * @}
  3503. */
  3504. /** @defgroup HAL_RNG_Aliased_Macros HAL RNG Aliased Macros maintained for legacy purpose
  3505. * @{
  3506. */
  3507. #define HAL_RNG_ReadyCallback(__HANDLE__) HAL_RNG_ReadyDataCallback((__HANDLE__), uint32_t random32bit)
  3508. /**
  3509. * @}
  3510. */
  3511. /** @defgroup HAL_RTC_Aliased_Macros HAL RTC Aliased Macros maintained for legacy purpose
  3512. * @{
  3513. */
  3514. #if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || \
  3515. defined (STM32L4P5xx)|| defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) || defined (STM32U5) || \
  3516. defined (STM32WBA) || defined (STM32H5) || defined (STM32C0)
  3517. #else
  3518. #define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
  3519. #endif
  3520. #define __HAL_RTC_DISABLE_IT __HAL_RTC_EXTI_DISABLE_IT
  3521. #define __HAL_RTC_ENABLE_IT __HAL_RTC_EXTI_ENABLE_IT
  3522. #if defined (STM32F1)
  3523. #define __HAL_RTC_EXTI_CLEAR_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_CLEAR_FLAG()
  3524. #define __HAL_RTC_EXTI_ENABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_ENABLE_IT()
  3525. #define __HAL_RTC_EXTI_DISABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_DISABLE_IT()
  3526. #define __HAL_RTC_EXTI_GET_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GET_FLAG()
  3527. #define __HAL_RTC_EXTI_GENERATE_SWIT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GENERATE_SWIT()
  3528. #else
  3529. #define __HAL_RTC_EXTI_CLEAR_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() : \
  3530. (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() : \
  3531. __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG()))
  3532. #define __HAL_RTC_EXTI_ENABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_ENABLE_IT() : \
  3533. (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() : \
  3534. __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT()))
  3535. #define __HAL_RTC_EXTI_DISABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_DISABLE_IT() : \
  3536. (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() : \
  3537. __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT()))
  3538. #define __HAL_RTC_EXTI_GET_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GET_FLAG() : \
  3539. (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() : \
  3540. __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG()))
  3541. #define __HAL_RTC_EXTI_GENERATE_SWIT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() : \
  3542. (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() : \
  3543. __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT()))
  3544. #endif /* STM32F1 */
  3545. #if defined (STM32F0) || defined (STM32F2) || defined (STM32F3) || defined (STM32F4) || defined (STM32F7) || \
  3546. defined (STM32L0) || defined (STM32L1)
  3547. #define __HAL_RTC_TAMPER_GET_IT __HAL_RTC_TAMPER_GET_FLAG
  3548. #endif
  3549. #define IS_ALARM IS_RTC_ALARM
  3550. #define IS_ALARM_MASK IS_RTC_ALARM_MASK
  3551. #define IS_TAMPER IS_RTC_TAMPER
  3552. #define IS_TAMPER_ERASE_MODE IS_RTC_TAMPER_ERASE_MODE
  3553. #define IS_TAMPER_FILTER IS_RTC_TAMPER_FILTER
  3554. #define IS_TAMPER_INTERRUPT IS_RTC_TAMPER_INTERRUPT
  3555. #define IS_TAMPER_MASKFLAG_STATE IS_RTC_TAMPER_MASKFLAG_STATE
  3556. #define IS_TAMPER_PRECHARGE_DURATION IS_RTC_TAMPER_PRECHARGE_DURATION
  3557. #define IS_TAMPER_PULLUP_STATE IS_RTC_TAMPER_PULLUP_STATE
  3558. #define IS_TAMPER_SAMPLING_FREQ IS_RTC_TAMPER_SAMPLING_FREQ
  3559. #define IS_TAMPER_TIMESTAMPONTAMPER_DETECTION IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION
  3560. #define IS_TAMPER_TRIGGER IS_RTC_TAMPER_TRIGGER
  3561. #define IS_WAKEUP_CLOCK IS_RTC_WAKEUP_CLOCK
  3562. #define IS_WAKEUP_COUNTER IS_RTC_WAKEUP_COUNTER
  3563. #define __RTC_WRITEPROTECTION_ENABLE __HAL_RTC_WRITEPROTECTION_ENABLE
  3564. #define __RTC_WRITEPROTECTION_DISABLE __HAL_RTC_WRITEPROTECTION_DISABLE
  3565. #if defined (STM32H5)
  3566. #define __HAL_RCC_RTCAPB_CLK_ENABLE __HAL_RCC_RTC_CLK_ENABLE
  3567. #define __HAL_RCC_RTCAPB_CLK_DISABLE __HAL_RCC_RTC_CLK_DISABLE
  3568. #endif /* STM32H5 */
  3569. /**
  3570. * @}
  3571. */
  3572. /** @defgroup HAL_SD_Aliased_Macros HAL SD/MMC Aliased Macros maintained for legacy purpose
  3573. * @{
  3574. */
  3575. #define SD_OCR_CID_CSD_OVERWRIETE SD_OCR_CID_CSD_OVERWRITE
  3576. #define SD_CMD_SD_APP_STAUS SD_CMD_SD_APP_STATUS
  3577. #if !defined(STM32F1) && !defined(STM32F2) && !defined(STM32F4) && !defined(STM32L1)
  3578. #define eMMC_HIGH_VOLTAGE_RANGE EMMC_HIGH_VOLTAGE_RANGE
  3579. #define eMMC_DUAL_VOLTAGE_RANGE EMMC_DUAL_VOLTAGE_RANGE
  3580. #define eMMC_LOW_VOLTAGE_RANGE EMMC_LOW_VOLTAGE_RANGE
  3581. #define SDMMC_NSpeed_CLK_DIV SDMMC_NSPEED_CLK_DIV
  3582. #define SDMMC_HSpeed_CLK_DIV SDMMC_HSPEED_CLK_DIV
  3583. #endif
  3584. #if defined(STM32F4) || defined(STM32F2)
  3585. #define SD_SDMMC_DISABLED SD_SDIO_DISABLED
  3586. #define SD_SDMMC_FUNCTION_BUSY SD_SDIO_FUNCTION_BUSY
  3587. #define SD_SDMMC_FUNCTION_FAILED SD_SDIO_FUNCTION_FAILED
  3588. #define SD_SDMMC_UNKNOWN_FUNCTION SD_SDIO_UNKNOWN_FUNCTION
  3589. #define SD_CMD_SDMMC_SEN_OP_COND SD_CMD_SDIO_SEN_OP_COND
  3590. #define SD_CMD_SDMMC_RW_DIRECT SD_CMD_SDIO_RW_DIRECT
  3591. #define SD_CMD_SDMMC_RW_EXTENDED SD_CMD_SDIO_RW_EXTENDED
  3592. #define __HAL_SD_SDMMC_ENABLE __HAL_SD_SDIO_ENABLE
  3593. #define __HAL_SD_SDMMC_DISABLE __HAL_SD_SDIO_DISABLE
  3594. #define __HAL_SD_SDMMC_DMA_ENABLE __HAL_SD_SDIO_DMA_ENABLE
  3595. #define __HAL_SD_SDMMC_DMA_DISABLE __HAL_SD_SDIO_DMA_DISABL
  3596. #define __HAL_SD_SDMMC_ENABLE_IT __HAL_SD_SDIO_ENABLE_IT
  3597. #define __HAL_SD_SDMMC_DISABLE_IT __HAL_SD_SDIO_DISABLE_IT
  3598. #define __HAL_SD_SDMMC_GET_FLAG __HAL_SD_SDIO_GET_FLAG
  3599. #define __HAL_SD_SDMMC_CLEAR_FLAG __HAL_SD_SDIO_CLEAR_FLAG
  3600. #define __HAL_SD_SDMMC_GET_IT __HAL_SD_SDIO_GET_IT
  3601. #define __HAL_SD_SDMMC_CLEAR_IT __HAL_SD_SDIO_CLEAR_IT
  3602. #define SDMMC_STATIC_FLAGS SDIO_STATIC_FLAGS
  3603. #define SDMMC_CMD0TIMEOUT SDIO_CMD0TIMEOUT
  3604. #define SD_SDMMC_SEND_IF_COND SD_SDIO_SEND_IF_COND
  3605. /* alias CMSIS */
  3606. #define SDMMC1_IRQn SDIO_IRQn
  3607. #define SDMMC1_IRQHandler SDIO_IRQHandler
  3608. #endif
  3609. #if defined(STM32F7) || defined(STM32L4)
  3610. #define SD_SDIO_DISABLED SD_SDMMC_DISABLED
  3611. #define SD_SDIO_FUNCTION_BUSY SD_SDMMC_FUNCTION_BUSY
  3612. #define SD_SDIO_FUNCTION_FAILED SD_SDMMC_FUNCTION_FAILED
  3613. #define SD_SDIO_UNKNOWN_FUNCTION SD_SDMMC_UNKNOWN_FUNCTION
  3614. #define SD_CMD_SDIO_SEN_OP_COND SD_CMD_SDMMC_SEN_OP_COND
  3615. #define SD_CMD_SDIO_RW_DIRECT SD_CMD_SDMMC_RW_DIRECT
  3616. #define SD_CMD_SDIO_RW_EXTENDED SD_CMD_SDMMC_RW_EXTENDED
  3617. #define __HAL_SD_SDIO_ENABLE __HAL_SD_SDMMC_ENABLE
  3618. #define __HAL_SD_SDIO_DISABLE __HAL_SD_SDMMC_DISABLE
  3619. #define __HAL_SD_SDIO_DMA_ENABLE __HAL_SD_SDMMC_DMA_ENABLE
  3620. #define __HAL_SD_SDIO_DMA_DISABL __HAL_SD_SDMMC_DMA_DISABLE
  3621. #define __HAL_SD_SDIO_ENABLE_IT __HAL_SD_SDMMC_ENABLE_IT
  3622. #define __HAL_SD_SDIO_DISABLE_IT __HAL_SD_SDMMC_DISABLE_IT
  3623. #define __HAL_SD_SDIO_GET_FLAG __HAL_SD_SDMMC_GET_FLAG
  3624. #define __HAL_SD_SDIO_CLEAR_FLAG __HAL_SD_SDMMC_CLEAR_FLAG
  3625. #define __HAL_SD_SDIO_GET_IT __HAL_SD_SDMMC_GET_IT
  3626. #define __HAL_SD_SDIO_CLEAR_IT __HAL_SD_SDMMC_CLEAR_IT
  3627. #define SDIO_STATIC_FLAGS SDMMC_STATIC_FLAGS
  3628. #define SDIO_CMD0TIMEOUT SDMMC_CMD0TIMEOUT
  3629. #define SD_SDIO_SEND_IF_COND SD_SDMMC_SEND_IF_COND
  3630. /* alias CMSIS for compatibilities */
  3631. #define SDIO_IRQn SDMMC1_IRQn
  3632. #define SDIO_IRQHandler SDMMC1_IRQHandler
  3633. #endif
  3634. #if defined(STM32F7) || defined(STM32F4) || defined(STM32F2) || defined(STM32L4) || defined(STM32H7)
  3635. #define HAL_SD_CardCIDTypedef HAL_SD_CardCIDTypeDef
  3636. #define HAL_SD_CardCSDTypedef HAL_SD_CardCSDTypeDef
  3637. #define HAL_SD_CardStatusTypedef HAL_SD_CardStatusTypeDef
  3638. #define HAL_SD_CardStateTypedef HAL_SD_CardStateTypeDef
  3639. #endif
  3640. #if defined(STM32H7) || defined(STM32L5)
  3641. #define HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback HAL_MMCEx_Read_DMADoubleBuf0CpltCallback
  3642. #define HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback HAL_MMCEx_Read_DMADoubleBuf1CpltCallback
  3643. #define HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback HAL_MMCEx_Write_DMADoubleBuf0CpltCallback
  3644. #define HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback HAL_MMCEx_Write_DMADoubleBuf1CpltCallback
  3645. #define HAL_SDEx_Read_DMADoubleBuffer0CpltCallback HAL_SDEx_Read_DMADoubleBuf0CpltCallback
  3646. #define HAL_SDEx_Read_DMADoubleBuffer1CpltCallback HAL_SDEx_Read_DMADoubleBuf1CpltCallback
  3647. #define HAL_SDEx_Write_DMADoubleBuffer0CpltCallback HAL_SDEx_Write_DMADoubleBuf0CpltCallback
  3648. #define HAL_SDEx_Write_DMADoubleBuffer1CpltCallback HAL_SDEx_Write_DMADoubleBuf1CpltCallback
  3649. #define HAL_SD_DriveTransciver_1_8V_Callback HAL_SD_DriveTransceiver_1_8V_Callback
  3650. #endif
  3651. /**
  3652. * @}
  3653. */
  3654. /** @defgroup HAL_SMARTCARD_Aliased_Macros HAL SMARTCARD Aliased Macros maintained for legacy purpose
  3655. * @{
  3656. */
  3657. #define __SMARTCARD_ENABLE_IT __HAL_SMARTCARD_ENABLE_IT
  3658. #define __SMARTCARD_DISABLE_IT __HAL_SMARTCARD_DISABLE_IT
  3659. #define __SMARTCARD_ENABLE __HAL_SMARTCARD_ENABLE
  3660. #define __SMARTCARD_DISABLE __HAL_SMARTCARD_DISABLE
  3661. #define __SMARTCARD_DMA_REQUEST_ENABLE __HAL_SMARTCARD_DMA_REQUEST_ENABLE
  3662. #define __SMARTCARD_DMA_REQUEST_DISABLE __HAL_SMARTCARD_DMA_REQUEST_DISABLE
  3663. #define __HAL_SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE
  3664. #define __SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE
  3665. #define IS_SMARTCARD_ONEBIT_SAMPLING IS_SMARTCARD_ONE_BIT_SAMPLE
  3666. /**
  3667. * @}
  3668. */
  3669. /** @defgroup HAL_SMBUS_Aliased_Macros HAL SMBUS Aliased Macros maintained for legacy purpose
  3670. * @{
  3671. */
  3672. #define __HAL_SMBUS_RESET_CR1 SMBUS_RESET_CR1
  3673. #define __HAL_SMBUS_RESET_CR2 SMBUS_RESET_CR2
  3674. #define __HAL_SMBUS_GENERATE_START SMBUS_GENERATE_START
  3675. #define __HAL_SMBUS_GET_ADDR_MATCH SMBUS_GET_ADDR_MATCH
  3676. #define __HAL_SMBUS_GET_DIR SMBUS_GET_DIR
  3677. #define __HAL_SMBUS_GET_STOP_MODE SMBUS_GET_STOP_MODE
  3678. #define __HAL_SMBUS_GET_PEC_MODE SMBUS_GET_PEC_MODE
  3679. #define __HAL_SMBUS_GET_ALERT_ENABLED SMBUS_GET_ALERT_ENABLED
  3680. /**
  3681. * @}
  3682. */
  3683. /** @defgroup HAL_SPI_Aliased_Macros HAL SPI Aliased Macros maintained for legacy purpose
  3684. * @{
  3685. */
  3686. #define __HAL_SPI_1LINE_TX SPI_1LINE_TX
  3687. #define __HAL_SPI_1LINE_RX SPI_1LINE_RX
  3688. #define __HAL_SPI_RESET_CRC SPI_RESET_CRC
  3689. /**
  3690. * @}
  3691. */
  3692. /** @defgroup HAL_UART_Aliased_Macros HAL UART Aliased Macros maintained for legacy purpose
  3693. * @{
  3694. */
  3695. #define __HAL_UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE
  3696. #define __HAL_UART_MASK_COMPUTATION UART_MASK_COMPUTATION
  3697. #define __UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE
  3698. #define __UART_MASK_COMPUTATION UART_MASK_COMPUTATION
  3699. #define IS_UART_WAKEUPMETHODE IS_UART_WAKEUPMETHOD
  3700. #define IS_UART_ONEBIT_SAMPLE IS_UART_ONE_BIT_SAMPLE
  3701. #define IS_UART_ONEBIT_SAMPLING IS_UART_ONE_BIT_SAMPLE
  3702. /**
  3703. * @}
  3704. */
  3705. /** @defgroup HAL_USART_Aliased_Macros HAL USART Aliased Macros maintained for legacy purpose
  3706. * @{
  3707. */
  3708. #define __USART_ENABLE_IT __HAL_USART_ENABLE_IT
  3709. #define __USART_DISABLE_IT __HAL_USART_DISABLE_IT
  3710. #define __USART_ENABLE __HAL_USART_ENABLE
  3711. #define __USART_DISABLE __HAL_USART_DISABLE
  3712. #define __HAL_USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE
  3713. #define __USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE
  3714. #if defined(STM32F0) || defined(STM32F3) || defined(STM32F7)
  3715. #define USART_OVERSAMPLING_16 0x00000000U
  3716. #define USART_OVERSAMPLING_8 USART_CR1_OVER8
  3717. #define IS_USART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == USART_OVERSAMPLING_16) || \
  3718. ((__SAMPLING__) == USART_OVERSAMPLING_8))
  3719. #endif /* STM32F0 || STM32F3 || STM32F7 */
  3720. /**
  3721. * @}
  3722. */
  3723. /** @defgroup HAL_USB_Aliased_Macros HAL USB Aliased Macros maintained for legacy purpose
  3724. * @{
  3725. */
  3726. #define USB_EXTI_LINE_WAKEUP USB_WAKEUP_EXTI_LINE
  3727. #define USB_FS_EXTI_TRIGGER_RISING_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_EDGE
  3728. #define USB_FS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_FS_WAKEUP_EXTI_FALLING_EDGE
  3729. #define USB_FS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_FALLING_EDGE
  3730. #define USB_FS_EXTI_LINE_WAKEUP USB_OTG_FS_WAKEUP_EXTI_LINE
  3731. #define USB_HS_EXTI_TRIGGER_RISING_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_EDGE
  3732. #define USB_HS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_HS_WAKEUP_EXTI_FALLING_EDGE
  3733. #define USB_HS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_FALLING_EDGE
  3734. #define USB_HS_EXTI_LINE_WAKEUP USB_OTG_HS_WAKEUP_EXTI_LINE
  3735. #define __HAL_USB_EXTI_ENABLE_IT __HAL_USB_WAKEUP_EXTI_ENABLE_IT
  3736. #define __HAL_USB_EXTI_DISABLE_IT __HAL_USB_WAKEUP_EXTI_DISABLE_IT
  3737. #define __HAL_USB_EXTI_GET_FLAG __HAL_USB_WAKEUP_EXTI_GET_FLAG
  3738. #define __HAL_USB_EXTI_CLEAR_FLAG __HAL_USB_WAKEUP_EXTI_CLEAR_FLAG
  3739. #define __HAL_USB_EXTI_SET_RISING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE
  3740. #define __HAL_USB_EXTI_SET_FALLING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_FALLING_EDGE
  3741. #define __HAL_USB_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
  3742. #define __HAL_USB_FS_EXTI_ENABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT
  3743. #define __HAL_USB_FS_EXTI_DISABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_DISABLE_IT
  3744. #define __HAL_USB_FS_EXTI_GET_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_GET_FLAG
  3745. #define __HAL_USB_FS_EXTI_CLEAR_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG
  3746. #define __HAL_USB_FS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE
  3747. #define __HAL_USB_FS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_FALLING_EDGE
  3748. #define __HAL_USB_FS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
  3749. #define __HAL_USB_FS_EXTI_GENERATE_SWIT __HAL_USB_OTG_FS_WAKEUP_EXTI_GENERATE_SWIT
  3750. #define __HAL_USB_HS_EXTI_ENABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT
  3751. #define __HAL_USB_HS_EXTI_DISABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_DISABLE_IT
  3752. #define __HAL_USB_HS_EXTI_GET_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_GET_FLAG
  3753. #define __HAL_USB_HS_EXTI_CLEAR_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG
  3754. #define __HAL_USB_HS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE
  3755. #define __HAL_USB_HS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_FALLING_EDGE
  3756. #define __HAL_USB_HS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
  3757. #define __HAL_USB_HS_EXTI_GENERATE_SWIT __HAL_USB_OTG_HS_WAKEUP_EXTI_GENERATE_SWIT
  3758. #define HAL_PCD_ActiveRemoteWakeup HAL_PCD_ActivateRemoteWakeup
  3759. #define HAL_PCD_DeActiveRemoteWakeup HAL_PCD_DeActivateRemoteWakeup
  3760. #define HAL_PCD_SetTxFiFo HAL_PCDEx_SetTxFiFo
  3761. #define HAL_PCD_SetRxFiFo HAL_PCDEx_SetRxFiFo
  3762. /**
  3763. * @}
  3764. */
  3765. /** @defgroup HAL_TIM_Aliased_Macros HAL TIM Aliased Macros maintained for legacy purpose
  3766. * @{
  3767. */
  3768. #define __HAL_TIM_SetICPrescalerValue TIM_SET_ICPRESCALERVALUE
  3769. #define __HAL_TIM_ResetICPrescalerValue TIM_RESET_ICPRESCALERVALUE
  3770. #define TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE
  3771. #define TIM_GET_CLEAR_IT __HAL_TIM_CLEAR_IT
  3772. #define __HAL_TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE
  3773. #define __HAL_TIM_DIRECTION_STATUS __HAL_TIM_IS_TIM_COUNTING_DOWN
  3774. #define __HAL_TIM_PRESCALER __HAL_TIM_SET_PRESCALER
  3775. #define __HAL_TIM_SetCounter __HAL_TIM_SET_COUNTER
  3776. #define __HAL_TIM_GetCounter __HAL_TIM_GET_COUNTER
  3777. #define __HAL_TIM_SetAutoreload __HAL_TIM_SET_AUTORELOAD
  3778. #define __HAL_TIM_GetAutoreload __HAL_TIM_GET_AUTORELOAD
  3779. #define __HAL_TIM_SetClockDivision __HAL_TIM_SET_CLOCKDIVISION
  3780. #define __HAL_TIM_GetClockDivision __HAL_TIM_GET_CLOCKDIVISION
  3781. #define __HAL_TIM_SetICPrescaler __HAL_TIM_SET_ICPRESCALER
  3782. #define __HAL_TIM_GetICPrescaler __HAL_TIM_GET_ICPRESCALER
  3783. #define __HAL_TIM_SetCompare __HAL_TIM_SET_COMPARE
  3784. #define __HAL_TIM_GetCompare __HAL_TIM_GET_COMPARE
  3785. #define TIM_BREAKINPUTSOURCE_DFSDM TIM_BREAKINPUTSOURCE_DFSDM1
  3786. /**
  3787. * @}
  3788. */
  3789. /** @defgroup HAL_ETH_Aliased_Macros HAL ETH Aliased Macros maintained for legacy purpose
  3790. * @{
  3791. */
  3792. #define __HAL_ETH_EXTI_ENABLE_IT __HAL_ETH_WAKEUP_EXTI_ENABLE_IT
  3793. #define __HAL_ETH_EXTI_DISABLE_IT __HAL_ETH_WAKEUP_EXTI_DISABLE_IT
  3794. #define __HAL_ETH_EXTI_GET_FLAG __HAL_ETH_WAKEUP_EXTI_GET_FLAG
  3795. #define __HAL_ETH_EXTI_CLEAR_FLAG __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG
  3796. #define __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE_TRIGGER
  3797. #define __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE_TRIGGER
  3798. #define __HAL_ETH_EXTI_SET_FALLINGRISING_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER
  3799. #define ETH_PROMISCIOUSMODE_ENABLE ETH_PROMISCUOUS_MODE_ENABLE
  3800. #define ETH_PROMISCIOUSMODE_DISABLE ETH_PROMISCUOUS_MODE_DISABLE
  3801. #define IS_ETH_PROMISCIOUS_MODE IS_ETH_PROMISCUOUS_MODE
  3802. /**
  3803. * @}
  3804. */
  3805. /** @defgroup HAL_LTDC_Aliased_Macros HAL LTDC Aliased Macros maintained for legacy purpose
  3806. * @{
  3807. */
  3808. #define __HAL_LTDC_LAYER LTDC_LAYER
  3809. #define __HAL_LTDC_RELOAD_CONFIG __HAL_LTDC_RELOAD_IMMEDIATE_CONFIG
  3810. /**
  3811. * @}
  3812. */
  3813. /** @defgroup HAL_SAI_Aliased_Macros HAL SAI Aliased Macros maintained for legacy purpose
  3814. * @{
  3815. */
  3816. #define SAI_OUTPUTDRIVE_DISABLED SAI_OUTPUTDRIVE_DISABLE
  3817. #define SAI_OUTPUTDRIVE_ENABLED SAI_OUTPUTDRIVE_ENABLE
  3818. #define SAI_MASTERDIVIDER_ENABLED SAI_MASTERDIVIDER_ENABLE
  3819. #define SAI_MASTERDIVIDER_DISABLED SAI_MASTERDIVIDER_DISABLE
  3820. #define SAI_STREOMODE SAI_STEREOMODE
  3821. #define SAI_FIFOStatus_Empty SAI_FIFOSTATUS_EMPTY
  3822. #define SAI_FIFOStatus_Less1QuarterFull SAI_FIFOSTATUS_LESS1QUARTERFULL
  3823. #define SAI_FIFOStatus_1QuarterFull SAI_FIFOSTATUS_1QUARTERFULL
  3824. #define SAI_FIFOStatus_HalfFull SAI_FIFOSTATUS_HALFFULL
  3825. #define SAI_FIFOStatus_3QuartersFull SAI_FIFOSTATUS_3QUARTERFULL
  3826. #define SAI_FIFOStatus_Full SAI_FIFOSTATUS_FULL
  3827. #define IS_SAI_BLOCK_MONO_STREO_MODE IS_SAI_BLOCK_MONO_STEREO_MODE
  3828. #define SAI_SYNCHRONOUS_EXT SAI_SYNCHRONOUS_EXT_SAI1
  3829. #define SAI_SYNCEXT_IN_ENABLE SAI_SYNCEXT_OUTBLOCKA_ENABLE
  3830. /**
  3831. * @}
  3832. */
  3833. /** @defgroup HAL_SPDIFRX_Aliased_Macros HAL SPDIFRX Aliased Macros maintained for legacy purpose
  3834. * @{
  3835. */
  3836. #if defined(STM32H7)
  3837. #define HAL_SPDIFRX_ReceiveControlFlow HAL_SPDIFRX_ReceiveCtrlFlow
  3838. #define HAL_SPDIFRX_ReceiveControlFlow_IT HAL_SPDIFRX_ReceiveCtrlFlow_IT
  3839. #define HAL_SPDIFRX_ReceiveControlFlow_DMA HAL_SPDIFRX_ReceiveCtrlFlow_DMA
  3840. #endif
  3841. /**
  3842. * @}
  3843. */
  3844. /** @defgroup HAL_HRTIM_Aliased_Functions HAL HRTIM Aliased Functions maintained for legacy purpose
  3845. * @{
  3846. */
  3847. #if defined (STM32H7) || defined (STM32G4) || defined (STM32F3)
  3848. #define HAL_HRTIM_WaveformCounterStart_IT HAL_HRTIM_WaveformCountStart_IT
  3849. #define HAL_HRTIM_WaveformCounterStart_DMA HAL_HRTIM_WaveformCountStart_DMA
  3850. #define HAL_HRTIM_WaveformCounterStart HAL_HRTIM_WaveformCountStart
  3851. #define HAL_HRTIM_WaveformCounterStop_IT HAL_HRTIM_WaveformCountStop_IT
  3852. #define HAL_HRTIM_WaveformCounterStop_DMA HAL_HRTIM_WaveformCountStop_DMA
  3853. #define HAL_HRTIM_WaveformCounterStop HAL_HRTIM_WaveformCountStop
  3854. #endif
  3855. /**
  3856. * @}
  3857. */
  3858. /** @defgroup HAL_QSPI_Aliased_Macros HAL QSPI Aliased Macros maintained for legacy purpose
  3859. * @{
  3860. */
  3861. #if defined (STM32L4) || defined (STM32F4) || defined (STM32F7) || defined(STM32H7)
  3862. #define HAL_QPSI_TIMEOUT_DEFAULT_VALUE HAL_QSPI_TIMEOUT_DEFAULT_VALUE
  3863. #endif /* STM32L4 || STM32F4 || STM32F7 */
  3864. /**
  3865. * @}
  3866. */
  3867. /** @defgroup HAL_Generic_Aliased_Macros HAL Generic Aliased Macros maintained for legacy purpose
  3868. * @{
  3869. */
  3870. #if defined (STM32F7)
  3871. #define ART_ACCLERATOR_ENABLE ART_ACCELERATOR_ENABLE
  3872. #endif /* STM32F7 */
  3873. /**
  3874. * @}
  3875. */
  3876. /** @defgroup HAL_PPP_Aliased_Macros HAL PPP Aliased Macros maintained for legacy purpose
  3877. * @{
  3878. */
  3879. /**
  3880. * @}
  3881. */
  3882. #ifdef __cplusplus
  3883. }
  3884. #endif
  3885. #endif /* STM32_HAL_LEGACY */