收藏0 举报
/**************************************************************************** * 名 称:void Delay(__IO uint32_t nTime) * 功 能:定时延时程序 1ms为单位 * 入口参数:无 * 出口参数:无 * 说 明: * 调用方法:无 ****************************************************************************/ void Delay(__IO uint32_t nTime) { TimingDelay = nTime; while(TimingDelay != 0); }
while (1) { GPIO_SetBits(GPIOB, GPIO_Pin_8); //LED1 亮 Delay(500); //延时500ms GPIO_ResetBits(GPIOB, GPIO_Pin_8); //LED1 灭 Delay(500); //延时500ms }
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
44
470
2
扫码关注 21ic 官方微信
扫码关注嵌入式微处理器
扫码关注电源系统设计
扫码关注21ic项目外包
扫码浏览21ic手机版
本站介绍 | 申请友情链接 | 欢迎投稿 | 隐私声明 | 广告业务 | 网站地图 | 联系我们 | 诚聘英才
京公网安备 11010802024343号