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>
57 lines
721 B
C
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;
|
|
}
|