mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/wakaama: use ztimer
This commit is contained in:
parent
1ef44844e0
commit
5aa99c0337
@ -11,7 +11,8 @@ USEMODULE += wakaama_objects
|
|||||||
# include the 'device' object implementation (mandatory)
|
# include the 'device' object implementation (mandatory)
|
||||||
USEMODULE += wakaama_objects_device
|
USEMODULE += wakaama_objects_device
|
||||||
|
|
||||||
USEMODULE += xtimer
|
USEMODULE += ztimer
|
||||||
|
USEMODULE += ztimer_sec
|
||||||
USEPKG += tlsf
|
USEPKG += tlsf
|
||||||
|
|
||||||
# If logs for the package are active, we need fmt
|
# If logs for the package are active, we need fmt
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "xtimer.h"
|
#include "ztimer.h"
|
||||||
#include "tlsf.h"
|
#include "tlsf.h"
|
||||||
|
|
||||||
#include "lwm2m_platform.h"
|
#include "lwm2m_platform.h"
|
||||||
@ -103,7 +103,7 @@ int lwm2m_strncmp(const char *s1, const char *s2, size_t n)
|
|||||||
|
|
||||||
time_t lwm2m_gettime(void)
|
time_t lwm2m_gettime(void)
|
||||||
{
|
{
|
||||||
return (time_t)(xtimer_now_usec64() / US_PER_SEC);
|
return (time_t)(ztimer_now(ZTIMER_SEC));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For clang we need to specify that the first argument will be a format string
|
/* For clang we need to specify that the first argument will be a format string
|
||||||
|
Loading…
Reference in New Issue
Block a user