stm32_hal_legacy.h 219 KB

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