mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 12:35:21 +00:00
Combines the lpcxpresso54114_m4 and lpcxpresso54114_m0 boards into one directory containing both board configurations. This eliminates some duplicate code and documentation, and better represents the actual hardware. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
21 lines
463 B
CMake
21 lines
463 B
CMake
#
|
|
# Copyright (c) 2017, NXP
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set_ifndef(LPCLINK_FW jlink)
|
|
|
|
if(LPCLINK_FW STREQUAL jlink)
|
|
set_ifndef(BOARD_DEBUG_RUNNER jlink)
|
|
set_ifndef(BOARD_FLASH_RUNNER jlink)
|
|
endif()
|
|
|
|
if(CONFIG_BOARD_LPCXPRESSO54114_M4)
|
|
board_runner_args(jlink "--device=LPC54114J256_M4")
|
|
elseif(CONFIG_BOARD_LPCXPRESSO54114_M0)
|
|
board_runner_args(jlink "--device=LPC54114J256_M0")
|
|
endif()
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|