Skip to content

Commit 6ad1f21

Browse files
committed
treewide: apply various patches needed to build the samples
Just for testing. Signed-off-by: Michał Bainczyk <[email protected]>
1 parent e28c63d commit 6ad1f21

File tree

8 files changed

+10
-19
lines changed

8 files changed

+10
-19
lines changed

drivers/clock_control/clock_control_nrf.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@ static void hfclkaudio_init(void)
800800

801801
static int clk_init(const struct device *dev)
802802
{
803-
nrfx_err_t nrfx_err;
804803
int err;
805804
static const struct onoff_transitions transitions = {
806805
.start = onoff_start,
@@ -814,8 +813,7 @@ static int clk_init(const struct device *dev)
814813
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
815814
nrfx_isr, nrfx_power_clock_irq_handler, 0);
816815

817-
nrfx_err = nrfx_clock_init(clock_event_handler);
818-
if (nrfx_err != NRFX_SUCCESS) {
816+
if (nrfx_clock_init(clock_event_handler) != 0) {
819817
return -EIO;
820818
}
821819

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,22 +130,22 @@ zephyr_library_sources_ifdef(CONFIG_HAS_NORDIC_RAM_CTRL ${HELPERS_DIR}/nrf
130130
if(CONFIG_NRFX_GPPI)
131131
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_gppiv1_shim.c)
132132
if(CONFIG_HAS_HW_NRF_PPI)
133-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_gppiv1_ppi.c)
134-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_ppi.c)
135133
zephyr_library_sources_ifndef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/nrfx_gppi_ppi.c)
136134
else()
137-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_gppiv1_dppi.c)
138135
zephyr_library_sources_ifndef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/nrfx_gppi_dppi.c)
139-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_dppi.c)
140136
endif()
141137
endif()
142138

143139
zephyr_library_sources_ifdef(CONFIG_NRFX_PRS ${SRC_DIR}/prs/nrfx_prs.c)
144140

145141
zephyr_library_sources_ifdef(CONFIG_NRFX_ADC ${SRC_DIR}/nrfx_adc.c)
146142
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock.c)
143+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_lfclk.c)
147144
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_hfclk.c)
148145
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_xo.c)
146+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_lfclk.c)
147+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_hfclk192m.c)
148+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_hfclkaudio.c)
149149
zephyr_library_sources_ifdef(CONFIG_NRFX_COMP ${SRC_DIR}/nrfx_comp.c)
150150
zephyr_library_sources_ifdef(CONFIG_NRFX_CRACEN ${SRC_DIR}/nrfx_cracen.c)
151151
zephyr_library_sources_ifdef(CONFIG_NRFX_EGU ${SRC_DIR}/nrfx_egu.c)
@@ -220,8 +220,6 @@ zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
220220
zephyr_compile_definitions_ifndef(CONFIG_SOC_NRF54L_ANOMALY_56_WORKAROUND NRF54L_CONFIGURATION_56_ENABLE=0)
221221

222222
if(CONFIG_SOC_COMPATIBLE_NRF54LX AND CONFIG_NRFX_GPPI)
223-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_gppiv1_ppib.c)
224-
zephyr_library_sources_ifdef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/internal/nrfx_ppib.c)
225223
zephyr_library_sources_ifndef(CONFIG_NRFX_GPPI_V1 ${HELPERS_DIR}/nrfx_gppi_lumos.c)
226224
endif()
227225

modules/hal_nordic/nrfx/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,10 @@ config NRFX_SPI2
417417
select NRFX_SPI
418418

419419
config NRFX_SPIM
420-
bool
420+
bool "SPIM driver"
421421

422422
config NRFX_SPIS
423-
bool
423+
bool "SPIS driver"
424424

425425
config NRFX_SYSTICK
426426
bool "SYSTICK driver"

modules/hal_nordic/nrfx/nrfx_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
void nrfx_isr(const void *irq_handler)
1212
{
13-
((nrfx_irq_handler_t)irq_handler)();
13+
((nrfx_irq_handler_t)irq_handler)(NULL);
1414
}
1515

1616
void nrfx_busy_wait(uint32_t usec_to_wait)

samples/net/zperf/src/nrf5340_cpu_boost.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static int nrf53_cpu_boost(void)
2222

2323
/* For optimal performance, the CPU frequency should be set to 128 MHz */
2424
err = nrfx_clock_divider_set(NRF_CLOCK_DOMAIN_HFCLK, NRF_CLOCK_HFCLK_DIV_1);
25-
err -= NRFX_ERROR_BASE_NUM;
2625
if (err != 0) {
2726
LOG_WRN("Failed to set 128 MHz: %d", err);
2827
}

scripts/pylib/twister/twisterlib/coverage.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,9 @@ def collect_coverage(self, outdir, coverage_file, ztest_file, coveragelog):
413413
# We want to remove tests/* and tests/ztest/test/* but save tests/ztest
414414
cmd = ["gcovr", "-r", self.base_dir,
415415
"--gcov-ignore-parse-errors=negative_hits.warn_once_per_file",
416+
"--gcov-ignore-parse-errors=suspicious_hits.warn_once_per_file",
416417
"--gcov-executable", self.gcov_tool,
417418
"-e", "tests/*"]
418-
if self.version >= "7.0":
419-
cmd += ["--gcov-object-directory", outdir]
420419
cmd += excludes + self.options + ["--json", "-o", coverage_file, outdir]
421420
cmd_str = " ".join(cmd)
422421
logger.debug(f"Running: {cmd_str}")
@@ -431,8 +430,6 @@ def collect_coverage(self, outdir, coverage_file, ztest_file, coveragelog):
431430
cmd += ["--gcov-executable", self.gcov_tool,
432431
"-f", "tests/ztest", "-e", "tests/ztest/test/*",
433432
"--json", "-o", ztest_file, outdir]
434-
if self.version >= "7.0":
435-
cmd += ["--gcov-object-directory", outdir]
436433

437434
cmd_str = " ".join(cmd)
438435
logger.debug(f"Running: {cmd_str}")

soc/nordic/nrf54l/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <lib/nrfx_coredep.h>
2424
#include <soc.h>
2525
#include <helpers/nrfx_gppi.h>
26-
#include <helpers/nrfx_gppi_lumos.h>
26+
#include "../../../../nrfx/bsp/stable/soc/interconnect/nrfx_gppi_lumos.h"
2727
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
2828

2929
#if (defined(NRF_APPLICATION) && !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)) || \

subsys/bluetooth/audio/shell/bap_usb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,6 @@ int bap_usb_init(void)
738738
*/
739739
err = nrfx_clock_divider_set(NRF_CLOCK_DOMAIN_HFCLK, NRF_CLOCK_HFCLK_DIV_1);
740740

741-
err -= NRFX_ERROR_BASE_NUM;
742741
if (err != 0) {
743742
LOG_WRN("Failed to set 128 MHz: %d", err);
744743
}

0 commit comments

Comments
 (0)