-
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.
Signed-off-by: FrancescoFerraro <[email protected]>
- Loading branch information
1 parent
96ee620
commit 5e1986e
Showing
1,894 changed files
with
715,972 additions
and
0 deletions.
There are no files selected for viewing
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,8 @@ | ||
include_guard(GLOBAL) | ||
message("CMSIS_Include_core_cm component is included.") | ||
|
||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/. | ||
) | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
CMSIS/Driver/Include/CMSIS_Driver_Include_Common_MIMX8MQ6.cmake
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,8 @@ | ||
include_guard(GLOBAL) | ||
message("CMSIS_Driver_Include_Common component is included.") | ||
|
||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/. | ||
) | ||
|
10 changes: 10 additions & 0 deletions
10
CMSIS/Driver/Include/CMSIS_Driver_Include_I2C_MIMX8MQ6.cmake
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,10 @@ | ||
include_guard(GLOBAL) | ||
message("CMSIS_Driver_Include_I2C component is included.") | ||
|
||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/. | ||
) | ||
|
||
include(CMSIS_Driver_Include_Common_MIMX8MQ6) | ||
|
10 changes: 10 additions & 0 deletions
10
CMSIS/Driver/Include/CMSIS_Driver_Include_SPI_MIMX8MQ6.cmake
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,10 @@ | ||
include_guard(GLOBAL) | ||
message("CMSIS_Driver_Include_SPI component is included.") | ||
|
||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/. | ||
) | ||
|
||
include(CMSIS_Driver_Include_Common_MIMX8MQ6) | ||
|
10 changes: 10 additions & 0 deletions
10
CMSIS/Driver/Include/CMSIS_Driver_Include_USART_MIMX8MQ6.cmake
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,10 @@ | ||
include_guard(GLOBAL) | ||
message("CMSIS_Driver_Include_USART component is included.") | ||
|
||
|
||
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/. | ||
) | ||
|
||
include(CMSIS_Driver_Include_Common_MIMX8MQ6) | ||
|
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
25 changes: 25 additions & 0 deletions
25
boards/evkmimx8mq/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,25 @@ | ||
/* | ||
* Copyright 2017 NXP | ||
* All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef _RTE_DEVICE_H | ||
#define _RTE_DEVICE_H | ||
|
||
extern void ECSPI1_InitPins(); | ||
extern void ECSPI1_DeinitPins(); | ||
|
||
/* Driver name mapping. */ | ||
/* User needs to provide the implementation of ECSPIX_GetFreq/ECSPIX_InitPins/ECSPIX_DeinitPins for the enabled ECSPI | ||
* instance. */ | ||
#define RTE_SPI1 1 | ||
#define RTE_SPI1_PIN_INIT ECSPI1_InitPins | ||
#define RTE_SPI1_PIN_DEINIT ECSPI1_DeinitPins | ||
#define RTE_SPI1_DMA_EN 0 | ||
|
||
/* ECSPI configuration. */ | ||
#define RTE_SPI1_TRANSFER_CHANNEL kECSPI_Channel0 | ||
|
||
#endif /* _RTE_DEVICE_H */ |
112 changes: 112 additions & 0 deletions
112
boards/evkmimx8mq/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,112 @@ | ||
# CROSS COMPILER SETTING | ||
SET(CMAKE_SYSTEM_NAME Generic) | ||
CMAKE_MINIMUM_REQUIRED (VERSION 3.10.0) | ||
|
||
# THE VERSION NUMBER | ||
SET (Tutorial_VERSION_MAJOR 1) | ||
SET (Tutorial_VERSION_MINOR 0) | ||
|
||
# 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_SDK_PROJECT_NAME cmsis_ecspi_int_loopback_transfer.elf) | ||
|
||
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(CMAKE_MODULE_PATH | ||
${ProjDirPath}/../../../../../../devices/MIMX8MQ6/utilities/debug_console_lite | ||
${ProjDirPath}/../../../../../../devices/MIMX8MQ6/drivers | ||
${ProjDirPath}/../../../../../../devices/MIMX8MQ6/cmsis_drivers | ||
${ProjDirPath}/../../../../../../devices/MIMX8MQ6 | ||
${ProjDirPath}/../../../../../../components/uart | ||
${ProjDirPath}/../../../../../../components/lists | ||
${ProjDirPath}/../../../../../../CMSIS/Core/Include | ||
${ProjDirPath}/../../../../../../CMSIS/Driver/Include | ||
${ProjDirPath}/../../../../../../devices/MIMX8MQ6/utilities | ||
) | ||
|
||
# include modules | ||
include(utility_debug_console_lite_MIMX8MQ6) | ||
|
||
include(utility_assert_lite_MIMX8MQ6) | ||
|
||
include(driver_clock_MIMX8MQ6) | ||
|
||
include(driver_cmsis_ecspi_MIMX8MQ6) | ||
|
||
include(driver_common_MIMX8MQ6) | ||
|
||
include(driver_rdc_MIMX8MQ6) | ||
|
||
include(device_MIMX8MQ6_CMSIS_MIMX8MQ6) | ||
|
||
include(component_iuart_adapter_MIMX8MQ6) | ||
|
||
include(component_lists_MIMX8MQ6) | ||
|
||
include(driver_iuart_MIMX8MQ6) | ||
|
||
include(device_MIMX8MQ6_startup_MIMX8MQ6) | ||
|
||
include(CMSIS_Include_core_cm_MIMX8MQ6) | ||
|
||
include(driver_ecspi_MIMX8MQ6) | ||
|
||
include(CMSIS_Driver_Include_SPI_MIMX8MQ6) | ||
|
||
include(CMSIS_Driver_Include_Common_MIMX8MQ6) | ||
|
||
include(utilities_misc_utilities_MIMX8MQ6) | ||
|
||
include(device_MIMX8MQ6_system_MIMX8MQ6) | ||
|
||
|
||
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group) | ||
|
||
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE m) | ||
|
||
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE c) | ||
|
||
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE gcc) | ||
|
||
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE nosys) | ||
|
||
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) | ||
|
Oops, something went wrong.