Skip to content

Commit 85b5c3b

Browse files
committed
chore(nordic): use SPI alias for trezor SPI communication selection
[no changelog]
1 parent a295a1d commit 85b5c3b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

nordic/trezor/trezor-ble/boards/t3w1_revA_nrf52832.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
chosen {
88
trezor,trz-uart = &uart0;
99
};
10+
11+
aliases {
12+
spi-master = &spi0;
13+
};
1014
};
1115

nordic/trezor/trezor-ble/src/trz_comm/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define LOG_MODULE_NAME trz_comm_spi
3636
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
3737

38-
#define MY_SPI_MASTER DT_NODELABEL(spi0)
38+
#define MY_SPI_MASTER DT_ALIAS(spi_master)
3939

4040
static K_SEM_DEFINE(spi_comm_ok, 0, 1);
4141
static K_SEM_DEFINE(spi_can_send, 0, 1);

0 commit comments

Comments
 (0)