make nrf51822 nimble blehr work

This commit is contained in:
daishengdong
2019-10-14 19:45:24 +08:00
parent a30cf29410
commit 56f4f82dd2
43 changed files with 1053 additions and 415 deletions

View File

@@ -6,7 +6,7 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
@@ -53,7 +53,7 @@ extern "C" {
(((x) & 0x00ff) << 8)))
#endif
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#if defined (__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#ifndef ntohll
#define ntohll(x) ((uint64_t)(x))