cpu/atmega_common: add struct timespec to time.h
This commit is contained in:
parent
b597700a67
commit
442634728f
9
cpu/atmega_common/include/vendor/time.h
vendored
9
cpu/atmega_common/include/vendor/time.h
vendored
@ -501,6 +501,15 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
unsigned long lm_sidereal(const time_t * timer);
|
unsigned long lm_sidereal(const time_t * timer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Definition of struct timespec for the atmega
|
||||||
|
NOTE: Added for RIOT compatibility and standard compliance
|
||||||
|
*/
|
||||||
|
struct timespec {
|
||||||
|
time_t tv_sec;
|
||||||
|
long tv_nsec;
|
||||||
|
};
|
||||||
|
|
||||||
/* @} */
|
/* @} */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user