Skip to content

Commit 7830f6c

Browse files
magp-nordicrlubos
authored andcommitted
[nrf fromlist] tests: drivers: mspi: api: make test generic
Add definition of MSPI_PORT for other platforms to make the test generic. Upstream PR #: 92790 Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
1 parent 2de979d commit 7830f6c

File tree

1 file changed

+2
-0
lines changed
  • tests/drivers/mspi/api/src

1 file changed

+2
-0
lines changed

tests/drivers/mspi/api/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ typedef enum mspi_timing_param mspi_timing_param;
2323
typedef struct mspi_ambiq_timing_cfg mspi_timing_cfg;
2424
typedef enum mspi_ambiq_timing_param mspi_timing_param;
2525
#define MSPI_PORT ((DT_REG_ADDR(MSPI_BUS_NODE) - MSPI0_BASE) / (MSPI1_BASE - MSPI0_BASE))
26+
#else
27+
#define MSPI_PORT 0
2628
#endif
2729

2830
static const struct device *mspi_devices[] = {

0 commit comments

Comments
 (0)