Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcux: add support for imxrt1176 rtwdog #449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mcux/hal_nxp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ include_driver_ifdef(CONFIG_PWM_MCUX pwm driver_pwm)
include_driver_ifdef(CONFIG_VIDEO_MCUX_CSI csi driver_csi)
include_driver_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX mipi_csi2rx driver_mipi_csi2rx)
include_driver_ifdef(CONFIG_WDT_MCUX_IMX_WDOG wdog01 driver_wdog01)
include_driver_ifdef(CONFIG_WDT_MCUX_IMX_RTWDOG rtwdog driver_rtwdog)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you align indentation here?

include_driver_ifdef(CONFIG_DMA_MCUX_LPC lpc_dma driver_lpc_dma)
include_driver_ifdef(CONFIG_MEMC_MCUX_FLEXSPI flexspi driver_flexspi)
include_driver_ifdef(CONFIG_HAS_MCUX_RDC rdc driver_rdc)
Expand Down
23 changes: 23 additions & 0 deletions mcux/mcux-sdk/devices/MIMXRT1176/set_device_MIMXRT1176.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4660,6 +4660,29 @@ endif()

endif()

if (CONFIG_USE_driver_rtwdog)
# Add set(CONFIG_USE_driver_rtwdog true) in config.cmake to use this component

message("driver_rtwdog component is included from ${CMAKE_CURRENT_LIST_FILE}.")

if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common)

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/fsl_rtwdog.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/.
)

else()

message(SEND_ERROR "driver_rtwdog.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")

endif()

endif()


if (CONFIG_USE_driver_xbara)
# Add set(CONFIG_USE_driver_xbara true) in config.cmake to use this component
Expand Down