1#
2# Copyright (c) 2021 Linaro, Limited
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7if(CONFIG_HAS_MCUX OR CONFIG_HAS_IMX_HAL OR CONFIG_HAS_NXP_S32_HAL)
8  add_subdirectory(${ZEPHYR_CURRENT_MODULE_DIR} hal_nxp)
9  add_subdirectory_ifdef(CONFIG_USB_DEVICE_DRIVER usb)
10
11  zephyr_sources_ifdef(CONFIG_PWM_MCUX_CTIMER ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/drivers/ctimer/fsl_ctimer.c)
12  zephyr_include_directories_ifdef(CONFIG_PWM_MCUX_CTIMER
13    ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/drivers/ctimer/)
14  zephyr_include_directories(.)
15
16  zephyr_compile_definitions_ifdef(CONFIG_CAN_MCUX_FLEXCAN
17    FLEXCAN_WAIT_TIMEOUT=${CONFIG_CAN_MCUX_FLEXCAN_WAIT_TIMEOUT})
18endif()
19