1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265 |
-
- #ifndef __STM32F0XX_H
- #define __STM32F0XX_H
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- #if !defined (STM32F0XX_LD) && !defined (STM32F0XX_MD) && !defined (STM32F030X8) && !defined (STM32F030X6)
-
-
-
- #define STM32F030X8
- #endif
- #if defined (STM32F0XX_MD) || defined (STM32F030X8)
- #ifndef STM32F0XX
-
- #define STM32F0XX STM32F0XX_MD
- #endif
- #endif
- #if !defined (STM32F0XX_LD) && !defined (STM32F0XX_MD) && !defined (STM32F030X8) && !defined (STM32F030X6)
- #error "Please select first the target STM32F0xx device used in your application (in stm32f0xx.h file)"
- #endif
- #if !defined USE_STDPERIPH_DRIVER
-
- #endif
- #if !defined (HSE_VALUE)
- #define HSE_VALUE ((uint32_t)8000000)
- #endif
- #if !defined (HSE_STARTUP_TIMEOUT)
- #define HSE_STARTUP_TIMEOUT ((uint16_t)0x5000)
- #endif
- #if !defined (HSI_STARTUP_TIMEOUT)
- #define HSI_STARTUP_TIMEOUT ((uint16_t)0x5000)
- #endif
- #if !defined (HSI_VALUE)
- #define HSI_VALUE ((uint32_t)8000000)
- #endif
- #if !defined (HSI14_VALUE)
- #define HSI14_VALUE ((uint32_t)14000000)
- #endif
- #if !defined (LSI_VALUE)
- #define LSI_VALUE ((uint32_t)40000)
- #endif
- #if !defined (LSE_VALUE)
- #define LSE_VALUE ((uint32_t)32768)
- #endif
- #define __STM32F0XX_STDPERIPH_VERSION_MAIN (0x01)
- #define __STM32F0XX_STDPERIPH_VERSION_SUB1 (0x02)
- #define __STM32F0XX_STDPERIPH_VERSION_SUB2 (0x00)
- #define __STM32F0XX_STDPERIPH_VERSION_RC (0x00)
- #define __STM32F0XX_STDPERIPH_VERSION ((__STM32F0XX_STDPERIPH_VERSION_MAIN << 24)\
- |(__STM32F0XX_STDPERIPH_VERSION_SUB1 << 16)\
- |(__STM32F0XX_STDPERIPH_VERSION_SUB2 << 8)\
- |(__STM32F0XX_STDPERIPH_VERSION_RC))
- #define __CM0_REV 0
- #define __MPU_PRESENT 0
- #define __NVIC_PRIO_BITS 2
- #define __Vendor_SysTickConfig 0
- typedef enum IRQn
- {
- NonMaskableInt_IRQn = -14,
- HardFault_IRQn = -13,
- SVC_IRQn = -5,
- PendSV_IRQn = -2,
- SysTick_IRQn = -1,
- #if defined (STM32F0XX_MD) || defined (STM32F030X8)
- WWDG_IRQn = 0,
- PVD_IRQn = 1,
- RTC_IRQn = 2,
- FLASH_IRQn = 3,
- RCC_IRQn = 4,
- EXTI0_1_IRQn = 5,
- EXTI2_3_IRQn = 6,
- EXTI4_15_IRQn = 7,
- TS_IRQn = 8,
- DMA1_Channel1_IRQn = 9,
- DMA1_Channel2_3_IRQn = 10,
- DMA1_Channel4_5_IRQn = 11,
- ADC1_COMP_IRQn = 12,
- TIM1_BRK_UP_TRG_COM_IRQn = 13,
- TIM1_CC_IRQn = 14,
- TIM2_IRQn = 15,
- TIM3_IRQn = 16,
- TIM6_DAC_IRQn = 17,
- TIM14_IRQn = 19,
- TIM15_IRQn = 20,
- TIM16_IRQn = 21,
- TIM17_IRQn = 22,
- I2C1_IRQn = 23,
- I2C2_IRQn = 24,
- SPI1_IRQn = 25,
- SPI2_IRQn = 26,
- USART1_IRQn = 27,
- USART2_IRQn = 28,
- CEC_IRQn = 30
- #elif defined (STM32F0XX_LD) || defined (STM32F030X6)
- WWDG_IRQn = 0,
- PVD_IRQn = 1,
- RTC_IRQn = 2,
- FLASH_IRQn = 3,
- RCC_IRQn = 4,
- EXTI0_1_IRQn = 5,
- EXTI2_3_IRQn = 6,
- EXTI4_15_IRQn = 7,
- DMA1_Channel1_IRQn = 9,
- DMA1_Channel2_3_IRQn = 10,
- DMA1_Channel4_5_IRQn = 11,
- ADC1_IRQn = 12,
- TIM1_BRK_UP_TRG_COM_IRQn = 13,
- TIM1_CC_IRQn = 14,
- TIM2_IRQn = 15,
- TIM3_IRQn = 16,
- TIM14_IRQn = 19,
- TIM16_IRQn = 21,
- TIM17_IRQn = 22,
- I2C1_IRQn = 23,
- SPI1_IRQn = 25,
- USART1_IRQn = 27,
- #endif
- } IRQn_Type;
- #include "core_cm0.h"
- #include "system_stm32f0xx.h"
- #include <stdint.h>
-
- typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
- typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
- #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
- typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
-
- typedef struct
- {
- __IO uint32_t ISR;
- __IO uint32_t IER;
- __IO uint32_t CR;
- __IO uint32_t CFGR1;
- __IO uint32_t CFGR2;
- __IO uint32_t SMPR;
- uint32_t RESERVED1;
- uint32_t RESERVED2;
- __IO uint32_t TR;
- uint32_t RESERVED3;
- __IO uint32_t CHSELR;
- uint32_t RESERVED4[5];
- __IO uint32_t DR;
- } ADC_TypeDef;
- typedef struct
- {
- __IO uint32_t CCR;
- } ADC_Common_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t CFGR;
- __IO uint32_t TXDR;
- __IO uint32_t RXDR;
- __IO uint32_t ISR;
- __IO uint32_t IER;
- }CEC_TypeDef;
- typedef struct
- {
- __IO uint32_t CSR;
- } COMP_TypeDef;
- typedef struct
- {
- __IO uint32_t DR;
- __IO uint8_t IDR;
- uint8_t RESERVED0;
- uint16_t RESERVED1;
- __IO uint32_t CR;
- uint32_t RESERVED2;
- __IO uint32_t INIT;
- } CRC_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t SWTRIGR;
- __IO uint32_t DHR12R1;
- __IO uint32_t DHR12L1;
- __IO uint32_t DHR8R1;
- uint32_t RESERVED[6];
- __IO uint32_t DOR1;
- uint32_t RESERVED1;
- __IO uint32_t SR;
- } DAC_TypeDef;
- typedef struct
- {
- __IO uint32_t IDCODE;
- __IO uint32_t CR;
- __IO uint32_t APB1FZ;
- __IO uint32_t APB2FZ;
- }DBGMCU_TypeDef;
- typedef struct
- {
- __IO uint32_t CCR;
- __IO uint32_t CNDTR;
- __IO uint32_t CPAR;
- __IO uint32_t CMAR;
- } DMA_Channel_TypeDef;
- typedef struct
- {
- __IO uint32_t ISR;
- __IO uint32_t IFCR;
- } DMA_TypeDef;
- typedef struct
- {
- __IO uint32_t IMR;
- __IO uint32_t EMR;
- __IO uint32_t RTSR;
- __IO uint32_t FTSR;
- __IO uint32_t SWIER;
- __IO uint32_t PR;
- }EXTI_TypeDef;
- typedef struct
- {
- __IO uint32_t ACR;
- __IO uint32_t KEYR;
- __IO uint32_t OPTKEYR;
- __IO uint32_t SR;
- __IO uint32_t CR;
- __IO uint32_t AR;
- __IO uint32_t RESERVED;
- __IO uint32_t OBR;
- __IO uint32_t WRPR;
- } FLASH_TypeDef;
- typedef struct
- {
- __IO uint16_t RDP;
- __IO uint16_t USER;
- uint16_t RESERVED0;
- uint16_t RESERVED1;
- __IO uint16_t WRP0;
- __IO uint16_t WRP1;
- } OB_TypeDef;
-
- typedef struct
- {
- __IO uint32_t MODER;
- __IO uint16_t OTYPER;
- uint16_t RESERVED0;
- __IO uint32_t OSPEEDR;
- __IO uint32_t PUPDR;
- __IO uint16_t IDR;
- uint16_t RESERVED1;
- __IO uint16_t ODR;
- uint16_t RESERVED2;
- __IO uint32_t BSRR;
- __IO uint32_t LCKR;
- __IO uint32_t AFR[2];
- __IO uint16_t BRR;
- uint16_t RESERVED3;
- }GPIO_TypeDef;
- typedef struct
- {
- __IO uint32_t CFGR1;
- uint32_t RESERVED;
- __IO uint32_t EXTICR[4];
- __IO uint32_t CFGR2;
- } SYSCFG_TypeDef;
- typedef struct
- {
- __IO uint32_t CR1;
- __IO uint32_t CR2;
- __IO uint32_t OAR1;
- __IO uint32_t OAR2;
- __IO uint32_t TIMINGR;
- __IO uint32_t TIMEOUTR;
- __IO uint32_t ISR;
- __IO uint32_t ICR;
- __IO uint32_t PECR;
- __IO uint32_t RXDR;
- __IO uint32_t TXDR;
- }I2C_TypeDef;
- typedef struct
- {
- __IO uint32_t KR;
- __IO uint32_t PR;
- __IO uint32_t RLR;
- __IO uint32_t SR;
- __IO uint32_t WINR;
- } IWDG_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t CSR;
- } PWR_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t CFGR;
- __IO uint32_t CIR;
- __IO uint32_t APB2RSTR;
- __IO uint32_t APB1RSTR;
- __IO uint32_t AHBENR;
- __IO uint32_t APB2ENR;
- __IO uint32_t APB1ENR;
- __IO uint32_t BDCR;
- __IO uint32_t CSR;
- __IO uint32_t AHBRSTR;
- __IO uint32_t CFGR2;
- __IO uint32_t CFGR3;
- __IO uint32_t CR2;
- } RCC_TypeDef;
- typedef struct
- {
- __IO uint32_t TR;
- __IO uint32_t DR;
- __IO uint32_t CR;
- __IO uint32_t ISR;
- __IO uint32_t PRER;
- uint32_t RESERVED0;
- uint32_t RESERVED1;
- __IO uint32_t ALRMAR;
- uint32_t RESERVED2;
- __IO uint32_t WPR;
- __IO uint32_t SSR;
- __IO uint32_t SHIFTR;
- __IO uint32_t TSTR;
- __IO uint32_t TSDR;
- __IO uint32_t TSSSR;
- __IO uint32_t CAL;
- __IO uint32_t TAFCR;
- __IO uint32_t ALRMASSR;
- uint32_t RESERVED3;
- uint32_t RESERVED4;
- __IO uint32_t BKP0R;
- __IO uint32_t BKP1R;
- __IO uint32_t BKP2R;
- __IO uint32_t BKP3R;
- __IO uint32_t BKP4R;
- } RTC_TypeDef;
-
- typedef struct
- {
- __IO uint16_t CR1;
- uint16_t RESERVED0;
- __IO uint16_t CR2;
- uint16_t RESERVED1;
- __IO uint16_t SR;
- uint16_t RESERVED2;
- __IO uint16_t DR;
- uint16_t RESERVED3;
- __IO uint16_t CRCPR;
- uint16_t RESERVED4;
- __IO uint16_t RXCRCR;
- uint16_t RESERVED5;
- __IO uint16_t TXCRCR;
- uint16_t RESERVED6;
- __IO uint16_t I2SCFGR;
- uint16_t RESERVED7;
- __IO uint16_t I2SPR;
- uint16_t RESERVED8;
- } SPI_TypeDef;
- typedef struct
- {
- __IO uint16_t CR1;
- uint16_t RESERVED0;
- __IO uint16_t CR2;
- uint16_t RESERVED1;
- __IO uint16_t SMCR;
- uint16_t RESERVED2;
- __IO uint16_t DIER;
- uint16_t RESERVED3;
- __IO uint16_t SR;
- uint16_t RESERVED4;
- __IO uint16_t EGR;
- uint16_t RESERVED5;
- __IO uint16_t CCMR1;
- uint16_t RESERVED6;
- __IO uint16_t CCMR2;
- uint16_t RESERVED7;
- __IO uint16_t CCER;
- uint16_t RESERVED8;
- __IO uint32_t CNT;
- __IO uint16_t PSC;
- uint16_t RESERVED10;
- __IO uint32_t ARR;
- __IO uint16_t RCR;
- uint16_t RESERVED12;
- __IO uint32_t CCR1;
- __IO uint32_t CCR2;
- __IO uint32_t CCR3;
- __IO uint32_t CCR4;
- __IO uint16_t BDTR;
- uint16_t RESERVED17;
- __IO uint16_t DCR;
- uint16_t RESERVED18;
- __IO uint16_t DMAR;
- uint16_t RESERVED19;
- __IO uint16_t OR;
- uint16_t RESERVED20;
- } TIM_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t IER;
- __IO uint32_t ICR;
- __IO uint32_t ISR;
- __IO uint32_t IOHCR;
- __IO uint32_t RESERVED1;
- __IO uint32_t IOASCR;
- __IO uint32_t RESERVED2;
- __IO uint32_t IOSCR;
- __IO uint32_t RESERVED3;
- __IO uint32_t IOCCR;
- __IO uint32_t RESERVED4;
- __IO uint32_t IOGCSR;
- __IO uint32_t IOGXCR[6];
- } TSC_TypeDef;
-
- typedef struct
- {
- __IO uint32_t CR1;
- __IO uint32_t CR2;
- __IO uint32_t CR3;
- __IO uint16_t BRR;
- uint16_t RESERVED1;
- __IO uint16_t GTPR;
- uint16_t RESERVED2;
- __IO uint32_t RTOR;
- __IO uint16_t RQR;
- uint16_t RESERVED3;
- __IO uint32_t ISR;
- __IO uint32_t ICR;
- __IO uint16_t RDR;
- uint16_t RESERVED4;
- __IO uint16_t TDR;
- uint16_t RESERVED5;
- } USART_TypeDef;
- typedef struct
- {
- __IO uint32_t CR;
- __IO uint32_t CFR;
- __IO uint32_t SR;
- } WWDG_TypeDef;
-
- #define FLASH_BASE ((uint32_t)0x08000000)
- #define SRAM_BASE ((uint32_t)0x20000000)
- #define PERIPH_BASE ((uint32_t)0x40000000)
- #define APBPERIPH_BASE PERIPH_BASE
- #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000)
- #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
- #define TIM2_BASE (APBPERIPH_BASE + 0x00000000)
- #define TIM3_BASE (APBPERIPH_BASE + 0x00000400)
- #define TIM6_BASE (APBPERIPH_BASE + 0x00001000)
- #define TIM14_BASE (APBPERIPH_BASE + 0x00002000)
- #define RTC_BASE (APBPERIPH_BASE + 0x00002800)
- #define WWDG_BASE (APBPERIPH_BASE + 0x00002C00)
- #define IWDG_BASE (APBPERIPH_BASE + 0x00003000)
- #define SPI2_BASE (APBPERIPH_BASE + 0x00003800)
- #define USART2_BASE (APBPERIPH_BASE + 0x00004400)
- #define I2C1_BASE (APBPERIPH_BASE + 0x00005400)
- #define I2C2_BASE (APBPERIPH_BASE + 0x00005800)
- #define PWR_BASE (APBPERIPH_BASE + 0x00007000)
- #define DAC_BASE (APBPERIPH_BASE + 0x00007400)
- #define CEC_BASE (APBPERIPH_BASE + 0x00007800)
- #define SYSCFG_BASE (APBPERIPH_BASE + 0x00010000)
- #define COMP_BASE (APBPERIPH_BASE + 0x0001001C)
- #define EXTI_BASE (APBPERIPH_BASE + 0x00010400)
- #define ADC1_BASE (APBPERIPH_BASE + 0x00012400)
- #define ADC_BASE (APBPERIPH_BASE + 0x00012708)
- #define TIM1_BASE (APBPERIPH_BASE + 0x00012C00)
- #define SPI1_BASE (APBPERIPH_BASE + 0x00013000)
- #define USART1_BASE (APBPERIPH_BASE + 0x00013800)
- #define TIM15_BASE (APBPERIPH_BASE + 0x00014000)
- #define TIM16_BASE (APBPERIPH_BASE + 0x00014400)
- #define TIM17_BASE (APBPERIPH_BASE + 0x00014800)
- #define DBGMCU_BASE (APBPERIPH_BASE + 0x00015800)
- #define DMA1_BASE (AHBPERIPH_BASE + 0x00000000)
- #define DMA1_Channel1_BASE (DMA1_BASE + 0x00000008)
- #define DMA1_Channel2_BASE (DMA1_BASE + 0x0000001C)
- #define DMA1_Channel3_BASE (DMA1_BASE + 0x00000030)
- #define DMA1_Channel4_BASE (DMA1_BASE + 0x00000044)
- #define DMA1_Channel5_BASE (DMA1_BASE + 0x00000058)
- #define RCC_BASE (AHBPERIPH_BASE + 0x00001000)
- #define FLASH_R_BASE (AHBPERIPH_BASE + 0x00002000)
- #define OB_BASE ((uint32_t)0x1FFFF800)
- #define CRC_BASE (AHBPERIPH_BASE + 0x00003000)
- #define TSC_BASE (AHBPERIPH_BASE + 0x00004000)
- #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000)
- #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400)
- #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800)
- #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00)
- #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400)
-
-
- #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
- #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
- #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
- #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
- #define RTC ((RTC_TypeDef *) RTC_BASE)
- #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
- #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
- #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
- #define USART2 ((USART_TypeDef *) USART2_BASE)
- #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
- #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
- #define PWR ((PWR_TypeDef *) PWR_BASE)
- #define DAC ((DAC_TypeDef *) DAC_BASE)
- #define CEC ((CEC_TypeDef *) CEC_BASE)
- #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
- #define COMP ((COMP_TypeDef *) COMP_BASE)
- #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
- #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
- #define ADC ((ADC_Common_TypeDef *) ADC_BASE)
- #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
- #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
- #define USART1 ((USART_TypeDef *) USART1_BASE)
- #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
- #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
- #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
- #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
- #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
- #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
- #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
- #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
- #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
- #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
- #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
- #define OB ((OB_TypeDef *) OB_BASE)
- #define RCC ((RCC_TypeDef *) RCC_BASE)
- #define CRC ((CRC_TypeDef *) CRC_BASE)
- #define TSC ((TSC_TypeDef *) TSC_BASE)
- #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
- #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
- #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
- #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
- #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
-
-
-
- #define ADC_ISR_AWD ((uint32_t)0x00000080)
- #define ADC_ISR_OVR ((uint32_t)0x00000010)
- #define ADC_ISR_EOSEQ ((uint32_t)0x00000008)
- #define ADC_ISR_EOC ((uint32_t)0x00000004)
- #define ADC_ISR_EOSMP ((uint32_t)0x00000002)
- #define ADC_ISR_ADRDY ((uint32_t)0x00000001)
- #define ADC_ISR_EOS ADC_ISR_EOSEQ
- #define ADC_IER_AWDIE ((uint32_t)0x00000080)
- #define ADC_IER_OVRIE ((uint32_t)0x00000010)
- #define ADC_IER_EOSEQIE ((uint32_t)0x00000008)
- #define ADC_IER_EOCIE ((uint32_t)0x00000004)
- #define ADC_IER_EOSMPIE ((uint32_t)0x00000002)
- #define ADC_IER_ADRDYIE ((uint32_t)0x00000001)
- #define ADC_IER_EOSIE ADC_IER_EOSEQIE
- #define ADC_CR_ADCAL ((uint32_t)0x80000000)
- #define ADC_CR_ADSTP ((uint32_t)0x00000010)
- #define ADC_CR_ADSTART ((uint32_t)0x00000004)
- #define ADC_CR_ADDIS ((uint32_t)0x00000002)
- #define ADC_CR_ADEN ((uint32_t)0x00000001)
- #define ADC_CFGR1_AWDCH ((uint32_t)0x7C000000)
- #define ADC_CFGR1_AWDCH_0 ((uint32_t)0x04000000)
- #define ADC_CFGR1_AWDCH_1 ((uint32_t)0x08000000)
- #define ADC_CFGR1_AWDCH_2 ((uint32_t)0x10000000)
- #define ADC_CFGR1_AWDCH_3 ((uint32_t)0x20000000)
- #define ADC_CFGR1_AWDCH_4 ((uint32_t)0x40000000)
- #define ADC_CFGR1_AWDEN ((uint32_t)0x00800000)
- #define ADC_CFGR1_AWDSGL ((uint32_t)0x00400000)
- #define ADC_CFGR1_DISCEN ((uint32_t)0x00010000)
- #define ADC_CFGR1_AUTOFF ((uint32_t)0x00008000)
- #define ADC_CFGR1_WAIT ((uint32_t)0x00004000)
- #define ADC_CFGR1_CONT ((uint32_t)0x00002000)
- #define ADC_CFGR1_OVRMOD ((uint32_t)0x00001000)
- #define ADC_CFGR1_EXTEN ((uint32_t)0x00000C00)
- #define ADC_CFGR1_EXTEN_0 ((uint32_t)0x00000400)
- #define ADC_CFGR1_EXTEN_1 ((uint32_t)0x00000800)
- #define ADC_CFGR1_EXTSEL ((uint32_t)0x000001C0)
- #define ADC_CFGR1_EXTSEL_0 ((uint32_t)0x00000040)
- #define ADC_CFGR1_EXTSEL_1 ((uint32_t)0x00000080)
- #define ADC_CFGR1_EXTSEL_2 ((uint32_t)0x00000100)
- #define ADC_CFGR1_ALIGN ((uint32_t)0x00000020)
- #define ADC_CFGR1_RES ((uint32_t)0x00000018)
- #define ADC_CFGR1_RES_0 ((uint32_t)0x00000008)
- #define ADC_CFGR1_RES_1 ((uint32_t)0x00000010)
- #define ADC_CFGR1_SCANDIR ((uint32_t)0x00000004)
- #define ADC_CFGR1_DMACFG ((uint32_t)0x00000002)
- #define ADC_CFGR1_DMAEN ((uint32_t)0x00000001)
- #define ADC_CFGR1_AUTDLY ADC_CFGR1_WAIT
- #define ADC_CFGR2_JITOFFDIV4 ((uint32_t)0x80000000)
- #define ADC_CFGR2_JITOFFDIV2 ((uint32_t)0x40000000)
- #define ADC_SMPR1_SMPR ((uint32_t)0x00000007)
- #define ADC_SMPR1_SMPR_0 ((uint32_t)0x00000001)
- #define ADC_SMPR1_SMPR_1 ((uint32_t)0x00000002)
- #define ADC_SMPR1_SMPR_2 ((uint32_t)0x00000004)
- #define ADC_HTR_HT ((uint32_t)0x00000FFF)
- #define ADC_LTR_LT ((uint32_t)0x00000FFF)
- #define ADC_CHSELR_CHSEL18 ((uint32_t)0x00040000)
- #define ADC_CHSELR_CHSEL17 ((uint32_t)0x00020000)
- #define ADC_CHSELR_CHSEL16 ((uint32_t)0x00010000)
- #define ADC_CHSELR_CHSEL15 ((uint32_t)0x00008000)
- #define ADC_CHSELR_CHSEL14 ((uint32_t)0x00004000)
- #define ADC_CHSELR_CHSEL13 ((uint32_t)0x00002000)
- #define ADC_CHSELR_CHSEL12 ((uint32_t)0x00001000)
- #define ADC_CHSELR_CHSEL11 ((uint32_t)0x00000800)
- #define ADC_CHSELR_CHSEL10 ((uint32_t)0x00000400)
- #define ADC_CHSELR_CHSEL9 ((uint32_t)0x00000200)
- #define ADC_CHSELR_CHSEL8 ((uint32_t)0x00000100)
- #define ADC_CHSELR_CHSEL7 ((uint32_t)0x00000080)
- #define ADC_CHSELR_CHSEL6 ((uint32_t)0x00000040)
- #define ADC_CHSELR_CHSEL5 ((uint32_t)0x00000020)
- #define ADC_CHSELR_CHSEL4 ((uint32_t)0x00000010)
- #define ADC_CHSELR_CHSEL3 ((uint32_t)0x00000008)
- #define ADC_CHSELR_CHSEL2 ((uint32_t)0x00000004)
- #define ADC_CHSELR_CHSEL1 ((uint32_t)0x00000002)
- #define ADC_CHSELR_CHSEL0 ((uint32_t)0x00000001)
- #define ADC_DR_DATA ((uint32_t)0x0000FFFF)
- #define ADC_CCR_VBATEN ((uint32_t)0x01000000)
- #define ADC_CCR_TSEN ((uint32_t)0x00800000)
- #define ADC_CCR_VREFEN ((uint32_t)0x00400000)
- #define CEC_CR_CECEN ((uint32_t)0x00000001)
- #define CEC_CR_TXSOM ((uint32_t)0x00000002)
- #define CEC_CR_TXEOM ((uint32_t)0x00000004)
- #define CEC_CFGR_SFT ((uint32_t)0x00000007)
- #define CEC_CFGR_RXTOL ((uint32_t)0x00000008)
- #define CEC_CFGR_BRESTP ((uint32_t)0x00000010)
- #define CEC_CFGR_BREGEN ((uint32_t)0x00000020)
- #define CEC_CFGR_LREGEN ((uint32_t)0x00000040)
- #define CEC_CFGR_BRDNOGEN ((uint32_t)0x00000080)
- #define CEC_CFGR_SFTOPT ((uint32_t)0x00000100)
- #define CEC_CFGR_OAR ((uint32_t)0x7FFF0000)
- #define CEC_CFGR_LSTN ((uint32_t)0x80000000)
- #define CEC_TXDR_TXD ((uint32_t)0x000000FF)
- #define CEC_TXDR_RXD ((uint32_t)0x000000FF)
- #define CEC_ISR_RXBR ((uint32_t)0x00000001)
- #define CEC_ISR_RXEND ((uint32_t)0x00000002)
- #define CEC_ISR_RXOVR ((uint32_t)0x00000004)
- #define CEC_ISR_BRE ((uint32_t)0x00000008)
- #define CEC_ISR_SBPE ((uint32_t)0x00000010)
- #define CEC_ISR_LBPE ((uint32_t)0x00000020)
- #define CEC_ISR_RXACKE ((uint32_t)0x00000040)
- #define CEC_ISR_ARBLST ((uint32_t)0x00000080)
- #define CEC_ISR_TXBR ((uint32_t)0x00000100)
- #define CEC_ISR_TXEND ((uint32_t)0x00000200)
- #define CEC_ISR_TXUDR ((uint32_t)0x00000400)
- #define CEC_ISR_TXERR ((uint32_t)0x00000800)
- #define CEC_ISR_TXACKE ((uint32_t)0x00001000)
- #define CEC_IER_RXBRIE ((uint32_t)0x00000001)
- #define CEC_IER_RXENDIE ((uint32_t)0x00000002)
- #define CEC_IER_RXOVRIE ((uint32_t)0x00000004)
- #define CEC_IER_BREIEIE ((uint32_t)0x00000008)
- #define CEC_IER_SBPEIE ((uint32_t)0x00000010)
- #define CEC_IER_LBPEIE ((uint32_t)0x00000020)
- #define CEC_IER_RXACKEIE ((uint32_t)0x00000040)
- #define CEC_IER_ARBLSTIE ((uint32_t)0x00000080)
- #define CEC_IER_TXBRIE ((uint32_t)0x00000100)
- #define CEC_IER_TXENDIE ((uint32_t)0x00000200)
- #define CEC_IER_TXUDRIE ((uint32_t)0x00000400)
- #define CEC_IER_TXERRIE ((uint32_t)0x00000800)
- #define CEC_IER_TXACKEIE ((uint32_t)0x00001000)
- #define COMP_CSR_COMP1EN ((uint32_t)0x00000001)
- #define COMP_CSR_COMP1SW1 ((uint32_t)0x00000002)
- #define COMP_CSR_COMP1MODE ((uint32_t)0x0000000C)
- #define COMP_CSR_COMP1MODE_0 ((uint32_t)0x00000004)
- #define COMP_CSR_COMP1MODE_1 ((uint32_t)0x00000008)
- #define COMP_CSR_COMP1INSEL ((uint32_t)0x00000070)
- #define COMP_CSR_COMP1INSEL_0 ((uint32_t)0x00000010)
- #define COMP_CSR_COMP1INSEL_1 ((uint32_t)0x00000020)
- #define COMP_CSR_COMP1INSEL_2 ((uint32_t)0x00000040)
- #define COMP_CSR_COMP1OUTSEL ((uint32_t)0x00000700)
- #define COMP_CSR_COMP1OUTSEL_0 ((uint32_t)0x00000100)
- #define COMP_CSR_COMP1OUTSEL_1 ((uint32_t)0x00000200)
- #define COMP_CSR_COMP1OUTSEL_2 ((uint32_t)0x00000400)
- #define COMP_CSR_COMP1POL ((uint32_t)0x00000800)
- #define COMP_CSR_COMP1HYST ((uint32_t)0x00003000)
- #define COMP_CSR_COMP1HYST_0 ((uint32_t)0x00001000)
- #define COMP_CSR_COMP1HYST_1 ((uint32_t)0x00002000)
- #define COMP_CSR_COMP1OUT ((uint32_t)0x00004000)
- #define COMP_CSR_COMP1LOCK ((uint32_t)0x00008000)
- #define COMP_CSR_COMP2EN ((uint32_t)0x00010000)
- #define COMP_CSR_COMP2MODE ((uint32_t)0x000C0000)
- #define COMP_CSR_COMP2MODE_0 ((uint32_t)0x00040000)
- #define COMP_CSR_COMP2MODE_1 ((uint32_t)0x00080000)
- #define COMP_CSR_COMP2INSEL ((uint32_t)0x00700000)
- #define COMP_CSR_COMP2INSEL_0 ((uint32_t)0x00100000)
- #define COMP_CSR_COMP2INSEL_1 ((uint32_t)0x00200000)
- #define COMP_CSR_COMP2INSEL_2 ((uint32_t)0x00400000)
- #define COMP_CSR_WNDWEN ((uint32_t)0x00800000)
- #define COMP_CSR_COMP2OUTSEL ((uint32_t)0x07000000)
- #define COMP_CSR_COMP2OUTSEL_0 ((uint32_t)0x01000000)
- #define COMP_CSR_COMP2OUTSEL_1 ((uint32_t)0x02000000)
- #define COMP_CSR_COMP2OUTSEL_2 ((uint32_t)0x04000000)
- #define COMP_CSR_COMP2POL ((uint32_t)0x08000000)
- #define COMP_CSR_COMP2HYST ((uint32_t)0x30000000)
- #define COMP_CSR_COMP2HYST_0 ((uint32_t)0x10000000)
- #define COMP_CSR_COMP2HYST_1 ((uint32_t)0x20000000)
- #define COMP_CSR_COMP2OUT ((uint32_t)0x40000000)
- #define COMP_CSR_COMP2LOCK ((uint32_t)0x80000000)
- #define CRC_DR_DR ((uint32_t)0xFFFFFFFF)
- #define CRC_IDR_IDR ((uint8_t)0xFF)
- #define CRC_CR_RESET ((uint32_t)0x00000001)
- #define CRC_CR_REV_IN ((uint32_t)0x00000060)
- #define CRC_CR_REV_IN_0 ((uint32_t)0x00000020)
- #define CRC_CR_REV_IN_1 ((uint32_t)0x00000040)
- #define CRC_CR_REV_OUT ((uint32_t)0x00000080)
- #define CRC_INIT_INIT ((uint32_t)0xFFFFFFFF)
- #define DAC_CR_EN1 ((uint32_t)0x00000001)
- #define DAC_CR_BOFF1 ((uint32_t)0x00000002)
- #define DAC_CR_TEN1 ((uint32_t)0x00000004)
- #define DAC_CR_TSEL1 ((uint32_t)0x00000038)
- #define DAC_CR_TSEL1_0 ((uint32_t)0x00000008)
- #define DAC_CR_TSEL1_1 ((uint32_t)0x00000010)
- #define DAC_CR_TSEL1_2 ((uint32_t)0x00000020)
- #define DAC_CR_DMAEN1 ((uint32_t)0x00001000)
- #define DAC_CR_DMAUDRIE1 ((uint32_t)0x00002000)
- #define DAC_SWTRIGR_SWTRIG1 ((uint32_t)0x00000001)
- #define DAC_DHR12R1_DACC1DHR ((uint32_t)0x00000FFF)
- #define DAC_DHR12L1_DACC1DHR ((uint32_t)0x0000FFF0)
- #define DAC_DHR8R1_DACC1DHR ((uint32_t)0x000000FF)
- #define DAC_DOR1_DACC1DOR ((uint32_t)0x00000FFF)
- #define DAC_SR_DMAUDR1 ((uint32_t)0x00002000)
- #define DBGMCU_IDCODE_DEV_ID ((uint32_t)0x00000FFF)
- #define DBGMCU_IDCODE_REV_ID ((uint32_t)0xFFFF0000)
- #define DBGMCU_IDCODE_REV_ID_0 ((uint32_t)0x00010000)
- #define DBGMCU_IDCODE_REV_ID_1 ((uint32_t)0x00020000)
- #define DBGMCU_IDCODE_REV_ID_2 ((uint32_t)0x00040000)
- #define DBGMCU_IDCODE_REV_ID_3 ((uint32_t)0x00080000)
- #define DBGMCU_IDCODE_REV_ID_4 ((uint32_t)0x00100000)
- #define DBGMCU_IDCODE_REV_ID_5 ((uint32_t)0x00200000)
- #define DBGMCU_IDCODE_REV_ID_6 ((uint32_t)0x00400000)
- #define DBGMCU_IDCODE_REV_ID_7 ((uint32_t)0x00800000)
- #define DBGMCU_IDCODE_REV_ID_8 ((uint32_t)0x01000000)
- #define DBGMCU_IDCODE_REV_ID_9 ((uint32_t)0x02000000)
- #define DBGMCU_IDCODE_REV_ID_10 ((uint32_t)0x04000000)
- #define DBGMCU_IDCODE_REV_ID_11 ((uint32_t)0x08000000)
- #define DBGMCU_IDCODE_REV_ID_12 ((uint32_t)0x10000000)
- #define DBGMCU_IDCODE_REV_ID_13 ((uint32_t)0x20000000)
- #define DBGMCU_IDCODE_REV_ID_14 ((uint32_t)0x40000000)
- #define DBGMCU_IDCODE_REV_ID_15 ((uint32_t)0x80000000)
- #define DBGMCU_CR_DBG_STOP ((uint32_t)0x00000002)
- #define DBGMCU_CR_DBG_STANDBY ((uint32_t)0x00000004)
- #define DBGMCU_APB1_FZ_DBG_TIM2_STOP ((uint32_t)0x00000001)
- #define DBGMCU_APB1_FZ_DBG_TIM3_STOP ((uint32_t)0x00000002)
- #define DBGMCU_APB1_FZ_DBG_TIM6_STOP ((uint32_t)0x00000010)
- #define DBGMCU_APB1_FZ_DBG_TIM14_STOP ((uint32_t)0x00000100)
- #define DBGMCU_APB1_FZ_DBG_RTC_STOP ((uint32_t)0x00000400)
- #define DBGMCU_APB1_FZ_DBG_WWDG_STOP ((uint32_t)0x00000800)
- #define DBGMCU_APB1_FZ_DBG_IWDG_STOP ((uint32_t)0x00001000)
- #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000)
- #define DBGMCU_APB2_FZ_DBG_TIM1_STOP ((uint32_t)0x00000800)
- #define DBGMCU_APB2_FZ_DBG_TIM15_STOP ((uint32_t)0x00010000)
- #define DBGMCU_APB2_FZ_DBG_TIM16_STOP ((uint32_t)0x00020000)
- #define DBGMCU_APB2_FZ_DBG_TIM17_STOP ((uint32_t)0x00040000)
- #define DMA_ISR_GIF1 ((uint32_t)0x00000001)
- #define DMA_ISR_TCIF1 ((uint32_t)0x00000002)
- #define DMA_ISR_HTIF1 ((uint32_t)0x00000004)
- #define DMA_ISR_TEIF1 ((uint32_t)0x00000008)
- #define DMA_ISR_GIF2 ((uint32_t)0x00000010)
- #define DMA_ISR_TCIF2 ((uint32_t)0x00000020)
- #define DMA_ISR_HTIF2 ((uint32_t)0x00000040)
- #define DMA_ISR_TEIF2 ((uint32_t)0x00000080)
- #define DMA_ISR_GIF3 ((uint32_t)0x00000100)
- #define DMA_ISR_TCIF3 ((uint32_t)0x00000200)
- #define DMA_ISR_HTIF3 ((uint32_t)0x00000400)
- #define DMA_ISR_TEIF3 ((uint32_t)0x00000800)
- #define DMA_ISR_GIF4 ((uint32_t)0x00001000)
- #define DMA_ISR_TCIF4 ((uint32_t)0x00002000)
- #define DMA_ISR_HTIF4 ((uint32_t)0x00004000)
- #define DMA_ISR_TEIF4 ((uint32_t)0x00008000)
- #define DMA_ISR_GIF5 ((uint32_t)0x00010000)
- #define DMA_ISR_TCIF5 ((uint32_t)0x00020000)
- #define DMA_ISR_HTIF5 ((uint32_t)0x00040000)
- #define DMA_ISR_TEIF5 ((uint32_t)0x00080000)
- #define DMA_IFCR_CGIF1 ((uint32_t)0x00000001)
- #define DMA_IFCR_CTCIF1 ((uint32_t)0x00000002)
- #define DMA_IFCR_CHTIF1 ((uint32_t)0x00000004)
- #define DMA_IFCR_CTEIF1 ((uint32_t)0x00000008)
- #define DMA_IFCR_CGIF2 ((uint32_t)0x00000010)
- #define DMA_IFCR_CTCIF2 ((uint32_t)0x00000020)
- #define DMA_IFCR_CHTIF2 ((uint32_t)0x00000040)
- #define DMA_IFCR_CTEIF2 ((uint32_t)0x00000080)
- #define DMA_IFCR_CGIF3 ((uint32_t)0x00000100)
- #define DMA_IFCR_CTCIF3 ((uint32_t)0x00000200)
- #define DMA_IFCR_CHTIF3 ((uint32_t)0x00000400)
- #define DMA_IFCR_CTEIF3 ((uint32_t)0x00000800)
- #define DMA_IFCR_CGIF4 ((uint32_t)0x00001000)
- #define DMA_IFCR_CTCIF4 ((uint32_t)0x00002000)
- #define DMA_IFCR_CHTIF4 ((uint32_t)0x00004000)
- #define DMA_IFCR_CTEIF4 ((uint32_t)0x00008000)
- #define DMA_IFCR_CGIF5 ((uint32_t)0x00010000)
- #define DMA_IFCR_CTCIF5 ((uint32_t)0x00020000)
- #define DMA_IFCR_CHTIF5 ((uint32_t)0x00040000)
- #define DMA_IFCR_CTEIF5 ((uint32_t)0x00080000)
- #define DMA_CCR_EN ((uint32_t)0x00000001)
- #define DMA_CCR_TCIE ((uint32_t)0x00000002)
- #define DMA_CCR_HTIE ((uint32_t)0x00000004)
- #define DMA_CCR_TEIE ((uint32_t)0x00000008)
- #define DMA_CCR_DIR ((uint32_t)0x00000010)
- #define DMA_CCR_CIRC ((uint32_t)0x00000020)
- #define DMA_CCR_PINC ((uint32_t)0x00000040)
- #define DMA_CCR_MINC ((uint32_t)0x00000080)
- #define DMA_CCR_PSIZE ((uint32_t)0x00000300)
- #define DMA_CCR_PSIZE_0 ((uint32_t)0x00000100)
- #define DMA_CCR_PSIZE_1 ((uint32_t)0x00000200)
- #define DMA_CCR_MSIZE ((uint32_t)0x00000C00)
- #define DMA_CCR_MSIZE_0 ((uint32_t)0x00000400)
- #define DMA_CCR_MSIZE_1 ((uint32_t)0x00000800)
- #define DMA_CCR_PL ((uint32_t)0x00003000)
- #define DMA_CCR_PL_0 ((uint32_t)0x00001000)
- #define DMA_CCR_PL_1 ((uint32_t)0x00002000)
- #define DMA_CCR_MEM2MEM ((uint32_t)0x00004000)
- #define DMA_CNDTR_NDT ((uint32_t)0x0000FFFF)
- #define DMA_CPAR_PA ((uint32_t)0xFFFFFFFF)
- #define DMA_CMAR_MA ((uint32_t)0xFFFFFFFF)
- #define EXTI_IMR_MR0 ((uint32_t)0x00000001)
- #define EXTI_IMR_MR1 ((uint32_t)0x00000002)
- #define EXTI_IMR_MR2 ((uint32_t)0x00000004)
- #define EXTI_IMR_MR3 ((uint32_t)0x00000008)
- #define EXTI_IMR_MR4 ((uint32_t)0x00000010)
- #define EXTI_IMR_MR5 ((uint32_t)0x00000020)
- #define EXTI_IMR_MR6 ((uint32_t)0x00000040)
- #define EXTI_IMR_MR7 ((uint32_t)0x00000080)
- #define EXTI_IMR_MR8 ((uint32_t)0x00000100)
- #define EXTI_IMR_MR9 ((uint32_t)0x00000200)
- #define EXTI_IMR_MR10 ((uint32_t)0x00000400)
- #define EXTI_IMR_MR11 ((uint32_t)0x00000800)
- #define EXTI_IMR_MR12 ((uint32_t)0x00001000)
- #define EXTI_IMR_MR13 ((uint32_t)0x00002000)
- #define EXTI_IMR_MR14 ((uint32_t)0x00004000)
- #define EXTI_IMR_MR15 ((uint32_t)0x00008000)
- #define EXTI_IMR_MR16 ((uint32_t)0x00010000)
- #define EXTI_IMR_MR17 ((uint32_t)0x00020000)
- #define EXTI_IMR_MR19 ((uint32_t)0x00080000)
- #define EXTI_IMR_MR21 ((uint32_t)0x00200000)
- #define EXTI_IMR_MR22 ((uint32_t)0x00400000)
- #define EXTI_IMR_MR23 ((uint32_t)0x00800000)
- #define EXTI_IMR_MR25 ((uint32_t)0x02000000)
- #define EXTI_IMR_MR27 ((uint32_t)0x08000000)
- #define EXTI_EMR_MR0 ((uint32_t)0x00000001)
- #define EXTI_EMR_MR1 ((uint32_t)0x00000002)
- #define EXTI_EMR_MR2 ((uint32_t)0x00000004)
- #define EXTI_EMR_MR3 ((uint32_t)0x00000008)
- #define EXTI_EMR_MR4 ((uint32_t)0x00000010)
- #define EXTI_EMR_MR5 ((uint32_t)0x00000020)
- #define EXTI_EMR_MR6 ((uint32_t)0x00000040)
- #define EXTI_EMR_MR7 ((uint32_t)0x00000080)
- #define EXTI_EMR_MR8 ((uint32_t)0x00000100)
- #define EXTI_EMR_MR9 ((uint32_t)0x00000200)
- #define EXTI_EMR_MR10 ((uint32_t)0x00000400)
- #define EXTI_EMR_MR11 ((uint32_t)0x00000800)
- #define EXTI_EMR_MR12 ((uint32_t)0x00001000)
- #define EXTI_EMR_MR13 ((uint32_t)0x00002000)
- #define EXTI_EMR_MR14 ((uint32_t)0x00004000)
- #define EXTI_EMR_MR15 ((uint32_t)0x00008000)
- #define EXTI_EMR_MR16 ((uint32_t)0x00010000)
- #define EXTI_EMR_MR17 ((uint32_t)0x00020000)
- #define EXTI_EMR_MR19 ((uint32_t)0x00080000)
- #define EXTI_EMR_MR21 ((uint32_t)0x00200000)
- #define EXTI_EMR_MR22 ((uint32_t)0x00400000)
- #define EXTI_EMR_MR23 ((uint32_t)0x00800000)
- #define EXTI_EMR_MR25 ((uint32_t)0x02000000)
- #define EXTI_EMR_MR27 ((uint32_t)0x08000000)
- #define EXTI_RTSR_TR0 ((uint32_t)0x00000001)
- #define EXTI_RTSR_TR1 ((uint32_t)0x00000002)
- #define EXTI_RTSR_TR2 ((uint32_t)0x00000004)
- #define EXTI_RTSR_TR3 ((uint32_t)0x00000008)
- #define EXTI_RTSR_TR4 ((uint32_t)0x00000010)
- #define EXTI_RTSR_TR5 ((uint32_t)0x00000020)
- #define EXTI_RTSR_TR6 ((uint32_t)0x00000040)
- #define EXTI_RTSR_TR7 ((uint32_t)0x00000080)
- #define EXTI_RTSR_TR8 ((uint32_t)0x00000100)
- #define EXTI_RTSR_TR9 ((uint32_t)0x00000200)
- #define EXTI_RTSR_TR10 ((uint32_t)0x00000400)
- #define EXTI_RTSR_TR11 ((uint32_t)0x00000800)
- #define EXTI_RTSR_TR12 ((uint32_t)0x00001000)
- #define EXTI_RTSR_TR13 ((uint32_t)0x00002000)
- #define EXTI_RTSR_TR14 ((uint32_t)0x00004000)
- #define EXTI_RTSR_TR15 ((uint32_t)0x00008000)
- #define EXTI_RTSR_TR16 ((uint32_t)0x00010000)
- #define EXTI_RTSR_TR17 ((uint32_t)0x00020000)
- #define EXTI_RTSR_TR19 ((uint32_t)0x00080000)
- #define EXTI_FTSR_TR0 ((uint32_t)0x00000001)
- #define EXTI_FTSR_TR1 ((uint32_t)0x00000002)
- #define EXTI_FTSR_TR2 ((uint32_t)0x00000004)
- #define EXTI_FTSR_TR3 ((uint32_t)0x00000008)
- #define EXTI_FTSR_TR4 ((uint32_t)0x00000010)
- #define EXTI_FTSR_TR5 ((uint32_t)0x00000020)
- #define EXTI_FTSR_TR6 ((uint32_t)0x00000040)
- #define EXTI_FTSR_TR7 ((uint32_t)0x00000080)
- #define EXTI_FTSR_TR8 ((uint32_t)0x00000100)
- #define EXTI_FTSR_TR9 ((uint32_t)0x00000200)
- #define EXTI_FTSR_TR10 ((uint32_t)0x00000400)
- #define EXTI_FTSR_TR11 ((uint32_t)0x00000800)
- #define EXTI_FTSR_TR12 ((uint32_t)0x00001000)
- #define EXTI_FTSR_TR13 ((uint32_t)0x00002000)
- #define EXTI_FTSR_TR14 ((uint32_t)0x00004000)
- #define EXTI_FTSR_TR15 ((uint32_t)0x00008000)
- #define EXTI_FTSR_TR16 ((uint32_t)0x00010000)
- #define EXTI_FTSR_TR17 ((uint32_t)0x00020000)
- #define EXTI_FTSR_TR19 ((uint32_t)0x00080000)
- #define EXTI_SWIER_SWIER0 ((uint32_t)0x00000001)
- #define EXTI_SWIER_SWIER1 ((uint32_t)0x00000002)
- #define EXTI_SWIER_SWIER2 ((uint32_t)0x00000004)
- #define EXTI_SWIER_SWIER3 ((uint32_t)0x00000008)
- #define EXTI_SWIER_SWIER4 ((uint32_t)0x00000010)
- #define EXTI_SWIER_SWIER5 ((uint32_t)0x00000020)
- #define EXTI_SWIER_SWIER6 ((uint32_t)0x00000040)
- #define EXTI_SWIER_SWIER7 ((uint32_t)0x00000080)
- #define EXTI_SWIER_SWIER8 ((uint32_t)0x00000100)
- #define EXTI_SWIER_SWIER9 ((uint32_t)0x00000200)
- #define EXTI_SWIER_SWIER10 ((uint32_t)0x00000400)
- #define EXTI_SWIER_SWIER11 ((uint32_t)0x00000800)
- #define EXTI_SWIER_SWIER12 ((uint32_t)0x00001000)
- #define EXTI_SWIER_SWIER13 ((uint32_t)0x00002000)
- #define EXTI_SWIER_SWIER14 ((uint32_t)0x00004000)
- #define EXTI_SWIER_SWIER15 ((uint32_t)0x00008000)
- #define EXTI_SWIER_SWIER16 ((uint32_t)0x00010000)
- #define EXTI_SWIER_SWIER17 ((uint32_t)0x00020000)
- #define EXTI_SWIER_SWIER19 ((uint32_t)0x00080000)
- #define EXTI_PR_PR0 ((uint32_t)0x00000001)
- #define EXTI_PR_PR1 ((uint32_t)0x00000002)
- #define EXTI_PR_PR2 ((uint32_t)0x00000004)
- #define EXTI_PR_PR3 ((uint32_t)0x00000008)
- #define EXTI_PR_PR4 ((uint32_t)0x00000010)
- #define EXTI_PR_PR5 ((uint32_t)0x00000020)
- #define EXTI_PR_PR6 ((uint32_t)0x00000040)
- #define EXTI_PR_PR7 ((uint32_t)0x00000080)
- #define EXTI_PR_PR8 ((uint32_t)0x00000100)
- #define EXTI_PR_PR9 ((uint32_t)0x00000200)
- #define EXTI_PR_PR10 ((uint32_t)0x00000400)
- #define EXTI_PR_PR11 ((uint32_t)0x00000800)
- #define EXTI_PR_PR12 ((uint32_t)0x00001000)
- #define EXTI_PR_PR13 ((uint32_t)0x00002000)
- #define EXTI_PR_PR14 ((uint32_t)0x00004000)
- #define EXTI_PR_PR15 ((uint32_t)0x00008000)
- #define EXTI_PR_PR16 ((uint32_t)0x00010000)
- #define EXTI_PR_PR17 ((uint32_t)0x00020000)
- #define EXTI_PR_PR19 ((uint32_t)0x00080000)
- #define FLASH_ACR_LATENCY ((uint32_t)0x00000001)
- #define FLASH_ACR_PRFTBE ((uint32_t)0x00000010)
- #define FLASH_ACR_PRFTBS ((uint32_t)0x00000020)
- #define FLASH_KEYR_FKEYR ((uint32_t)0xFFFFFFFF)
- #define FLASH_OPTKEYR_OPTKEYR ((uint32_t)0xFFFFFFFF)
- #define FLASH_FKEY1 ((uint32_t)0x45670123)
- #define FLASH_FKEY2 ((uint32_t)0xCDEF89AB)
-
- #define FLASH_OPTKEY1 ((uint32_t)0x45670123)
- #define FLASH_OPTKEY2 ((uint32_t)0xCDEF89AB)
- #define FLASH_SR_BSY ((uint32_t)0x00000001)
- #define FLASH_SR_PGERR ((uint32_t)0x00000004)
- #define FLASH_SR_WRPERR ((uint32_t)0x00000010)
- #define FLASH_SR_EOP ((uint32_t)0x00000020)
- #define FLASH_CR_PG ((uint32_t)0x00000001)
- #define FLASH_CR_PER ((uint32_t)0x00000002)
- #define FLASH_CR_MER ((uint32_t)0x00000004)
- #define FLASH_CR_OPTPG ((uint32_t)0x00000010)
- #define FLASH_CR_OPTER ((uint32_t)0x00000020)
- #define FLASH_CR_STRT ((uint32_t)0x00000040)
- #define FLASH_CR_LOCK ((uint32_t)0x00000080)
- #define FLASH_CR_OPTWRE ((uint32_t)0x00000200)
- #define FLASH_CR_ERRIE ((uint32_t)0x00000400)
- #define FLASH_CR_EOPIE ((uint32_t)0x00001000)
- #define FLASH_CR_OBL_LAUNCH ((uint32_t)0x00002000)
- #define FLASH_AR_FAR ((uint32_t)0xFFFFFFFF)
- #define FLASH_OBR_OPTERR ((uint32_t)0x00000001)
- #define FLASH_OBR_RDPRT1 ((uint32_t)0x00000002)
- #define FLASH_OBR_RDPRT2 ((uint32_t)0x00000004)
- #define FLASH_OBR_USER ((uint32_t)0x00003700)
- #define FLASH_OBR_IWDG_SW ((uint32_t)0x00000100)
- #define FLASH_OBR_nRST_STOP ((uint32_t)0x00000200)
- #define FLASH_OBR_nRST_STDBY ((uint32_t)0x00000400)
- #define FLASH_OBR_nBOOT1 ((uint32_t)0x00001000)
- #define FLASH_OBR_VDDA_MONITOR ((uint32_t)0x00002000)
- #define FLASH_OBR_BOOT1 FLASH_OBR_nBOOT1
- #define FLASH_OBR_VDDA_ANALOG FLASH_OBR_VDDA_MONITOR
- #define FLASH_WRPR_WRP ((uint32_t)0x0000FFFF)
- #define OB_RDP_RDP ((uint32_t)0x000000FF)
- #define OB_RDP_nRDP ((uint32_t)0x0000FF00)
- #define OB_USER_USER ((uint32_t)0x00FF0000)
- #define OB_USER_nUSER ((uint32_t)0xFF000000)
- #define OB_WRP0_WRP0 ((uint32_t)0x000000FF)
- #define OB_WRP0_nWRP0 ((uint32_t)0x0000FF00)
- #define OB_WRP1_WRP1 ((uint32_t)0x00FF0000)
- #define OB_WRP1_nWRP1 ((uint32_t)0xFF000000)
- #define GPIO_MODER_MODER0 ((uint32_t)0x00000003)
- #define GPIO_MODER_MODER0_0 ((uint32_t)0x00000001)
- #define GPIO_MODER_MODER0_1 ((uint32_t)0x00000002)
- #define GPIO_MODER_MODER1 ((uint32_t)0x0000000C)
- #define GPIO_MODER_MODER1_0 ((uint32_t)0x00000004)
- #define GPIO_MODER_MODER1_1 ((uint32_t)0x00000008)
- #define GPIO_MODER_MODER2 ((uint32_t)0x00000030)
- #define GPIO_MODER_MODER2_0 ((uint32_t)0x00000010)
- #define GPIO_MODER_MODER2_1 ((uint32_t)0x00000020)
- #define GPIO_MODER_MODER3 ((uint32_t)0x000000C0)
- #define GPIO_MODER_MODER3_0 ((uint32_t)0x00000040)
- #define GPIO_MODER_MODER3_1 ((uint32_t)0x00000080)
- #define GPIO_MODER_MODER4 ((uint32_t)0x00000300)
- #define GPIO_MODER_MODER4_0 ((uint32_t)0x00000100)
- #define GPIO_MODER_MODER4_1 ((uint32_t)0x00000200)
- #define GPIO_MODER_MODER5 ((uint32_t)0x00000C00)
- #define GPIO_MODER_MODER5_0 ((uint32_t)0x00000400)
- #define GPIO_MODER_MODER5_1 ((uint32_t)0x00000800)
- #define GPIO_MODER_MODER6 ((uint32_t)0x00003000)
- #define GPIO_MODER_MODER6_0 ((uint32_t)0x00001000)
- #define GPIO_MODER_MODER6_1 ((uint32_t)0x00002000)
- #define GPIO_MODER_MODER7 ((uint32_t)0x0000C000)
- #define GPIO_MODER_MODER7_0 ((uint32_t)0x00004000)
- #define GPIO_MODER_MODER7_1 ((uint32_t)0x00008000)
- #define GPIO_MODER_MODER8 ((uint32_t)0x00030000)
- #define GPIO_MODER_MODER8_0 ((uint32_t)0x00010000)
- #define GPIO_MODER_MODER8_1 ((uint32_t)0x00020000)
- #define GPIO_MODER_MODER9 ((uint32_t)0x000C0000)
- #define GPIO_MODER_MODER9_0 ((uint32_t)0x00040000)
- #define GPIO_MODER_MODER9_1 ((uint32_t)0x00080000)
- #define GPIO_MODER_MODER10 ((uint32_t)0x00300000)
- #define GPIO_MODER_MODER10_0 ((uint32_t)0x00100000)
- #define GPIO_MODER_MODER10_1 ((uint32_t)0x00200000)
- #define GPIO_MODER_MODER11 ((uint32_t)0x00C00000)
- #define GPIO_MODER_MODER11_0 ((uint32_t)0x00400000)
- #define GPIO_MODER_MODER11_1 ((uint32_t)0x00800000)
- #define GPIO_MODER_MODER12 ((uint32_t)0x03000000)
- #define GPIO_MODER_MODER12_0 ((uint32_t)0x01000000)
- #define GPIO_MODER_MODER12_1 ((uint32_t)0x02000000)
- #define GPIO_MODER_MODER13 ((uint32_t)0x0C000000)
- #define GPIO_MODER_MODER13_0 ((uint32_t)0x04000000)
- #define GPIO_MODER_MODER13_1 ((uint32_t)0x08000000)
- #define GPIO_MODER_MODER14 ((uint32_t)0x30000000)
- #define GPIO_MODER_MODER14_0 ((uint32_t)0x10000000)
- #define GPIO_MODER_MODER14_1 ((uint32_t)0x20000000)
- #define GPIO_MODER_MODER15 ((uint32_t)0xC0000000)
- #define GPIO_MODER_MODER15_0 ((uint32_t)0x40000000)
- #define GPIO_MODER_MODER15_1 ((uint32_t)0x80000000)
- #define GPIO_OTYPER_OT_0 ((uint32_t)0x00000001)
- #define GPIO_OTYPER_OT_1 ((uint32_t)0x00000002)
- #define GPIO_OTYPER_OT_2 ((uint32_t)0x00000004)
- #define GPIO_OTYPER_OT_3 ((uint32_t)0x00000008)
- #define GPIO_OTYPER_OT_4 ((uint32_t)0x00000010)
- #define GPIO_OTYPER_OT_5 ((uint32_t)0x00000020)
- #define GPIO_OTYPER_OT_6 ((uint32_t)0x00000040)
- #define GPIO_OTYPER_OT_7 ((uint32_t)0x00000080)
- #define GPIO_OTYPER_OT_8 ((uint32_t)0x00000100)
- #define GPIO_OTYPER_OT_9 ((uint32_t)0x00000200)
- #define GPIO_OTYPER_OT_10 ((uint32_t)0x00000400)
- #define GPIO_OTYPER_OT_11 ((uint32_t)0x00000800)
- #define GPIO_OTYPER_OT_12 ((uint32_t)0x00001000)
- #define GPIO_OTYPER_OT_13 ((uint32_t)0x00002000)
- #define GPIO_OTYPER_OT_14 ((uint32_t)0x00004000)
- #define GPIO_OTYPER_OT_15 ((uint32_t)0x00008000)
- #define GPIO_OSPEEDER_OSPEEDR0 ((uint32_t)0x00000003)
- #define GPIO_OSPEEDER_OSPEEDR0_0 ((uint32_t)0x00000001)
- #define GPIO_OSPEEDER_OSPEEDR0_1 ((uint32_t)0x00000002)
- #define GPIO_OSPEEDER_OSPEEDR1 ((uint32_t)0x0000000C)
- #define GPIO_OSPEEDER_OSPEEDR1_0 ((uint32_t)0x00000004)
- #define GPIO_OSPEEDER_OSPEEDR1_1 ((uint32_t)0x00000008)
- #define GPIO_OSPEEDER_OSPEEDR2 ((uint32_t)0x00000030)
- #define GPIO_OSPEEDER_OSPEEDR2_0 ((uint32_t)0x00000010)
- #define GPIO_OSPEEDER_OSPEEDR2_1 ((uint32_t)0x00000020)
- #define GPIO_OSPEEDER_OSPEEDR3 ((uint32_t)0x000000C0)
- #define GPIO_OSPEEDER_OSPEEDR3_0 ((uint32_t)0x00000040)
- #define GPIO_OSPEEDER_OSPEEDR3_1 ((uint32_t)0x00000080)
- #define GPIO_OSPEEDER_OSPEEDR4 ((uint32_t)0x00000300)
- #define GPIO_OSPEEDER_OSPEEDR4_0 ((uint32_t)0x00000100)
- #define GPIO_OSPEEDER_OSPEEDR4_1 ((uint32_t)0x00000200)
- #define GPIO_OSPEEDER_OSPEEDR5 ((uint32_t)0x00000C00)
- #define GPIO_OSPEEDER_OSPEEDR5_0 ((uint32_t)0x00000400)
- #define GPIO_OSPEEDER_OSPEEDR5_1 ((uint32_t)0x00000800)
- #define GPIO_OSPEEDER_OSPEEDR6 ((uint32_t)0x00003000)
- #define GPIO_OSPEEDER_OSPEEDR6_0 ((uint32_t)0x00001000)
- #define GPIO_OSPEEDER_OSPEEDR6_1 ((uint32_t)0x00002000)
- #define GPIO_OSPEEDER_OSPEEDR7 ((uint32_t)0x0000C000)
- #define GPIO_OSPEEDER_OSPEEDR7_0 ((uint32_t)0x00004000)
- #define GPIO_OSPEEDER_OSPEEDR7_1 ((uint32_t)0x00008000)
- #define GPIO_OSPEEDER_OSPEEDR8 ((uint32_t)0x00030000)
- #define GPIO_OSPEEDER_OSPEEDR8_0 ((uint32_t)0x00010000)
- #define GPIO_OSPEEDER_OSPEEDR8_1 ((uint32_t)0x00020000)
- #define GPIO_OSPEEDER_OSPEEDR9 ((uint32_t)0x000C0000)
- #define GPIO_OSPEEDER_OSPEEDR9_0 ((uint32_t)0x00040000)
- #define GPIO_OSPEEDER_OSPEEDR9_1 ((uint32_t)0x00080000)
- #define GPIO_OSPEEDER_OSPEEDR10 ((uint32_t)0x00300000)
- #define GPIO_OSPEEDER_OSPEEDR10_0 ((uint32_t)0x00100000)
- #define GPIO_OSPEEDER_OSPEEDR10_1 ((uint32_t)0x00200000)
- #define GPIO_OSPEEDER_OSPEEDR11 ((uint32_t)0x00C00000)
- #define GPIO_OSPEEDER_OSPEEDR11_0 ((uint32_t)0x00400000)
- #define GPIO_OSPEEDER_OSPEEDR11_1 ((uint32_t)0x00800000)
- #define GPIO_OSPEEDER_OSPEEDR12 ((uint32_t)0x03000000)
- #define GPIO_OSPEEDER_OSPEEDR12_0 ((uint32_t)0x01000000)
- #define GPIO_OSPEEDER_OSPEEDR12_1 ((uint32_t)0x02000000)
- #define GPIO_OSPEEDER_OSPEEDR13 ((uint32_t)0x0C000000)
- #define GPIO_OSPEEDER_OSPEEDR13_0 ((uint32_t)0x04000000)
- #define GPIO_OSPEEDER_OSPEEDR13_1 ((uint32_t)0x08000000)
- #define GPIO_OSPEEDER_OSPEEDR14 ((uint32_t)0x30000000)
- #define GPIO_OSPEEDER_OSPEEDR14_0 ((uint32_t)0x10000000)
- #define GPIO_OSPEEDER_OSPEEDR14_1 ((uint32_t)0x20000000)
- #define GPIO_OSPEEDER_OSPEEDR15 ((uint32_t)0xC0000000)
- #define GPIO_OSPEEDER_OSPEEDR15_0 ((uint32_t)0x40000000)
- #define GPIO_OSPEEDER_OSPEEDR15_1 ((uint32_t)0x80000000)
- #define GPIO_PUPDR_PUPDR0 ((uint32_t)0x00000003)
- #define GPIO_PUPDR_PUPDR0_0 ((uint32_t)0x00000001)
- #define GPIO_PUPDR_PUPDR0_1 ((uint32_t)0x00000002)
- #define GPIO_PUPDR_PUPDR1 ((uint32_t)0x0000000C)
- #define GPIO_PUPDR_PUPDR1_0 ((uint32_t)0x00000004)
- #define GPIO_PUPDR_PUPDR1_1 ((uint32_t)0x00000008)
- #define GPIO_PUPDR_PUPDR2 ((uint32_t)0x00000030)
- #define GPIO_PUPDR_PUPDR2_0 ((uint32_t)0x00000010)
- #define GPIO_PUPDR_PUPDR2_1 ((uint32_t)0x00000020)
- #define GPIO_PUPDR_PUPDR3 ((uint32_t)0x000000C0)
- #define GPIO_PUPDR_PUPDR3_0 ((uint32_t)0x00000040)
- #define GPIO_PUPDR_PUPDR3_1 ((uint32_t)0x00000080)
- #define GPIO_PUPDR_PUPDR4 ((uint32_t)0x00000300)
- #define GPIO_PUPDR_PUPDR4_0 ((uint32_t)0x00000100)
- #define GPIO_PUPDR_PUPDR4_1 ((uint32_t)0x00000200)
- #define GPIO_PUPDR_PUPDR5 ((uint32_t)0x00000C00)
- #define GPIO_PUPDR_PUPDR5_0 ((uint32_t)0x00000400)
- #define GPIO_PUPDR_PUPDR5_1 ((uint32_t)0x00000800)
- #define GPIO_PUPDR_PUPDR6 ((uint32_t)0x00003000)
- #define GPIO_PUPDR_PUPDR6_0 ((uint32_t)0x00001000)
- #define GPIO_PUPDR_PUPDR6_1 ((uint32_t)0x00002000)
- #define GPIO_PUPDR_PUPDR7 ((uint32_t)0x0000C000)
- #define GPIO_PUPDR_PUPDR7_0 ((uint32_t)0x00004000)
- #define GPIO_PUPDR_PUPDR7_1 ((uint32_t)0x00008000)
- #define GPIO_PUPDR_PUPDR8 ((uint32_t)0x00030000)
- #define GPIO_PUPDR_PUPDR8_0 ((uint32_t)0x00010000)
- #define GPIO_PUPDR_PUPDR8_1 ((uint32_t)0x00020000)
- #define GPIO_PUPDR_PUPDR9 ((uint32_t)0x000C0000)
- #define GPIO_PUPDR_PUPDR9_0 ((uint32_t)0x00040000)
- #define GPIO_PUPDR_PUPDR9_1 ((uint32_t)0x00080000)
- #define GPIO_PUPDR_PUPDR10 ((uint32_t)0x00300000)
- #define GPIO_PUPDR_PUPDR10_0 ((uint32_t)0x00100000)
- #define GPIO_PUPDR_PUPDR10_1 ((uint32_t)0x00200000)
- #define GPIO_PUPDR_PUPDR11 ((uint32_t)0x00C00000)
- #define GPIO_PUPDR_PUPDR11_0 ((uint32_t)0x00400000)
- #define GPIO_PUPDR_PUPDR11_1 ((uint32_t)0x00800000)
- #define GPIO_PUPDR_PUPDR12 ((uint32_t)0x03000000)
- #define GPIO_PUPDR_PUPDR12_0 ((uint32_t)0x01000000)
- #define GPIO_PUPDR_PUPDR12_1 ((uint32_t)0x02000000)
- #define GPIO_PUPDR_PUPDR13 ((uint32_t)0x0C000000)
- #define GPIO_PUPDR_PUPDR13_0 ((uint32_t)0x04000000)
- #define GPIO_PUPDR_PUPDR13_1 ((uint32_t)0x08000000)
- #define GPIO_PUPDR_PUPDR14 ((uint32_t)0x30000000)
- #define GPIO_PUPDR_PUPDR14_0 ((uint32_t)0x10000000)
- #define GPIO_PUPDR_PUPDR14_1 ((uint32_t)0x20000000)
- #define GPIO_PUPDR_PUPDR15 ((uint32_t)0xC0000000)
- #define GPIO_PUPDR_PUPDR15_0 ((uint32_t)0x40000000)
- #define GPIO_PUPDR_PUPDR15_1 ((uint32_t)0x80000000)
- #define GPIO_IDR_0 ((uint32_t)0x00000001)
- #define GPIO_IDR_1 ((uint32_t)0x00000002)
- #define GPIO_IDR_2 ((uint32_t)0x00000004)
- #define GPIO_IDR_3 ((uint32_t)0x00000008)
- #define GPIO_IDR_4 ((uint32_t)0x00000010)
- #define GPIO_IDR_5 ((uint32_t)0x00000020)
- #define GPIO_IDR_6 ((uint32_t)0x00000040)
- #define GPIO_IDR_7 ((uint32_t)0x00000080)
- #define GPIO_IDR_8 ((uint32_t)0x00000100)
- #define GPIO_IDR_9 ((uint32_t)0x00000200)
- #define GPIO_IDR_10 ((uint32_t)0x00000400)
- #define GPIO_IDR_11 ((uint32_t)0x00000800)
- #define GPIO_IDR_12 ((uint32_t)0x00001000)
- #define GPIO_IDR_13 ((uint32_t)0x00002000)
- #define GPIO_IDR_14 ((uint32_t)0x00004000)
- #define GPIO_IDR_15 ((uint32_t)0x00008000)
- #define GPIO_ODR_0 ((uint32_t)0x00000001)
- #define GPIO_ODR_1 ((uint32_t)0x00000002)
- #define GPIO_ODR_2 ((uint32_t)0x00000004)
- #define GPIO_ODR_3 ((uint32_t)0x00000008)
- #define GPIO_ODR_4 ((uint32_t)0x00000010)
- #define GPIO_ODR_5 ((uint32_t)0x00000020)
- #define GPIO_ODR_6 ((uint32_t)0x00000040)
- #define GPIO_ODR_7 ((uint32_t)0x00000080)
- #define GPIO_ODR_8 ((uint32_t)0x00000100)
- #define GPIO_ODR_9 ((uint32_t)0x00000200)
- #define GPIO_ODR_10 ((uint32_t)0x00000400)
- #define GPIO_ODR_11 ((uint32_t)0x00000800)
- #define GPIO_ODR_12 ((uint32_t)0x00001000)
- #define GPIO_ODR_13 ((uint32_t)0x00002000)
- #define GPIO_ODR_14 ((uint32_t)0x00004000)
- #define GPIO_ODR_15 ((uint32_t)0x00008000)
- #define GPIO_BSRR_BS_0 ((uint32_t)0x00000001)
- #define GPIO_BSRR_BS_1 ((uint32_t)0x00000002)
- #define GPIO_BSRR_BS_2 ((uint32_t)0x00000004)
- #define GPIO_BSRR_BS_3 ((uint32_t)0x00000008)
- #define GPIO_BSRR_BS_4 ((uint32_t)0x00000010)
- #define GPIO_BSRR_BS_5 ((uint32_t)0x00000020)
- #define GPIO_BSRR_BS_6 ((uint32_t)0x00000040)
- #define GPIO_BSRR_BS_7 ((uint32_t)0x00000080)
- #define GPIO_BSRR_BS_8 ((uint32_t)0x00000100)
- #define GPIO_BSRR_BS_9 ((uint32_t)0x00000200)
- #define GPIO_BSRR_BS_10 ((uint32_t)0x00000400)
- #define GPIO_BSRR_BS_11 ((uint32_t)0x00000800)
- #define GPIO_BSRR_BS_12 ((uint32_t)0x00001000)
- #define GPIO_BSRR_BS_13 ((uint32_t)0x00002000)
- #define GPIO_BSRR_BS_14 ((uint32_t)0x00004000)
- #define GPIO_BSRR_BS_15 ((uint32_t)0x00008000)
- #define GPIO_BSRR_BR_0 ((uint32_t)0x00010000)
- #define GPIO_BSRR_BR_1 ((uint32_t)0x00020000)
- #define GPIO_BSRR_BR_2 ((uint32_t)0x00040000)
- #define GPIO_BSRR_BR_3 ((uint32_t)0x00080000)
- #define GPIO_BSRR_BR_4 ((uint32_t)0x00100000)
- #define GPIO_BSRR_BR_5 ((uint32_t)0x00200000)
- #define GPIO_BSRR_BR_6 ((uint32_t)0x00400000)
- #define GPIO_BSRR_BR_7 ((uint32_t)0x00800000)
- #define GPIO_BSRR_BR_8 ((uint32_t)0x01000000)
- #define GPIO_BSRR_BR_9 ((uint32_t)0x02000000)
- #define GPIO_BSRR_BR_10 ((uint32_t)0x04000000)
- #define GPIO_BSRR_BR_11 ((uint32_t)0x08000000)
- #define GPIO_BSRR_BR_12 ((uint32_t)0x10000000)
- #define GPIO_BSRR_BR_13 ((uint32_t)0x20000000)
- #define GPIO_BSRR_BR_14 ((uint32_t)0x40000000)
- #define GPIO_BSRR_BR_15 ((uint32_t)0x80000000)
- #define GPIO_LCKR_LCK0 ((uint32_t)0x00000001)
- #define GPIO_LCKR_LCK1 ((uint32_t)0x00000002)
- #define GPIO_LCKR_LCK2 ((uint32_t)0x00000004)
- #define GPIO_LCKR_LCK3 ((uint32_t)0x00000008)
- #define GPIO_LCKR_LCK4 ((uint32_t)0x00000010)
- #define GPIO_LCKR_LCK5 ((uint32_t)0x00000020)
- #define GPIO_LCKR_LCK6 ((uint32_t)0x00000040)
- #define GPIO_LCKR_LCK7 ((uint32_t)0x00000080)
- #define GPIO_LCKR_LCK8 ((uint32_t)0x00000100)
- #define GPIO_LCKR_LCK9 ((uint32_t)0x00000200)
- #define GPIO_LCKR_LCK10 ((uint32_t)0x00000400)
- #define GPIO_LCKR_LCK11 ((uint32_t)0x00000800)
- #define GPIO_LCKR_LCK12 ((uint32_t)0x00001000)
- #define GPIO_LCKR_LCK13 ((uint32_t)0x00002000)
- #define GPIO_LCKR_LCK14 ((uint32_t)0x00004000)
- #define GPIO_LCKR_LCK15 ((uint32_t)0x00008000)
- #define GPIO_LCKR_LCKK ((uint32_t)0x00010000)
- #define GPIO_AFRL_AFRL0 ((uint32_t)0x0000000F)
- #define GPIO_AFRL_AFRL1 ((uint32_t)0x000000F0)
- #define GPIO_AFRL_AFRL2 ((uint32_t)0x00000F00)
- #define GPIO_AFRL_AFRL3 ((uint32_t)0x0000F000)
- #define GPIO_AFRL_AFRL4 ((uint32_t)0x000F0000)
- #define GPIO_AFRL_AFRL5 ((uint32_t)0x00F00000)
- #define GPIO_AFRL_AFRL6 ((uint32_t)0x0F000000)
- #define GPIO_AFRL_AFRL7 ((uint32_t)0xF0000000)
- #define GPIO_AFRH_AFRH0 ((uint32_t)0x0000000F)
- #define GPIO_AFRH_AFRH1 ((uint32_t)0x000000F0)
- #define GPIO_AFRH_AFRH2 ((uint32_t)0x00000F00)
- #define GPIO_AFRH_AFRH3 ((uint32_t)0x0000F000)
- #define GPIO_AFRH_AFRH4 ((uint32_t)0x000F0000)
- #define GPIO_AFRH_AFRH5 ((uint32_t)0x00F00000)
- #define GPIO_AFRH_AFRH6 ((uint32_t)0x0F000000)
- #define GPIO_AFRH_AFRH7 ((uint32_t)0xF0000000)
- #define GPIO_BRR_BR_0 ((uint32_t)0x00000001)
- #define GPIO_BRR_BR_1 ((uint32_t)0x00000002)
- #define GPIO_BRR_BR_2 ((uint32_t)0x00000004)
- #define GPIO_BRR_BR_3 ((uint32_t)0x00000008)
- #define GPIO_BRR_BR_4 ((uint32_t)0x00000010)
- #define GPIO_BRR_BR_5 ((uint32_t)0x00000020)
- #define GPIO_BRR_BR_6 ((uint32_t)0x00000040)
- #define GPIO_BRR_BR_7 ((uint32_t)0x00000080)
- #define GPIO_BRR_BR_8 ((uint32_t)0x00000100)
- #define GPIO_BRR_BR_9 ((uint32_t)0x00000200)
- #define GPIO_BRR_BR_10 ((uint32_t)0x00000400)
- #define GPIO_BRR_BR_11 ((uint32_t)0x00000800)
- #define GPIO_BRR_BR_12 ((uint32_t)0x00001000)
- #define GPIO_BRR_BR_13 ((uint32_t)0x00002000)
- #define GPIO_BRR_BR_14 ((uint32_t)0x00004000)
- #define GPIO_BRR_BR_15 ((uint32_t)0x00008000)
- #define I2C_CR1_PE ((uint32_t)0x00000001)
- #define I2C_CR1_TXIE ((uint32_t)0x00000002)
- #define I2C_CR1_RXIE ((uint32_t)0x00000004)
- #define I2C_CR1_ADDRIE ((uint32_t)0x00000008)
- #define I2C_CR1_NACKIE ((uint32_t)0x00000010)
- #define I2C_CR1_STOPIE ((uint32_t)0x00000020)
- #define I2C_CR1_TCIE ((uint32_t)0x00000040)
- #define I2C_CR1_ERRIE ((uint32_t)0x00000080)
- #define I2C_CR1_DFN ((uint32_t)0x00000F00)
- #define I2C_CR1_ANFOFF ((uint32_t)0x00001000)
- #define I2C_CR1_SWRST ((uint32_t)0x00002000)
- #define I2C_CR1_TXDMAEN ((uint32_t)0x00004000)
- #define I2C_CR1_RXDMAEN ((uint32_t)0x00008000)
- #define I2C_CR1_SBC ((uint32_t)0x00010000)
- #define I2C_CR1_NOSTRETCH ((uint32_t)0x00020000)
- #define I2C_CR1_WUPEN ((uint32_t)0x00040000)
- #define I2C_CR1_GCEN ((uint32_t)0x00080000)
- #define I2C_CR1_SMBHEN ((uint32_t)0x00100000)
- #define I2C_CR1_SMBDEN ((uint32_t)0x00200000)
- #define I2C_CR1_ALERTEN ((uint32_t)0x00400000)
- #define I2C_CR1_PECEN ((uint32_t)0x00800000)
- #define I2C_CR2_SADD ((uint32_t)0x000003FF)
- #define I2C_CR2_RD_WRN ((uint32_t)0x00000400)
- #define I2C_CR2_ADD10 ((uint32_t)0x00000800)
- #define I2C_CR2_HEAD10R ((uint32_t)0x00001000)
- #define I2C_CR2_START ((uint32_t)0x00002000)
- #define I2C_CR2_STOP ((uint32_t)0x00004000)
- #define I2C_CR2_NACK ((uint32_t)0x00008000)
- #define I2C_CR2_NBYTES ((uint32_t)0x00FF0000)
- #define I2C_CR2_RELOAD ((uint32_t)0x01000000)
- #define I2C_CR2_AUTOEND ((uint32_t)0x02000000)
- #define I2C_CR2_PECBYTE ((uint32_t)0x04000000)
- #define I2C_OAR1_OA1 ((uint32_t)0x000003FF)
- #define I2C_OAR1_OA1MODE ((uint32_t)0x00000400)
- #define I2C_OAR1_OA1EN ((uint32_t)0x00008000)
- #define I2C_OAR2_OA2 ((uint32_t)0x000000FE)
- #define I2C_OAR2_OA2MSK ((uint32_t)0x00000700)
- #define I2C_OAR2_OA2EN ((uint32_t)0x00008000)
- #define I2C_TIMINGR_SCLL ((uint32_t)0x000000FF)
- #define I2C_TIMINGR_SCLH ((uint32_t)0x0000FF00)
- #define I2C_TIMINGR_SDADEL ((uint32_t)0x000F0000)
- #define I2C_TIMINGR_SCLDEL ((uint32_t)0x00F00000)
- #define I2C_TIMINGR_PRESC ((uint32_t)0xF0000000)
- #define I2C_TIMEOUTR_TIMEOUTA ((uint32_t)0x00000FFF)
- #define I2C_TIMEOUTR_TIDLE ((uint32_t)0x00001000)
- #define I2C_TIMEOUTR_TIMOUTEN ((uint32_t)0x00008000)
- #define I2C_TIMEOUTR_TIMEOUTB ((uint32_t)0x0FFF0000)
- #define I2C_TIMEOUTR_TEXTEN ((uint32_t)0x80000000)
- #define I2C_ISR_TXE ((uint32_t)0x00000001)
- #define I2C_ISR_TXIS ((uint32_t)0x00000002)
- #define I2C_ISR_RXNE ((uint32_t)0x00000004)
- #define I2C_ISR_ADDR ((uint32_t)0x00000008)
- #define I2C_ISR_NACKF ((uint32_t)0x00000010)
- #define I2C_ISR_STOPF ((uint32_t)0x00000020)
- #define I2C_ISR_TC ((uint32_t)0x00000040)
- #define I2C_ISR_TCR ((uint32_t)0x00000080)
- #define I2C_ISR_BERR ((uint32_t)0x00000100)
- #define I2C_ISR_ARLO ((uint32_t)0x00000200)
- #define I2C_ISR_OVR ((uint32_t)0x00000400)
- #define I2C_ISR_PECERR ((uint32_t)0x00000800)
- #define I2C_ISR_TIMEOUT ((uint32_t)0x00001000)
- #define I2C_ISR_ALERT ((uint32_t)0x00002000)
- #define I2C_ISR_BUSY ((uint32_t)0x00008000)
- #define I2C_ISR_DIR ((uint32_t)0x00010000)
- #define I2C_ISR_ADDCODE ((uint32_t)0x00FE0000)
- #define I2C_ICR_ADDRCF ((uint32_t)0x00000008)
- #define I2C_ICR_NACKCF ((uint32_t)0x00000010)
- #define I2C_ICR_STOPCF ((uint32_t)0x00000020)
- #define I2C_ICR_BERRCF ((uint32_t)0x00000100)
- #define I2C_ICR_ARLOCF ((uint32_t)0x00000200)
- #define I2C_ICR_OVRCF ((uint32_t)0x00000400)
- #define I2C_ICR_PECCF ((uint32_t)0x00000800)
- #define I2C_ICR_TIMOUTCF ((uint32_t)0x00001000)
- #define I2C_ICR_ALERTCF ((uint32_t)0x00002000)
- #define I2C_PECR_PEC ((uint32_t)0x000000FF)
- #define I2C_RXDR_RXDATA ((uint32_t)0x000000FF)
- #define I2C_TXDR_TXDATA ((uint32_t)0x000000FF)
- #define IWDG_KR_KEY ((uint16_t)0xFFFF)
- #define IWDG_PR_PR ((uint8_t)0x07)
- #define IWDG_PR_PR_0 ((uint8_t)0x01)
- #define IWDG_PR_PR_1 ((uint8_t)0x02)
- #define IWDG_PR_PR_2 ((uint8_t)0x04)
- #define IWDG_RLR_RL ((uint16_t)0x0FFF)
- #define IWDG_SR_PVU ((uint8_t)0x01)
- #define IWDG_SR_RVU ((uint8_t)0x02)
- #define IWDG_SR_WVU ((uint8_t)0x04)
- #define IWDG_WINR_WIN ((uint16_t)0x0FFF)
- #define PWR_CR_LPSDSR ((uint16_t)0x0001)
- #define PWR_CR_PDDS ((uint16_t)0x0002)
- #define PWR_CR_CWUF ((uint16_t)0x0004)
- #define PWR_CR_CSBF ((uint16_t)0x0008)
- #define PWR_CR_PVDE ((uint16_t)0x0010)
- #define PWR_CR_PLS ((uint16_t)0x00E0)
- #define PWR_CR_PLS_0 ((uint16_t)0x0020)
- #define PWR_CR_PLS_1 ((uint16_t)0x0040)
- #define PWR_CR_PLS_2 ((uint16_t)0x0080)
- #define PWR_CR_PLS_LEV0 ((uint16_t)0x0000)
- #define PWR_CR_PLS_LEV1 ((uint16_t)0x0020)
- #define PWR_CR_PLS_LEV2 ((uint16_t)0x0040)
- #define PWR_CR_PLS_LEV3 ((uint16_t)0x0060)
- #define PWR_CR_PLS_LEV4 ((uint16_t)0x0080)
- #define PWR_CR_PLS_LEV5 ((uint16_t)0x00A0)
- #define PWR_CR_PLS_LEV6 ((uint16_t)0x00C0)
- #define PWR_CR_PLS_LEV7 ((uint16_t)0x00E0)
- #define PWR_CR_DBP ((uint16_t)0x0100)
- #define PWR_CSR_WUF ((uint16_t)0x0001)
- #define PWR_CSR_SBF ((uint16_t)0x0002)
- #define PWR_CSR_PVDO ((uint16_t)0x0004)
- #define PWR_CSR_VREFINTRDYF ((uint16_t)0x0008)
- #define PWR_CSR_EWUP1 ((uint16_t)0x0100)
- #define PWR_CSR_EWUP2 ((uint16_t)0x0200)
- #define RCC_CR_HSION ((uint32_t)0x00000001)
- #define RCC_CR_HSIRDY ((uint32_t)0x00000002)
- #define RCC_CR_HSITRIM ((uint32_t)0x000000F8)
- #define RCC_CR_HSICAL ((uint32_t)0x0000FF00)
- #define RCC_CR_HSEON ((uint32_t)0x00010000)
- #define RCC_CR_HSERDY ((uint32_t)0x00020000)
- #define RCC_CR_HSEBYP ((uint32_t)0x00040000)
- #define RCC_CR_CSSON ((uint32_t)0x00080000)
- #define RCC_CR_PLLON ((uint32_t)0x01000000)
- #define RCC_CR_PLLRDY ((uint32_t)0x02000000)
- #define RCC_CFGR_SW ((uint32_t)0x00000003)
- #define RCC_CFGR_SW_0 ((uint32_t)0x00000001)
- #define RCC_CFGR_SW_1 ((uint32_t)0x00000002)
- #define RCC_CFGR_SW_HSI ((uint32_t)0x00000000)
- #define RCC_CFGR_SW_HSE ((uint32_t)0x00000001)
- #define RCC_CFGR_SW_PLL ((uint32_t)0x00000002)
- #define RCC_CFGR_SWS ((uint32_t)0x0000000C)
- #define RCC_CFGR_SWS_0 ((uint32_t)0x00000004)
- #define RCC_CFGR_SWS_1 ((uint32_t)0x00000008)
- #define RCC_CFGR_SWS_HSI ((uint32_t)0x00000000)
- #define RCC_CFGR_SWS_HSE ((uint32_t)0x00000004)
- #define RCC_CFGR_SWS_PLL ((uint32_t)0x00000008)
- #define RCC_CFGR_HPRE ((uint32_t)0x000000F0)
- #define RCC_CFGR_HPRE_0 ((uint32_t)0x00000010)
- #define RCC_CFGR_HPRE_1 ((uint32_t)0x00000020)
- #define RCC_CFGR_HPRE_2 ((uint32_t)0x00000040)
- #define RCC_CFGR_HPRE_3 ((uint32_t)0x00000080)
- #define RCC_CFGR_HPRE_DIV1 ((uint32_t)0x00000000)
- #define RCC_CFGR_HPRE_DIV2 ((uint32_t)0x00000080)
- #define RCC_CFGR_HPRE_DIV4 ((uint32_t)0x00000090)
- #define RCC_CFGR_HPRE_DIV8 ((uint32_t)0x000000A0)
- #define RCC_CFGR_HPRE_DIV16 ((uint32_t)0x000000B0)
- #define RCC_CFGR_HPRE_DIV64 ((uint32_t)0x000000C0)
- #define RCC_CFGR_HPRE_DIV128 ((uint32_t)0x000000D0)
- #define RCC_CFGR_HPRE_DIV256 ((uint32_t)0x000000E0)
- #define RCC_CFGR_HPRE_DIV512 ((uint32_t)0x000000F0)
- #define RCC_CFGR_PPRE ((uint32_t)0x00000700)
- #define RCC_CFGR_PPRE_0 ((uint32_t)0x00000100)
- #define RCC_CFGR_PPRE_1 ((uint32_t)0x00000200)
- #define RCC_CFGR_PPRE_2 ((uint32_t)0x00000400)
- #define RCC_CFGR_PPRE_DIV1 ((uint32_t)0x00000000)
- #define RCC_CFGR_PPRE_DIV2 ((uint32_t)0x00000400)
- #define RCC_CFGR_PPRE_DIV4 ((uint32_t)0x00000500)
- #define RCC_CFGR_PPRE_DIV8 ((uint32_t)0x00000600)
- #define RCC_CFGR_PPRE_DIV16 ((uint32_t)0x00000700)
- #define RCC_CFGR_ADCPRE ((uint32_t)0x00004000)
- #define RCC_CFGR_ADCPRE_DIV2 ((uint32_t)0x00000000)
- #define RCC_CFGR_ADCPRE_DIV4 ((uint32_t)0x00004000)
- #define RCC_CFGR_PLLSRC ((uint32_t)0x00010000)
- #define RCC_CFGR_PLLXTPRE ((uint32_t)0x00020000)
- #define RCC_CFGR_PLLMULL ((uint32_t)0x003C0000)
- #define RCC_CFGR_PLLMULL_0 ((uint32_t)0x00040000)
- #define RCC_CFGR_PLLMULL_1 ((uint32_t)0x00080000)
- #define RCC_CFGR_PLLMULL_2 ((uint32_t)0x00100000)
- #define RCC_CFGR_PLLMULL_3 ((uint32_t)0x00200000)
- #define RCC_CFGR_PLLSRC_HSI_Div2 ((uint32_t)0x00000000)
- #define RCC_CFGR_PLLSRC_PREDIV1 ((uint32_t)0x00010000)
- #define RCC_CFGR_PLLXTPRE_PREDIV1 ((uint32_t)0x00000000)
- #define RCC_CFGR_PLLXTPRE_PREDIV1_Div2 ((uint32_t)0x00020000)
- #define RCC_CFGR_PLLMULL2 ((uint32_t)0x00000000)
- #define RCC_CFGR_PLLMULL3 ((uint32_t)0x00040000)
- #define RCC_CFGR_PLLMULL4 ((uint32_t)0x00080000)
- #define RCC_CFGR_PLLMULL5 ((uint32_t)0x000C0000)
- #define RCC_CFGR_PLLMULL6 ((uint32_t)0x00100000)
- #define RCC_CFGR_PLLMULL7 ((uint32_t)0x00140000)
- #define RCC_CFGR_PLLMULL8 ((uint32_t)0x00180000)
- #define RCC_CFGR_PLLMULL9 ((uint32_t)0x001C0000)
- #define RCC_CFGR_PLLMULL10 ((uint32_t)0x00200000)
- #define RCC_CFGR_PLLMULL11 ((uint32_t)0x00240000)
- #define RCC_CFGR_PLLMULL12 ((uint32_t)0x00280000)
- #define RCC_CFGR_PLLMULL13 ((uint32_t)0x002C0000)
- #define RCC_CFGR_PLLMULL14 ((uint32_t)0x00300000)
- #define RCC_CFGR_PLLMULL15 ((uint32_t)0x00340000)
- #define RCC_CFGR_PLLMULL16 ((uint32_t)0x00380000)
- #define RCC_CFGR_MCO ((uint32_t)0x07000000)
- #define RCC_CFGR_MCO_0 ((uint32_t)0x01000000)
- #define RCC_CFGR_MCO_1 ((uint32_t)0x02000000)
- #define RCC_CFGR_MCO_2 ((uint32_t)0x04000000)
- #define RCC_CFGR_MCO_NOCLOCK ((uint32_t)0x00000000)
- #define RCC_CFGR_MCO_HSI14 ((uint32_t)0x01000000)
- #define RCC_CFGR_MCO_LSI ((uint32_t)0x02000000)
- #define RCC_CFGR_MCO_LSE ((uint32_t)0x03000000)
- #define RCC_CFGR_MCO_SYSCLK ((uint32_t)0x04000000)
- #define RCC_CFGR_MCO_HSI ((uint32_t)0x05000000)
- #define RCC_CFGR_MCO_HSE ((uint32_t)0x06000000)
- #define RCC_CFGR_MCO_PLL ((uint32_t)0x07000000)
- #define RCC_CFGR_MCO_PRE ((uint32_t)0x70000000)
- #define RCC_CFGR_MCO_PRE_1 ((uint32_t)0x00000000)
- #define RCC_CFGR_MCO_PRE_2 ((uint32_t)0x10000000)
- #define RCC_CFGR_MCO_PRE_4 ((uint32_t)0x20000000)
- #define RCC_CFGR_MCO_PRE_8 ((uint32_t)0x30000000)
- #define RCC_CFGR_MCO_PRE_16 ((uint32_t)0x40000000)
- #define RCC_CFGR_MCO_PRE_32 ((uint32_t)0x50000000)
- #define RCC_CFGR_MCO_PRE_64 ((uint32_t)0x60000000)
- #define RCC_CFGR_MCO_PRE_128 ((uint32_t)0x70000000)
- #define RCC_CFGR_PLLNODIV ((uint32_t)0x80000000)
- #define RCC_CIR_LSIRDYF ((uint32_t)0x00000001)
- #define RCC_CIR_LSERDYF ((uint32_t)0x00000002)
- #define RCC_CIR_HSIRDYF ((uint32_t)0x00000004)
- #define RCC_CIR_HSERDYF ((uint32_t)0x00000008)
- #define RCC_CIR_PLLRDYF ((uint32_t)0x00000010)
- #define RCC_CIR_HSI14RDYF ((uint32_t)0x00000020)
- #define RCC_CIR_CSSF ((uint32_t)0x00000080)
- #define RCC_CIR_LSIRDYIE ((uint32_t)0x00000100)
- #define RCC_CIR_LSERDYIE ((uint32_t)0x00000200)
- #define RCC_CIR_HSIRDYIE ((uint32_t)0x00000400)
- #define RCC_CIR_HSERDYIE ((uint32_t)0x00000800)
- #define RCC_CIR_PLLRDYIE ((uint32_t)0x00001000)
- #define RCC_CIR_HSI14RDYIE ((uint32_t)0x00002000)
- #define RCC_CIR_LSIRDYC ((uint32_t)0x00010000)
- #define RCC_CIR_LSERDYC ((uint32_t)0x00020000)
- #define RCC_CIR_HSIRDYC ((uint32_t)0x00040000)
- #define RCC_CIR_HSERDYC ((uint32_t)0x00080000)
- #define RCC_CIR_PLLRDYC ((uint32_t)0x00100000)
- #define RCC_CIR_HSI14RDYC ((uint32_t)0x00200000)
- #define RCC_CIR_CSSC ((uint32_t)0x00800000)
- #define RCC_APB2RSTR_SYSCFGRST ((uint32_t)0x00000001)
- #define RCC_APB2RSTR_ADC1RST ((uint32_t)0x00000200)
- #define RCC_APB2RSTR_TIM1RST ((uint32_t)0x00000800)
- #define RCC_APB2RSTR_SPI1RST ((uint32_t)0x00001000)
- #define RCC_APB2RSTR_USART1RST ((uint32_t)0x00004000)
- #define RCC_APB2RSTR_TIM15RST ((uint32_t)0x00010000)
- #define RCC_APB2RSTR_TIM16RST ((uint32_t)0x00020000)
- #define RCC_APB2RSTR_TIM17RST ((uint32_t)0x00040000)
- #define RCC_APB2RSTR_DBGMCURST ((uint32_t)0x00400000)
- #define RCC_APB1RSTR_TIM2RST ((uint32_t)0x00000001)
- #define RCC_APB1RSTR_TIM3RST ((uint32_t)0x00000002)
- #define RCC_APB1RSTR_TIM6RST ((uint32_t)0x00000010)
- #define RCC_APB1RSTR_TIM14RST ((uint32_t)0x00000100)
- #define RCC_APB1RSTR_WWDGRST ((uint32_t)0x00000800)
- #define RCC_APB1RSTR_SPI2RST ((uint32_t)0x00004000)
- #define RCC_APB1RSTR_USART2RST ((uint32_t)0x00020000)
- #define RCC_APB1RSTR_I2C1RST ((uint32_t)0x00200000)
- #define RCC_APB1RSTR_I2C2RST ((uint32_t)0x00400000)
- #define RCC_APB1RSTR_PWRRST ((uint32_t)0x10000000)
- #define RCC_APB1RSTR_DACRST ((uint32_t)0x20000000)
- #define RCC_APB1RSTR_CECRST ((uint32_t)0x40000000)
- #define RCC_AHBENR_DMA1EN ((uint32_t)0x00000001)
- #define RCC_AHBENR_SRAMEN ((uint32_t)0x00000004)
- #define RCC_AHBENR_FLITFEN ((uint32_t)0x00000010)
- #define RCC_AHBENR_CRCEN ((uint32_t)0x00000040)
- #define RCC_AHBENR_GPIOAEN ((uint32_t)0x00020000)
- #define RCC_AHBENR_GPIOBEN ((uint32_t)0x00040000)
- #define RCC_AHBENR_GPIOCEN ((uint32_t)0x00080000)
- #define RCC_AHBENR_GPIODEN ((uint32_t)0x00100000)
- #define RCC_AHBENR_GPIOFEN ((uint32_t)0x00400000)
- #define RCC_AHBENR_TSEN ((uint32_t)0x01000000)
- #define RCC_APB2ENR_SYSCFGEN ((uint32_t)0x00000001)
- #define RCC_APB2ENR_ADC1EN ((uint32_t)0x00000200)
- #define RCC_APB2ENR_TIM1EN ((uint32_t)0x00000800)
- #define RCC_APB2ENR_SPI1EN ((uint32_t)0x00001000)
- #define RCC_APB2ENR_USART1EN ((uint32_t)0x00004000)
- #define RCC_APB2ENR_TIM15EN ((uint32_t)0x00010000)
- #define RCC_APB2ENR_TIM16EN ((uint32_t)0x00020000)
- #define RCC_APB2ENR_TIM17EN ((uint32_t)0x00040000)
- #define RCC_APB2ENR_DBGMCUEN ((uint32_t)0x00400000)
- #define RCC_APB1ENR_TIM2EN ((uint32_t)0x00000001)
- #define RCC_APB1ENR_TIM3EN ((uint32_t)0x00000002)
- #define RCC_APB1ENR_TIM6EN ((uint32_t)0x00000010)
- #define RCC_APB1ENR_TIM14EN ((uint32_t)0x00000100)
- #define RCC_APB1ENR_WWDGEN ((uint32_t)0x00000800)
- #define RCC_APB1ENR_SPI2EN ((uint32_t)0x00004000)
- #define RCC_APB1ENR_USART2EN ((uint32_t)0x00020000)
- #define RCC_APB1ENR_I2C1EN ((uint32_t)0x00200000)
- #define RCC_APB1ENR_I2C2EN ((uint32_t)0x00400000)
- #define RCC_APB1ENR_PWREN ((uint32_t)0x10000000)
- #define RCC_APB1ENR_DACEN ((uint32_t)0x20000000)
- #define RCC_APB1ENR_CECEN ((uint32_t)0x40000000)
- #define RCC_BDCR_LSEON ((uint32_t)0x00000001)
- #define RCC_BDCR_LSERDY ((uint32_t)0x00000002)
- #define RCC_BDCR_LSEBYP ((uint32_t)0x00000004)
- #define RCC_BDCR_LSEDRV ((uint32_t)0x00000018)
- #define RCC_BDCR_LSEDRV_0 ((uint32_t)0x00000008)
- #define RCC_BDCR_LSEDRV_1 ((uint32_t)0x00000010)
- #define RCC_BDCR_RTCSEL ((uint32_t)0x00000300)
- #define RCC_BDCR_RTCSEL_0 ((uint32_t)0x00000100)
- #define RCC_BDCR_RTCSEL_1 ((uint32_t)0x00000200)
- #define RCC_BDCR_RTCSEL_NOCLOCK ((uint32_t)0x00000000)
- #define RCC_BDCR_RTCSEL_LSE ((uint32_t)0x00000100)
- #define RCC_BDCR_RTCSEL_LSI ((uint32_t)0x00000200)
- #define RCC_BDCR_RTCSEL_HSE ((uint32_t)0x00000300)
- #define RCC_BDCR_RTCEN ((uint32_t)0x00008000)
- #define RCC_BDCR_BDRST ((uint32_t)0x00010000)
-
- #define RCC_CSR_LSION ((uint32_t)0x00000001)
- #define RCC_CSR_LSIRDY ((uint32_t)0x00000002)
- #define RCC_CSR_V18PWRRSTF ((uint32_t)0x00800000)
- #define RCC_CSR_RMVF ((uint32_t)0x01000000)
- #define RCC_CSR_OBL ((uint32_t)0x02000000)
- #define RCC_CSR_PINRSTF ((uint32_t)0x04000000)
- #define RCC_CSR_PORRSTF ((uint32_t)0x08000000)
- #define RCC_CSR_SFTRSTF ((uint32_t)0x10000000)
- #define RCC_CSR_IWDGRSTF ((uint32_t)0x20000000)
- #define RCC_CSR_WWDGRSTF ((uint32_t)0x40000000)
- #define RCC_CSR_LPWRRSTF ((uint32_t)0x80000000)
- #define RCC_AHBRSTR_GPIOARST ((uint32_t)0x00020000)
- #define RCC_AHBRSTR_GPIOBRST ((uint32_t)0x00040000)
- #define RCC_AHBRSTR_GPIOCRST ((uint32_t)0x00080000)
- #define RCC_AHBRSTR_GPIODRST ((uint32_t)0x00010000)
- #define RCC_AHBRSTR_GPIOFRST ((uint32_t)0x00040000)
- #define RCC_AHBRSTR_TSRST ((uint32_t)0x00100000)
- #define RCC_CFGR2_PREDIV1 ((uint32_t)0x0000000F)
- #define RCC_CFGR2_PREDIV1_0 ((uint32_t)0x00000001)
- #define RCC_CFGR2_PREDIV1_1 ((uint32_t)0x00000002)
- #define RCC_CFGR2_PREDIV1_2 ((uint32_t)0x00000004)
- #define RCC_CFGR2_PREDIV1_3 ((uint32_t)0x00000008)
- #define RCC_CFGR2_PREDIV1_DIV1 ((uint32_t)0x00000000)
- #define RCC_CFGR2_PREDIV1_DIV2 ((uint32_t)0x00000001)
- #define RCC_CFGR2_PREDIV1_DIV3 ((uint32_t)0x00000002)
- #define RCC_CFGR2_PREDIV1_DIV4 ((uint32_t)0x00000003)
- #define RCC_CFGR2_PREDIV1_DIV5 ((uint32_t)0x00000004)
- #define RCC_CFGR2_PREDIV1_DIV6 ((uint32_t)0x00000005)
- #define RCC_CFGR2_PREDIV1_DIV7 ((uint32_t)0x00000006)
- #define RCC_CFGR2_PREDIV1_DIV8 ((uint32_t)0x00000007)
- #define RCC_CFGR2_PREDIV1_DIV9 ((uint32_t)0x00000008)
- #define RCC_CFGR2_PREDIV1_DIV10 ((uint32_t)0x00000009)
- #define RCC_CFGR2_PREDIV1_DIV11 ((uint32_t)0x0000000A)
- #define RCC_CFGR2_PREDIV1_DIV12 ((uint32_t)0x0000000B)
- #define RCC_CFGR2_PREDIV1_DIV13 ((uint32_t)0x0000000C)
- #define RCC_CFGR2_PREDIV1_DIV14 ((uint32_t)0x0000000D)
- #define RCC_CFGR2_PREDIV1_DIV15 ((uint32_t)0x0000000E)
- #define RCC_CFGR2_PREDIV1_DIV16 ((uint32_t)0x0000000F)
- #define RCC_CFGR3_USART1SW ((uint32_t)0x00000003)
- #define RCC_CFGR3_USART1SW_0 ((uint32_t)0x00000001)
- #define RCC_CFGR3_USART1SW_1 ((uint32_t)0x00000002)
- #define RCC_CFGR3_I2C1SW ((uint32_t)0x00000010)
- #define RCC_CFGR3_CECSW ((uint32_t)0x00000040)
- #define RCC_CFGR3_ADCSW ((uint32_t)0x00000100)
- #define RCC_CR2_HSI14ON ((uint32_t)0x00000001)
- #define RCC_CR2_HSI14RDY ((uint32_t)0x00000002)
- #define RCC_CR2_HSI14DIS ((uint32_t)0x00000004)
- #define RCC_CR2_HSI14TRIM ((uint32_t)0x000000F8)
- #define RCC_CR2_HSI14CAL ((uint32_t)0x0000FF00)
- #define RTC_TR_PM ((uint32_t)0x00400000)
- #define RTC_TR_HT ((uint32_t)0x00300000)
- #define RTC_TR_HT_0 ((uint32_t)0x00100000)
- #define RTC_TR_HT_1 ((uint32_t)0x00200000)
- #define RTC_TR_HU ((uint32_t)0x000F0000)
- #define RTC_TR_HU_0 ((uint32_t)0x00010000)
- #define RTC_TR_HU_1 ((uint32_t)0x00020000)
- #define RTC_TR_HU_2 ((uint32_t)0x00040000)
- #define RTC_TR_HU_3 ((uint32_t)0x00080000)
- #define RTC_TR_MNT ((uint32_t)0x00007000)
- #define RTC_TR_MNT_0 ((uint32_t)0x00001000)
- #define RTC_TR_MNT_1 ((uint32_t)0x00002000)
- #define RTC_TR_MNT_2 ((uint32_t)0x00004000)
- #define RTC_TR_MNU ((uint32_t)0x00000F00)
- #define RTC_TR_MNU_0 ((uint32_t)0x00000100)
- #define RTC_TR_MNU_1 ((uint32_t)0x00000200)
- #define RTC_TR_MNU_2 ((uint32_t)0x00000400)
- #define RTC_TR_MNU_3 ((uint32_t)0x00000800)
- #define RTC_TR_ST ((uint32_t)0x00000070)
- #define RTC_TR_ST_0 ((uint32_t)0x00000010)
- #define RTC_TR_ST_1 ((uint32_t)0x00000020)
- #define RTC_TR_ST_2 ((uint32_t)0x00000040)
- #define RTC_TR_SU ((uint32_t)0x0000000F)
- #define RTC_TR_SU_0 ((uint32_t)0x00000001)
- #define RTC_TR_SU_1 ((uint32_t)0x00000002)
- #define RTC_TR_SU_2 ((uint32_t)0x00000004)
- #define RTC_TR_SU_3 ((uint32_t)0x00000008)
- #define RTC_DR_YT ((uint32_t)0x00F00000)
- #define RTC_DR_YT_0 ((uint32_t)0x00100000)
- #define RTC_DR_YT_1 ((uint32_t)0x00200000)
- #define RTC_DR_YT_2 ((uint32_t)0x00400000)
- #define RTC_DR_YT_3 ((uint32_t)0x00800000)
- #define RTC_DR_YU ((uint32_t)0x000F0000)
- #define RTC_DR_YU_0 ((uint32_t)0x00010000)
- #define RTC_DR_YU_1 ((uint32_t)0x00020000)
- #define RTC_DR_YU_2 ((uint32_t)0x00040000)
- #define RTC_DR_YU_3 ((uint32_t)0x00080000)
- #define RTC_DR_WDU ((uint32_t)0x0000E000)
- #define RTC_DR_WDU_0 ((uint32_t)0x00002000)
- #define RTC_DR_WDU_1 ((uint32_t)0x00004000)
- #define RTC_DR_WDU_2 ((uint32_t)0x00008000)
- #define RTC_DR_MT ((uint32_t)0x00001000)
- #define RTC_DR_MU ((uint32_t)0x00000F00)
- #define RTC_DR_MU_0 ((uint32_t)0x00000100)
- #define RTC_DR_MU_1 ((uint32_t)0x00000200)
- #define RTC_DR_MU_2 ((uint32_t)0x00000400)
- #define RTC_DR_MU_3 ((uint32_t)0x00000800)
- #define RTC_DR_DT ((uint32_t)0x00000030)
- #define RTC_DR_DT_0 ((uint32_t)0x00000010)
- #define RTC_DR_DT_1 ((uint32_t)0x00000020)
- #define RTC_DR_DU ((uint32_t)0x0000000F)
- #define RTC_DR_DU_0 ((uint32_t)0x00000001)
- #define RTC_DR_DU_1 ((uint32_t)0x00000002)
- #define RTC_DR_DU_2 ((uint32_t)0x00000004)
- #define RTC_DR_DU_3 ((uint32_t)0x00000008)
- #define RTC_CR_COE ((uint32_t)0x00800000)
- #define RTC_CR_OSEL ((uint32_t)0x00600000)
- #define RTC_CR_OSEL_0 ((uint32_t)0x00200000)
- #define RTC_CR_OSEL_1 ((uint32_t)0x00400000)
- #define RTC_CR_POL ((uint32_t)0x00100000)
- #define RTC_CR_CALSEL ((uint32_t)0x00080000)
- #define RTC_CR_BCK ((uint32_t)0x00040000)
- #define RTC_CR_SUB1H ((uint32_t)0x00020000)
- #define RTC_CR_ADD1H ((uint32_t)0x00010000)
- #define RTC_CR_TSIE ((uint32_t)0x00008000)
- #define RTC_CR_ALRAIE ((uint32_t)0x00001000)
- #define RTC_CR_TSE ((uint32_t)0x00000800)
- #define RTC_CR_ALRAE ((uint32_t)0x00000100)
- #define RTC_CR_DCE ((uint32_t)0x00000080)
- #define RTC_CR_FMT ((uint32_t)0x00000040)
- #define RTC_CR_BYPSHAD ((uint32_t)0x00000020)
- #define RTC_CR_REFCKON ((uint32_t)0x00000010)
- #define RTC_CR_TSEDGE ((uint32_t)0x00000008)
- #define RTC_ISR_RECALPF ((uint32_t)0x00010000)
- #define RTC_ISR_TAMP2F ((uint32_t)0x00004000)
- #define RTC_ISR_TAMP1F ((uint32_t)0x00002000)
- #define RTC_ISR_TSOVF ((uint32_t)0x00001000)
- #define RTC_ISR_TSF ((uint32_t)0x00000800)
- #define RTC_ISR_ALRAF ((uint32_t)0x00000100)
- #define RTC_ISR_INIT ((uint32_t)0x00000080)
- #define RTC_ISR_INITF ((uint32_t)0x00000040)
- #define RTC_ISR_RSF ((uint32_t)0x00000020)
- #define RTC_ISR_INITS ((uint32_t)0x00000010)
- #define RTC_ISR_SHPF ((uint32_t)0x00000008)
- #define RTC_ISR_ALRAWF ((uint32_t)0x00000001)
- #define RTC_PRER_PREDIV_A ((uint32_t)0x007F0000)
- #define RTC_PRER_PREDIV_S ((uint32_t)0x00007FFF)
- #define RTC_ALRMAR_MSK4 ((uint32_t)0x80000000)
- #define RTC_ALRMAR_WDSEL ((uint32_t)0x40000000)
- #define RTC_ALRMAR_DT ((uint32_t)0x30000000)
- #define RTC_ALRMAR_DT_0 ((uint32_t)0x10000000)
- #define RTC_ALRMAR_DT_1 ((uint32_t)0x20000000)
- #define RTC_ALRMAR_DU ((uint32_t)0x0F000000)
- #define RTC_ALRMAR_DU_0 ((uint32_t)0x01000000)
- #define RTC_ALRMAR_DU_1 ((uint32_t)0x02000000)
- #define RTC_ALRMAR_DU_2 ((uint32_t)0x04000000)
- #define RTC_ALRMAR_DU_3 ((uint32_t)0x08000000)
- #define RTC_ALRMAR_MSK3 ((uint32_t)0x00800000)
- #define RTC_ALRMAR_PM ((uint32_t)0x00400000)
- #define RTC_ALRMAR_HT ((uint32_t)0x00300000)
- #define RTC_ALRMAR_HT_0 ((uint32_t)0x00100000)
- #define RTC_ALRMAR_HT_1 ((uint32_t)0x00200000)
- #define RTC_ALRMAR_HU ((uint32_t)0x000F0000)
- #define RTC_ALRMAR_HU_0 ((uint32_t)0x00010000)
- #define RTC_ALRMAR_HU_1 ((uint32_t)0x00020000)
- #define RTC_ALRMAR_HU_2 ((uint32_t)0x00040000)
- #define RTC_ALRMAR_HU_3 ((uint32_t)0x00080000)
- #define RTC_ALRMAR_MSK2 ((uint32_t)0x00008000)
- #define RTC_ALRMAR_MNT ((uint32_t)0x00007000)
- #define RTC_ALRMAR_MNT_0 ((uint32_t)0x00001000)
- #define RTC_ALRMAR_MNT_1 ((uint32_t)0x00002000)
- #define RTC_ALRMAR_MNT_2 ((uint32_t)0x00004000)
- #define RTC_ALRMAR_MNU ((uint32_t)0x00000F00)
- #define RTC_ALRMAR_MNU_0 ((uint32_t)0x00000100)
- #define RTC_ALRMAR_MNU_1 ((uint32_t)0x00000200)
- #define RTC_ALRMAR_MNU_2 ((uint32_t)0x00000400)
- #define RTC_ALRMAR_MNU_3 ((uint32_t)0x00000800)
- #define RTC_ALRMAR_MSK1 ((uint32_t)0x00000080)
- #define RTC_ALRMAR_ST ((uint32_t)0x00000070)
- #define RTC_ALRMAR_ST_0 ((uint32_t)0x00000010)
- #define RTC_ALRMAR_ST_1 ((uint32_t)0x00000020)
- #define RTC_ALRMAR_ST_2 ((uint32_t)0x00000040)
- #define RTC_ALRMAR_SU ((uint32_t)0x0000000F)
- #define RTC_ALRMAR_SU_0 ((uint32_t)0x00000001)
- #define RTC_ALRMAR_SU_1 ((uint32_t)0x00000002)
- #define RTC_ALRMAR_SU_2 ((uint32_t)0x00000004)
- #define RTC_ALRMAR_SU_3 ((uint32_t)0x00000008)
- #define RTC_WPR_KEY ((uint32_t)0x000000FF)
- #define RTC_SSR_SS ((uint32_t)0x0003FFFF)
- #define RTC_SHIFTR_SUBFS ((uint32_t)0x00007FFF)
- #define RTC_SHIFTR_ADD1S ((uint32_t)0x80000000)
- #define RTC_TSTR_PM ((uint32_t)0x00400000)
- #define RTC_TSTR_HT ((uint32_t)0x00300000)
- #define RTC_TSTR_HT_0 ((uint32_t)0x00100000)
- #define RTC_TSTR_HT_1 ((uint32_t)0x00200000)
- #define RTC_TSTR_HU ((uint32_t)0x000F0000)
- #define RTC_TSTR_HU_0 ((uint32_t)0x00010000)
- #define RTC_TSTR_HU_1 ((uint32_t)0x00020000)
- #define RTC_TSTR_HU_2 ((uint32_t)0x00040000)
- #define RTC_TSTR_HU_3 ((uint32_t)0x00080000)
- #define RTC_TSTR_MNT ((uint32_t)0x00007000)
- #define RTC_TSTR_MNT_0 ((uint32_t)0x00001000)
- #define RTC_TSTR_MNT_1 ((uint32_t)0x00002000)
- #define RTC_TSTR_MNT_2 ((uint32_t)0x00004000)
- #define RTC_TSTR_MNU ((uint32_t)0x00000F00)
- #define RTC_TSTR_MNU_0 ((uint32_t)0x00000100)
- #define RTC_TSTR_MNU_1 ((uint32_t)0x00000200)
- #define RTC_TSTR_MNU_2 ((uint32_t)0x00000400)
- #define RTC_TSTR_MNU_3 ((uint32_t)0x00000800)
- #define RTC_TSTR_ST ((uint32_t)0x00000070)
- #define RTC_TSTR_ST_0 ((uint32_t)0x00000010)
- #define RTC_TSTR_ST_1 ((uint32_t)0x00000020)
- #define RTC_TSTR_ST_2 ((uint32_t)0x00000040)
- #define RTC_TSTR_SU ((uint32_t)0x0000000F)
- #define RTC_TSTR_SU_0 ((uint32_t)0x00000001)
- #define RTC_TSTR_SU_1 ((uint32_t)0x00000002)
- #define RTC_TSTR_SU_2 ((uint32_t)0x00000004)
- #define RTC_TSTR_SU_3 ((uint32_t)0x00000008)
- #define RTC_TSDR_WDU ((uint32_t)0x0000E000)
- #define RTC_TSDR_WDU_0 ((uint32_t)0x00002000)
- #define RTC_TSDR_WDU_1 ((uint32_t)0x00004000)
- #define RTC_TSDR_WDU_2 ((uint32_t)0x00008000)
- #define RTC_TSDR_MT ((uint32_t)0x00001000)
- #define RTC_TSDR_MU ((uint32_t)0x00000F00)
- #define RTC_TSDR_MU_0 ((uint32_t)0x00000100)
- #define RTC_TSDR_MU_1 ((uint32_t)0x00000200)
- #define RTC_TSDR_MU_2 ((uint32_t)0x00000400)
- #define RTC_TSDR_MU_3 ((uint32_t)0x00000800)
- #define RTC_TSDR_DT ((uint32_t)0x00000030)
- #define RTC_TSDR_DT_0 ((uint32_t)0x00000010)
- #define RTC_TSDR_DT_1 ((uint32_t)0x00000020)
- #define RTC_TSDR_DU ((uint32_t)0x0000000F)
- #define RTC_TSDR_DU_0 ((uint32_t)0x00000001)
- #define RTC_TSDR_DU_1 ((uint32_t)0x00000002)
- #define RTC_TSDR_DU_2 ((uint32_t)0x00000004)
- #define RTC_TSDR_DU_3 ((uint32_t)0x00000008)
- #define RTC_TSSSR_SS ((uint32_t)0x0003FFFF)
- #define RTC_CAL_CALP ((uint32_t)0x00008000)
- #define RTC_CAL_CALW8 ((uint32_t)0x00004000)
- #define RTC_CAL_CALW16 ((uint32_t)0x00002000)
- #define RTC_CAL_CALM ((uint32_t)0x000001FF)
- #define RTC_CAL_CALM_0 ((uint32_t)0x00000001)
- #define RTC_CAL_CALM_1 ((uint32_t)0x00000002)
- #define RTC_CAL_CALM_2 ((uint32_t)0x00000004)
- #define RTC_CAL_CALM_3 ((uint32_t)0x00000008)
- #define RTC_CAL_CALM_4 ((uint32_t)0x00000010)
- #define RTC_CAL_CALM_5 ((uint32_t)0x00000020)
- #define RTC_CAL_CALM_6 ((uint32_t)0x00000040)
- #define RTC_CAL_CALM_7 ((uint32_t)0x00000080)
- #define RTC_CAL_CALM_8 ((uint32_t)0x00000100)
- #define RTC_TAFCR_ALARMOUTTYPE ((uint32_t)0x00040000)
- #define RTC_TAFCR_TAMPPUDIS ((uint32_t)0x00008000)
- #define RTC_TAFCR_TAMPPRCH ((uint32_t)0x00006000)
- #define RTC_TAFCR_TAMPPRCH_0 ((uint32_t)0x00002000)
- #define RTC_TAFCR_TAMPPRCH_1 ((uint32_t)0x00004000)
- #define RTC_TAFCR_TAMPFLT ((uint32_t)0x00001800)
- #define RTC_TAFCR_TAMPFLT_0 ((uint32_t)0x00000800)
- #define RTC_TAFCR_TAMPFLT_1 ((uint32_t)0x00001000)
- #define RTC_TAFCR_TAMPFREQ ((uint32_t)0x00000700)
- #define RTC_TAFCR_TAMPFREQ_0 ((uint32_t)0x00000100)
- #define RTC_TAFCR_TAMPFREQ_1 ((uint32_t)0x00000200)
- #define RTC_TAFCR_TAMPFREQ_2 ((uint32_t)0x00000400)
- #define RTC_TAFCR_TAMPTS ((uint32_t)0x00000080)
- #define RTC_TAFCR_TAMP2EDGE ((uint32_t)0x00000010)
- #define RTC_TAFCR_TAMP2E ((uint32_t)0x00000008)
- #define RTC_TAFCR_TAMPIE ((uint32_t)0x00000004)
- #define RTC_TAFCR_TAMP1TRG ((uint32_t)0x00000002)
- #define RTC_TAFCR_TAMP1E ((uint32_t)0x00000001)
- #define RTC_ALRMASSR_MASKSS ((uint32_t)0x0F000000)
- #define RTC_ALRMASSR_MASKSS_0 ((uint32_t)0x01000000)
- #define RTC_ALRMASSR_MASKSS_1 ((uint32_t)0x02000000)
- #define RTC_ALRMASSR_MASKSS_2 ((uint32_t)0x04000000)
- #define RTC_ALRMASSR_MASKSS_3 ((uint32_t)0x08000000)
- #define RTC_ALRMASSR_SS ((uint32_t)0x00007FFF)
- #define RTC_BKP0R ((uint32_t)0xFFFFFFFF)
- #define RTC_BKP1R ((uint32_t)0xFFFFFFFF)
- #define RTC_BKP2R ((uint32_t)0xFFFFFFFF)
- #define RTC_BKP3R ((uint32_t)0xFFFFFFFF)
- #define RTC_BKP4R ((uint32_t)0xFFFFFFFF)
- #define SPI_CR1_CPHA ((uint16_t)0x0001)
- #define SPI_CR1_CPOL ((uint16_t)0x0002)
- #define SPI_CR1_MSTR ((uint16_t)0x0004)
- #define SPI_CR1_BR ((uint16_t)0x0038)
- #define SPI_CR1_BR_0 ((uint16_t)0x0008)
- #define SPI_CR1_BR_1 ((uint16_t)0x0010)
- #define SPI_CR1_BR_2 ((uint16_t)0x0020)
- #define SPI_CR1_SPE ((uint16_t)0x0040)
- #define SPI_CR1_LSBFIRST ((uint16_t)0x0080)
- #define SPI_CR1_SSI ((uint16_t)0x0100)
- #define SPI_CR1_SSM ((uint16_t)0x0200)
- #define SPI_CR1_RXONLY ((uint16_t)0x0400)
- #define SPI_CR1_CRCL ((uint16_t)0x0800)
- #define SPI_CR1_CRCNEXT ((uint16_t)0x1000)
- #define SPI_CR1_CRCEN ((uint16_t)0x2000)
- #define SPI_CR1_BIDIOE ((uint16_t)0x4000)
- #define SPI_CR1_BIDIMODE ((uint16_t)0x8000)
- #define SPI_CR2_RXDMAEN ((uint16_t)0x0001)
- #define SPI_CR2_TXDMAEN ((uint16_t)0x0002)
- #define SPI_CR2_SSOE ((uint16_t)0x0004)
- #define SPI_CR2_NSSP ((uint16_t)0x0008)
- #define SPI_CR2_FRF ((uint16_t)0x0010)
- #define SPI_CR2_ERRIE ((uint16_t)0x0020)
- #define SPI_CR2_RXNEIE ((uint16_t)0x0040)
- #define SPI_CR2_TXEIE ((uint16_t)0x0080)
- #define SPI_CR2_DS ((uint16_t)0x0F00)
- #define SPI_CR2_DS_0 ((uint16_t)0x0100)
- #define SPI_CR2_DS_1 ((uint16_t)0x0200)
- #define SPI_CR2_DS_2 ((uint16_t)0x0400)
- #define SPI_CR2_DS_3 ((uint16_t)0x0800)
- #define SPI_CR2_FRXTH ((uint16_t)0x1000)
- #define SPI_CR2_LDMARX ((uint16_t)0x2000)
- #define SPI_CR2_LDMATX ((uint16_t)0x4000)
- #define SPI_SR_RXNE ((uint16_t)0x0001)
- #define SPI_SR_TXE ((uint16_t)0x0002)
- #define SPI_SR_CHSIDE ((uint16_t)0x0004)
- #define SPI_SR_UDR ((uint16_t)0x0008)
- #define SPI_SR_CRCERR ((uint16_t)0x0010)
- #define SPI_SR_MODF ((uint16_t)0x0020)
- #define SPI_SR_OVR ((uint16_t)0x0040)
- #define SPI_SR_BSY ((uint16_t)0x0080)
- #define SPI_SR_FRE ((uint16_t)0x0100)
- #define SPI_SR_FRLVL ((uint16_t)0x0600)
- #define SPI_SR_FRLVL_0 ((uint16_t)0x0200)
- #define SPI_SR_FRLVL_1 ((uint16_t)0x0400)
- #define SPI_SR_FTLVL ((uint16_t)0x1800)
- #define SPI_SR_FTLVL_0 ((uint16_t)0x0800)
- #define SPI_SR_FTLVL_1 ((uint16_t)0x1000)
- #define SPI_DR_DR ((uint16_t)0xFFFF)
- #define SPI_CRCPR_CRCPOLY ((uint16_t)0xFFFF)
- #define SPI_RXCRCR_RXCRC ((uint16_t)0xFFFF)
- #define SPI_TXCRCR_TXCRC ((uint16_t)0xFFFF)
- #define SPI_I2SCFGR_CHLEN ((uint16_t)0x0001)
- #define SPI_I2SCFGR_DATLEN ((uint16_t)0x0006)
- #define SPI_I2SCFGR_DATLEN_0 ((uint16_t)0x0002)
- #define SPI_I2SCFGR_DATLEN_1 ((uint16_t)0x0004)
- #define SPI_I2SCFGR_CKPOL ((uint16_t)0x0008)
- #define SPI_I2SCFGR_I2SSTD ((uint16_t)0x0030)
- #define SPI_I2SCFGR_I2SSTD_0 ((uint16_t)0x0010)
- #define SPI_I2SCFGR_I2SSTD_1 ((uint16_t)0x0020)
- #define SPI_I2SCFGR_PCMSYNC ((uint16_t)0x0080)
- #define SPI_I2SCFGR_I2SCFG ((uint16_t)0x0300)
- #define SPI_I2SCFGR_I2SCFG_0 ((uint16_t)0x0100)
- #define SPI_I2SCFGR_I2SCFG_1 ((uint16_t)0x0200)
- #define SPI_I2SCFGR_I2SE ((uint16_t)0x0400)
- #define SPI_I2SCFGR_I2SMOD ((uint16_t)0x0800)
- #define SPI_I2SPR_I2SDIV ((uint16_t)0x00FF)
- #define SPI_I2SPR_ODD ((uint16_t)0x0100)
- #define SPI_I2SPR_MCKOE ((uint16_t)0x0200)
- #define SYSCFG_CFGR1_MEM_MODE ((uint32_t)0x00000003)
- #define SYSCFG_CFGR1_MEM_MODE_0 ((uint32_t)0x00000001)
- #define SYSCFG_CFGR1_MEM_MODE_1 ((uint32_t)0x00000002)
- #define SYSCFG_CFGR1_ADC_DMA_RMP ((uint32_t)0x00000100)
- #define SYSCFG_CFGR1_USART1TX_DMA_RMP ((uint32_t)0x00000200)
- #define SYSCFG_CFGR1_USART1RX_DMA_RMP ((uint32_t)0x00000400)
- #define SYSCFG_CFGR1_TIM16_DMA_RMP ((uint32_t)0x00000800)
- #define SYSCFG_CFGR1_TIM17_DMA_RMP ((uint32_t)0x00001000)
- #define SYSCFG_CFGR1_I2C_FMP_PB6 ((uint32_t)0x00010000)
- #define SYSCFG_CFGR1_I2C_FMP_PB7 ((uint32_t)0x00020000)
- #define SYSCFG_CFGR1_I2C_FMP_PB8 ((uint32_t)0x00040000)
- #define SYSCFG_CFGR1_I2C_FMP_PB9 ((uint32_t)0x00080000)
- #define SYSCFG_CFGR1_I2C_FMP_I2C1 ((uint32_t)0x00100000)
- #define SYSCFG_CFGR1_I2C_FMP_PA9 ((uint32_t)0x00400000)
- #define SYSCFG_CFGR1_I2C_FMP_PA10 ((uint32_t)0x00800000)
- #define SYSCFG_EXTICR1_EXTI0 ((uint16_t)0x000F)
- #define SYSCFG_EXTICR1_EXTI1 ((uint16_t)0x00F0)
- #define SYSCFG_EXTICR1_EXTI2 ((uint16_t)0x0F00)
- #define SYSCFG_EXTICR1_EXTI3 ((uint16_t)0xF000)
- #define SYSCFG_EXTICR1_EXTI0_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR1_EXTI0_PB ((uint16_t)0x0001)
- #define SYSCFG_EXTICR1_EXTI0_PC ((uint16_t)0x0002)
- #define SYSCFG_EXTICR1_EXTI0_PF ((uint16_t)0x0003)
-
- #define SYSCFG_EXTICR1_EXTI1_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR1_EXTI1_PB ((uint16_t)0x0010)
- #define SYSCFG_EXTICR1_EXTI1_PC ((uint16_t)0x0020)
- #define SYSCFG_EXTICR1_EXTI1_PF ((uint16_t)0x0030)
- #define SYSCFG_EXTICR1_EXTI2_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR1_EXTI2_PB ((uint16_t)0x0100)
- #define SYSCFG_EXTICR1_EXTI2_PC ((uint16_t)0x0200)
- #define SYSCFG_EXTICR1_EXTI2_PD ((uint16_t)0x0300)
- #define SYSCFG_EXTICR1_EXTI3_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR1_EXTI3_PB ((uint16_t)0x1000)
- #define SYSCFG_EXTICR1_EXTI3_PC ((uint16_t)0x2000)
- #define SYSCFG_EXTICR2_EXTI4 ((uint16_t)0x000F)
- #define SYSCFG_EXTICR2_EXTI5 ((uint16_t)0x00F0)
- #define SYSCFG_EXTICR2_EXTI6 ((uint16_t)0x0F00)
- #define SYSCFG_EXTICR2_EXTI7 ((uint16_t)0xF000)
- #define SYSCFG_EXTICR2_EXTI4_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR2_EXTI4_PB ((uint16_t)0x0001)
- #define SYSCFG_EXTICR2_EXTI4_PC ((uint16_t)0x0002)
- #define SYSCFG_EXTICR2_EXTI4_PF ((uint16_t)0x0003)
- #define SYSCFG_EXTICR2_EXTI5_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR2_EXTI5_PB ((uint16_t)0x0010)
- #define SYSCFG_EXTICR2_EXTI5_PC ((uint16_t)0x0020)
- #define SYSCFG_EXTICR2_EXTI5_PF ((uint16_t)0x0030)
- #define SYSCFG_EXTICR2_EXTI6_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR2_EXTI6_PB ((uint16_t)0x0100)
- #define SYSCFG_EXTICR2_EXTI6_PC ((uint16_t)0x0200)
- #define SYSCFG_EXTICR2_EXTI6_PF ((uint16_t)0x0300)
- #define SYSCFG_EXTICR2_EXTI7_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR2_EXTI7_PB ((uint16_t)0x1000)
- #define SYSCFG_EXTICR2_EXTI7_PC ((uint16_t)0x2000)
- #define SYSCFG_EXTICR2_EXTI7_PF ((uint16_t)0x3000)
- #define SYSCFG_EXTICR3_EXTI8 ((uint16_t)0x000F)
- #define SYSCFG_EXTICR3_EXTI9 ((uint16_t)0x00F0)
- #define SYSCFG_EXTICR3_EXTI10 ((uint16_t)0x0F00)
- #define SYSCFG_EXTICR3_EXTI11 ((uint16_t)0xF000)
- #define SYSCFG_EXTICR3_EXTI8_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR3_EXTI8_PB ((uint16_t)0x0001)
- #define SYSCFG_EXTICR3_EXTI8_PC ((uint16_t)0x0002)
- #define SYSCFG_EXTICR3_EXTI9_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR3_EXTI9_PB ((uint16_t)0x0010)
- #define SYSCFG_EXTICR3_EXTI9_PC ((uint16_t)0x0020)
- #define SYSCFG_EXTICR3_EXTI10_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR3_EXTI10_PB ((uint16_t)0x0100)
- #define SYSCFG_EXTICR3_EXTI10_PC ((uint16_t)0x0200)
- #define SYSCFG_EXTICR3_EXTI11_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR3_EXTI11_PB ((uint16_t)0x1000)
- #define SYSCFG_EXTICR3_EXTI11_PC ((uint16_t)0x2000)
- #define SYSCFG_EXTICR4_EXTI12 ((uint16_t)0x000F)
- #define SYSCFG_EXTICR4_EXTI13 ((uint16_t)0x00F0)
- #define SYSCFG_EXTICR4_EXTI14 ((uint16_t)0x0F00)
- #define SYSCFG_EXTICR4_EXTI15 ((uint16_t)0xF000)
- #define SYSCFG_EXTICR4_EXTI12_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR4_EXTI12_PB ((uint16_t)0x0001)
- #define SYSCFG_EXTICR4_EXTI12_PC ((uint16_t)0x0002)
- #define SYSCFG_EXTICR4_EXTI13_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR4_EXTI13_PB ((uint16_t)0x0010)
- #define SYSCFG_EXTICR4_EXTI13_PC ((uint16_t)0x0020)
- #define SYSCFG_EXTICR4_EXTI14_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR4_EXTI14_PB ((uint16_t)0x0100)
- #define SYSCFG_EXTICR4_EXTI14_PC ((uint16_t)0x0200)
- #define SYSCFG_EXTICR4_EXTI15_PA ((uint16_t)0x0000)
- #define SYSCFG_EXTICR4_EXTI15_PB ((uint16_t)0x1000)
- #define SYSCFG_EXTICR4_EXTI15_PC ((uint16_t)0x2000)
- #define SYSCFG_CFGR2_LOCKUP_LOCK ((uint32_t)0x00000001)
- #define SYSCFG_CFGR2_SRAM_PARITY_LOCK ((uint32_t)0x00000002)
- #define SYSCFG_CFGR2_PVD_LOCK ((uint32_t)0x00000004)
- #define SYSCFG_CFGR2_SRAM_PE ((uint32_t)0x00000100)
- #define TIM_CR1_CEN ((uint16_t)0x0001)
- #define TIM_CR1_UDIS ((uint16_t)0x0002)
- #define TIM_CR1_URS ((uint16_t)0x0004)
- #define TIM_CR1_OPM ((uint16_t)0x0008)
- #define TIM_CR1_DIR ((uint16_t)0x0010)
- #define TIM_CR1_CMS ((uint16_t)0x0060)
- #define TIM_CR1_CMS_0 ((uint16_t)0x0020)
- #define TIM_CR1_CMS_1 ((uint16_t)0x0040)
- #define TIM_CR1_ARPE ((uint16_t)0x0080)
- #define TIM_CR1_CKD ((uint16_t)0x0300)
- #define TIM_CR1_CKD_0 ((uint16_t)0x0100)
- #define TIM_CR1_CKD_1 ((uint16_t)0x0200)
- #define TIM_CR2_CCPC ((uint16_t)0x0001)
- #define TIM_CR2_CCUS ((uint16_t)0x0004)
- #define TIM_CR2_CCDS ((uint16_t)0x0008)
- #define TIM_CR2_MMS ((uint16_t)0x0070)
- #define TIM_CR2_MMS_0 ((uint16_t)0x0010)
- #define TIM_CR2_MMS_1 ((uint16_t)0x0020)
- #define TIM_CR2_MMS_2 ((uint16_t)0x0040)
- #define TIM_CR2_TI1S ((uint16_t)0x0080)
- #define TIM_CR2_OIS1 ((uint16_t)0x0100)
- #define TIM_CR2_OIS1N ((uint16_t)0x0200)
- #define TIM_CR2_OIS2 ((uint16_t)0x0400)
- #define TIM_CR2_OIS2N ((uint16_t)0x0800)
- #define TIM_CR2_OIS3 ((uint16_t)0x1000)
- #define TIM_CR2_OIS3N ((uint16_t)0x2000)
- #define TIM_CR2_OIS4 ((uint16_t)0x4000)
- #define TIM_SMCR_SMS ((uint16_t)0x0007)
- #define TIM_SMCR_SMS_0 ((uint16_t)0x0001)
- #define TIM_SMCR_SMS_1 ((uint16_t)0x0002)
- #define TIM_SMCR_SMS_2 ((uint16_t)0x0004)
- #define TIM_SMCR_OCCS ((uint16_t)0x0008)
- #define TIM_SMCR_TS ((uint16_t)0x0070)
- #define TIM_SMCR_TS_0 ((uint16_t)0x0010)
- #define TIM_SMCR_TS_1 ((uint16_t)0x0020)
- #define TIM_SMCR_TS_2 ((uint16_t)0x0040)
- #define TIM_SMCR_MSM ((uint16_t)0x0080)
- #define TIM_SMCR_ETF ((uint16_t)0x0F00)
- #define TIM_SMCR_ETF_0 ((uint16_t)0x0100)
- #define TIM_SMCR_ETF_1 ((uint16_t)0x0200)
- #define TIM_SMCR_ETF_2 ((uint16_t)0x0400)
- #define TIM_SMCR_ETF_3 ((uint16_t)0x0800)
- #define TIM_SMCR_ETPS ((uint16_t)0x3000)
- #define TIM_SMCR_ETPS_0 ((uint16_t)0x1000)
- #define TIM_SMCR_ETPS_1 ((uint16_t)0x2000)
- #define TIM_SMCR_ECE ((uint16_t)0x4000)
- #define TIM_SMCR_ETP ((uint16_t)0x8000)
- #define TIM_DIER_UIE ((uint16_t)0x0001)
- #define TIM_DIER_CC1IE ((uint16_t)0x0002)
- #define TIM_DIER_CC2IE ((uint16_t)0x0004)
- #define TIM_DIER_CC3IE ((uint16_t)0x0008)
- #define TIM_DIER_CC4IE ((uint16_t)0x0010)
- #define TIM_DIER_COMIE ((uint16_t)0x0020)
- #define TIM_DIER_TIE ((uint16_t)0x0040)
- #define TIM_DIER_BIE ((uint16_t)0x0080)
- #define TIM_DIER_UDE ((uint16_t)0x0100)
- #define TIM_DIER_CC1DE ((uint16_t)0x0200)
- #define TIM_DIER_CC2DE ((uint16_t)0x0400)
- #define TIM_DIER_CC3DE ((uint16_t)0x0800)
- #define TIM_DIER_CC4DE ((uint16_t)0x1000)
- #define TIM_DIER_COMDE ((uint16_t)0x2000)
- #define TIM_DIER_TDE ((uint16_t)0x4000)
- #define TIM_SR_UIF ((uint16_t)0x0001)
- #define TIM_SR_CC1IF ((uint16_t)0x0002)
- #define TIM_SR_CC2IF ((uint16_t)0x0004)
- #define TIM_SR_CC3IF ((uint16_t)0x0008)
- #define TIM_SR_CC4IF ((uint16_t)0x0010)
- #define TIM_SR_COMIF ((uint16_t)0x0020)
- #define TIM_SR_TIF ((uint16_t)0x0040)
- #define TIM_SR_BIF ((uint16_t)0x0080)
- #define TIM_SR_CC1OF ((uint16_t)0x0200)
- #define TIM_SR_CC2OF ((uint16_t)0x0400)
- #define TIM_SR_CC3OF ((uint16_t)0x0800)
- #define TIM_SR_CC4OF ((uint16_t)0x1000)
- #define TIM_EGR_UG ((uint8_t)0x01)
- #define TIM_EGR_CC1G ((uint8_t)0x02)
- #define TIM_EGR_CC2G ((uint8_t)0x04)
- #define TIM_EGR_CC3G ((uint8_t)0x08)
- #define TIM_EGR_CC4G ((uint8_t)0x10)
- #define TIM_EGR_COMG ((uint8_t)0x20)
- #define TIM_EGR_TG ((uint8_t)0x40)
- #define TIM_EGR_BG ((uint8_t)0x80)
- #define TIM_CCMR1_CC1S ((uint16_t)0x0003)
- #define TIM_CCMR1_CC1S_0 ((uint16_t)0x0001)
- #define TIM_CCMR1_CC1S_1 ((uint16_t)0x0002)
- #define TIM_CCMR1_OC1FE ((uint16_t)0x0004)
- #define TIM_CCMR1_OC1PE ((uint16_t)0x0008)
- #define TIM_CCMR1_OC1M ((uint16_t)0x0070)
- #define TIM_CCMR1_OC1M_0 ((uint16_t)0x0010)
- #define TIM_CCMR1_OC1M_1 ((uint16_t)0x0020)
- #define TIM_CCMR1_OC1M_2 ((uint16_t)0x0040)
- #define TIM_CCMR1_OC1CE ((uint16_t)0x0080)
- #define TIM_CCMR1_CC2S ((uint16_t)0x0300)
- #define TIM_CCMR1_CC2S_0 ((uint16_t)0x0100)
- #define TIM_CCMR1_CC2S_1 ((uint16_t)0x0200)
- #define TIM_CCMR1_OC2FE ((uint16_t)0x0400)
- #define TIM_CCMR1_OC2PE ((uint16_t)0x0800)
- #define TIM_CCMR1_OC2M ((uint16_t)0x7000)
- #define TIM_CCMR1_OC2M_0 ((uint16_t)0x1000)
- #define TIM_CCMR1_OC2M_1 ((uint16_t)0x2000)
- #define TIM_CCMR1_OC2M_2 ((uint16_t)0x4000)
- #define TIM_CCMR1_OC2CE ((uint16_t)0x8000)
- #define TIM_CCMR1_IC1PSC ((uint16_t)0x000C)
- #define TIM_CCMR1_IC1PSC_0 ((uint16_t)0x0004)
- #define TIM_CCMR1_IC1PSC_1 ((uint16_t)0x0008)
- #define TIM_CCMR1_IC1F ((uint16_t)0x00F0)
- #define TIM_CCMR1_IC1F_0 ((uint16_t)0x0010)
- #define TIM_CCMR1_IC1F_1 ((uint16_t)0x0020)
- #define TIM_CCMR1_IC1F_2 ((uint16_t)0x0040)
- #define TIM_CCMR1_IC1F_3 ((uint16_t)0x0080)
- #define TIM_CCMR1_IC2PSC ((uint16_t)0x0C00)
- #define TIM_CCMR1_IC2PSC_0 ((uint16_t)0x0400)
- #define TIM_CCMR1_IC2PSC_1 ((uint16_t)0x0800)
- #define TIM_CCMR1_IC2F ((uint16_t)0xF000)
- #define TIM_CCMR1_IC2F_0 ((uint16_t)0x1000)
- #define TIM_CCMR1_IC2F_1 ((uint16_t)0x2000)
- #define TIM_CCMR1_IC2F_2 ((uint16_t)0x4000)
- #define TIM_CCMR1_IC2F_3 ((uint16_t)0x8000)
- #define TIM_CCMR2_CC3S ((uint16_t)0x0003)
- #define TIM_CCMR2_CC3S_0 ((uint16_t)0x0001)
- #define TIM_CCMR2_CC3S_1 ((uint16_t)0x0002)
- #define TIM_CCMR2_OC3FE ((uint16_t)0x0004)
- #define TIM_CCMR2_OC3PE ((uint16_t)0x0008)
- #define TIM_CCMR2_OC3M ((uint16_t)0x0070)
- #define TIM_CCMR2_OC3M_0 ((uint16_t)0x0010)
- #define TIM_CCMR2_OC3M_1 ((uint16_t)0x0020)
- #define TIM_CCMR2_OC3M_2 ((uint16_t)0x0040)
- #define TIM_CCMR2_OC3CE ((uint16_t)0x0080)
- #define TIM_CCMR2_CC4S ((uint16_t)0x0300)
- #define TIM_CCMR2_CC4S_0 ((uint16_t)0x0100)
- #define TIM_CCMR2_CC4S_1 ((uint16_t)0x0200)
- #define TIM_CCMR2_OC4FE ((uint16_t)0x0400)
- #define TIM_CCMR2_OC4PE ((uint16_t)0x0800)
- #define TIM_CCMR2_OC4M ((uint16_t)0x7000)
- #define TIM_CCMR2_OC4M_0 ((uint16_t)0x1000)
- #define TIM_CCMR2_OC4M_1 ((uint16_t)0x2000)
- #define TIM_CCMR2_OC4M_2 ((uint16_t)0x4000)
- #define TIM_CCMR2_OC4CE ((uint16_t)0x8000)
- #define TIM_CCMR2_IC3PSC ((uint16_t)0x000C)
- #define TIM_CCMR2_IC3PSC_0 ((uint16_t)0x0004)
- #define TIM_CCMR2_IC3PSC_1 ((uint16_t)0x0008)
- #define TIM_CCMR2_IC3F ((uint16_t)0x00F0)
- #define TIM_CCMR2_IC3F_0 ((uint16_t)0x0010)
- #define TIM_CCMR2_IC3F_1 ((uint16_t)0x0020)
- #define TIM_CCMR2_IC3F_2 ((uint16_t)0x0040)
- #define TIM_CCMR2_IC3F_3 ((uint16_t)0x0080)
- #define TIM_CCMR2_IC4PSC ((uint16_t)0x0C00)
- #define TIM_CCMR2_IC4PSC_0 ((uint16_t)0x0400)
- #define TIM_CCMR2_IC4PSC_1 ((uint16_t)0x0800)
- #define TIM_CCMR2_IC4F ((uint16_t)0xF000)
- #define TIM_CCMR2_IC4F_0 ((uint16_t)0x1000)
- #define TIM_CCMR2_IC4F_1 ((uint16_t)0x2000)
- #define TIM_CCMR2_IC4F_2 ((uint16_t)0x4000)
- #define TIM_CCMR2_IC4F_3 ((uint16_t)0x8000)
- #define TIM_CCER_CC1E ((uint16_t)0x0001)
- #define TIM_CCER_CC1P ((uint16_t)0x0002)
- #define TIM_CCER_CC1NE ((uint16_t)0x0004)
- #define TIM_CCER_CC1NP ((uint16_t)0x0008)
- #define TIM_CCER_CC2E ((uint16_t)0x0010)
- #define TIM_CCER_CC2P ((uint16_t)0x0020)
- #define TIM_CCER_CC2NE ((uint16_t)0x0040)
- #define TIM_CCER_CC2NP ((uint16_t)0x0080)
- #define TIM_CCER_CC3E ((uint16_t)0x0100)
- #define TIM_CCER_CC3P ((uint16_t)0x0200)
- #define TIM_CCER_CC3NE ((uint16_t)0x0400)
- #define TIM_CCER_CC3NP ((uint16_t)0x0800)
- #define TIM_CCER_CC4E ((uint16_t)0x1000)
- #define TIM_CCER_CC4P ((uint16_t)0x2000)
- #define TIM_CCER_CC4NP ((uint16_t)0x8000)
- #define TIM_CNT_CNT ((uint16_t)0xFFFF)
- #define TIM_PSC_PSC ((uint16_t)0xFFFF)
- #define TIM_ARR_ARR ((uint16_t)0xFFFF)
- #define TIM_RCR_REP ((uint8_t)0xFF)
- #define TIM_CCR1_CCR1 ((uint16_t)0xFFFF)
- #define TIM_CCR2_CCR2 ((uint16_t)0xFFFF)
- #define TIM_CCR3_CCR3 ((uint16_t)0xFFFF)
- #define TIM_CCR4_CCR4 ((uint16_t)0xFFFF)
- #define TIM_BDTR_DTG ((uint16_t)0x00FF)
- #define TIM_BDTR_DTG_0 ((uint16_t)0x0001)
- #define TIM_BDTR_DTG_1 ((uint16_t)0x0002)
- #define TIM_BDTR_DTG_2 ((uint16_t)0x0004)
- #define TIM_BDTR_DTG_3 ((uint16_t)0x0008)
- #define TIM_BDTR_DTG_4 ((uint16_t)0x0010)
- #define TIM_BDTR_DTG_5 ((uint16_t)0x0020)
- #define TIM_BDTR_DTG_6 ((uint16_t)0x0040)
- #define TIM_BDTR_DTG_7 ((uint16_t)0x0080)
- #define TIM_BDTR_LOCK ((uint16_t)0x0300)
- #define TIM_BDTR_LOCK_0 ((uint16_t)0x0100)
- #define TIM_BDTR_LOCK_1 ((uint16_t)0x0200)
- #define TIM_BDTR_OSSI ((uint16_t)0x0400)
- #define TIM_BDTR_OSSR ((uint16_t)0x0800)
- #define TIM_BDTR_BKE ((uint16_t)0x1000)
- #define TIM_BDTR_BKP ((uint16_t)0x2000)
- #define TIM_BDTR_AOE ((uint16_t)0x4000)
- #define TIM_BDTR_MOE ((uint16_t)0x8000)
- #define TIM_DCR_DBA ((uint16_t)0x001F)
- #define TIM_DCR_DBA_0 ((uint16_t)0x0001)
- #define TIM_DCR_DBA_1 ((uint16_t)0x0002)
- #define TIM_DCR_DBA_2 ((uint16_t)0x0004)
- #define TIM_DCR_DBA_3 ((uint16_t)0x0008)
- #define TIM_DCR_DBA_4 ((uint16_t)0x0010)
- #define TIM_DCR_DBL ((uint16_t)0x1F00)
- #define TIM_DCR_DBL_0 ((uint16_t)0x0100)
- #define TIM_DCR_DBL_1 ((uint16_t)0x0200)
- #define TIM_DCR_DBL_2 ((uint16_t)0x0400)
- #define TIM_DCR_DBL_3 ((uint16_t)0x0800)
- #define TIM_DCR_DBL_4 ((uint16_t)0x1000)
- #define TIM_DMAR_DMAB ((uint16_t)0xFFFF)
- #define TIM14_OR_TI1_RMP ((uint16_t)0x0003)
- #define TIM14_OR_TI1_RMP_0 ((uint16_t)0x0001)
- #define TIM14_OR_TI1_RMP_1 ((uint16_t)0x0002)
- #define USART_CR1_UE ((uint32_t)0x00000001)
- #define USART_CR1_UESM ((uint32_t)0x00000002)
- #define USART_CR1_RE ((uint32_t)0x00000004)
- #define USART_CR1_TE ((uint32_t)0x00000008)
- #define USART_CR1_IDLEIE ((uint32_t)0x00000010)
- #define USART_CR1_RXNEIE ((uint32_t)0x00000020)
- #define USART_CR1_TCIE ((uint32_t)0x00000040)
- #define USART_CR1_TXEIE ((uint32_t)0x00000080)
- #define USART_CR1_PEIE ((uint32_t)0x00000100)
- #define USART_CR1_PS ((uint32_t)0x00000200)
- #define USART_CR1_PCE ((uint32_t)0x00000400)
- #define USART_CR1_WAKE ((uint32_t)0x00000800)
- #define USART_CR1_M ((uint32_t)0x00001000)
- #define USART_CR1_MME ((uint32_t)0x00002000)
- #define USART_CR1_CMIE ((uint32_t)0x00004000)
- #define USART_CR1_OVER8 ((uint32_t)0x00008000)
- #define USART_CR1_DEDT ((uint32_t)0x001F0000)
- #define USART_CR1_DEDT_0 ((uint32_t)0x00010000)
- #define USART_CR1_DEDT_1 ((uint32_t)0x00020000)
- #define USART_CR1_DEDT_2 ((uint32_t)0x00040000)
- #define USART_CR1_DEDT_3 ((uint32_t)0x00080000)
- #define USART_CR1_DEDT_4 ((uint32_t)0x00100000)
- #define USART_CR1_DEAT ((uint32_t)0x03E00000)
- #define USART_CR1_DEAT_0 ((uint32_t)0x00200000)
- #define USART_CR1_DEAT_1 ((uint32_t)0x00400000)
- #define USART_CR1_DEAT_2 ((uint32_t)0x00800000)
- #define USART_CR1_DEAT_3 ((uint32_t)0x01000000)
- #define USART_CR1_DEAT_4 ((uint32_t)0x02000000)
- #define USART_CR1_RTOIE ((uint32_t)0x04000000)
- #define USART_CR1_EOBIE ((uint32_t)0x08000000)
- #define USART_CR2_ADDM7 ((uint32_t)0x00000010)
- #define USART_CR2_LBDL ((uint32_t)0x00000020)
- #define USART_CR2_LBDIE ((uint32_t)0x00000040)
- #define USART_CR2_LBCL ((uint32_t)0x00000100)
- #define USART_CR2_CPHA ((uint32_t)0x00000200)
- #define USART_CR2_CPOL ((uint32_t)0x00000400)
- #define USART_CR2_CLKEN ((uint32_t)0x00000800)
- #define USART_CR2_STOP ((uint32_t)0x00003000)
- #define USART_CR2_STOP_0 ((uint32_t)0x00001000)
- #define USART_CR2_STOP_1 ((uint32_t)0x00002000)
- #define USART_CR2_LINEN ((uint32_t)0x00004000)
- #define USART_CR2_SWAP ((uint32_t)0x00008000)
- #define USART_CR2_RXINV ((uint32_t)0x00010000)
- #define USART_CR2_TXINV ((uint32_t)0x00020000)
- #define USART_CR2_DATAINV ((uint32_t)0x00040000)
- #define USART_CR2_MSBFIRST ((uint32_t)0x00080000)
- #define USART_CR2_ABREN ((uint32_t)0x00100000)
- #define USART_CR2_ABRMODE ((uint32_t)0x00600000)
- #define USART_CR2_ABRMODE_0 ((uint32_t)0x00200000)
- #define USART_CR2_ABRMODE_1 ((uint32_t)0x00400000)
- #define USART_CR2_RTOEN ((uint32_t)0x00800000)
- #define USART_CR2_ADD ((uint32_t)0xFF000000)
- #define USART_CR3_EIE ((uint32_t)0x00000001)
- #define USART_CR3_IREN ((uint32_t)0x00000002)
- #define USART_CR3_IRLP ((uint32_t)0x00000004)
- #define USART_CR3_HDSEL ((uint32_t)0x00000008)
- #define USART_CR3_NACK ((uint32_t)0x00000010)
- #define USART_CR3_SCEN ((uint32_t)0x00000020)
- #define USART_CR3_DMAR ((uint32_t)0x00000040)
- #define USART_CR3_DMAT ((uint32_t)0x00000080)
- #define USART_CR3_RTSE ((uint32_t)0x00000100)
- #define USART_CR3_CTSE ((uint32_t)0x00000200)
- #define USART_CR3_CTSIE ((uint32_t)0x00000400)
- #define USART_CR3_ONEBIT ((uint32_t)0x00000800)
- #define USART_CR3_OVRDIS ((uint32_t)0x00001000)
- #define USART_CR3_DDRE ((uint32_t)0x00002000)
- #define USART_CR3_DEM ((uint32_t)0x00004000)
- #define USART_CR3_DEP ((uint32_t)0x00008000)
- #define USART_CR3_SCARCNT ((uint32_t)0x000E0000)
- #define USART_CR3_SCARCNT_0 ((uint32_t)0x00020000)
- #define USART_CR3_SCARCNT_1 ((uint32_t)0x00040000)
- #define USART_CR3_SCARCNT_2 ((uint32_t)0x00080000)
- #define USART_CR3_WUS ((uint32_t)0x00300000)
- #define USART_CR3_WUS_0 ((uint32_t)0x00100000)
- #define USART_CR3_WUS_1 ((uint32_t)0x00200000)
- #define USART_CR3_WUFIE ((uint32_t)0x00400000)
- #define USART_BRR_DIV_FRACTION ((uint16_t)0x000F)
- #define USART_BRR_DIV_MANTISSA ((uint16_t)0xFFF0)
- #define USART_GTPR_PSC ((uint16_t)0x00FF)
- #define USART_GTPR_GT ((uint16_t)0xFF00)
- #define USART_RTOR_RTO ((uint32_t)0x00FFFFFF)
- #define USART_RTOR_BLEN ((uint32_t)0xFF000000)
- #define USART_RQR_ABRRQ ((uint16_t)0x0001)
- #define USART_RQR_SBKRQ ((uint16_t)0x0002)
- #define USART_RQR_MMRQ ((uint16_t)0x0004)
- #define USART_RQR_RXFRQ ((uint16_t)0x0008)
- #define USART_RQR_TXFRQ ((uint16_t)0x0010)
- #define USART_ISR_PE ((uint32_t)0x00000001)
- #define USART_ISR_FE ((uint32_t)0x00000002)
- #define USART_ISR_NE ((uint32_t)0x00000004)
- #define USART_ISR_ORE ((uint32_t)0x00000008)
- #define USART_ISR_IDLE ((uint32_t)0x00000010)
- #define USART_ISR_RXNE ((uint32_t)0x00000020)
- #define USART_ISR_TC ((uint32_t)0x00000040)
- #define USART_ISR_TXE ((uint32_t)0x00000080)
- #define USART_ISR_LBD ((uint32_t)0x00000100)
- #define USART_ISR_CTSIF ((uint32_t)0x00000200)
- #define USART_ISR_CTS ((uint32_t)0x00000400)
- #define USART_ISR_RTOF ((uint32_t)0x00000800)
- #define USART_ISR_EOBF ((uint32_t)0x00001000)
- #define USART_ISR_ABRE ((uint32_t)0x00004000)
- #define USART_ISR_ABRF ((uint32_t)0x00008000)
- #define USART_ISR_BUSY ((uint32_t)0x00010000)
- #define USART_ISR_CMF ((uint32_t)0x00020000)
- #define USART_ISR_SBKF ((uint32_t)0x00040000)
- #define USART_ISR_RWU ((uint32_t)0x00080000)
- #define USART_ISR_WUF ((uint32_t)0x00100000)
- #define USART_ISR_TEACK ((uint32_t)0x00200000)
- #define USART_ISR_REACK ((uint32_t)0x00400000)
- #define USART_ICR_PECF ((uint32_t)0x00000001)
- #define USART_ICR_FECF ((uint32_t)0x00000002)
- #define USART_ICR_NCF ((uint32_t)0x00000004)
- #define USART_ICR_ORECF ((uint32_t)0x00000008)
- #define USART_ICR_IDLECF ((uint32_t)0x00000010)
- #define USART_ICR_TCCF ((uint32_t)0x00000040)
- #define USART_ICR_LBDCF ((uint32_t)0x00000100)
- #define USART_ICR_CTSCF ((uint32_t)0x00000200)
- #define USART_ICR_RTOCF ((uint32_t)0x00000800)
- #define USART_ICR_EOBCF ((uint32_t)0x00001000)
- #define USART_ICR_CMCF ((uint32_t)0x00020000)
- #define USART_ICR_WUCF ((uint32_t)0x00100000)
- #define USART_RDR_RDR ((uint16_t)0x01FF)
- #define USART_TDR_TDR ((uint16_t)0x01FF)
- #define WWDG_CR_T ((uint8_t)0x7F)
- #define WWDG_CR_T0 ((uint8_t)0x01)
- #define WWDG_CR_T1 ((uint8_t)0x02)
- #define WWDG_CR_T2 ((uint8_t)0x04)
- #define WWDG_CR_T3 ((uint8_t)0x08)
- #define WWDG_CR_T4 ((uint8_t)0x10)
- #define WWDG_CR_T5 ((uint8_t)0x20)
- #define WWDG_CR_T6 ((uint8_t)0x40)
- #define WWDG_CR_WDGA ((uint8_t)0x80)
- #define WWDG_CFR_W ((uint16_t)0x007F)
- #define WWDG_CFR_W0 ((uint16_t)0x0001)
- #define WWDG_CFR_W1 ((uint16_t)0x0002)
- #define WWDG_CFR_W2 ((uint16_t)0x0004)
- #define WWDG_CFR_W3 ((uint16_t)0x0008)
- #define WWDG_CFR_W4 ((uint16_t)0x0010)
- #define WWDG_CFR_W5 ((uint16_t)0x0020)
- #define WWDG_CFR_W6 ((uint16_t)0x0040)
- #define WWDG_CFR_WDGTB ((uint16_t)0x0180)
- #define WWDG_CFR_WDGTB0 ((uint16_t)0x0080)
- #define WWDG_CFR_WDGTB1 ((uint16_t)0x0100)
- #define WWDG_CFR_EWI ((uint16_t)0x0200)
- #define WWDG_SR_EWIF ((uint8_t)0x01)
-
-
- #ifdef USE_STDPERIPH_DRIVER
- #include "stm32f0xx_conf.h"
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
-
|