mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0c2cfe99e6
Adds a separate board for native64 instead of the `NATIVE_64BIT` workaround. The files in `boards/native64` are more or less dummy files and just include the `boards/native` logic (similar to `openlabs-kw41z-mini-256kib`). The main logic for native is in `makefiles/arch/native.inc.mk`, `cpu/native` and `boards/native`. The remaining changes concern the build system, and change native board checks to native CPU checks to cover both boards.
47 lines
1.2 KiB
Diff
47 lines
1.2 KiB
Diff
From 3a6aa2c894923f3d4a5aff0ea09e71f7c68dbde7 Mon Sep 17 00:00:00 2001
|
|
From: Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
Date: Sat, 23 Nov 2019 13:11:00 +0100
|
|
Subject: [PATCH] Fix mbed specific code
|
|
|
|
---
|
|
src/uTensor/util/uTensor_util.cpp | 4 ++--
|
|
src/uTensor/util/uTensor_util.hpp | 2 --
|
|
2 files changed, 2 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/uTensor/util/uTensor_util.cpp b/src/uTensor/util/uTensor_util.cpp
|
|
index 4d1dd48..32c50df 100644
|
|
--- a/src/uTensor/util/uTensor_util.cpp
|
|
+++ b/src/uTensor/util/uTensor_util.cpp
|
|
@@ -1,5 +1,5 @@
|
|
#include "src/uTensor/util/uTensor_util.hpp"
|
|
-#if !(defined(TARGET_MBED) || defined(ARDUINO))
|
|
+#ifdef CPU_NATIVE
|
|
#include <sys/stat.h>
|
|
#include <dirent.h>
|
|
#endif
|
|
@@ -45,7 +45,7 @@ uint32_t ntoh32(uint32_t val) {
|
|
return ret;
|
|
}
|
|
|
|
-#ifdef ARDUINO
|
|
+#ifndef CPU_NATIVE
|
|
void int_env() {
|
|
}
|
|
#else
|
|
diff --git a/src/uTensor/util/uTensor_util.hpp b/src/uTensor/util/uTensor_util.hpp
|
|
index 25ebcf3..5390ed8 100644
|
|
--- a/src/uTensor/util/uTensor_util.hpp
|
|
+++ b/src/uTensor/util/uTensor_util.hpp
|
|
@@ -106,8 +106,6 @@ void printVector(std::vector<uint32_t> vec);
|
|
#undef min
|
|
#undef round
|
|
#undef abs
|
|
-#else
|
|
- #include "mbed.h"
|
|
#endif
|
|
//# error "Unknown compiler"
|
|
// little endian to big endian
|
|
--
|
|
2.20.1
|
|
|