Commit 105aef98 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Maureen Helm
Browse files

boards: twr-ke18f: add support for the NXP TWR-KE18F board



Add support for the NXP TWR-KE18F development board. This board
feautures an NXP MKE18F16 MCU, a selection of user LEDs and
push-buttons, potentiometer, thermistor, CAN interface, and FlexIO
header.

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent 918579eb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_PINMUX_MCUX)
  zephyr_library()
  zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
  zephyr_library_sources(pinmux.c)
endif()
+15 −0
Original line number Diff line number Diff line
# Kconfig - TWR-KE18F board configuration
#
# Copyright (c) 2019 Vestas Wind Systems A/S
#
# SPDX-License-Identifier: Apache-2.0

if BOARD_TWR_KE18F

config BOARD_TWR_KE18F_FLEXIO_CLKOUT
	bool "Enable CLKOUT signal on FlexIO header"
	depends on PINMUX_MCUX_PORTE
	help
	  Enable the CLKOUT signal on FlexIO header pin 7 (PTE10).

endif #BOARD_TWR_KE18F
+10 −0
Original line number Diff line number Diff line
# Kconfig - TWR-KE18F board configuration
#
# Copyright (c) 2019 Vestas Wind Systems A/S
#
# SPDX-License-Identifier: Apache-2.0

config BOARD_TWR_KE18F
	bool "NXP TWR-KE18F"
	depends on SOC_SERIES_KINETIS_KE1XF
	select SOC_PART_NUMBER_MKE18F512VLL16
+58 −0
Original line number Diff line number Diff line
# Kconfig - TWR-KE18F board
#
# Copyright (c) 2019 Vestas Wind Systems A/S
#
# SPDX-License-Identifier: Apache-2.0
#

if BOARD_TWR_KE18F

config BOARD
	default "twr_ke18f"

if UART_MCUX_LPUART

config UART_MCUX_LPUART_0
	default y if UART_CONSOLE

endif # UART_MCUX_LPUART

if PINMUX_MCUX

config PINMUX_MCUX_PORTA
	default y

config PINMUX_MCUX_PORTB
	default y

config PINMUX_MCUX_PORTC
	default y

config PINMUX_MCUX_PORTD
	default y

config PINMUX_MCUX_PORTE
	default y

endif # PINMUX_MCUX

if GPIO_MCUX

config GPIO_MCUX_PORTA
	default y

config GPIO_MCUX_PORTB
	default y

config GPIO_MCUX_PORTC
	default y

config GPIO_MCUX_PORTD
	default y

config GPIO_MCUX_PORTE
	default y

endif # GPIO_MCUX

endif # BOARD_TWR_KE18F
+18 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

set_ifndef(OPENSDA_FW daplink)

if(OPENSDA_FW STREQUAL jlink)
  set_ifndef(BOARD_DEBUG_RUNNER jlink)
  set_ifndef(BOARD_FLASH_RUNNER jlink)
elseif(OPENSDA_FW STREQUAL daplink)
  set_ifndef(BOARD_DEBUG_RUNNER pyocd)
  set_ifndef(BOARD_FLASH_RUNNER pyocd)
endif()

board_runner_args(jlink "--device=MKE18F512xxx16")
board_runner_args(pyocd "--target=ke18f16")

include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
Loading