Skip to content
/ ot-nxp Public
forked from openthread/ot-nxp

Commit

Permalink
[RT1060] Modify the UART instance to adapt to the ot ncp host configu…
Browse files Browse the repository at this point in the history
…ration

Signed-off-by: Allen Dong <[email protected]>
  • Loading branch information
Allen Dong authored and dvagner committed Aug 22, 2024
1 parent 9a480bd commit 0a3248f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions boards/rt1060/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@ else()
list(APPEND BOARD_SOURCES evkbimxrt1060/pin_mux.c)
list(APPEND BOARD_SOURCES evkbimxrt1060/clock_config.c)
list(APPEND BOARD_INCLUDE_DIRECTORIES evkbimxrt1060)
set(BOARD_1ST_UART_INSTANCE 1)
set(BOARD_2ND_UART_INSTANCE 2)
endif()

if("${EVK_RT1060_BOARD}" STREQUAL "evkbmimxrt1060")
if (NOT DEFINED BOARD_1ST_UART_INSTANCE)
set(BOARD_1ST_UART_INSTANCE 1)
endif()
if (NOT DEFINED BOARD_2ND_UART_INSTANCE)
set(BOARD_2ND_UART_INSTANCE 2)
endif()
endif()

list(APPEND BOARD_COMPILE_DEFINITIONS_PUBLIC)
Expand Down
2 changes: 2 additions & 0 deletions boards/rt1060/evkbimxrt1060/pin_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ void BOARD_InitBootPins(void)
{
BOARD_InitPins();
BOARD_InitDEBUG_UARTPins();
#if !defined(CONFIG_NCP) || defined(CONFIG_NCP_UART)
BOARD_InitArduinoUARTPins();
#endif
#if defined(SDIO_ENABLED)
BOARD_InitUSDHCPins();
#endif
Expand Down
3 changes: 2 additions & 1 deletion script/build_rt1060
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ readonly OT_OPTIONS_TRANSCEIVER_RW612=(
"-DOT_NXP_TRANSCEIVER=rw612"
"-DOT_NCP_RTOS_HOST=ON"
"-DOT_NXP_LWIP=OFF"
"-DBOARD_APP_UART_INSTANCE=2"
"-DBOARD_1ST_UART_INSTANCE=2"
"-DBOARD_2ND_UART_INSTANCE=1"
"-DEVK_RT1060_BOARD=evkbmimxrt1060"
"-DFREERTOS_CONFIG_FILE_DIRECTORY=${OT_SRCDIR}/boards/rt1060/freertos/ncp_host"
)
Expand Down

0 comments on commit 0a3248f

Please sign in to comment.