mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
47 lines
1.3 KiB
Diff
47 lines
1.3 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 BOARD_NATIVE
|
|
#include <sys/stat.h>
|
|
#include <dirent.h>
|
|
#endif
|
|
@@ -45,7 +45,7 @@ uint32_t ntoh32(uint32_t val) {
|
|
return ret;
|
|
}
|
|
|
|
-#ifdef ARDUINO
|
|
+#ifndef BOARD_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
|
|
|