#define RCC_APB2ENT *(volatile unsigned long *)0x40021018
#define GPI0B_CRH *(volatile unsigned long *)0x40010c04
#define GPIOB_ODR *(volatile unsigned long *)0x40010c0c
int main()
{
RCC_APB2ENT |=1<<3;
GPI0B_CRH =0x20000000;
GPIOB_ODR =0<<15;
}
void SystemInit()
{
}
这样点亮不了PB15口连上的LED,哪错了? |