Skip to content

Commit ae87a61

Browse files
Vge0rgetomi-font
authored andcommitted
platform: nordic_nrf: restore TFM_DRIVER_STDIO's default value
If NRF_SECURE_UART_INSTANCE is not defined (which it is only in NCS), bring back the default behavior of assigning Driver_USART1 to TFM_DRIVER_STDIO. This fixes the issue of undefined references to Driver_USART0 in non-NCS environments that was introduced by commit 2ed1f3f/ Signed-off-by: Tomi Fontanilles <[email protected]> Change-Id: I0b51a957ffc41c593b4cecd21a72b801ef90f656 (cherry picked from commit 66dc44b)
1 parent e988105 commit ae87a61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/ext/target/nordic_nrf/common/core/target_cfg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
#include "tfm_plat_defs.h"
3636
#include "region_defs.h"
3737

38-
#if NRF_SECURE_UART_INSTANCE == 0
38+
#ifndef NRF_SECURE_UART_INSTANCE
39+
#define TFM_DRIVER_STDIO Driver_USART1
40+
#elif NRF_SECURE_UART_INSTANCE == 0
3941
#define TFM_DRIVER_STDIO Driver_USART0
4042
#elif NRF_SECURE_UART_INSTANCE == 1
4143
#define TFM_DRIVER_STDIO Driver_USART1

0 commit comments

Comments
 (0)