You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KED/env/csl/stm32f042/Src/imp_delay.c

15 lines
178 B

#include "delay.h"
#include "stm32f042x6.h"
void delayMs(uint16_t delay)
{
while (delay)
{
if ((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) != 0U)
{
delay--;
}
}
}