Skip to content

Commit fca2c47

Browse files
mmahadevan108dleach02
authored andcommitted
build: hal_nxp: Add support for MCX Flash
Add support for MCX flash Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1 parent db6806f commit fca2c47

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

mcux/hal_nxp.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ endif()
269269

270270
if("${CONFIG_SOC_FAMILY}" STREQUAL "nxp_mcx")
271271

272+
include_driver_ifdef(CONFIG_SOC_FLASH_MCUX mcx_romapi driver_flashiap)
273+
zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/mcx_romapi/flash)
274+
272275
include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/port/driver_port.cmake)
273276
zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/port)
274277

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: ROMAPI FLASHIAP Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("driver_flashiap component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/flash/src/fsl_flash.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/flash
11+
)
12+
13+
14+
include(driver_common)

0 commit comments

Comments
 (0)