Ejemplo n.º 1
0
void sys_tick_wait_time_ms(uint32_t wait_ms)
{
    uint32_t start, end;
    uint32_t tickms;

    start = sys_tick_get_time_ms();

    do
    {
        end = sys_tick_get_time_ms();
        tickms = sys_tick_delta_time_ms(start, end);
    } while(tickms < wait_ms);
}
Ejemplo n.º 2
0
void sys_tick_wait_time_ms(u32 wait_ms)
{
    u32 start, end;
    u32 tickms;

    start = sys_tick_get_time_ms();

    do
    {
        end = sys_tick_get_time_ms();
        tickms = sys_tick_delta_time_ms(start, end);
    }while(tickms < wait_ms);
}