Solaris Software
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 */
24
25/**
26 * @brief Return the current hardware time in microseconds.
27 *
28 * @return Elapsed time in ms (monotonically non-decreasing).
29 */
31
32/**
33 * @brief Block for the requested number of milliseconds.
34 *
35 * @param[in] ms Number of milliseconds to delay.
36 */
38
39#endif /* SPP_HAL_TIME_H */
spp_uint32_t SPP_HAL_TIME_getTimeMs(void)
Return the current hardware time in milliseconds.
Definition time.c:17
spp_uint32_t SPP_HAL_TIME_getTimeUs(void)
Return the current hardware time in microseconds.
Definition time.c:27
void SPP_HAL_TIME_delayMs(spp_uint32_t ms)
Block for the requested number of milliseconds.
Definition time.c:37
Portable integer types and SPI/storage configuration types for SPP.
uint32_t spp_uint32_t
Definition types.h:31