You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2017/05/08 13:45:51 UTC

[2/3] incubator-mynewt-core git commit: Fix native controller build

Fix native controller build

Fix following link error when build unit tests forcontroller:
unittest/net_nimble_controller_test/app/net/nimble/controller/
   net_nimble_controller.a(ble_ll.o): In function `ble_ll_wfr_timer_exp':
net/nimble/controller/src/ble_ll.c:505: undefined reference to
   `ble_phy_xcvr_state_get'


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/9b31d745
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9b31d745
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9b31d745

Branch: refs/heads/bluetooth5
Commit: 9b31d7452610f3cdab5ccce10f49ae9806535fd3
Parents: 34670d7
Author: Szymon Janc <sz...@codecoup.pl>
Authored: Mon May 8 14:19:10 2017 +0200
Committer: Szymon Janc <sz...@codecoup.pl>
Committed: Mon May 8 14:19:10 2017 +0200

----------------------------------------------------------------------
 hw/drivers/nimble/native/src/ble_phy.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9b31d745/hw/drivers/nimble/native/src/ble_phy.c
----------------------------------------------------------------------
diff --git a/hw/drivers/nimble/native/src/ble_phy.c b/hw/drivers/nimble/native/src/ble_phy.c
index 3fb5cf7..57c6799 100644
--- a/hw/drivers/nimble/native/src/ble_phy.c
+++ b/hw/drivers/nimble/native/src/ble_phy.c
@@ -605,4 +605,16 @@ ble_phy_resolv_list_disable(void)
 {
     g_ble_phy_data.phy_privacy = 0;
 }
+
+/**
+ * Return the transceiver state
+ *
+ * @return int transceiver state.
+ */
+uint8_t
+ble_phy_xcvr_state_get(void)
+{
+   return g_ble_phy_data.phy_state;
+}
+
 #endif