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