no-OS
Loading...
Searching...
No Matches
no_os_delay.h File Reference

Header file of Delay functions. More...

#include <stdint.h>
Include dependency graph for no_os_delay.h:

Classes

struct  no_os_time
 Structure holding time data (seconds, microseconds). More...
 

Functions

void no_os_udelay (uint32_t usecs)
 Wait until usecs microseconds passed.
 
void no_os_mdelay (uint32_t msecs)
 Wait until msecs milliseconds passed.
 
struct no_os_time no_os_get_time (void)
 Get current time.
 

Detailed Description

Header file of Delay functions.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2019(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ no_os_get_time()

struct no_os_time no_os_get_time ( void )

Get current time.

Returns
Current time structure from system start (seconds, microseconds).

◆ no_os_mdelay()

void no_os_mdelay ( uint32_t msecs)

Wait until msecs milliseconds passed.

Parameters
msecs- Number of milliseconds to wait

Wait until msecs milliseconds passed.

Parameters
msecs- Delay in miliseconds.

Wait until msecs milliseconds passed.

Parameters
msecs- Delay in milliseconds.

◆ no_os_udelay()

void no_os_udelay ( uint32_t usecs)

Wait until usecs microseconds passed.

Parameters
usecs- Number of microseconds to wait

Wait until usecs microseconds passed.

Parameters
usecs- Delay in microseconds.