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

Implementation of stm32 delay functions. More...

#include <stdbool.h>
#include "stm32_hal.h"
#include "no_os_delay.h"
Include dependency graph for stm32_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 stm32 delay functions.

Author
Darius Berghe (dariu.nosp@m.s.be.nosp@m.rghe@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2020(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.