From 749f13bf9cb85b08b41a562a6fc764d16b8bdec2 Mon Sep 17 00:00:00 2001 From: Bas van den Berg Date: Wed, 20 Apr 2022 13:58:23 +0200 Subject: [PATCH] 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 18468d43b..58992e88a 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 23b105fa7..b6681abfb 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 0395c72bc..65f2fcae6 100644 --- a/nimble/controller/src/ble_ll_sync.c +++ b/nimble/controller/src/ble_ll_sync.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "syscfg/syscfg.h"