7918| 8
|
有大佬知道我的为什么不亮吗?没用仿真器 |
1金钱
最佳答案这个程序可以正常运行,PB5输出方波。
#include "sys.h"
#include "usart.h"
#include "delay.h"
#include "led.h"
int main(void)
{
delay_init(72); //延时初始化
while(1)
{
//打开GPIOB端口的时钟(红色)
*(unsigned int *)0x40021018 |=((1)
| ||
| ||
| ||
| ||
日常敲键--头秃一片
|
||
| ||
| ||
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-8 02:32
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网