mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 08:43:10 +00:00
89a6c09a7a
* Documentation: add Doxyfile, prepare sources for doxygen. * Update ReadMe and remove obsolete CLA * Add contribution guide * Contributing: update text * Correct spelling
41 lines
626 B
C
41 lines
626 B
C
/**
|
|
* @file furi-hal-delay.h
|
|
* Delay HAL API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "main.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Init DWT
|
|
*/
|
|
void furi_hal_delay_init(void);
|
|
|
|
/** Delay in milliseconds
|
|
* @warning Cannot be used from ISR
|
|
*
|
|
* @param[in] milliseconds milliseconds to wait
|
|
*/
|
|
void delay(float milliseconds);
|
|
|
|
/** Delay in microseconds
|
|
*
|
|
* @param[in] microseconds microseconds to wait
|
|
*/
|
|
void delay_us(float microseconds);
|
|
|
|
/** Get current millisecond
|
|
*
|
|
* System uptime, pProvided by HAL, may overflow.
|
|
*
|
|
* @return Current milliseconds
|
|
*/
|
|
uint32_t millis(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|