-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imx8mm_evk: Add support for NXP i.MX 8M MINI EVK
Generated 2024-08-22 from https://mcuxpresso.nxp.com/en/dashboard Signed-off-by: Andre Morishita <[email protected]>
- Loading branch information
1 parent
78afa00
commit 7bb0571
Showing
2,591 changed files
with
884,585 additions
and
222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
boards/evkmimx8mm/cmsis_driver_examples/ecspi/int_loopback_transfer/RTE_Device.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2018,2020 NXP | ||
* All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef _RTE_DEVICE_H | ||
#define _RTE_DEVICE_H | ||
|
||
extern void ECSPI2_InitPins(); | ||
extern void ECSPI2_DeinitPins(); | ||
|
||
/* Driver name mapping. */ | ||
#define RTE_SPI2 1 | ||
#define RTE_SPI2_DMA_EN 0 | ||
|
||
/* ECSPI configuration. */ | ||
#define RTE_SPI2_PIN_INIT ECSPI2_InitPins | ||
#define RTE_SPI2_PIN_DEINIT ECSPI2_DeinitPins | ||
#define RTE_SPI2_TRANSFER_CHANNEL kECSPI_Channel0 | ||
|
||
#endif /* _RTE_DEVICE_H */ |
82 changes: 82 additions & 0 deletions
82
boards/evkmimx8mm/cmsis_driver_examples/ecspi/int_loopback_transfer/armgcc/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# CROSS COMPILER SETTING | ||
SET(CMAKE_SYSTEM_NAME Generic) | ||
CMAKE_MINIMUM_REQUIRED (VERSION 3.10.0) | ||
|
||
# THE VERSION NUMBER | ||
SET (MCUXPRESSO_CMAKE_FORMAT_MAJOR_VERSION 2) | ||
SET (MCUXPRESSO_CMAKE_FORMAT_MINOR_VERSION 0) | ||
|
||
include(ide_overrides.cmake OPTIONAL) | ||
|
||
if(CMAKE_SCRIPT_MODE_FILE) | ||
message("${MCUXPRESSO_CMAKE_FORMAT_MAJOR_VERSION}") | ||
return() | ||
endif() | ||
|
||
|
||
# ENABLE ASM | ||
ENABLE_LANGUAGE(ASM) | ||
|
||
SET(CMAKE_STATIC_LIBRARY_PREFIX) | ||
SET(CMAKE_STATIC_LIBRARY_SUFFIX) | ||
|
||
SET(CMAKE_EXECUTABLE_LIBRARY_PREFIX) | ||
SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX) | ||
|
||
# CURRENT DIRECTORY | ||
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE}) | ||
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE}) | ||
|
||
|
||
project(cmsis_ecspi_int_loopback_transfer) | ||
|
||
set(MCUX_BUILD_TYPES debug release ddr_debug ddr_release flash_debug flash_release) | ||
|
||
set(MCUX_SDK_PROJECT_NAME cmsis_ecspi_int_loopback_transfer.elf) | ||
|
||
if (NOT DEFINED SdkRootDirPath) | ||
SET(SdkRootDirPath ${ProjDirPath}/../../../../../..) | ||
endif() | ||
|
||
include(${ProjDirPath}/flags.cmake) | ||
|
||
include(${ProjDirPath}/config.cmake) | ||
|
||
add_executable(${MCUX_SDK_PROJECT_NAME} | ||
"${ProjDirPath}/../cmsis_ecspi_int_loopback_transfer.c" | ||
"${ProjDirPath}/../pin_mux.c" | ||
"${ProjDirPath}/../pin_mux.h" | ||
"${ProjDirPath}/../RTE_Device.h" | ||
"${ProjDirPath}/../board.c" | ||
"${ProjDirPath}/../board.h" | ||
"${ProjDirPath}/../clock_config.c" | ||
"${ProjDirPath}/../clock_config.h" | ||
"${ProjDirPath}/../fsl_iomuxc.h" | ||
"${ProjDirPath}/../empty_rsc_table.c" | ||
) | ||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${ProjDirPath}/.. | ||
) | ||
|
||
set_source_files_properties("${ProjDirPath}/../RTE_Device.h" PROPERTIES COMPONENT_CONFIG_FILE "RTE_Device.MIMX8MM6") | ||
|
||
include(${SdkRootDirPath}/devices/MIMX8MM6/all_lib_device.cmake) | ||
|
||
IF(NOT DEFINED TARGET_LINK_SYSTEM_LIBRARIES) | ||
SET(TARGET_LINK_SYSTEM_LIBRARIES "-lm -lc -lgcc -lnosys") | ||
ENDIF() | ||
|
||
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group) | ||
|
||
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE ${TARGET_LINK_SYSTEM_LIBRARIES}) | ||
|
||
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--end-group) | ||
|
||
ADD_CUSTOM_COMMAND(TARGET ${MCUX_SDK_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_OBJCOPY} | ||
-Obinary ${EXECUTABLE_OUTPUT_PATH}/${MCUX_SDK_PROJECT_NAME} ${EXECUTABLE_OUTPUT_PATH}/cmsis_ecspi_int_loopback_transfer.bin) | ||
|
||
set_target_properties(${MCUX_SDK_PROJECT_NAME} PROPERTIES ADDITIONAL_CLEAN_FILES "output.map;${EXECUTABLE_OUTPUT_PATH}/cmsis_ecspi_int_loopback_transfer.bin") | ||
|
Oops, something went wrong.