zephyr/tests/bluetooth/controller/mock_ctrl/src/lll_clock.c
Andries Kruithof f0c610ce0d bluetooth: controller: update unittests for improved ZTEST framework
Update the unittests for feature exchange to use the new ZTEST API
Here we only update the feature exchange procedure. The remaining
unittests will be done in a next PR

Mocks, helper routines and the Unit Under Test are splitted out as
a library instead of adding them to the file list

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2023-01-20 14:35:08 +01:00

57 lines
721 B
C

/*
* Copyright (c) 2018-2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <zephyr/ztest.h>
#include <soc.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;
}
uint8_t lll_clock_sca_local_get(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;
}