no-OS
Loading...
Searching...
No Matches
freertos_delay.c File Reference

Implementation of freertos delay functions. More...

#include <stdbool.h>
#include <stdint.h>
#include "FreeRTOS.h"
#include "no_os_delay.h"
#include "task.h"
Include dependency graph for freertos_delay.c:

Functions

void no_os_udelay (uint32_t usecs)
 Generate microseconds delay.
 
void no_os_mdelay (uint32_t msecs)
 Generate miliseconds delay.
 
struct no_os_time no_os_get_time (void)
 Get current time.
 

Detailed Description

Implementation of freertos delay functions.

Author
Robert Budai (rober.nosp@m.t.bu.nosp@m.dai@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2023(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)

Generate miliseconds delay.

Wait until msecs milliseconds passed.

Parameters
msecs- Delay in miliseconds.

◆ no_os_udelay()

void no_os_udelay ( uint32_t usecs)

Generate microseconds delay.

Wait until usecs microseconds passed.

Parameters
usecs- Delay in microseconds.