新手入门提问点亮LED

[复制链接]
431|0
 楼主| 丑帅丑帅的 发表于 2020-4-25 19:00 | 显示全部楼层 |阅读模式
#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,哪错了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

741

主题

742

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部