Solaris Software
Toggle main menu visibility
Loading...
Searching...
No Matches
time.h
Go to the documentation of this file.
1
/**
2
* @file time.h
3
* @brief SPP HAL time API — dispatches through the registered HAL port.
4
*
5
* Naming conventions used in this file:
6
* - Public functions: SPP_HAL_*()
7
*/
8
9
#ifndef SPP_HAL_TIME_H
10
#define SPP_HAL_TIME_H
11
12
#include "
spp/core/types.h
"
13
14
/* ----------------------------------------------------------------
15
* Public API
16
* ---------------------------------------------------------------- */
17
18
/**
19
* @brief Return the current hardware time in milliseconds.
20
*
21
* @return Elapsed time in ms (monotonically non-decreasing).
22
*/
23
spp_uint32_t
SPP_HAL_TIME_getTimeMs
(
void
);
24
25
/**
26
* @brief Return the current hardware time in microseconds.
27
*
28
* @return Elapsed time in ms (monotonically non-decreasing).
29
*/
30
spp_uint32_t
SPP_HAL_TIME_getTimeUs
(
void
);
31
32
/**
33
* @brief Block for the requested number of milliseconds.
34
*
35
* @param[in] ms Number of milliseconds to delay.
36
*/
37
void
SPP_HAL_TIME_delayMs
(
spp_uint32_t
ms);
38
39
#endif
/* SPP_HAL_TIME_H */
SPP_HAL_TIME_getTimeMs
spp_uint32_t SPP_HAL_TIME_getTimeMs(void)
Return the current hardware time in milliseconds.
Definition
time.c:17
SPP_HAL_TIME_getTimeUs
spp_uint32_t SPP_HAL_TIME_getTimeUs(void)
Return the current hardware time in microseconds.
Definition
time.c:27
SPP_HAL_TIME_delayMs
void SPP_HAL_TIME_delayMs(spp_uint32_t ms)
Block for the requested number of milliseconds.
Definition
time.c:37
types.h
Portable integer types and SPI/storage configuration types for SPP.
spp_uint32_t
uint32_t spp_uint32_t
Definition
types.h:31
solaris-v2
spp
hal
time
time.h
Generated by
1.18.0