Time source.
More...
Go to the source code of this file.
|
| #define | TIME_INLINE(_subsys, _api_func) |
| | Calculate static inline time API function name.
|
| #define | PROVIDE_TIME(_subsys, _api_func, _func) |
| | Provide a time API implementation.
|
| #define | PROVIDE_TIME_INLINE(_subsys, _api_func) |
| | Provide a static inline time API implementation.
|
Time source.
Definition in file time.h.
◆ TIME_INLINE
| #define TIME_INLINE |
( |
| _subsys, |
|
|
| _api_func ) |
Value:
#define SINGLE_API_INLINE(_prefix, _api_func)
Calculate static inline function name.
Calculate static inline time API function name.
- Parameters
-
| _prefix | Subsystem prefix |
| _api_func | API function |
- Return values
-
| _subsys_func | Subsystem API function |
Definition at line 24 of file time.h.
24#define TIME_INLINE( _subsys, _api_func ) \
25 SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func )
◆ PROVIDE_TIME
| #define PROVIDE_TIME |
( |
| _subsys, |
|
|
| _api_func, |
|
|
| _func ) |
Value:
#define PROVIDE_SINGLE_API(_prefix, _api_func, _func)
Provide an API implementation.
Provide a time API implementation.
- Parameters
-
| _prefix | Subsystem prefix |
| _api_func | API function |
| _func | Implementing function |
Definition at line 34 of file time.h.
34#define PROVIDE_TIME( _subsys, _api_func, _func ) \
35 PROVIDE_SINGLE_API ( TIME_PREFIX_ ## _subsys, _api_func, _func )
◆ PROVIDE_TIME_INLINE
| #define PROVIDE_TIME_INLINE |
( |
| _subsys, |
|
|
| _api_func ) |
Value:
#define PROVIDE_SINGLE_API_INLINE(_prefix, _api_func)
Provide a static inline API implementation.
Provide a static inline time API implementation.
- Parameters
-
| _prefix | Subsystem prefix |
| _api_func | API function |
Definition at line 43 of file time.h.
43#define PROVIDE_TIME_INLINE( _subsys, _api_func ) \
44 PROVIDE_SINGLE_API_INLINE ( TIME_PREFIX_ ## _subsys, _api_func )
◆ FILE_LICENCE()
| FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL | | ) |
|
◆ FILE_SECBOOT()
| FILE_SECBOOT |
( |
PERMITTED | | ) |
|
◆ time_now()
◆ __attribute__()
| __attribute__ |
( |
(always_inline) | | ) |
|
|
inlinestatic |
Adjust system clock.
- Parameters
-
| delta | Clock adjustment, in seconds |
Definition at line 68 of file time.h.
69 {
70
72}
signed long time_offset
Current system clock offset.
References time_offset.
◆ time_offset