Pushes all work done in the topic-ble-llcp branch into main branch This is a refactoring of the LL control procedures; the refactored control procedures are hidden behind a KConfig option and per default disabled Goal of the refactoring: close issue Link Layer Control Procedure overhaul #15256 make it easier to add/update control procedures Refactoring consists in principal of writing explicit state machines for the control procedures. To reduce the risk of regression errors unit-tests have been added Following control procedures are implemented: Connection update procedure Channel map update procedure Encryption procedure Feature exchange procedure Version exchange procedure ACL termination procedure Connection parameters request procedure LE Ping procedure Data Length Update procedure PHY update procedure Min. nr. Of channels used procedure Constant Tone extension request procedure This is a joined work by the people listed in the signed-off-by list (in alphabetical order) Signed-off-by: Andries Kruithof Andries.Kruithof@nordicsemi.no Signed-off-by: Erik Brockhoff erbr@oticon.com Signed-off-by: Piotr Pryga piotr.pryga@nordicsemi.no Signed-off-by: Szymon Janc szymon.janc@codecoup.pl Signed-off-by: Thomas Ebert Hansen thoh@oticon.com Signed-off-by: Tommie Skriver tosk@demant.com Signed-off-by: Andries Kruithof <Andries.Kruithof@nordicsemi.no>
54 lines
769 B
C
54 lines
769 B
C
/*
|
|
* Copyright (c) 2018-2020 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/types.h>
|
|
#include <soc.h>
|
|
|
|
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
|
|
#define LOG_MODULE_NAME bt_ctlr_lll_clock
|
|
#include "common/log.h"
|
|
#include "hal/debug.h"
|
|
|
|
/* Clock setup timeouts are unlikely, below values are experimental */
|
|
#define LFCLOCK_TIMEOUT_MS 500
|
|
#define HFCLOCK_TIMEOUT_MS 2
|
|
|
|
int lll_clock_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int lll_clock_wait(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int lll_hfclock_on(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int lll_hfclock_on_wait(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int lll_hfclock_off(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
uint32_t lll_clock_ppm_local_get(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
uint32_t lll_clock_ppm_get(uint8_t sca)
|
|
{
|
|
ARG_UNUSED(sca);
|
|
return 0;
|
|
}
|