From 7998a5224f903b6c796e07661cb12e849336f34b Mon Sep 17 00:00:00 2001 From: Marcin Szymczyk Date: Wed, 5 Nov 2025 14:04:43 +0100 Subject: [PATCH 1/6] [zep fromtree] platform: nordic_nrf: align to nrfx 4.0 Align common files. Change-Id: I73509382d31476f88c20dee42fde4de6126f565d Signed-off-by: Marcin Szymczyk (cherry picked from commit 8ff947dd53f91cc850ee05164d9df5e377a48fbd) --- platform/ext/target/nordic_nrf/common/core/CMakeLists.txt | 4 ++-- platform/ext/target/nordic_nrf/common/core/common/nrfx_glue.h | 2 +- platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt | 2 +- platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt | 4 ++-- .../ext/target/nordic_nrf/common/nrf5340/ns/CMakeLists.txt | 2 +- platform/ext/target/nordic_nrf/common/nrf54l/nrf54l_init.c | 1 - platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54l10/ns/CMakeLists.txt | 2 +- platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54l15/ns/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54lm20a/ns/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf54lv10a/ns/CMakeLists.txt | 2 +- platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt | 2 +- .../ext/target/nordic_nrf/common/nrf7120/ns/CMakeLists.txt | 2 +- platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt | 4 ++-- platform/ext/target/nordic_nrf/common/nrf91/ns/CMakeLists.txt | 2 +- 18 files changed, 20 insertions(+), 21 deletions(-) diff --git a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt index e8a884d638..aa6ef589ad 100644 --- a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt @@ -82,7 +82,7 @@ target_include_directories(platform_s . native_drivers ${HAL_NORDIC_PATH}/nrfx - ${HAL_NORDIC_PATH}/nrfx/mdk + ${HAL_NORDIC_PATH}/nrfx/bsp/stable ${HAL_NORDIC_PATH}/nrfx/drivers/include common ${PLATFORM_DIR}/.. @@ -190,7 +190,7 @@ if(BL2) PUBLIC . ${HAL_NORDIC_PATH}/nrfx - ${HAL_NORDIC_PATH}/nrfx/mdk + ${HAL_NORDIC_PATH}/nrfx/bsp/stable ${HAL_NORDIC_PATH}/nrfx/drivers/include common PRIVATE diff --git a/platform/ext/target/nordic_nrf/common/core/common/nrfx_glue.h b/platform/ext/target/nordic_nrf/common/core/common/nrfx_glue.h index f8473d622b..51496570f4 100644 --- a/platform/ext/target/nordic_nrf/common/core/common/nrfx_glue.h +++ b/platform/ext/target/nordic_nrf/common/core/common/nrfx_glue.h @@ -35,7 +35,7 @@ /* Include the spm utilities for the SPM_ASSERT symbol */ #include -#include +#include #ifdef __cplusplus extern "C" { diff --git a/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt index 65a7d2bb5c..7e0d42cd3c 100644 --- a/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt @@ -79,7 +79,7 @@ target_include_directories(platform_ns . common ${HAL_NORDIC_PATH}/nrfx - ${HAL_NORDIC_PATH}/nrfx/mdk + ${HAL_NORDIC_PATH}/nrfx/bsp/stable ${HAL_NORDIC_PATH}/nrfx/drivers/include ${PLATFORM_DIR}/include ${PLATFORM_DIR}/ext/cmsis/Include diff --git a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt index af32d13a0c..ded298e7d6 100644 --- a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf5340_application.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf5340_application.c ) target_compile_definitions(platform_s @@ -44,7 +44,7 @@ if(BL2) target_sources(platform_bl2 PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf5340_application.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf5340_application.c ) target_compile_definitions(platform_bl2 diff --git a/platform/ext/target/nordic_nrf/common/nrf5340/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf5340/ns/CMakeLists.txt index 52593d1255..b36a8047e2 100644 --- a/platform/ext/target/nordic_nrf/common/nrf5340/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf5340/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf5340_application.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf5340_application.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf54l/nrf54l_init.c b/platform/ext/target/nordic_nrf/common/nrf54l/nrf54l_init.c index 9498cd4230..17a177a60b 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l/nrf54l_init.c +++ b/platform/ext/target/nordic_nrf/common/nrf54l/nrf54l_init.c @@ -8,7 +8,6 @@ #include #include #include -#include #ifndef BIT_MASK /* Use Zephyr BIT_MASK for unasigned integers */ diff --git a/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt index 3796c3e6b1..570d275416 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ../nrf54l/nrf54l_init.c ) diff --git a/platform/ext/target/nordic_nrf/common/nrf54l10/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l10/ns/CMakeLists.txt index 6e8396c35d..0c53e35d84 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l10/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l10/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt index 40c109e752..a3c4a7be69 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ../nrf54l/nrf54l_init.c ) diff --git a/platform/ext/target/nordic_nrf/common/nrf54l15/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l15/ns/CMakeLists.txt index 6e8396c35d..0c53e35d84 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l15/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l15/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt index 118ebd0882..6a3d87316b 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ../nrf54l/nrf54l_init.c ) diff --git a/platform/ext/target/nordic_nrf/common/nrf54lm20a/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lm20a/ns/CMakeLists.txt index 6e8396c35d..0c53e35d84 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lm20a/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lm20a/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt index b189498b9e..7ec95e428d 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ../nrf54l/nrf54l_init.c ) diff --git a/platform/ext/target/nordic_nrf/common/nrf54lv10a/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lv10a/ns/CMakeLists.txt index 6e8396c35d..0c53e35d84 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lv10a/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lv10a/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf54l.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt index df11cccc26..a7696c8781 100644 --- a/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt @@ -20,7 +20,7 @@ target_include_directories(platform_s target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf7120_enga.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf7120_enga.c ./nrf71_init.c ) diff --git a/platform/ext/target/nordic_nrf/common/nrf7120/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf7120/ns/CMakeLists.txt index 9fa367062d..52a569b360 100644 --- a/platform/ext/target/nordic_nrf/common/nrf7120/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf7120/ns/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf7120_enga.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf7120_enga.c ) target_compile_definitions(platform_ns diff --git a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt index 7f4d07f23a..92c0c680f7 100644 --- a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt @@ -28,7 +28,7 @@ endif() target_sources(platform_s PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf91.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf91.c ) target_compile_definitions(platform_s @@ -46,7 +46,7 @@ if(BL2) target_sources(platform_bl2 PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf91.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf91.c ) target_compile_definitions(platform_bl2 diff --git a/platform/ext/target/nordic_nrf/common/nrf91/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf91/ns/CMakeLists.txt index 290d7f4c53..d6dc558508 100644 --- a/platform/ext/target/nordic_nrf/common/nrf91/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf91/ns/CMakeLists.txt @@ -21,7 +21,7 @@ target_include_directories(platform_ns target_sources(platform_ns PRIVATE - ${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf91.c + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/mdk/system_nrf91.c ) target_compile_definitions(platform_ns From 1310ccc0b699e3ae1d667c6041814f7d47e7509e Mon Sep 17 00:00:00 2001 From: Marcin Szymczyk Date: Fri, 7 Nov 2025 15:19:07 +0100 Subject: [PATCH 2/6] [zep fromtree] platform: nrf: driver: usart: align to nrfx 4.0 and refactor Align with changes needed for nrfx 4.0. Refactor to use nrfx layer instead of HAL. Change-Id: Ibbffe2c2e27ea98ac08e0e23f4c33603c04fe5ea Signed-off-by: Marcin Szymczyk (cherry picked from commit f07f10b9c028ee1de036037264e6b1929432af1d) --- .../common/core/cmsis_drivers/Driver_USART.c | 134 +++++++++--------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c b/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c index a1f2048bc3..4b50ef5987 100644 --- a/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c +++ b/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c @@ -42,23 +42,6 @@ #if RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3 || \ RTE_UART00 || RTE_USART20 || RTE_UART21 || RTE_UART22 || RTE_USART30 -#define PSEL_DISCONNECTED 0xFFFFFFFFUL - -#define UART_CONFIG_INITIALIZER() \ -{ \ - .txd_pin = PSEL_DISCONNECTED, \ - .rxd_pin = PSEL_DISCONNECTED, \ - .rts_pin = PSEL_DISCONNECTED, \ - .cts_pin = PSEL_DISCONNECTED, \ - .baudrate = NRF_UARTE_BAUDRATE_115200, \ - .interrupt_priority = NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY, \ - .config = { \ - .hwfc = NRF_UARTE_HWFC_DISABLED, \ - .parity = NRF_UARTE_PARITY_EXCLUDED, \ - .stop = NRF_UARTE_STOP_ONE, \ - }, \ -} - void uart_config_set_uart_pins(nrfx_uarte_config_t *uart_config, const uint32_t uart_pins[], size_t uart_pins_count) @@ -67,7 +50,7 @@ void uart_config_set_uart_pins(nrfx_uarte_config_t *uart_config, uint32_t psel = NRF_GET_PIN(uart_pins[i]); if (psel == NRF_PIN_DISCONNECTED) { - psel = PSEL_DISCONNECTED; + psel = NRF_UARTE_PSEL_DISCONNECTED; } switch (NRF_GET_FUN(uart_pins[i])) { @@ -89,14 +72,12 @@ static const ARM_USART_CAPABILITIES DriverCapabilities = { }; typedef struct { - const nrfx_uarte_t uarte; + nrfx_uarte_t uarte; const uint32_t *uart_pins; size_t uart_pins_count; size_t tx_count; size_t rx_count; - nrf_uarte_config_t hal_cfg; - nrf_uarte_baudrate_t baudrate; - bool initialized; + nrfx_uarte_config_t cfg; } UARTx_Resources; static ARM_DRIVER_VERSION ARM_USART_GetVersion(void) @@ -119,25 +100,21 @@ static int32_t ARM_USARTx_Initialize(ARM_USART_SignalEvent_t cb_event, NVIC_ClearTargetState(NRFX_IRQ_NUMBER_GET((uint32_t)uart_resources->uarte.p_reg)); #endif - nrfx_uarte_config_t uart_config = UART_CONFIG_INITIALIZER(); - uart_config_set_uart_pins(&uart_config, + uart_config_set_uart_pins(&uart_resources->cfg, uart_resources->uart_pins, uart_resources->uart_pins_count); - nrfx_err_t err_code = nrfx_uarte_init(&uart_resources->uarte, - &uart_config, - NULL); - if (err_code != NRFX_SUCCESS) { + int err_code = nrfx_uarte_init(&uart_resources->uarte, + &uart_resources->cfg, + NULL); + if (err_code < 0) { return ARM_DRIVER_ERROR_BUSY; } uart_resources->tx_count = 0; uart_resources->rx_count = 0; - uart_resources->hal_cfg = uart_config.config; - uart_resources->baudrate = uart_config.baudrate; - uart_resources->initialized = true; return ARM_DRIVER_OK; } @@ -145,8 +122,6 @@ static int32_t ARM_USARTx_Uninitialize(UARTx_Resources *uart_resources) { nrfx_uarte_uninit(&uart_resources->uarte); - uart_resources->initialized = false; - #ifdef SPU_CONFIGURE_UART spu_peripheral_config_non_secure((uint32_t)uart_resources->uarte.p_reg, false); NVIC_SetTargetState(NRFX_IRQ_NUMBER_GET((uint32_t)uart_resources->uarte.p_reg)); @@ -181,7 +156,7 @@ static int32_t ARM_USARTx_PowerControl(ARM_POWER_STATE state, static int32_t ARM_USARTx_Send(const void *data, uint32_t num, UARTx_Resources *uart_resources) { - if (!uart_resources->initialized) { + if (!nrfx_uarte_init_check(&uart_resources->uarte)) { return ARM_DRIVER_ERROR; } @@ -198,10 +173,10 @@ static int32_t ARM_USARTx_Send(const void *data, uint32_t num, } } } else { - nrfx_err_t err_code = nrfx_uarte_tx(&uart_resources->uarte, data, num, 0); - if (err_code == NRFX_ERROR_BUSY) { + int err_code = nrfx_uarte_tx(&uart_resources->uarte, data, num, 0); + if (err_code == -EBUSY) { return ARM_DRIVER_ERROR_BUSY; - } else if (err_code != NRFX_SUCCESS) { + } else if (err_code < 0) { return ARM_DRIVER_ERROR; } @@ -214,14 +189,43 @@ static int32_t ARM_USARTx_Send(const void *data, uint32_t num, static int32_t ARM_USARTx_Receive(void *data, uint32_t num, UARTx_Resources *uart_resources) { - if (!uart_resources->initialized) { + if (!nrfx_uarte_init_check(&uart_resources->uarte)) { + return ARM_DRIVER_ERROR; + } + + int err_code = nrfx_uarte_rx_buffer_set(&uart_resources->uarte, data, num); + + if (err_code == -EBUSY) { + return ARM_DRIVER_ERROR_BUSY; + } else if (err_code < 0) { return ARM_DRIVER_ERROR; } - nrfx_err_t err_code = nrfx_uarte_rx(&uart_resources->uarte, data, num); - if (err_code == NRFX_ERROR_BUSY) { + uint32_t flags = NRFX_UARTE_RX_ENABLE_CONT | NRFX_UARTE_RX_ENABLE_STOP_ON_END; + err_code = nrfx_uarte_rx_enable(&uart_resources->uarte, flags); + + if (err_code == -EBUSY) { return ARM_DRIVER_ERROR_BUSY; - } else if (err_code != NRFX_SUCCESS) { + } else if (err_code < 0) { + return ARM_DRIVER_ERROR; + } + + size_t rx_amount = 0; + + do + { + err_code = nrfx_uarte_rx_ready(&uart_resources->uarte, &rx_amount); + } while (err_code == -EBUSY); + + if ((err_code == -EALREADY) || (num > rx_amount)) + { + return ARM_DRIVER_ERROR; + } + + err_code = nrfx_uarte_rx_abort(&uart_resources->uarte, true, true); + + if (err_code < 0) + { return ARM_DRIVER_ERROR; } @@ -253,8 +257,8 @@ static uint32_t ARM_USARTx_GetRxCount(const UARTx_Resources *uart_resources) static int32_t ARM_USART_Control_Mode(uint32_t control, uint32_t arg, UARTx_Resources *uart_resources) { - nrf_uarte_baudrate_t baudrate = uart_resources->baudrate; - nrf_uarte_config_t hal_cfg = uart_resources->hal_cfg; + nrf_uarte_baudrate_t baudrate = uart_resources->cfg.baudrate; + nrf_uarte_config_t hal_cfg = uart_resources->cfg.config; switch (arg) { case 1200: baudrate = NRF_UARTE_BAUDRATE_1200; @@ -369,37 +373,25 @@ static int32_t ARM_USART_Control_Mode(uint32_t control, uint32_t arg, return ARM_USART_ERROR_FLOW_CONTROL; } - uart_resources->baudrate = baudrate; - uart_resources->hal_cfg = hal_cfg; + uart_resources->cfg.baudrate = baudrate; + uart_resources->cfg.config = hal_cfg; - nrf_uarte_baudrate_set(uart_resources->uarte.p_reg, uart_resources->baudrate); - nrf_uarte_configure(uart_resources->uarte.p_reg, &uart_resources->hal_cfg); + nrfx_uarte_reconfigure(&uart_resources->uarte, &uart_resources->cfg); return ARM_DRIVER_OK; } -static void disconnect_tx_rx_pin(uint32_t operation, UARTx_Resources *uart_resources) +static int disconnect_tx_rx_pin(uint32_t operation, UARTx_Resources *uart_resources) { - bool uart_enabled = nrf_uarte_enable_check(uart_resources->uarte.p_reg); - - /* To update the PSEL register the UART needs to be disabled in case it is enabled */ - if (uart_enabled) { - nrf_uarte_disable(uart_resources->uarte.p_reg); - } - switch (operation) { case ARM_USART_CONTROL_RX: - nrf_uarte_rx_pin_set(uart_resources->uarte.p_reg, NRF_UARTE_PSEL_DISCONNECTED); - break; + uart_resources->cfg.rxd_pin = NRF_UARTE_PSEL_DISCONNECTED; + return nrfx_uarte_reconfigure(&uart_resources->uarte, &uart_resources->cfg); case ARM_USART_CONTROL_TX: - nrf_uarte_tx_pin_set(uart_resources->uarte.p_reg, NRF_UARTE_PSEL_DISCONNECTED); - break; + uart_resources->cfg.txd_pin = NRF_UARTE_PSEL_DISCONNECTED; + return nrfx_uarte_reconfigure(&uart_resources->uarte, &uart_resources->cfg); default: - break; - } - - if (uart_enabled) { - nrf_uarte_enable(uart_resources->uarte.p_reg); + return 0; } } @@ -417,7 +409,13 @@ static int32_t ARM_USARTx_Control(uint32_t control, uint32_t arg, UARTx_Resource * which is used by the peripheral. */ if (arg == 0) { - disconnect_tx_rx_pin(operation, uart_resources); + int err_code = disconnect_tx_rx_pin(operation, uart_resources); + + if (err_code == -EBUSY) { + return ARM_DRIVER_ERROR_BUSY; + } else if (err_code < 0) { + return ARM_DRIVER_ERROR; + } } return ARM_DRIVER_OK; default: @@ -446,9 +444,11 @@ static ARM_USART_MODEM_STATUS ARM_USART_GetModemStatus(void) #define DRIVER_USART(idx) \ static const uint32_t UART##idx##_pins[] = RTE_USART##idx##_PINS; \ static UARTx_Resources UART##idx##_Resources = { \ - .uarte = NRFX_UARTE_INSTANCE(idx), \ + .uarte = NRFX_UARTE_INSTANCE(NRF_UARTE##idx), \ .uart_pins = UART##idx##_pins, \ - .uart_pins_count = ARRAY_SIZE(UART##idx##_pins) \ + .uart_pins_count = ARRAY_SIZE(UART##idx##_pins), \ + .cfg = NRFX_UARTE_DEFAULT_CONFIG(NRF_UARTE_PSEL_DISCONNECTED, \ + NRF_UARTE_PSEL_DISCONNECTED), \ }; \ static int32_t ARM_USART##idx##_Initialize( \ ARM_USART_SignalEvent_t cb_event) \ From 57eac345cdce879d84e1fbfc95cc3f93436402c2 Mon Sep 17 00:00:00 2001 From: Marcin Szymczyk Date: Tue, 18 Nov 2025 12:13:52 +0100 Subject: [PATCH 3/6] [zep fromlist] platform: nrf: remove custom nrfx_config nrfx_config from nrfx's templates can be used. Change-Id: I5f532376ef0c9c73ec19b3933685a644a35a9c19 Signed-off-by: Marcin Szymczyk Signed-off-by: Tomi Fontanilles --- .../nordic_nrf/common/core/CMakeLists.txt | 2 + .../nordic_nrf/common/core/nrfx_config.h | 12 +- .../nordic_nrf/common/core/ns/CMakeLists.txt | 1 + .../nordic_nrf/common/nrf5340/CMakeLists.txt | 3 +- .../nrf5340/nrfx_config_nrf5340_application.h | 2158 ----------------- .../common/nrf54l/nrfx_config_nrf54l.h | 74 - .../nordic_nrf/common/nrf54l10/CMakeLists.txt | 3 +- .../nordic_nrf/common/nrf54l15/CMakeLists.txt | 3 +- .../common/nrf54lm20a/CMakeLists.txt | 3 +- .../common/nrf54lv10a/CMakeLists.txt | 3 +- .../nordic_nrf/common/nrf7120/CMakeLists.txt | 3 +- .../common/nrf7120/nrfx_config_nrf71.h | 74 - .../nordic_nrf/common/nrf91/CMakeLists.txt | 3 +- .../common/nrf91/nrfx_config_nrf91.h | 1657 ------------- 14 files changed, 11 insertions(+), 3988 deletions(-) delete mode 100644 platform/ext/target/nordic_nrf/common/nrf5340/nrfx_config_nrf5340_application.h delete mode 100644 platform/ext/target/nordic_nrf/common/nrf54l/nrfx_config_nrf54l.h delete mode 100644 platform/ext/target/nordic_nrf/common/nrf7120/nrfx_config_nrf71.h delete mode 100644 platform/ext/target/nordic_nrf/common/nrf91/nrfx_config_nrf91.h diff --git a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt index aa6ef589ad..907a8da385 100644 --- a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt @@ -83,6 +83,7 @@ target_include_directories(platform_s native_drivers ${HAL_NORDIC_PATH}/nrfx ${HAL_NORDIC_PATH}/nrfx/bsp/stable + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/templates ${HAL_NORDIC_PATH}/nrfx/drivers/include common ${PLATFORM_DIR}/.. @@ -191,6 +192,7 @@ if(BL2) . ${HAL_NORDIC_PATH}/nrfx ${HAL_NORDIC_PATH}/nrfx/bsp/stable + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/templates ${HAL_NORDIC_PATH}/nrfx/drivers/include common PRIVATE diff --git a/platform/ext/target/nordic_nrf/common/core/nrfx_config.h b/platform/ext/target/nordic_nrf/common/core/nrfx_config.h index 35a5c79b83..eba5c7b961 100644 --- a/platform/ext/target/nordic_nrf/common/core/nrfx_config.h +++ b/platform/ext/target/nordic_nrf/common/core/nrfx_config.h @@ -96,16 +96,6 @@ #define NRF_PERIPH(P) P##_S #endif -#if defined(NRF5340_XXAA_APPLICATION) - #include -#elif defined(NRF91_SERIES) - #include -#elif defined(NRF54L_SERIES) - #include -#elif defined(NRF71_SERIES) - #include -#else - #error "Unknown device." -#endif +#include #endif // NRFX_CONFIG_H__ diff --git a/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt index 7e0d42cd3c..0358f973f3 100644 --- a/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/core/ns/CMakeLists.txt @@ -80,6 +80,7 @@ target_include_directories(platform_ns common ${HAL_NORDIC_PATH}/nrfx ${HAL_NORDIC_PATH}/nrfx/bsp/stable + ${HAL_NORDIC_PATH}/nrfx/bsp/stable/templates ${HAL_NORDIC_PATH}/nrfx/drivers/include ${PLATFORM_DIR}/include ${PLATFORM_DIR}/ext/cmsis/Include diff --git a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt index ded298e7d6..480a1e52a2 100644 --- a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt @@ -62,8 +62,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES nrfx_config_nrf5340_application.h - ns/CMakeLists.txt +install(FILES ns/CMakeLists.txt config.cmake cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf5340 diff --git a/platform/ext/target/nordic_nrf/common/nrf5340/nrfx_config_nrf5340_application.h b/platform/ext/target/nordic_nrf/common/nrf5340/nrfx_config_nrf5340_application.h deleted file mode 100644 index a48cc77870..0000000000 --- a/platform/ext/target/nordic_nrf/common/nrf5340/nrfx_config_nrf5340_application.h +++ /dev/null @@ -1,2158 +0,0 @@ -/* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRFX_CONFIG_NRF5340_APPLICATION_H__ -#define NRFX_CONFIG_NRF5340_APPLICATION_H__ - -#ifndef NRFX_CONFIG_H__ -#error "This file should not be included directly. Include nrfx_config.h instead." -#endif - -#define NRF_CLOCK NRF_PERIPH(NRF_CLOCK) -#define NRF_COMP NRF_PERIPH(NRF_COMP) -#define NRF_CTRLAP NRF_PERIPH(NRF_CTRLAP) -#define NRF_DCNF NRF_PERIPH(NRF_DCNF) -#define NRF_DPPIC NRF_PERIPH(NRF_DPPIC) -#define NRF_EGU0 NRF_PERIPH(NRF_EGU0) -#define NRF_EGU1 NRF_PERIPH(NRF_EGU1) -#define NRF_EGU2 NRF_PERIPH(NRF_EGU2) -#define NRF_EGU3 NRF_PERIPH(NRF_EGU3) -#define NRF_EGU4 NRF_PERIPH(NRF_EGU4) -#define NRF_EGU5 NRF_PERIPH(NRF_EGU5) -#define NRF_FPU NRF_PERIPH(NRF_FPU) -#define NRF_I2S0 NRF_PERIPH(NRF_I2S0) -#define NRF_IPC NRF_PERIPH(NRF_IPC) -#define NRF_KMU NRF_PERIPH(NRF_KMU) -#define NRF_LPCOMP NRF_PERIPH(NRF_LPCOMP) -#define NRF_MUTEX NRF_PERIPH(NRF_MUTEX) -#define NRF_NFCT NRF_PERIPH(NRF_NFCT) -#define NRF_NVMC NRF_PERIPH(NRF_NVMC) -#define NRF_OSCILLATORS NRF_PERIPH(NRF_OSCILLATORS) -#define NRF_P0 NRF_PERIPH(NRF_P0) -#define NRF_P1 NRF_PERIPH(NRF_P1) -#define NRF_PDM0 NRF_PERIPH(NRF_PDM0) -#define NRF_POWER NRF_PERIPH(NRF_POWER) -#define NRF_PWM0 NRF_PERIPH(NRF_PWM0) -#define NRF_PWM1 NRF_PERIPH(NRF_PWM1) -#define NRF_PWM2 NRF_PERIPH(NRF_PWM2) -#define NRF_PWM3 NRF_PERIPH(NRF_PWM3) -#define NRF_QDEC0 NRF_PERIPH(NRF_QDEC0) -#define NRF_QDEC1 NRF_PERIPH(NRF_QDEC1) -#define NRF_QSPI NRF_PERIPH(NRF_QSPI) -#define NRF_REGULATORS NRF_PERIPH(NRF_REGULATORS) -#define NRF_RESET NRF_PERIPH(NRF_RESET) -#define NRF_RTC0 NRF_PERIPH(NRF_RTC0) -#define NRF_RTC1 NRF_PERIPH(NRF_RTC1) -#define NRF_SAADC NRF_PERIPH(NRF_SAADC) -#define NRF_SPIM0 NRF_PERIPH(NRF_SPIM0) -#define NRF_SPIM1 NRF_PERIPH(NRF_SPIM1) -#define NRF_SPIM2 NRF_PERIPH(NRF_SPIM2) -#define NRF_SPIM3 NRF_PERIPH(NRF_SPIM3) -#define NRF_SPIM4 NRF_PERIPH(NRF_SPIM4) -#define NRF_SPIS0 NRF_PERIPH(NRF_SPIS0) -#define NRF_SPIS1 NRF_PERIPH(NRF_SPIS1) -#define NRF_SPIS2 NRF_PERIPH(NRF_SPIS2) -#define NRF_SPIS3 NRF_PERIPH(NRF_SPIS3) -#define NRF_TIMER0 NRF_PERIPH(NRF_TIMER0) -#define NRF_TIMER1 NRF_PERIPH(NRF_TIMER1) -#define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) -#define NRF_TWIM0 NRF_PERIPH(NRF_TWIM0) -#define NRF_TWIM1 NRF_PERIPH(NRF_TWIM1) -#define NRF_TWIM2 NRF_PERIPH(NRF_TWIM2) -#define NRF_TWIM3 NRF_PERIPH(NRF_TWIM3) -#define NRF_TWIS0 NRF_PERIPH(NRF_TWIS0) -#define NRF_TWIS1 NRF_PERIPH(NRF_TWIS1) -#define NRF_TWIS2 NRF_PERIPH(NRF_TWIS2) -#define NRF_TWIS3 NRF_PERIPH(NRF_TWIS3) -#define NRF_UARTE0 NRF_PERIPH(NRF_UARTE0) -#define NRF_UARTE1 NRF_PERIPH(NRF_UARTE1) -#define NRF_UARTE2 NRF_PERIPH(NRF_UARTE2) -#define NRF_UARTE3 NRF_PERIPH(NRF_UARTE3) -#define NRF_USBD NRF_PERIPH(NRF_USBD) -#define NRF_USBREGULATOR NRF_PERIPH(NRF_USBREGULATOR) -#define NRF_VMC NRF_PERIPH(NRF_VMC) -#define NRF_WDT0 NRF_PERIPH(NRF_WDT0) -#define NRF_WDT1 NRF_PERIPH(NRF_WDT1) - -/* - * The following section provides the name translation for peripherals with - * only one type of access available. For these peripherals, you cannot choose - * between secure and non-secure mapping. - */ -#if defined(NRF_TRUSTZONE_NONSECURE) -#define NRF_GPIOTE1 NRF_GPIOTE1_NS -#else -#define NRF_CACHE NRF_CACHE_S -#define NRF_CACHEINFO NRF_CACHEINFO_S -#define NRF_CACHEDATA NRF_CACHEDATA_S -#define NRF_CRYPTOCELL NRF_CRYPTOCELL_S -#define NRF_CTI NRF_CTI_S -#define NRF_FICR NRF_FICR_S -#define NRF_GPIOTE0 NRF_GPIOTE0_S -#define NRF_SPU NRF_SPU_S -#define NRF_TAD NRF_TAD_S -#define NRF_UICR NRF_UICR_S -#endif - -/* Fixup for the QDEC driver. */ -#define NRF_QDEC NRF_QDEC0 - -/* Fixup for the GPIOTE driver. */ -#if defined(NRF_TRUSTZONE_NONSECURE) -#define NRF_GPIOTE NRF_GPIOTE1 -#else -#define NRF_GPIOTE NRF_GPIOTE0 -#endif - - -// <<< Use Configuration Wizard in Context Menu >>>\n - -// nRF_Drivers - -// NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver. -//========================================================== -#ifndef NRFX_CLOCK_ENABLED -#define NRFX_CLOCK_ENABLED 0 -#endif -// NRFX_CLOCK_CONFIG_LF_SRC - LF clock source. - -// <0=> ULP -// <1=> RC -// <2=> XTAL -// <3=> Synth - -#ifndef NRFX_CLOCK_CONFIG_LF_SRC -#define NRFX_CLOCK_CONFIG_LF_SRC 2 -#endif - -// NRFX_CLOCK_CONFIG_LF_CAL_ENABLED - Enables LF Clock Calibration Support - -#ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED -#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 -#endif - -// NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure - -// If set to a non-zero value, LFRC will be started before LFXO and corresponding -// event will be generated. It means that CPU will be woken up when LFRC -// oscillator starts, but user callback will be invoked only after LFXO -// finally starts. - -#ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED -#define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 -#endif - - -// NRFX_CLOCK_CONFIG_HFCLK192M_SRC - HFCLK192M source. - -// <0=> HFINT -// <1=> HFXO - -#ifndef NRFX_CLOCK_CONFIG_HFCLK192M_SRC -#define NRFX_CLOCK_CONFIG_HFCLK192M_SRC 1 -#endif - -// NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED -#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_CLOCK_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL -#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR -#define NRFX_CLOCK_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR -#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver -//========================================================== -#ifndef NRFX_COMP_ENABLED -#define NRFX_COMP_ENABLED 0 -#endif - -// NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_COMP_CONFIG_LOG_ENABLED -#define NRFX_COMP_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_COMP_CONFIG_LOG_LEVEL -#define NRFX_COMP_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_COMP_CONFIG_INFO_COLOR -#define NRFX_COMP_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_COMP_CONFIG_DEBUG_COLOR -#define NRFX_COMP_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator. -//========================================================== -#ifndef NRFX_DPPI_ENABLED -#define NRFX_DPPI_ENABLED 0 -#endif -// NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_DPPI_CONFIG_LOG_ENABLED -#define NRFX_DPPI_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_DPPI_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_DPPI_CONFIG_LOG_LEVEL -#define NRFX_DPPI_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_DPPI_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_DPPI_CONFIG_INFO_COLOR -#define NRFX_DPPI_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_DPPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_DPPI_CONFIG_DEBUG_COLOR -#define NRFX_DPPI_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver. -//========================================================== -#ifndef NRFX_EGU_ENABLED -#define NRFX_EGU_ENABLED 0 -#endif - -// NRFX_EGU0_ENABLED - Enable EGU0 instance. - -#ifndef NRFX_EGU0_ENABLED -#define NRFX_EGU0_ENABLED 0 -#endif - -// NRFX_EGU1_ENABLED - Enable EGU1 instance. - -#ifndef NRFX_EGU1_ENABLED -#define NRFX_EGU1_ENABLED 0 -#endif - -// NRFX_EGU2_ENABLED - Enable EGU2 instance. - -#ifndef NRFX_EGU2_ENABLED -#define NRFX_EGU2_ENABLED 0 -#endif - -// NRFX_EGU3_ENABLED - Enable EGU3 instance. - -#ifndef NRFX_EGU3_ENABLED -#define NRFX_EGU3_ENABLED 0 -#endif - -// NRFX_EGU4_ENABLED - Enable EGU4 instance. - -#ifndef NRFX_EGU4_ENABLED -#define NRFX_EGU4_ENABLED 0 -#endif - -// NRFX_EGU5_ENABLED - Enable EGU5 instance. - -#ifndef NRFX_EGU5_ENABLED -#define NRFX_EGU5_ENABLED 0 -#endif - -// NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver. -//========================================================== -#ifndef NRFX_GPIOTE_ENABLED -#define NRFX_GPIOTE_ENABLED 0 -#endif -// NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins. -#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS -#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1 -#endif - -// NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED -#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL -#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR -#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR -#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver. -//========================================================== -#ifndef NRFX_I2S_ENABLED -#define NRFX_I2S_ENABLED 0 -#endif - -// NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_I2S_CONFIG_LOG_ENABLED -#define NRFX_I2S_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_I2S_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_I2S_CONFIG_LOG_LEVEL -#define NRFX_I2S_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_I2S_CONFIG_INFO_COLOR -#define NRFX_I2S_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_I2S_CONFIG_DEBUG_COLOR -#define NRFX_I2S_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver -//========================================================== -#ifndef NRFX_IPC_ENABLED -#define NRFX_IPC_ENABLED 0 -#endif - -// - -// NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver -//========================================================== -#ifndef NRFX_LPCOMP_ENABLED -#define NRFX_LPCOMP_ENABLED 0 -#endif - -// NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED -#define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL -#define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR -#define NRFX_LPCOMP_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR -#define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver -//========================================================== -#ifndef NRFX_NFCT_ENABLED -#define NRFX_NFCT_ENABLED 0 -#endif -// NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. - -// <0=> 0 -// <1=> 1 -// <2=> 2 - -#ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID -#define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 2 -#endif - -// NRFX_NFCT_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_NFCT_CONFIG_LOG_ENABLED -#define NRFX_NFCT_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_NFCT_CONFIG_LOG_LEVEL - Default Severity level - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_NFCT_CONFIG_LOG_LEVEL -#define NRFX_NFCT_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_NFCT_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_NFCT_CONFIG_INFO_COLOR -#define NRFX_NFCT_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_NFCT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_NFCT_CONFIG_DEBUG_COLOR -#define NRFX_NFCT_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver -//========================================================== -#ifndef NRFX_NVMC_ENABLED -#define NRFX_NVMC_ENABLED 0 -#endif - -// - -// NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver. -//========================================================== -#ifndef NRFX_PDM_ENABLED -#define NRFX_PDM_ENABLED 0 -#endif - -// NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PDM_CONFIG_LOG_ENABLED -#define NRFX_PDM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PDM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PDM_CONFIG_LOG_LEVEL -#define NRFX_PDM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PDM_CONFIG_INFO_COLOR -#define NRFX_PDM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR -#define NRFX_PDM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver. -//========================================================== -#ifndef NRFX_POWER_ENABLED -#define NRFX_POWER_ENABLED 0 -#endif -// NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module. -//========================================================== -#ifndef NRFX_PRS_ENABLED -#define NRFX_PRS_ENABLED 0 -#endif -// NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module. - - -#ifndef NRFX_PRS_BOX_0_ENABLED -#define NRFX_PRS_BOX_0_ENABLED 0 -#endif - -// NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module. - - -#ifndef NRFX_PRS_BOX_1_ENABLED -#define NRFX_PRS_BOX_1_ENABLED 0 -#endif - -// NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module. - - -#ifndef NRFX_PRS_BOX_2_ENABLED -#define NRFX_PRS_BOX_2_ENABLED 0 -#endif - -// NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module. - - -#ifndef NRFX_PRS_BOX_3_ENABLED -#define NRFX_PRS_BOX_3_ENABLED 0 -#endif - -// NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module. - - -#ifndef NRFX_PRS_BOX_4_ENABLED -#define NRFX_PRS_BOX_4_ENABLED 0 -#endif - - -// NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PRS_CONFIG_LOG_ENABLED -#define NRFX_PRS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PRS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PRS_CONFIG_LOG_LEVEL -#define NRFX_PRS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PRS_CONFIG_INFO_COLOR -#define NRFX_PRS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR -#define NRFX_PRS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver. -//========================================================== -#ifndef NRFX_PWM_ENABLED -#define NRFX_PWM_ENABLED 0 -#endif -// NRFX_PWM0_ENABLED - Enables PWM0 instance. - - -#ifndef NRFX_PWM0_ENABLED -#define NRFX_PWM0_ENABLED 0 -#endif - -// NRFX_PWM1_ENABLED - Enables PWM1 instance. - - -#ifndef NRFX_PWM1_ENABLED -#define NRFX_PWM1_ENABLED 0 -#endif - -// NRFX_PWM2_ENABLED - Enables PWM2 instance. - - -#ifndef NRFX_PWM2_ENABLED -#define NRFX_PWM2_ENABLED 0 -#endif - -// NRFX_PWM3_ENABLED - Enables PWM3 instance. - - -#ifndef NRFX_PWM3_ENABLED -#define NRFX_PWM3_ENABLED 0 -#endif - -// NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PWM_CONFIG_LOG_ENABLED -#define NRFX_PWM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PWM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PWM_CONFIG_LOG_LEVEL -#define NRFX_PWM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PWM_CONFIG_INFO_COLOR -#define NRFX_PWM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR -#define NRFX_PWM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver -//========================================================== -#ifndef NRFX_QDEC_ENABLED -#define NRFX_QDEC_ENABLED 0 -#endif - -// NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED -#define NRFX_QDEC_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL -#define NRFX_QDEC_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_QDEC_CONFIG_INFO_COLOR -#define NRFX_QDEC_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR -#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver -//========================================================== -#ifndef NRFX_QSPI_ENABLED -#define NRFX_QSPI_ENABLED 0 -#endif - -// NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver. -//========================================================== -#ifndef NRFX_RTC_ENABLED -#define NRFX_RTC_ENABLED 0 -#endif -// NRFX_RTC0_ENABLED - Enables RTC0 instance. - - -#ifndef NRFX_RTC0_ENABLED -#define NRFX_RTC0_ENABLED 0 -#endif - -// NRFX_RTC1_ENABLED - Enables RTC1 instance. - - -#ifndef NRFX_RTC1_ENABLED -#define NRFX_RTC1_ENABLED 0 -#endif - -// NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_RTC_CONFIG_LOG_ENABLED -#define NRFX_RTC_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_RTC_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_RTC_CONFIG_LOG_LEVEL -#define NRFX_RTC_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_RTC_CONFIG_INFO_COLOR -#define NRFX_RTC_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR -#define NRFX_RTC_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver. -//========================================================== -#ifndef NRFX_SAADC_ENABLED -#define NRFX_SAADC_ENABLED 0 -#endif - -// NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED -#define NRFX_SAADC_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SAADC_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL -#define NRFX_SAADC_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SAADC_CONFIG_INFO_COLOR -#define NRFX_SAADC_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR -#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver. -//========================================================== -#ifndef NRFX_SPIM_ENABLED -#define NRFX_SPIM_ENABLED 0 -#endif -// NRFX_SPIM0_ENABLED - Enables SPIM0 instance. - - -#ifndef NRFX_SPIM0_ENABLED -#define NRFX_SPIM0_ENABLED 0 -#endif - -// NRFX_SPIM1_ENABLED - Enables SPIM1 instance. - - -#ifndef NRFX_SPIM1_ENABLED -#define NRFX_SPIM1_ENABLED 0 -#endif - -// NRFX_SPIM2_ENABLED - Enables SPIM2 instance. - - -#ifndef NRFX_SPIM2_ENABLED -#define NRFX_SPIM2_ENABLED 0 -#endif - -// NRFX_SPIM3_ENABLED - Enables SPIM3 instance. - - -#ifndef NRFX_SPIM3_ENABLED -#define NRFX_SPIM3_ENABLED 0 -#endif - -// NRFX_SPIM4_ENABLED - Enables SPIM4 instance. - - -#ifndef NRFX_SPIM4_ENABLED -#define NRFX_SPIM4_ENABLED 0 -#endif - -// NRFX_SPIM_EXTENDED_ENABLED - Enable extended SPIM features - - -#ifndef NRFX_SPIM_EXTENDED_ENABLED -#define NRFX_SPIM_EXTENDED_ENABLED 0 -#endif - -// NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED -#define NRFX_SPIM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SPIM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL -#define NRFX_SPIM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIM_CONFIG_INFO_COLOR -#define NRFX_SPIM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR -#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver. -//========================================================== -#ifndef NRFX_SPIS_ENABLED -#define NRFX_SPIS_ENABLED 0 -#endif -// NRFX_SPIS0_ENABLED - Enables SPIS0 instance. - - -#ifndef NRFX_SPIS0_ENABLED -#define NRFX_SPIS0_ENABLED 0 -#endif - -// NRFX_SPIS1_ENABLED - Enables SPIS1 instance. - - -#ifndef NRFX_SPIS1_ENABLED -#define NRFX_SPIS1_ENABLED 0 -#endif - -// NRFX_SPIS2_ENABLED - Enables SPIS2 instance. - - -#ifndef NRFX_SPIS2_ENABLED -#define NRFX_SPIS2_ENABLED 0 -#endif - -// NRFX_SPIS3_ENABLED - Enables SPIS3 instance. - - -#ifndef NRFX_SPIS3_ENABLED -#define NRFX_SPIS3_ENABLED 0 -#endif - -// NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED -#define NRFX_SPIS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SPIS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL -#define NRFX_SPIS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIS_CONFIG_INFO_COLOR -#define NRFX_SPIS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR -#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver. - - -#ifndef NRFX_SYSTICK_ENABLED -#define NRFX_SYSTICK_ENABLED 0 -#endif - -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. -//========================================================== -#ifndef NRFX_TIMER_ENABLED -#define NRFX_TIMER_ENABLED 0 -#endif -// NRFX_TIMER0_ENABLED - Enables TIMER0 instance. - - -#ifndef NRFX_TIMER0_ENABLED -#define NRFX_TIMER0_ENABLED 0 -#endif - -// NRFX_TIMER1_ENABLED - Enables TIMER1 instance. - - -#ifndef NRFX_TIMER1_ENABLED -#define NRFX_TIMER1_ENABLED 0 -#endif - -// NRFX_TIMER2_ENABLED - Enables TIMER2 instance. - - -#ifndef NRFX_TIMER2_ENABLED -#define NRFX_TIMER2_ENABLED 0 -#endif - -// NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED -#define NRFX_TIMER_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TIMER_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL -#define NRFX_TIMER_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TIMER_CONFIG_INFO_COLOR -#define NRFX_TIMER_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR -#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver. -//========================================================== -#ifndef NRFX_TWIM_ENABLED -#define NRFX_TWIM_ENABLED 0 -#endif -// NRFX_TWIM0_ENABLED - Enables TWIM0 instance. - - -#ifndef NRFX_TWIM0_ENABLED -#define NRFX_TWIM0_ENABLED 0 -#endif - -// NRFX_TWIM1_ENABLED - Enables TWIM1 instance. - - -#ifndef NRFX_TWIM1_ENABLED -#define NRFX_TWIM1_ENABLED 0 -#endif - -// NRFX_TWIM2_ENABLED - Enables TWIM2 instance. - - -#ifndef NRFX_TWIM2_ENABLED -#define NRFX_TWIM2_ENABLED 0 -#endif - -// NRFX_TWIM3_ENABLED - Enables TWIM3 instance. - - -#ifndef NRFX_TWIM3_ENABLED -#define NRFX_TWIM3_ENABLED 0 -#endif - -// NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED -#define NRFX_TWIM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TWIM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL -#define NRFX_TWIM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIM_CONFIG_INFO_COLOR -#define NRFX_TWIM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR -#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver. -//========================================================== -#ifndef NRFX_TWIS_ENABLED -#define NRFX_TWIS_ENABLED 0 -#endif - -// NRFX_TWIS0_ENABLED - Enables TWIS0 instance. - -#ifndef NRFX_TWIS0_ENABLED -#define NRFX_TWIS0_ENABLED 0 -#endif - -// NRFX_TWIS1_ENABLED - Enables TWIS1 instance. - -#ifndef NRFX_TWIS1_ENABLED -#define NRFX_TWIS1_ENABLED 0 -#endif - -// NRFX_TWIS2_ENABLED - Enables TWIS2 instance. - -#ifndef NRFX_TWIS2_ENABLED -#define NRFX_TWIS2_ENABLED 0 -#endif - -// NRFX_TWIS3_ENABLED - Enables TWIS3 instance. - -#ifndef NRFX_TWIS3_ENABLED -#define NRFX_TWIS3_ENABLED 0 -#endif - -// NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assumes that any instance would be initialized only once. - -// Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code. - -#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY -#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 -#endif - -// NRFX_TWIS_NO_SYNC_MODE - Removes support for synchronous mode. - -// Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources. - -#ifndef NRFX_TWIS_NO_SYNC_MODE -#define NRFX_TWIS_NO_SYNC_MODE 0 -#endif - -// NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED -#define NRFX_TWIS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TWIS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL -#define NRFX_TWIS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIS_CONFIG_INFO_COLOR -#define NRFX_TWIS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR -#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver. -//========================================================== -#ifndef NRFX_UARTE_ENABLED -#define NRFX_UARTE_ENABLED 0 -#endif -// NRFX_UARTE0_ENABLED - Enables UARTE0 instances -#ifndef NRFX_UARTE0_ENABLED -#define NRFX_UARTE0_ENABLED 0 -#endif - -// NRFX_UARTE1_ENABLED - Enables UARTE1 instance. -#ifndef NRFX_UARTE1_ENABLED -#define NRFX_UARTE1_ENABLED 0 -#endif - -// NRFX_UARTE2_ENABLED - Enables UARTE2 instance. -#ifndef NRFX_UARTE2_ENABLED -#define NRFX_UARTE2_ENABLED 0 -#endif - -// NRFX_UARTE3_ENABLED - Enables UARTE3 instance. -#ifndef NRFX_UARTE3_ENABLED -#define NRFX_UARTE3_ENABLED 0 -#endif - -// NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED -#define NRFX_UARTE_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_UARTE_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL -#define NRFX_UARTE_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_UARTE_CONFIG_INFO_COLOR -#define NRFX_UARTE_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR -#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver -//========================================================== -#ifndef NRFX_USBD_ENABLED -#define NRFX_USBD_ENABLED 0 -#endif -// NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers - -// This option gives priority to isochronous transfers. -// Enabling it assures that isochronous transfers are always processed, -// even if multiple other transfers are pending. -// Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm -// function is called, so the option is independent of the algorithm chosen. - -#ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST -#define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 -#endif - -// USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready - - -// If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent. -// Else, there will be no response. - -#ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP -#define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 -#endif - -// NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module -//========================================================== -#ifndef NRFX_USBD_CONFIG_LOG_ENABLED -#define NRFX_USBD_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_USBD_CONFIG_LOG_LEVEL -#define NRFX_USBD_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_USBD_CONFIG_INFO_COLOR -#define NRFX_USBD_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_USBD_CONFIG_DEBUG_COLOR -#define NRFX_USBD_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_USBREG_ENABLED - nrfx_usbreg - USBREG peripheral driver -//========================================================== -#ifndef NRFX_USBREG_ENABLED -#define NRFX_USBREG_ENABLED 0 -#endif -// NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// - -// NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver. -//========================================================== -#ifndef NRFX_WDT_ENABLED -#define NRFX_WDT_ENABLED 0 -#endif -// NRFX_WDT0_ENABLED - Enable WDT0 instance. - - -#ifndef NRFX_WDT0_ENABLED -#define NRFX_WDT0_ENABLED 0 -#endif - -// NRFX_WDT1_ENABLED - Enable WDT1 instance. - - -#ifndef NRFX_WDT1_ENABLED -#define NRFX_WDT1_ENABLED 0 -#endif - -// NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver. - -// <0=> Include WDT IRQ handling -// <1=> Remove WDT IRQ handling - -#ifndef NRFX_WDT_CONFIG_NO_IRQ -#define NRFX_WDT_CONFIG_NO_IRQ 0 -#endif - -// NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_WDT_CONFIG_LOG_ENABLED -#define NRFX_WDT_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_WDT_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_WDT_CONFIG_LOG_LEVEL -#define NRFX_WDT_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_WDT_CONFIG_INFO_COLOR -#define NRFX_WDT_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR -#define NRFX_WDT_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// - -#endif // NRFX_CONFIG_NRF5340_APPLICATION_H__ diff --git a/platform/ext/target/nordic_nrf/common/nrf54l/nrfx_config_nrf54l.h b/platform/ext/target/nordic_nrf/common/nrf54l/nrfx_config_nrf54l.h deleted file mode 100644 index bceb069eac..0000000000 --- a/platform/ext/target/nordic_nrf/common/nrf54l/nrfx_config_nrf54l.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2024 Nordic Semiconductor ASA - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef NRFX_CONFIG_NRF54L15_APPLICATION_H__ -#define NRFX_CONFIG_NRF54L15_APPLICATION_H__ - -#ifndef NRFX_CONFIG_H__ -#error "This file should not be included directly. Include nrfx_config.h instead." -#endif - -/** - * @brief NRFX_DEFAULT_IRQ_PRIORITY - * - * Integer value. Minimum: 0 Maximum: 7 - */ -#ifndef NRFX_DEFAULT_IRQ_PRIORITY -#define NRFX_DEFAULT_IRQ_PRIORITY 7 -#endif - -/** - * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - * - * Integer value. Minimum: 0 Maximum: 7 - */ -#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY -#endif - -/** - * @brief NRFX_RRAMC_ENABLED - * - * Boolean. Accepted values: 0 and 1. - */ -#ifndef NRFX_RRAMC_ENABLED -#define NRFX_RRAMC_ENABLED 0 -#endif - -/** - * @brief NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY - * - * Integer value. Minimum: 0. Maximum: 7. - */ -#ifndef NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY -#endif - -/** - * @brief NRFX_RRAMC_CONFIG_LOG_ENABLED - * - * Boolean. Accepted values: 0 and 1. - */ -#ifndef NRFX_RRAMC_CONFIG_LOG_ENABLED -#define NRFX_RRAMC_CONFIG_LOG_ENABLED 0 -#endif - -/** - * @brief NRFX_RRAMC_CONFIG_LOG_LEVEL - * - * Integer value. - * Supported values: - * - Off = 0 - * - Error = 1 - * - Warning = 2 - * - Info = 3 - * - Debug = 4 - */ -#ifndef NRFX_RRAMC_CONFIG_LOG_LEVEL -#define NRFX_RRAMC_CONFIG_LOG_LEVEL 3 -#endif - -#endif // NRFX_CONFIG_NRF54L15_APPLICATION_H__ diff --git a/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt index 570d275416..de4a40fac3 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l10/CMakeLists.txt @@ -46,8 +46,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES ../nrf54l/nrfx_config_nrf54l.h - ../nrf54l/config.cmake +install(FILES ../nrf54l/config.cmake ns/CMakeLists.txt cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf54l10 diff --git a/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt index a3c4a7be69..3b86f89a1e 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54l15/CMakeLists.txt @@ -46,8 +46,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES ../nrf54l/nrfx_config_nrf54l.h - ../nrf54l/config.cmake +install(FILES ../nrf54l/config.cmake ns/CMakeLists.txt cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf54l15 diff --git a/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt index 6a3d87316b..c3d6d61b81 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lm20a/CMakeLists.txt @@ -46,8 +46,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES ../nrf54l/nrfx_config_nrf54l.h - ../nrf54l/config.cmake +install(FILES ../nrf54l/config.cmake ns/CMakeLists.txt cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf54lm20a diff --git a/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt index 7ec95e428d..2078fb76af 100644 --- a/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf54lv10a/CMakeLists.txt @@ -46,8 +46,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES ../nrf54l/nrfx_config_nrf54l.h - ../nrf54l/config.cmake +install(FILES ../nrf54l/config.cmake ns/CMakeLists.txt cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf54lv10a diff --git a/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt index a7696c8781..9e3f758d64 100644 --- a/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf7120/CMakeLists.txt @@ -38,8 +38,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES ./nrfx_config_nrf71.h - ./config.cmake +install(FILES ./config.cmake ns/CMakeLists.txt cpuarch.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf7120 diff --git a/platform/ext/target/nordic_nrf/common/nrf7120/nrfx_config_nrf71.h b/platform/ext/target/nordic_nrf/common/nrf7120/nrfx_config_nrf71.h deleted file mode 100644 index 2072531aec..0000000000 --- a/platform/ext/target/nordic_nrf/common/nrf7120/nrfx_config_nrf71.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2025 Nordic Semiconductor ASA - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef NRFX_CONFIG_NRF7120_ENGA_APPLICATION_H__ -#define NRFX_CONFIG_NRF7120_ENGA_APPLICATION_H__ - -#ifndef NRFX_CONFIG_H__ -#error "This file should not be included directly. Include nrfx_config.h instead." -#endif - -/** - * @brief NRFX_DEFAULT_IRQ_PRIORITY - * - * Integer value. Minimum: 0 Maximum: 7 - */ -#ifndef NRFX_DEFAULT_IRQ_PRIORITY -#define NRFX_DEFAULT_IRQ_PRIORITY 7 -#endif - -/** - * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - * - * Integer value. Minimum: 0 Maximum: 7 - */ -#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY -#endif - -/** - * @brief NRFX_MRAMC_ENABLED - * - * Boolean. Accepted values: 0 and 1. - */ -#ifndef NRFX_MRAMC_ENABLED -#define NRFX_MRAMC_ENABLED 0 -#endif - -/** - * @brief NRFX_MRAMC_DEFAULT_CONFIG_IRQ_PRIORITY - * - * Integer value. Minimum: 0. Maximum: 7. - */ -#ifndef NRFX_MRAMC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_MRAMC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY -#endif - -/** - * @brief NRFX_MRAMC_CONFIG_LOG_ENABLED - * - * Boolean. Accepted values: 0 and 1. - */ -#ifndef NRFX_MRAMC_CONFIG_LOG_ENABLED -#define NRFX_MRAMC_CONFIG_LOG_ENABLED 0 -#endif - -/** - * @brief NRFX_MRAMC_CONFIG_LOG_LEVEL - * - * Integer value. - * Supported values: - * - Off = 0 - * - Error = 1 - * - Warning = 2 - * - Info = 3 - * - Debug = 4 - */ -#ifndef NRFX_MRAMC_CONFIG_LOG_LEVEL -#define NRFX_MRAMC_CONFIG_LOG_LEVEL 3 -#endif - -#endif // NRFX_CONFIG_NRF7120_ENGA_APPLICATION_H__ diff --git a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt index 92c0c680f7..10e1619a83 100644 --- a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt @@ -64,8 +64,7 @@ target_sources(tfm_spm #========================= Files for building NS side platform ================# -install(FILES nrfx_config_nrf91.h - ns/CMakeLists.txt +install(FILES ns/CMakeLists.txt config.cmake DESTINATION ${INSTALL_PLATFORM_NS_DIR}/common/nrf91 ) diff --git a/platform/ext/target/nordic_nrf/common/nrf91/nrfx_config_nrf91.h b/platform/ext/target/nordic_nrf/common/nrf91/nrfx_config_nrf91.h deleted file mode 100644 index e95f3920a4..0000000000 --- a/platform/ext/target/nordic_nrf/common/nrf91/nrfx_config_nrf91.h +++ /dev/null @@ -1,1657 +0,0 @@ -/* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRFX_CONFIG_NRF91_H__ -#define NRFX_CONFIG_NRF91_H__ - -#ifndef NRFX_CONFIG_H__ -#error "This file should not be included directly. Include nrfx_config.h instead." -#endif - -/* - * The MDK for nRF9120 used in the nRF9161 target doesn't define the Secure FPU - * as it doesn't exist, but for other platforms like the 9160 it has a dummy - * define. - * Therefore we define it here manually until it is fixed in the MDK. - * See: NCSDK-23046 - */ -#ifdef NRF9120_XXAA -#define NRF_FPU_S 1 -#endif - -#define NRF_CLOCK NRF_PERIPH(NRF_CLOCK) -#define NRF_DPPIC NRF_PERIPH(NRF_DPPIC) -#define NRF_EGU0 NRF_PERIPH(NRF_EGU0) -#define NRF_EGU1 NRF_PERIPH(NRF_EGU1) -#define NRF_EGU2 NRF_PERIPH(NRF_EGU2) -#define NRF_EGU3 NRF_PERIPH(NRF_EGU3) -#define NRF_EGU4 NRF_PERIPH(NRF_EGU4) -#define NRF_EGU5 NRF_PERIPH(NRF_EGU5) -#define NRF_FPU NRF_PERIPH(NRF_FPU) -#define NRF_IPC NRF_PERIPH(NRF_IPC) -#define NRF_I2S NRF_PERIPH(NRF_I2S) -#define NRF_KMU NRF_PERIPH(NRF_KMU) -#define NRF_NVMC NRF_PERIPH(NRF_NVMC) -#define NRF_P0 NRF_PERIPH(NRF_P0) -#define NRF_PDM NRF_PERIPH(NRF_PDM) -#define NRF_POWER NRF_PERIPH(NRF_POWER) -#define NRF_PWM0 NRF_PERIPH(NRF_PWM0) -#define NRF_PWM1 NRF_PERIPH(NRF_PWM1) -#define NRF_PWM2 NRF_PERIPH(NRF_PWM2) -#define NRF_PWM3 NRF_PERIPH(NRF_PWM3) -#define NRF_REGULATORS NRF_PERIPH(NRF_REGULATORS) -#define NRF_RTC0 NRF_PERIPH(NRF_RTC0) -#define NRF_RTC1 NRF_PERIPH(NRF_RTC1) -#define NRF_SAADC NRF_PERIPH(NRF_SAADC) -#define NRF_SPIM0 NRF_PERIPH(NRF_SPIM0) -#define NRF_SPIM1 NRF_PERIPH(NRF_SPIM1) -#define NRF_SPIM2 NRF_PERIPH(NRF_SPIM2) -#define NRF_SPIM3 NRF_PERIPH(NRF_SPIM3) -#define NRF_SPIS0 NRF_PERIPH(NRF_SPIS0) -#define NRF_SPIS1 NRF_PERIPH(NRF_SPIS1) -#define NRF_SPIS2 NRF_PERIPH(NRF_SPIS2) -#define NRF_SPIS3 NRF_PERIPH(NRF_SPIS3) -#define NRF_TIMER0 NRF_PERIPH(NRF_TIMER0) -#define NRF_TIMER1 NRF_PERIPH(NRF_TIMER1) -#define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) -#define NRF_TWIM0 NRF_PERIPH(NRF_TWIM0) -#define NRF_TWIM1 NRF_PERIPH(NRF_TWIM1) -#define NRF_TWIM2 NRF_PERIPH(NRF_TWIM2) -#define NRF_TWIM3 NRF_PERIPH(NRF_TWIM3) -#define NRF_TWIS0 NRF_PERIPH(NRF_TWIS0) -#define NRF_TWIS1 NRF_PERIPH(NRF_TWIS1) -#define NRF_TWIS2 NRF_PERIPH(NRF_TWIS2) -#define NRF_TWIS3 NRF_PERIPH(NRF_TWIS3) -#define NRF_UARTE0 NRF_PERIPH(NRF_UARTE0) -#define NRF_UARTE1 NRF_PERIPH(NRF_UARTE1) -#define NRF_UARTE2 NRF_PERIPH(NRF_UARTE2) -#define NRF_UARTE3 NRF_PERIPH(NRF_UARTE3) -#define NRF_VMC NRF_PERIPH(NRF_VMC) -#define NRF_WDT NRF_PERIPH(NRF_WDT) - -/* - * The following section provides the name translation for peripherals with - * only one type of access available. For these peripherals, you cannot choose - * between secure and non-secure mapping. - */ -#if defined(NRF_TRUSTZONE_NONSECURE) -#define NRF_GPIOTE1 NRF_GPIOTE1_NS -#else -#define NRF_CC_HOST_RGF NRF_CC_HOST_RGF_S -#define NRF_CRYPTOCELL NRF_CRYPTOCELL_S -#define NRF_CTRL_AP_PERI NRF_CTRL_AP_PERI_S -#define NRF_FICR NRF_FICR_S -#define NRF_GPIOTE0 NRF_GPIOTE0_S -#define NRF_SPU NRF_SPU_S -#define NRF_TAD NRF_TAD_S -#define NRF_UICR NRF_UICR_S -#endif - -/* Fixup for the GPIOTE driver. */ -#if defined(NRF_TRUSTZONE_NONSECURE) -#define NRF_GPIOTE NRF_GPIOTE1 -#else -#define NRF_GPIOTE NRF_GPIOTE0 -#endif - - -// <<< Use Configuration Wizard in Context Menu >>>\n - -// nRF_Drivers - -// NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver. -//========================================================== -#ifndef NRFX_CLOCK_ENABLED -#define NRFX_CLOCK_ENABLED 0 -#endif -// NRFX_CLOCK_CONFIG_LF_SRC - LF clock source. - -// <1=> RC -// <2=> XTAL - -#ifndef NRFX_CLOCK_CONFIG_LF_SRC -#define NRFX_CLOCK_CONFIG_LF_SRC 2 -#endif - -// NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure - -// If set to a non-zero value, LFRC will be started before LFXO and corresponding -// event will be generated. It means that CPU will be woken up when LFRC -// oscillator starts, but user callback will be invoked only after LFXO -// finally starts. - -#ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED -#define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 -#endif - - -// NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED -#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_CLOCK_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL -#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR -#define NRFX_CLOCK_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR -#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator. -//========================================================== -#ifndef NRFX_DPPI_ENABLED -#define NRFX_DPPI_ENABLED 0 -#endif -// NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_DPPI_CONFIG_LOG_ENABLED -#define NRFX_DPPI_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_DPPI_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_DPPI_CONFIG_LOG_LEVEL -#define NRFX_DPPI_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_DPPI_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_DPPI_CONFIG_INFO_COLOR -#define NRFX_DPPI_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_DPPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_DPPI_CONFIG_DEBUG_COLOR -#define NRFX_DPPI_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver. -//========================================================== -#ifndef NRFX_EGU_ENABLED -#define NRFX_EGU_ENABLED 0 -#endif - -// NRFX_EGU0_ENABLED - Enable EGU0 instance. - -#ifndef NRFX_EGU0_ENABLED -#define NRFX_EGU0_ENABLED 0 -#endif - -// NRFX_EGU1_ENABLED - Enable EGU1 instance. - -#ifndef NRFX_EGU1_ENABLED -#define NRFX_EGU1_ENABLED 0 -#endif - -// NRFX_EGU2_ENABLED - Enable EGU2 instance. - -#ifndef NRFX_EGU2_ENABLED -#define NRFX_EGU2_ENABLED 0 -#endif - -// NRFX_EGU3_ENABLED - Enable EGU3 instance. - -#ifndef NRFX_EGU3_ENABLED -#define NRFX_EGU3_ENABLED 0 -#endif - -// NRFX_EGU4_ENABLED - Enable EGU4 instance. - -#ifndef NRFX_EGU4_ENABLED -#define NRFX_EGU4_ENABLED 0 -#endif - -// NRFX_EGU5_ENABLED - Enable EGU5 instance. - -#ifndef NRFX_EGU5_ENABLED -#define NRFX_EGU5_ENABLED 0 -#endif - -// NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver. -//========================================================== -#ifndef NRFX_GPIOTE_ENABLED -#define NRFX_GPIOTE_ENABLED 0 -#endif -// NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins. -#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS -#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1 -#endif - -// NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED -#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL -#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR -#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR -#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver. -//========================================================== -#ifndef NRFX_I2S_ENABLED -#define NRFX_I2S_ENABLED 0 -#endif - -// NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_I2S_CONFIG_LOG_ENABLED -#define NRFX_I2S_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_I2S_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_I2S_CONFIG_LOG_LEVEL -#define NRFX_I2S_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_I2S_CONFIG_INFO_COLOR -#define NRFX_I2S_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_I2S_CONFIG_DEBUG_COLOR -#define NRFX_I2S_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver -//========================================================== -#ifndef NRFX_IPC_ENABLED -#define NRFX_IPC_ENABLED 0 -#endif - -// - -// NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver -//========================================================== -#ifndef NRFX_NVMC_ENABLED -#define NRFX_NVMC_ENABLED 0 -#endif - -// - -// NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver. -//========================================================== -#ifndef NRFX_PDM_ENABLED -#define NRFX_PDM_ENABLED 0 -#endif - -// NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PDM_CONFIG_LOG_ENABLED -#define NRFX_PDM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PDM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PDM_CONFIG_LOG_LEVEL -#define NRFX_PDM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PDM_CONFIG_INFO_COLOR -#define NRFX_PDM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR -#define NRFX_PDM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver. -//========================================================== -#ifndef NRFX_POWER_ENABLED -#define NRFX_POWER_ENABLED 0 -#endif -// NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// - -// NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module. -//========================================================== -#ifndef NRFX_PRS_ENABLED -#define NRFX_PRS_ENABLED 0 -#endif -// NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module. - - -#ifndef NRFX_PRS_BOX_0_ENABLED -#define NRFX_PRS_BOX_0_ENABLED 0 -#endif - -// NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module. - - -#ifndef NRFX_PRS_BOX_1_ENABLED -#define NRFX_PRS_BOX_1_ENABLED 0 -#endif - -// NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module. - - -#ifndef NRFX_PRS_BOX_2_ENABLED -#define NRFX_PRS_BOX_2_ENABLED 0 -#endif - -// NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module. - - -#ifndef NRFX_PRS_BOX_3_ENABLED -#define NRFX_PRS_BOX_3_ENABLED 0 -#endif - -// NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PRS_CONFIG_LOG_ENABLED -#define NRFX_PRS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PRS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PRS_CONFIG_LOG_LEVEL -#define NRFX_PRS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PRS_CONFIG_INFO_COLOR -#define NRFX_PRS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR -#define NRFX_PRS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver. -//========================================================== -#ifndef NRFX_PWM_ENABLED -#define NRFX_PWM_ENABLED 0 -#endif -// NRFX_PWM0_ENABLED - Enables PWM0 instance. - - -#ifndef NRFX_PWM0_ENABLED -#define NRFX_PWM0_ENABLED 0 -#endif - -// NRFX_PWM1_ENABLED - Enables PWM1 instance. - - -#ifndef NRFX_PWM1_ENABLED -#define NRFX_PWM1_ENABLED 0 -#endif - -// NRFX_PWM2_ENABLED - Enables PWM2 instance. - - -#ifndef NRFX_PWM2_ENABLED -#define NRFX_PWM2_ENABLED 0 -#endif - -// NRFX_PWM3_ENABLED - Enables PWM3 instance. - - -#ifndef NRFX_PWM3_ENABLED -#define NRFX_PWM3_ENABLED 0 -#endif - -// NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_PWM_CONFIG_LOG_ENABLED -#define NRFX_PWM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_PWM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_PWM_CONFIG_LOG_LEVEL -#define NRFX_PWM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PWM_CONFIG_INFO_COLOR -#define NRFX_PWM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR -#define NRFX_PWM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver. -//========================================================== -#ifndef NRFX_RTC_ENABLED -#define NRFX_RTC_ENABLED 0 -#endif -// NRFX_RTC0_ENABLED - Enables RTC0 instance. - - -#ifndef NRFX_RTC0_ENABLED -#define NRFX_RTC0_ENABLED 0 -#endif - -// NRFX_RTC1_ENABLED - Enables RTC1 instance. - - -#ifndef NRFX_RTC1_ENABLED -#define NRFX_RTC1_ENABLED 0 -#endif - -// NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_RTC_CONFIG_LOG_ENABLED -#define NRFX_RTC_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_RTC_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_RTC_CONFIG_LOG_LEVEL -#define NRFX_RTC_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_RTC_CONFIG_INFO_COLOR -#define NRFX_RTC_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR -#define NRFX_RTC_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver. -//========================================================== -#ifndef NRFX_SAADC_ENABLED -#define NRFX_SAADC_ENABLED 0 -#endif - -// NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED -#define NRFX_SAADC_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SAADC_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL -#define NRFX_SAADC_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SAADC_CONFIG_INFO_COLOR -#define NRFX_SAADC_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR -#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver. -//========================================================== -#ifndef NRFX_SPIM_ENABLED -#define NRFX_SPIM_ENABLED 0 -#endif -// NRFX_SPIM0_ENABLED - Enables SPIM0 instance. - - -#ifndef NRFX_SPIM0_ENABLED -#define NRFX_SPIM0_ENABLED 0 -#endif - -// NRFX_SPIM1_ENABLED - Enables SPIM1 instance. - - -#ifndef NRFX_SPIM1_ENABLED -#define NRFX_SPIM1_ENABLED 0 -#endif - -// NRFX_SPIM2_ENABLED - Enables SPIM2 instance. - - -#ifndef NRFX_SPIM2_ENABLED -#define NRFX_SPIM2_ENABLED 0 -#endif - -// NRFX_SPIM3_ENABLED - Enables SPIM3 instance. - - -#ifndef NRFX_SPIM3_ENABLED -#define NRFX_SPIM3_ENABLED 0 -#endif - -// NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED -#define NRFX_SPIM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SPIM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL -#define NRFX_SPIM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIM_CONFIG_INFO_COLOR -#define NRFX_SPIM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR -#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver. -//========================================================== -#ifndef NRFX_SPIS_ENABLED -#define NRFX_SPIS_ENABLED 0 -#endif -// NRFX_SPIS0_ENABLED - Enables SPIS0 instance. - - -#ifndef NRFX_SPIS0_ENABLED -#define NRFX_SPIS0_ENABLED 0 -#endif - -// NRFX_SPIS1_ENABLED - Enables SPIS1 instance. - - -#ifndef NRFX_SPIS1_ENABLED -#define NRFX_SPIS1_ENABLED 0 -#endif - -// NRFX_SPIS2_ENABLED - Enables SPIS2 instance. - - -#ifndef NRFX_SPIS2_ENABLED -#define NRFX_SPIS2_ENABLED 0 -#endif - -// NRFX_SPIS3_ENABLED - Enables SPIS3 instance. - - -#ifndef NRFX_SPIS3_ENABLED -#define NRFX_SPIS3_ENABLED 0 -#endif - -// NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED -#define NRFX_SPIS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_SPIS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL -#define NRFX_SPIS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIS_CONFIG_INFO_COLOR -#define NRFX_SPIS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR -#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver. - - -#ifndef NRFX_SYSTICK_ENABLED -#define NRFX_SYSTICK_ENABLED 0 -#endif - -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. -//========================================================== -#ifndef NRFX_TIMER_ENABLED -#define NRFX_TIMER_ENABLED 0 -#endif - -// NRFX_TIMER0_ENABLED - Enables TIMER0 instance. - -#ifndef NRFX_TIMER0_ENABLED -#define NRFX_TIMER0_ENABLED 0 -#endif - -// NRFX_TIMER1_ENABLED - Enables TIMER1 instance. - -#ifndef NRFX_TIMER1_ENABLED -#define NRFX_TIMER1_ENABLED 0 -#endif - -// NRFX_TIMER2_ENABLED - Enables TIMER2 instance. - -#ifndef NRFX_TIMER2_ENABLED -#define NRFX_TIMER2_ENABLED 0 -#endif - -// NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED -#define NRFX_TIMER_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TIMER_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL -#define NRFX_TIMER_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TIMER_CONFIG_INFO_COLOR -#define NRFX_TIMER_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR -#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver. -//========================================================== -#ifndef NRFX_TWIM_ENABLED -#define NRFX_TWIM_ENABLED 0 -#endif -// NRFX_TWIM0_ENABLED - Enables TWIM0 instance. - - -#ifndef NRFX_TWIM0_ENABLED -#define NRFX_TWIM0_ENABLED 0 -#endif - -// NRFX_TWIM1_ENABLED - Enables TWIM1 instance. - - -#ifndef NRFX_TWIM1_ENABLED -#define NRFX_TWIM1_ENABLED 0 -#endif - -// NRFX_TWIM2_ENABLED - Enables TWIM2 instance. - - -#ifndef NRFX_TWIM2_ENABLED -#define NRFX_TWIM2_ENABLED 0 -#endif - -// NRFX_TWIM3_ENABLED - Enables TWIM3 instance. - - -#ifndef NRFX_TWIM3_ENABLED -#define NRFX_TWIM3_ENABLED 0 -#endif - -// NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED -#define NRFX_TWIM_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TWIM_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL -#define NRFX_TWIM_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIM_CONFIG_INFO_COLOR -#define NRFX_TWIM_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR -#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver. -//========================================================== -#ifndef NRFX_TWIS_ENABLED -#define NRFX_TWIS_ENABLED 0 -#endif -// NRFX_TWIS0_ENABLED - Enables TWIS0 instance. - - -#ifndef NRFX_TWIS0_ENABLED -#define NRFX_TWIS0_ENABLED 0 -#endif - -// NRFX_TWIS1_ENABLED - Enables TWIS1 instance. - - -#ifndef NRFX_TWIS1_ENABLED -#define NRFX_TWIS1_ENABLED 0 -#endif - -// NRFX_TWIS2_ENABLED - Enables TWIS2 instance. - - -#ifndef NRFX_TWIS2_ENABLED -#define NRFX_TWIS2_ENABLED 0 -#endif - -// NRFX_TWIS3_ENABLED - Enables TWIS3 instance. - - -#ifndef NRFX_TWIS3_ENABLED -#define NRFX_TWIS3_ENABLED 0 -#endif - -// NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assumes that any instance would be initialized only once. - - -// Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code. - -#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY -#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 -#endif - -// NRFX_TWIS_NO_SYNC_MODE - Removes support for synchronous mode. - -// Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources. - -#ifndef NRFX_TWIS_NO_SYNC_MODE -#define NRFX_TWIS_NO_SYNC_MODE 0 -#endif - -// NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED -#define NRFX_TWIS_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_TWIS_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL -#define NRFX_TWIS_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIS_CONFIG_INFO_COLOR -#define NRFX_TWIS_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR -#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver. -//========================================================== -#ifndef NRFX_UARTE_ENABLED -#define NRFX_UARTE_ENABLED 0 -#endif -// NRFX_UARTE0_ENABLED - Enables UARTE0 instances -#ifndef NRFX_UARTE0_ENABLED -#define NRFX_UARTE0_ENABLED 0 -#endif - -// NRFX_UARTE1_ENABLED - Enables UARTE1 instance. -#ifndef NRFX_UARTE1_ENABLED -#define NRFX_UARTE1_ENABLED 0 -#endif - -// NRFX_UARTE2_ENABLED - Enables UARTE2 instance. -#ifndef NRFX_UARTE2_ENABLED -#define NRFX_UARTE2_ENABLED 0 -#endif - -// NRFX_UARTE3_ENABLED - Enables UARTE3 instance. -#ifndef NRFX_UARTE3_ENABLED -#define NRFX_UARTE3_ENABLED 0 -#endif - -// NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED -#define NRFX_UARTE_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_UARTE_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL -#define NRFX_UARTE_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_UARTE_CONFIG_INFO_COLOR -#define NRFX_UARTE_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR -#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver. -//========================================================== -#ifndef NRFX_WDT_ENABLED -#define NRFX_WDT_ENABLED 0 -#endif -// NRFX_WDT0_ENABLED - Enable WDT0 instance. - - -#ifndef NRFX_WDT0_ENABLED -#define NRFX_WDT0_ENABLED 0 -#endif - -// NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver. - -// <0=> Include WDT IRQ handling -// <1=> Remove WDT IRQ handling - -#ifndef NRFX_WDT_CONFIG_NO_IRQ -#define NRFX_WDT_CONFIG_NO_IRQ 0 -#endif - -// NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. - -// <0=> 0 (highest) -// <1=> 1 -// <2=> 2 -// <3=> 3 -// <4=> 4 -// <5=> 5 -// <6=> 6 -// <7=> 7 - -#ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY -#define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 7 -#endif - -// NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. -//========================================================== -#ifndef NRFX_WDT_CONFIG_LOG_ENABLED -#define NRFX_WDT_CONFIG_LOG_ENABLED 0 -#endif -// NRFX_WDT_CONFIG_LOG_LEVEL - Default severity level. - -// <0=> Off -// <1=> Error -// <2=> Warning -// <3=> Info -// <4=> Debug - -#ifndef NRFX_WDT_CONFIG_LOG_LEVEL -#define NRFX_WDT_CONFIG_LOG_LEVEL 3 -#endif - -// NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_WDT_CONFIG_INFO_COLOR -#define NRFX_WDT_CONFIG_INFO_COLOR 0 -#endif - -// NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. - -// <0=> Default -// <1=> Black -// <2=> Red -// <3=> Green -// <4=> Yellow -// <5=> Blue -// <6=> Magenta -// <7=> Cyan -// <8=> White - -#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR -#define NRFX_WDT_CONFIG_DEBUG_COLOR 0 -#endif - -// - -// - -// - -#endif // NRFX_CONFIG_NRF91_H__ From 2e03e93e8cb2f1b0b3492f3ab915476946e6b945 Mon Sep 17 00:00:00 2001 From: Marcin Szymczyk Date: Fri, 21 Nov 2025 13:44:11 +0100 Subject: [PATCH 4/6] [zep fromlist] nrf: driver: flash: align to nrfx 4.0 Update error codes. Change-Id: I492f82cfb777a5acfac536ae5e647ed8b7a61df3 Signed-off-by: Marcin Szymczyk Signed-off-by: Tomi Fontanilles --- .../common/core/cmsis_drivers/Driver_Flash.c | 12 ++++++------ .../target/nordic_nrf/common/core/target_cfg_54l.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_Flash.c b/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_Flash.c index 54b540560c..5a7d138d14 100644 --- a/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_Flash.c +++ b/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_Flash.c @@ -120,17 +120,17 @@ static int32_t ARM_Flash_Initialize(ARM_Flash_SignalEvent_t cb_event) */ nrfx_rramc_evt_handler_t handler = NULL; - nrfx_err_t err = nrfx_rramc_init(&config, handler); + int err = nrfx_rramc_init(&config, handler); - if(err != NRFX_SUCCESS && err != NRFX_ERROR_ALREADY) { + if(err != 0 && err != -EALREADY) { return err; } #elif defined(MRAMC_PRESENT) nrfx_mramc_config_t config = NRFX_MRAMC_DEFAULT_CONFIG(); - nrfx_err_t err = nrfx_mramc_init(&config, NULL); + int err = nrfx_mramc_init(&config, NULL); - if(err != NRFX_SUCCESS && err != NRFX_ERROR_ALREADY) { + if(err != 0 && err != -EALREADY) { return err; } #endif /* RRAMC_PRESENT or MRAMC_PRESENT*/ @@ -206,9 +206,9 @@ static int32_t ARM_Flash_ProgramData(uint32_t addr, const void *data, static int32_t ARM_Flash_EraseSector(uint32_t addr) { #ifdef NRF_NVMC_S - nrfx_err_t err_code = nrfx_nvmc_page_erase(addr); + int err_code = nrfx_nvmc_page_erase(addr); - if (err_code != NRFX_SUCCESS) { + if (err_code != 0) { return ARM_DRIVER_ERROR_PARAMETER; } #else diff --git a/platform/ext/target/nordic_nrf/common/core/target_cfg_54l.c b/platform/ext/target/nordic_nrf/common/core/target_cfg_54l.c index be19914c21..9b171e36bf 100644 --- a/platform/ext/target/nordic_nrf/common/core/target_cfg_54l.c +++ b/platform/ext/target/nordic_nrf/common/core/target_cfg_54l.c @@ -129,7 +129,7 @@ static void init_mpc_region_override(struct mpc_region_override *override) override->permmask = MPC_OVERRIDE_PERM_SECATTR_Msk; } -static nrfx_err_t rramc_configuration(void) +static int rramc_configuration(void) { nrfx_rramc_config_t config = NRFX_RRAMC_DEFAULT_CONFIG(WRITE_BUFFER_SIZE); @@ -148,12 +148,12 @@ static nrfx_err_t rramc_configuration(void) */ nrfx_rramc_evt_handler_t handler = NULL; - nrfx_err_t err = nrfx_rramc_init(&config, handler); - if (err != NRFX_SUCCESS && err != NRFX_ERROR_ALREADY) { + int err = nrfx_rramc_init(&config, handler); + if (err != 0 && err != -EALREADY) { return err; } - return NRFX_SUCCESS; + return 0; } enum tfm_plat_err_t init_debug(void) @@ -469,8 +469,8 @@ enum tfm_plat_err_t spu_periph_init_cfg(void) nrf_cache_enable(NRF_ICACHE); - nrfx_err_t nrfx_err = rramc_configuration(); - if (nrfx_err != NRFX_SUCCESS) { + int nrfx_err = rramc_configuration(); + if (nrfx_err != 0) { return TFM_PLAT_ERR_SYSTEM_ERR; } From 4574e7c329c593fd42d3bd011e8ee69194d8de0d Mon Sep 17 00:00:00 2001 From: Marcin Szymczyk Date: Tue, 18 Nov 2025 12:08:02 +0100 Subject: [PATCH 5/6] [zep fromlist dirty] {spm, partitions}: include `compiler_ext_defs.h` last Since `compiler_ext_defs.h` should define compiler symbols only if they have not been previously defined, it should be included as the last header to avoid redefine warnigns. Fix in all files. Change-Id: I010b8885b4e1b150ec527f0b246b95a4dab4902a Signed-off-by: Marcin Szymczyk Signed-off-by: Tomi Fontanilles --- secure_fw/partitions/ns_agent_tz/load_info_ns_agent_tz.c | 2 +- secure_fw/partitions/ns_agent_tz/ns_agent_tz.c | 2 +- secure_fw/partitions/ns_agent_tz/ns_agent_tz_v80m.c | 2 +- secure_fw/partitions/ns_agent_tz/psa_api_veneers_v80m.c | 2 +- secure_fw/spm/core/arch/tfm_arch.c | 2 +- secure_fw/spm/core/arch/tfm_arch_v6m_v7m.c | 2 +- secure_fw/spm/core/arch/tfm_arch_v8m_base.c | 2 +- secure_fw/spm/core/arch/tfm_arch_v8m_main.c | 2 +- secure_fw/spm/core/backend_ipc.c | 2 +- secure_fw/spm/core/backend_sfn.c | 2 +- secure_fw/spm/core/psa_interface_svc.c | 2 +- secure_fw/spm/core/psa_interface_thread_fn_call.c | 2 +- secure_fw/spm/core/spm_local_connection.c | 2 +- secure_fw/spm/core/tfm_pools.h | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/secure_fw/partitions/ns_agent_tz/load_info_ns_agent_tz.c b/secure_fw/partitions/ns_agent_tz/load_info_ns_agent_tz.c index e8f94dc825..133cd33cd9 100644 --- a/secure_fw/partitions/ns_agent_tz/load_info_ns_agent_tz.c +++ b/secure_fw/partitions/ns_agent_tz/load_info_ns_agent_tz.c @@ -12,7 +12,6 @@ #include #include -#include "compiler_ext_defs.h" #include "config_impl.h" #include "spm.h" #include "load/partition_defs.h" @@ -24,6 +23,7 @@ */ #include "region_defs.h" #include "tfm_s_linker_alignments.h" +#include "compiler_ext_defs.h" #define TFM_SP_NS_AGENT_NDEPS (0) #define TFM_SP_NS_AGENT_NSERVS (0) diff --git a/secure_fw/partitions/ns_agent_tz/ns_agent_tz.c b/secure_fw/partitions/ns_agent_tz/ns_agent_tz.c index 5ff988109f..eb8c63dafb 100644 --- a/secure_fw/partitions/ns_agent_tz/ns_agent_tz.c +++ b/secure_fw/partitions/ns_agent_tz/ns_agent_tz.c @@ -9,10 +9,10 @@ */ #include -#include "compiler_ext_defs.h" #include "security_defs.h" #include "tfm_arch.h" #include "tfm_hal_platform.h" +#include "compiler_ext_defs.h" __naked void ns_agent_tz_main(uint32_t c_entry) { diff --git a/secure_fw/partitions/ns_agent_tz/ns_agent_tz_v80m.c b/secure_fw/partitions/ns_agent_tz/ns_agent_tz_v80m.c index 27103c9a60..f1cd2664ac 100644 --- a/secure_fw/partitions/ns_agent_tz/ns_agent_tz_v80m.c +++ b/secure_fw/partitions/ns_agent_tz/ns_agent_tz_v80m.c @@ -9,10 +9,10 @@ */ #include -#include "compiler_ext_defs.h" #include "security_defs.h" #include "tfm_arch.h" #include "tfm_hal_platform.h" +#include "compiler_ext_defs.h" __naked void ns_agent_tz_main(uint32_t c_entry) { diff --git a/secure_fw/partitions/ns_agent_tz/psa_api_veneers_v80m.c b/secure_fw/partitions/ns_agent_tz/psa_api_veneers_v80m.c index 1e051af7c4..1993dfb7f9 100644 --- a/secure_fw/partitions/ns_agent_tz/psa_api_veneers_v80m.c +++ b/secure_fw/partitions/ns_agent_tz/psa_api_veneers_v80m.c @@ -8,7 +8,6 @@ #include #include "cmsis_compiler.h" -#include "compiler_ext_defs.h" #include "config_impl.h" #include "security_defs.h" #include "svc_num.h" @@ -17,6 +16,7 @@ #include "psa/client.h" #include "psa/service.h" #include "tfm_arch.h" +#include "compiler_ext_defs.h" /* * This is the veneers of FF-M Client APIs for Armv8.0-m. diff --git a/secure_fw/spm/core/arch/tfm_arch.c b/secure_fw/spm/core/arch/tfm_arch.c index 4779f7f103..4a4ca30ad7 100644 --- a/secure_fw/spm/core/arch/tfm_arch.c +++ b/secure_fw/spm/core/arch/tfm_arch.c @@ -5,12 +5,12 @@ * */ -#include "compiler_ext_defs.h" #include "security_defs.h" #include "tfm_arch.h" #include "tfm_core_trustzone.h" #include "utilities.h" #include "config_impl.h" +#include "compiler_ext_defs.h" #if defined(__ICCARM__) && (CONFIG_TFM_FLOAT_ABI >= 1) #pragma required = tfm_arch_clear_fp_data diff --git a/secure_fw/spm/core/arch/tfm_arch_v6m_v7m.c b/secure_fw/spm/core/arch/tfm_arch_v6m_v7m.c index c922553dcf..9c01e034fd 100644 --- a/secure_fw/spm/core/arch/tfm_arch_v6m_v7m.c +++ b/secure_fw/spm/core/arch/tfm_arch_v6m_v7m.c @@ -6,7 +6,6 @@ */ #include -#include "compiler_ext_defs.h" #include "security_defs.h" #include "utilities.h" #include "spm.h" @@ -14,6 +13,7 @@ #include "tfm_hal_device_header.h" #include "tfm_svcalls.h" #include "svc_num.h" +#include "compiler_ext_defs.h" #if !defined(__ARM_ARCH_6M__) && !defined(__ARM_ARCH_7M__) && \ !defined(__ARM_ARCH_7EM__) diff --git a/secure_fw/spm/core/arch/tfm_arch_v8m_base.c b/secure_fw/spm/core/arch/tfm_arch_v8m_base.c index bea45b5252..d7ec304906 100644 --- a/secure_fw/spm/core/arch/tfm_arch_v8m_base.c +++ b/secure_fw/spm/core/arch/tfm_arch_v8m_base.c @@ -9,7 +9,6 @@ */ #include -#include "compiler_ext_defs.h" #include "config_spm.h" #include "security_defs.h" #include "spm.h" @@ -18,6 +17,7 @@ #include "tfm_arch.h" #include "tfm_svcalls.h" #include "utilities.h" +#include "compiler_ext_defs.h" #if !defined(__ARM_ARCH_8M_BASE__) #error "Unsupported ARM Architecture." diff --git a/secure_fw/spm/core/arch/tfm_arch_v8m_main.c b/secure_fw/spm/core/arch/tfm_arch_v8m_main.c index 14f0be7f29..de79b3f1a0 100644 --- a/secure_fw/spm/core/arch/tfm_arch_v8m_main.c +++ b/secure_fw/spm/core/arch/tfm_arch_v8m_main.c @@ -10,7 +10,6 @@ #include -#include "compiler_ext_defs.h" #include "config_spm.h" #include "security_defs.h" #include "region_defs.h" @@ -22,6 +21,7 @@ #include "utilities.h" #include "core_ext.h" #include "ffm/backend.h" +#include "compiler_ext_defs.h" #if !defined(__ARM_ARCH_8M_MAIN__) && !defined(__ARM_ARCH_8_1M_MAIN__) #error "Unsupported ARM Architecture." diff --git a/secure_fw/spm/core/backend_ipc.c b/secure_fw/spm/core/backend_ipc.c index 7e9dfb0495..2637ebbd1a 100644 --- a/secure_fw/spm/core/backend_ipc.c +++ b/secure_fw/spm/core/backend_ipc.c @@ -13,7 +13,6 @@ #include "async.h" #include "config_spm.h" #include "critical_section.h" -#include "compiler_ext_defs.h" #include "config_spm.h" #include "ffm/psa_api.h" #include "fih.h" @@ -34,6 +33,7 @@ #include "psa/error.h" #include "internal_status_code.h" #include "sprt_partition_metadata_indicator.h" +#include "compiler_ext_defs.h" #if TFM_PARTITION_NS_AGENT_MAILBOX == 1 #include "psa_manifest/ns_agent_mailbox.h" diff --git a/secure_fw/spm/core/backend_sfn.c b/secure_fw/spm/core/backend_sfn.c index 6e9c3e9bfa..7ffa5adbb6 100644 --- a/secure_fw/spm/core/backend_sfn.c +++ b/secure_fw/spm/core/backend_sfn.c @@ -9,7 +9,6 @@ */ #include -#include "compiler_ext_defs.h" #include "current.h" #include "runtime_defs.h" #include "tfm_hal_platform.h" @@ -24,6 +23,7 @@ #include "spm.h" #include "memory_symbols.h" #include "private/assert.h" +#include "compiler_ext_defs.h" /* SFN Partition state */ #define SFN_PARTITION_STATE_NOT_INITED 0 diff --git a/secure_fw/spm/core/psa_interface_svc.c b/secure_fw/spm/core/psa_interface_svc.c index a93ef6b564..3bd4f0ead4 100644 --- a/secure_fw/spm/core/psa_interface_svc.c +++ b/secure_fw/spm/core/psa_interface_svc.c @@ -6,7 +6,6 @@ */ #include -#include "compiler_ext_defs.h" #include "config_spm.h" #include "runtime_defs.h" #include "svc_num.h" @@ -15,6 +14,7 @@ #include "psa/client.h" #include "psa/lifecycle.h" #include "psa/service.h" +#include "compiler_ext_defs.h" __naked uint32_t psa_framework_version_svc(void) { diff --git a/secure_fw/spm/core/psa_interface_thread_fn_call.c b/secure_fw/spm/core/psa_interface_thread_fn_call.c index 89e9dc86cf..fe6063fcd2 100644 --- a/secure_fw/spm/core/psa_interface_thread_fn_call.c +++ b/secure_fw/spm/core/psa_interface_thread_fn_call.c @@ -6,7 +6,6 @@ */ #include -#include "compiler_ext_defs.h" #include "config_spm.h" #include "ffm/psa_api.h" #include "spm.h" @@ -17,6 +16,7 @@ #include "psa/service.h" #include "runtime_defs.h" #include "tfm_arch.h" +#include "compiler_ext_defs.h" #if defined(__ICCARM__) #pragma required = tfm_arch_thread_fn_call diff --git a/secure_fw/spm/core/spm_local_connection.c b/secure_fw/spm/core/spm_local_connection.c index 6475771b7e..892f1aecd7 100644 --- a/secure_fw/spm/core/spm_local_connection.c +++ b/secure_fw/spm/core/spm_local_connection.c @@ -5,10 +5,10 @@ * */ -#include "compiler_ext_defs.h" #include "internal_status_code.h" #include "spm.h" #include "tfm_arch.h" +#include "compiler_ext_defs.h" #ifdef CONFIG_TFM_CONN_HANDLE_MAX_NUM #pragma message("CONFIG_TFM_CONN_HANDLE_MAX_NUM is not used in SFN model without connection-based services.") diff --git a/secure_fw/spm/core/tfm_pools.h b/secure_fw/spm/core/tfm_pools.h index 3b77513695..e9d58cc5b3 100644 --- a/secure_fw/spm/core/tfm_pools.h +++ b/secure_fw/spm/core/tfm_pools.h @@ -9,8 +9,8 @@ #include #include "psa/error.h" -#include "compiler_ext_defs.h" #include "lists.h" +#include "compiler_ext_defs.h" /* * Pool Instance: From 206967759990082fe77aeabc4dabef1c4a047d66 Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Mon, 17 Nov 2025 15:24:08 +0100 Subject: [PATCH 6/6] [zep noup] platform: nordic_nrf: update nrfx version to 4.0 Use nrfx 4.0 release. Change-Id: Ic5e2faf118f2b2c673587570e32dfc49e172cb9b Signed-off-by: Nikodem Kastelik --- platform/ext/target/nordic_nrf/common/core/config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ext/target/nordic_nrf/common/core/config.cmake b/platform/ext/target/nordic_nrf/common/core/config.cmake index 3fef000927..54d549bca2 100644 --- a/platform/ext/target/nordic_nrf/common/core/config.cmake +++ b/platform/ext/target/nordic_nrf/common/core/config.cmake @@ -9,7 +9,7 @@ #------------------------------------------------------------------------------- set(HAL_NORDIC_PATH "DOWNLOAD" CACHE PATH "Path to the Nordic HAL (or DOWNLOAD to fetch automatically)") -set(HAL_NORDIC_VERSION "nrfx-3.9.0" CACHE STRING "Version of the Nordic HAL to download") +set(HAL_NORDIC_VERSION "pull/326/head" CACHE STRING "Version of the Nordic HAL to download") set(HAL_NORDIC_REMOTE "https://github.com/zephyrproject-rtos/hal_nordic" CACHE STRING "Remote of the Nordic HAL to download") # Set to FALSE if HAL_NORDIC_VERSION is a SHA. set(HAL_NORDIC_SHALLOW_FETCH CACHE BOOL TRUE "Use shallow fetch to download Nordic HAL.")