Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions core/shared/platform/nuttx/nuttx_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,3 @@ os_mprotect(void *addr, size_t size, int prot)
void
os_dcache_flush()
{}

uint64
os_time_get_boot_microsecond()
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
return 0;
}

return ((uint64)ts.tv_sec) * 1000 * 1000 + ((uint64)ts.tv_nsec) / 1000;
}
80 changes: 0 additions & 80 deletions core/shared/platform/nuttx/nuttx_thread.c

This file was deleted.

2 changes: 2 additions & 0 deletions core/shared/platform/nuttx/platform_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <sys/mman.h>

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 3 additions & 1 deletion product-mini/platforms/nuttx/wamr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ CFLAGS += -I${IWASM_ROOT}/interpreter
endif

CSRCS += nuttx_platform.c \
nuttx_thread.c \
posix_thread.c \
posix_time.c \
mem_alloc.c \
ems_kfc.c \
ems_alloc.c \
Expand All @@ -176,6 +177,7 @@ CSRCS += nuttx_platform.c \
ASRCS += ${INVOKE_NATIVE}

VPATH += ${SHARED_ROOT}/platform/nuttx
VPATH += ${SHARED_ROOT}/platform/common/posix
VPATH += ${SHARED_ROOT}/mem-alloc
VPATH += ${SHARED_ROOT}/mem-alloc/ems
VPATH += ${SHARED_ROOT}/utils
Expand Down