From 066fe6201bd3ae3089d6ccaadb79101b2df33e09 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 10 Jan 2025 17:47:08 +0100 Subject: [PATCH] fix build for nRF52833DK --- boards/nrf52833dk_nrf52833.conf | 9 +++++++++ boards/nrf52840dk_nrf52840.conf | 9 +++++++++ src/controller_time_nrf52.c | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 boards/nrf52833dk_nrf52833.conf create mode 100644 boards/nrf52840dk_nrf52840.conf diff --git a/boards/nrf52833dk_nrf52833.conf b/boards/nrf52833dk_nrf52833.conf new file mode 100644 index 0000000..7487f34 --- /dev/null +++ b/boards/nrf52833dk_nrf52833.conf @@ -0,0 +1,9 @@ +# +# Copyright (c) 2024 Nordic Semiconductor +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +CONFIG_NRFX_TIMER1=y +CONFIG_NRFX_RTC2=y +CONFIG_NRFX_PPI=y diff --git a/boards/nrf52840dk_nrf52840.conf b/boards/nrf52840dk_nrf52840.conf new file mode 100644 index 0000000..7487f34 --- /dev/null +++ b/boards/nrf52840dk_nrf52840.conf @@ -0,0 +1,9 @@ +# +# Copyright (c) 2024 Nordic Semiconductor +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +CONFIG_NRFX_TIMER1=y +CONFIG_NRFX_RTC2=y +CONFIG_NRFX_PPI=y diff --git a/src/controller_time_nrf52.c b/src/controller_time_nrf52.c index 78b26e0..5039330 100644 --- a/src/controller_time_nrf52.c +++ b/src/controller_time_nrf52.c @@ -21,7 +21,7 @@ #include #include #include -#include "conn_time_sync.h" +#include "controller_time.h" static const nrfx_rtc_t app_rtc_instance = NRFX_RTC_INSTANCE(2); static const nrfx_timer_t app_timer_instance = NRFX_TIMER_INSTANCE(1);