10 lines
107 B
C
10 lines
107 B
C
|
#include <delay.h>
|
||
|
|
||
|
volatile uint32_t tick;
|
||
|
|
||
|
void delay_ms(uint32_t ms)
|
||
|
{
|
||
|
tick = 0;
|
||
|
while (tick < ms);
|
||
|
}
|