Skip to content

Adjust folders for Arduino library format #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix imports and overqualified hash
  • Loading branch information
mbartling authored and sandeepmistry committed May 24, 2019
commit e4b5a9ec76f2dc2f66b4623f4e46bff80f331ff3
5 changes: 5 additions & 0 deletions mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "utensor",
"macros": ["TARGET_MBED"]
}

2 changes: 1 addition & 1 deletion src/uTensor/core/utensor_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace utensor {


namespace std {
template<> struct std::hash<utensor::string>
template<> struct hash<utensor::string>
{
typedef utensor::string argument_type;
typedef std::size_t result_type;
Expand Down
5 changes: 4 additions & 1 deletion src/uTensor/util/uTensor_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ void printVector(std::vector<uint32_t> vec);
#elif defined(_POSIX_VERSION)
// POSIX
#else
//#include "mbed.h"
#if ARDUINO
#include "Arduino.h"
#else
#include "mbed.h"
#endif
//# error "Unknown compiler"
// little endian to big endian
//uint32_t htonl(uint32_t& val);
Expand Down