This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 749f13bf minor fixes
749f13bf is described below

commit 749f13bf9cb85b08b41a562a6fc764d16b8bdec2
Author: Bas van den Berg <b.van.den.berg...@gmail.com>
AuthorDate: Wed Apr 20 13:58:23 2022 +0200

    minor fixes
    
    - ble_ll needs to include hal_system.h for hal_debugger_connected()
    - ble_ll_sync needs stdlib.h for abs()
    - ble_ll_init() can be static/private
---
 nimble/controller/include/controller/ble_ll.h | 3 ---
 nimble/controller/src/ble_ll.c                | 3 ++-
 nimble/controller/src/ble_ll_sync.c           | 1 +
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/nimble/controller/include/controller/ble_ll.h 
b/nimble/controller/include/controller/ble_ll.h
index 18468d43..58992e88 100644
--- a/nimble/controller/include/controller/ble_ll.h
+++ b/nimble/controller/include/controller/ble_ll.h
@@ -476,9 +476,6 @@ struct ble_ll_acad_channel_map_update_ind {
 } __attribute__((packed));
 
 /*--- External API ---*/
-/* Initialize the Link Layer */
-void ble_ll_init(void);
-
 /* Reset the Link Layer */
 int ble_ll_reset(void);
 
diff --git a/nimble/controller/src/ble_ll.c b/nimble/controller/src/ble_ll.c
index 23b105fa..b6681abf 100644
--- a/nimble/controller/src/ble_ll.c
+++ b/nimble/controller/src/ble_ll.c
@@ -47,6 +47,7 @@
 #include "ble_ll_conn_priv.h"
 #include "ble_ll_hci_priv.h"
 #include "ble_ll_priv.h"
+#include "hal/hal_system.h"
 
 #if MYNEWT_VAL(BLE_LL_DTM)
 #include "ble_ll_dtm_priv.h"
@@ -1788,7 +1789,7 @@ ble_ll_assert(const char *file, unsigned line)
  *
  * @return int
  */
-void
+static void
 ble_ll_init(void)
 {
     int rc;
diff --git a/nimble/controller/src/ble_ll_sync.c 
b/nimble/controller/src/ble_ll_sync.c
index 0395c72b..65f2fcae 100644
--- a/nimble/controller/src/ble_ll_sync.c
+++ b/nimble/controller/src/ble_ll_sync.c
@@ -20,6 +20,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <assert.h>
+#include <stdlib.h>
 
 #include "syscfg/syscfg.h"
 

Reply via email to