2021-07-28 00:47:12 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021 Linaro, Limited
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2023-08-06 13:46:58 +08:00
|
|
|
if(CONFIG_HAS_MCUX OR CONFIG_HAS_IMX_HAL OR CONFIG_HAS_NXP_S32_HAL)
|
2022-11-02 00:30:45 +08:00
|
|
|
add_subdirectory(${ZEPHYR_CURRENT_MODULE_DIR} hal_nxp)
|
|
|
|
add_subdirectory_ifdef(CONFIG_USB_DEVICE_DRIVER usb)
|
2022-08-19 08:14:27 +08:00
|
|
|
|
2023-07-19 08:20:43 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_PWM_MCUX_CTIMER ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/drivers/ctimer/fsl_ctimer.c)
|
|
|
|
zephyr_include_directories_ifdef(CONFIG_PWM_MCUX_CTIMER
|
|
|
|
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/drivers/ctimer/)
|
2022-11-02 00:30:45 +08:00
|
|
|
zephyr_include_directories(.)
|
2023-10-12 20:05:39 +08:00
|
|
|
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_CAN_MCUX_FLEXCAN
|
|
|
|
FLEXCAN_WAIT_TIMEOUT=${CONFIG_CAN_MCUX_FLEXCAN_WAIT_TIMEOUT})
|
2022-11-02 00:30:45 +08:00
|
|
|
endif()
|