Skip to content

Commit

Permalink
Upload mtb-example-psoc6-dual-cpu-ipc-sema 2.0.0.107
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Nov 30, 2020
1 parent cf1cf73 commit 7b97b7e
Show file tree
Hide file tree
Showing 18 changed files with 127 additions and 91 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# which files to ignore in whatever form your VCS requires. If you do not check your
# code into a VCS, you can ignore the .gitignore file.

# ModusToolbox libraries are cloned into this directory, by default
libs/*
# ModusToolbox library repos or information about library dependencies
libs/

# Eclipse IDE for ModusToolbox files
.metadata/
.cyignore
# .cyignore
# .settings/
# .cproject
# .project
Expand All @@ -28,7 +28,8 @@ Release/
*_build/

# Visual Studio Code
.vscode/*
openocd.tcl
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
Expand Down
103 changes: 60 additions & 43 deletions README.md

Large diffs are not rendered by default.

42 changes: 23 additions & 19 deletions cm0p_app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@
################################################################################

# Target board/hardware (BSP).
# To change the target, use the Library manager ('make modlibs' from command line).
# If TARGET is manually edited, ensure TARGET_<BSP>.lib with a valid URL exists
# in the application, and run 'make getlibs' to fetch BSP contents.
# To change the target, it is recommended to use the Library manager
# ('make modlibs' from command line), which will also update Eclipse IDE launch
# configurations. If TARGET is manually edited, ensure TARGET_<BSP>.mtb with a
# valid URL exists in the application, run 'make getlibs' to fetch BSP contents
# and update or regenerate launch configurations for your IDE.
TARGET=CY8CPROTO-062-4343W

# Name of application (used to derive name of final linked file).
#
# If APPNAME is edited, ensure to update or regenerate launch
# configurations for your IDE.
APPNAME=cy_m0p_image

# Name of toolchain to use. Options include:
#
# GCC_ARM -- GCC 7.2.1, provided with ModusToolbox IDE
# GCC_ARM -- GCC provided with ModusToolbox IDE
# ARM -- ARM Compiler (must be installed separately)
# IAR -- IAR Compiler (must be installed separately)
#
Expand All @@ -51,7 +56,9 @@ TOOLCHAIN=GCC_ARM
# Debug -- build with minimal optimizations, focus on debugging.
# Release -- build with full optimizations
# Custom -- build with custom configuration, set the optimization flag in CFLAGS

#
# If CONFIG is manually edited, ensure to update or regenerate launch configurations
# for your IDE.
CONFIG=Debug

# If set to "true" or "1", display full command-lines when building.
Expand Down Expand Up @@ -134,26 +141,23 @@ POSTBUILD=
# Paths
################################################################################

# Link to the library folder
CY_EXTAPP_PATH=../shared/libs/

# Link to the devicesupport.xml file
CY_DEVICESUPPORT_PATH=$(CY_EXTAPP_PATH)/psoc6pdl

# Build CY_IGNORE list, allowing only the CM0P_LIBRARIES
ALL_LIBRARIES=$(wildcard $(CY_EXTAPP_PATH)/*)
CM0P_LIBRARIES=$(CY_EXTAPP_PATH)/TARGET_$(TARGET) $(CY_EXTAPP_PATH)/psoc6pdl $(CY_EXTAPP_PATH)/core-lib
CY_IGNORE=$(filter-out $(CM0P_LIBRARIES), $(ALL_LIBRARIES))

# Relative path to the project directory (default is the Makefile's directory).
#
# This controls where automatic source code discovery looks for code.
CY_APP_PATH=

# Relative path to the "base" library. It provides the core makefile build
# infrastructure.
CY_BASELIB_PATH=$(CY_EXTAPP_PATH)/psoc6make
# Relative path to the shared repo location.
#
# All .mtb files have the format, <URI>#<COMMIT>#<LOCATION>. If the <LOCATION> field
# begins with $$ASSET_REPO$$, then the repo is deposited in the path specified by
# the CY_GETLIBS_SHARED_PATH variable. The default location is one directory level
# above the current app directory.
# This is used with CY_GETLIBS_SHARED_NAME variable, which specifies the directory name.
CY_GETLIBS_SHARED_PATH=../../

# Directory name of the shared repo location.
#
CY_GETLIBS_SHARED_NAME=mtb_shared

# Absolute path to the compiler's "bin" directory.
#
Expand Down
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CKIT-062-BLE.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CKIT-062-BLE#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CKIT-062-BLE/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CKIT-062-WIFI-BT.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CKIT-062-WIFI-BT#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CKIT-062-WIFI-BT/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CKIT-062S2-43012.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CKIT-062S2-43012#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CKIT-062S2-43012/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CPROTO-062-4343W.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062-4343W#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CPROTO-062-4343W/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CPROTO-062S3-4343W.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062S3-4343W#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CPROTO-062S3-4343W/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CY8CPROTO-063-BLE.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-063-BLE#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CPROTO-063-BLE/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CYW9P62S1-43012EVB-01.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CYW9P62S1-43012EVB-01#latest-v2.X#$$ASSET_REPO$$/TARGET_CYW9P62S1-43012EVB-01/latest-v2.X
1 change: 1 addition & 0 deletions cm0p_app/deps/TARGET_CYW9P62S1-43438EVB-01.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CYW9P62S1-43438EVB-01#latest-v2.X#$$ASSET_REPO$$/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X
2 changes: 1 addition & 1 deletion cm0p_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main(void)
#endif
{
/* Print a message to the console */
Cy_SCB_UART_PutString(UART_RES, "Message sent from CM0+\n\r");
Cy_SCB_UART_PutString(UART_RES, "Message sent from CM0+\r\n");

#if ENABLE_SEMA
while (CY_IPC_SEMA_SUCCESS != Cy_IPC_Sema_Clear(SEMA_NUM, false));
Expand Down
48 changes: 27 additions & 21 deletions cm4_app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@
################################################################################

# Target board/hardware (BSP).
# To change the target, use the Library manager ('make modlibs' from command line).
# If TARGET is manually edited, ensure TARGET_<BSP>.lib with a valid URL exists
# in the application, and run 'make getlibs' to fetch BSP contents.
# To change the target, it is recommended to use the Library manager
# ('make modlibs' from command line), which will also update Eclipse IDE launch
# configurations. If TARGET is manually edited, ensure TARGET_<BSP>.mtb with a
# valid URL exists in the application, run 'make getlibs' to fetch BSP contents
# and update or regenerate launch configurations for your IDE.
TARGET=CY8CPROTO-062-4343W

# Name of application (used to derive name of final linked file).
#
# If APPNAME is edited, ensure to update or regenerate launch
# configurations for your IDE.
APPNAME=mtb-example-psoc6-dual-cpu-ipc-sema

# Name of toolchain to use. Options include:
#
# GCC_ARM -- GCC 7.2.1, provided with ModusToolbox IDE
# GCC_ARM -- GCC provided with ModusToolbox IDE
# ARM -- ARM Compiler (must be installed separately)
# IAR -- IAR Compiler (must be installed separately)
#
Expand All @@ -51,7 +56,9 @@ TOOLCHAIN=GCC_ARM
# Debug -- build with minimal optimizations, focus on debugging.
# Release -- build with full optimizations
# Custom -- build with custom configuration, set the optimization flag in CFLAGS

#
# If CONFIG is manually edited, ensure to update or regenerate launch configurations
# for your IDE.
CONFIG=Debug

# If set to "true" or "1", display full command-lines when building.
Expand Down Expand Up @@ -134,28 +141,23 @@ POSTBUILD=
# Paths
################################################################################

# Link to the library folder
CY_EXTAPP_PATH=../shared/libs/

# Link to the devicesupport.xml file
CY_DEVICESUPPORT_PATH=$(CY_EXTAPP_PATH)/psoc6pdl

# Get the absolute address where the Makefile is located
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))

# Set path to the shared folders
CY_GETLIBS_PATH=$(mkfile_dir)/$(CY_EXTAPP_PATH)

# Relative path to the project directory (default is the Makefile's directory).
#
# This controls where automatic source code discovery looks for code.
CY_APP_PATH=

# Relative path to the "base" library. It provides the core makefile build
# infrastructure.
CY_BASELIB_PATH=$(CY_EXTAPP_PATH)/psoc6make
# Relative path to the shared repo location.
#
# All .mtb files have the format, <URI>#<COMMIT>#<LOCATION>. If the <LOCATION> field
# begins with $$ASSET_REPO$$, then the repo is deposited in the path specified by
# the CY_GETLIBS_SHARED_PATH variable. The default location is one directory level
# above the current app directory.
# This is used with CY_GETLIBS_SHARED_NAME variable, which specifies the directory name.
CY_GETLIBS_SHARED_PATH=../../

# Directory name of the shared repo location.
#
CY_GETLIBS_SHARED_NAME=mtb_shared

# Absolute path to the compiler's "bin" directory.
#
Expand Down Expand Up @@ -188,3 +190,7 @@ endif
$(info Tools Directory: $(CY_TOOLS_DIR))

include $(CY_TOOLS_DIR)/make/start.mk

getlibs : getlibs_cm0p
getlibs_cm0p:
$(MAKE) -C ../cm0p_app/ $(MAKECMDGOALS)
1 change: 0 additions & 1 deletion cm4_app/deps/TARGET_CY8CPROTO-062-4343W.lib

This file was deleted.

1 change: 1 addition & 0 deletions cm4_app/deps/TARGET_CY8CPROTO-062-4343W.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062-4343W#latest-v2.X#$$ASSET_REPO$$/TARGET_CY8CPROTO-062-4343W/latest-v2.X
1 change: 0 additions & 1 deletion cm4_app/deps/retarget-io.lib

This file was deleted.

1 change: 1 addition & 0 deletions cm4_app/deps/retarget-io.mtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/cypresssemiconductorco/retarget-io#latest-v1.X#$$ASSET_REPO$$/retarget-io/latest-v1.X
2 changes: 1 addition & 1 deletion cm4_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int main(void)
#endif
{
/* Print a message to the console */
printf("Message sent from CM4\n\r");
printf("Message sent from CM4\r\n");

#if ENABLE_SEMA
while (CY_IPC_SEMA_SUCCESS != Cy_IPC_Sema_Clear(SEMA_NUM, false));
Expand Down

0 comments on commit 7b97b7e

Please sign in to comment.