标题: stm32f103的延时函数代码 [打印本页]

作者: ggx123    时间: 2018-8-27 17:24
标题: stm32f103的延时函数代码
#include "stm32f10x.h"
#include "typedefs.h"
#include "Delay.h"
void Delay_ms(UINT32 NCounter)
{
UINT32 Delay_Counter_1ms=2000;
while(NCounter)
{
  while(Delay_Counter_1ms)
  {
   Delay_Counter_1ms--;
  }
  NCounter--;
  Delay_Counter_1ms=2000;
}
}






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1