You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/07/09 13:41:23 UTC
[nuttx] 03/14: arch/nrf91: modem depends on LFCLK
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 1af1ef4a89941bededcb54f070f3a853d5b00d96
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Jul 8 12:11:34 2023 +0200
arch/nrf91: modem depends on LFCLK
---
arch/arm/src/nrf91/Kconfig | 1 +
arch/arm/src/nrf91/nrf91_modem.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/arch/arm/src/nrf91/Kconfig b/arch/arm/src/nrf91/Kconfig
index ca0b5854fe..23dd45ca7b 100644
--- a/arch/arm/src/nrf91/Kconfig
+++ b/arch/arm/src/nrf91/Kconfig
@@ -669,6 +669,7 @@ config NRF91_MODEM
depends on ALLOW_BSDNORDIC_COMPONENTS && ARCH_TRUSTZONE_NONSECURE
select ARCH_IRQPRIO
select NRF91_IPC
+ select NRF91_USE_LFCLK
default n
if NRF91_MODEM
diff --git a/arch/arm/src/nrf91/nrf91_modem.c b/arch/arm/src/nrf91/nrf91_modem.c
index 8605c5b2a0..19a5dd5a52 100644
--- a/arch/arm/src/nrf91/nrf91_modem.c
+++ b/arch/arm/src/nrf91/nrf91_modem.c
@@ -43,6 +43,10 @@
# error NRF91 modem works only in non-secure environment
#endif
+#ifndef CONFIG_NRF91_LFCLK_XTAL
+# error NRF91 modem requires using LFXO as the LFCLK source
+#endif
+
/****************************************************************************
* Private Functions
****************************************************************************/