正在加载图片...
Peripheral base address in the bit-band region * define PEriPh base (U32)0x4000000 Peripheral memory map define aPb1PEriPh base PeriPh base define APB2PERIPH_ BASE (PERIPH_ BASE +OX1 0000) #define AHBPERIPH_ BASE (PERIPH_ BASE 0x2 0000) define rcc base (AHBPERIPH BASE 0x1000) ifdef rcc define rcc ((RCC- Type Def *)RCC- BaSe Hfendif /*rcc * Pay attention to the Macro definition. RCC in the programs will be replaced with((RCC_TypeDef*)0X40021000)14 /* Peripheral base address in the bit-band region */ #define PERIPH_BASE ((u32)0x40000000) /* Peripheral memory map */ #define APB1PERIPH_BASE PERIPH_BASE #define APB2PERIPH_BASE (PERIPH_BASE + 0x1 0000) #define AHBPERIPH_BASE (PERIPH_BASE + 0x2 0000) #define RCC_BASE (AHBPERIPH_BASE + 0x1000) #ifdef _RCC #define RCC ((RCC_TypeDef *) RCC_BASE) #endif /*_RCC */  Pay attention to the Macro definition. RCC in the programs will be replaced with ((RCC_TypeDef *) 0x40021000)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有