nimble: Remove ble_hs_endian_priv.h API

This API is no longer used and so/endian.h should be used instead.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/dccf07dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/dccf07dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/dccf07dc

Branch: refs/heads/master
Commit: dccf07dc4cb7fae81c6942b135f6a67cfa03a631
Parents: 82674a0
Author: Szymon Janc <[email protected]>
Authored: Fri Mar 24 15:50:10 2017 +0100
Committer: Szymon Janc <[email protected]>
Committed: Mon Apr 10 11:31:33 2017 +0200

----------------------------------------------------------------------
 net/nimble/host/src/ble_hs_endian_priv.h | 65 ---------------------------
 net/nimble/host/src/ble_hs_priv.h        |  1 -
 2 files changed, 66 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/dccf07dc/net/nimble/host/src/ble_hs_endian_priv.h
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs_endian_priv.h 
b/net/nimble/host/src/ble_hs_endian_priv.h
deleted file mode 100644
index 79a702f..0000000
--- a/net/nimble/host/src/ble_hs_endian_priv.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * 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,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef H_BLE_HS_ENDIAN_
-#define H_BLE_HS_ENDIAN_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
-
-#define TOFROMLE16(x)   ((uint16_t) (x))
-#define TOFROMLE32(x)   ((uint32_t) (x))
-#define TOFROMLE64(x)   ((uint64_t) (x))
-
-#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-
-#define TOFROMLE16(x)   ((uint16_t)                                 \
-                         ((((x) & 0xff00) >> 8) |                   \
-                          (((x) & 0x00ff) << 8)))
-
-#define TOFROMLE32(x)  ((uint32_t)                                  \
-                         ((((x) & 0xff000000) >> 24) |              \
-                          (((x) & 0x00ff0000) >>  8) |              \
-                          (((x) & 0x0000ff00) <<  8) |              \
-                          (((x) & 0x000000ff) << 24)))
-
-#define TOFROMLE64(x)  ((uint64_t)                                  \
-                         ((((x) & 0xff00000000000000ull) >> 56) |   \
-                          (((x) & 0x00ff000000000000ull) >> 40) |   \
-                          (((x) & 0x0000ff0000000000ull) >> 24) |   \
-                          (((x) & 0x000000ff00000000ull) >>  8) |   \
-                          (((x) & 0x00000000ff000000ull) <<  8) |   \
-                          (((x) & 0x0000000000ff0000ull) << 24) |   \
-                          (((x) & 0x000000000000ff00ull) << 40) |   \
-                          (((x) & 0x00000000000000ffull) << 56)))
-
-#else
-
-#error Unsupported endianness.
-
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/dccf07dc/net/nimble/host/src/ble_hs_priv.h
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs_priv.h 
b/net/nimble/host/src/ble_hs_priv.h
index 4bdb22c..baac103 100644
--- a/net/nimble/host/src/ble_hs_priv.h
+++ b/net/nimble/host/src/ble_hs_priv.h
@@ -32,7 +32,6 @@
 #include "ble_hs_atomic_priv.h"
 #include "ble_hs_conn_priv.h"
 #include "ble_hs_atomic_priv.h"
-#include "ble_hs_endian_priv.h"
 #include "ble_hs_mbuf_priv.h"
 #include "ble_hs_startup_priv.h"
 #include "ble_l2cap_priv.h"

Reply via email to