-
Notifications
You must be signed in to change notification settings - Fork 0
/
modus.mk
186 lines (159 loc) · 4.78 KB
/
modus.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# This is a file used and owned by the ModusToolbox IDE. Users should not modify this file.
CY_MIDDLEWARE_SELECTOR_TOUCHED=true
DEVICE=CYBLE-416045-02
################################################################################
# \file modus.mk
# \version 1.0
#
# \brief
# This file has two purposes.
# - The first purpose is to provide information to the makefile build system.
# - The second purpose is to provide information to any IDE about the example.
# Therefore, this file should not contain anything other than make variables.
#
################################################################################
# \copyright
# Copyright 2018-2019 Cypress Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
#
# Toolchain, its optimization level and the configuration (Debug/Release) type
#
TOOLCHAIN=GCC
OPTIMIZATION = Og
CONFIG = Debug
# Define custom linker script location (<ABSOLUTE PATH>/customScript.ld)
# CY_MAINAPP_CM0P_LINKER_SCRIPT=
# CY_MAINAPP_CM4_LINKER_SCRIPT=
#
# Vector Floating-point flag (soft/hard) selection
#
VFP_FLAG = soft
#
# The target platform for the example
#
PLATFORMS_VERSION = 1.0
PLATFORM=PSOC6_DUAL_CORE
#
# The default name of this example
#
CY_EXAMPLE_NAME = ProtoKitApp
#
# Description of the example project to display
#
CY_EXAMPLE_DESCRIPTION = Basic peripheral configuration for the PSoC 6 Wi-Fi BT Prototyping Kit (CY8CPROTO-062-4343W). Debug is enabled and platform clocks are set for high performance (144MHz CLK_FAST for CM4 core and 72MHz CLK_SLOW for CM0+) but with a peripheral-friendly CLK_PERI frequency (72MHz). In addition the user LED and switch, KitProg3 UART and I2C bridges, and CapSense buttons and slider are configured.
#
# New project dialog inclusion
#
CY_SHOW_NEW_PROJECT = true
#
# Valid platforms for this example
#
CY_VALID_PLATFORMS = PSOC6_DUAL_CORE PSOC6_SINGLE_CORE
#
# This is the required SDK for this example
#
CY_REQUIRED_SDK = Cypress SDK[1.1]
#
# Valid devices for this example. If empty, this example works for all devices
#
CY_VALID_DEVICES = $(CY_DEVICES_WITH_MAX_SPEED_MHZ_150)
#
# The source code for the CM0+ application
#
CY_APP_CM0P_SOURCE =
#
# The source code for the CM4 application
#
CY_APP_CM4_SOURCE = \
Source/main.c \
Source/stdio_user.h \
Source/stdio_user.c \
setup_readme.txt \
#
# Paths to use for ModusToolbox IDE
#
CY_LOCAL_INCLUDE_CM0P = $(CY_GENERATED_DIR)/$(CYMAINAPP_CM0P_NAME)
CY_LOCAL_INCLUDE_CM4 = $(CY_GENERATED_DIR)/$(CYMAINAPP_CM4_NAME)
#
# Includes specific to the CM0+ application
#
APP_MAINAPP_CM0P_INCLUDES = \
-IGeneratedSource\
-I$(CY_LOCAL_INCLUDE_CM0P)/Source_cm0p
#
# Includes specific to the CM4 application
#
APP_MAINAPP_CM4_INCLUDES = \
-IGeneratedSource\
-I$(CY_LOCAL_INCLUDE_CM4)/Source
#
# Compiler flags specific to the CM0+ application
#
APP_MAINAPP_CM0P_FLAGS =
#
# Compiler flags specific to the CM4 application
#
APP_MAINAPP_CM4_FLAGS =
#
# Defines specific to the CM0+ application
#
APP_MAINAPP_CM0P_DEFINES = \
-DAPP_NAME='"$(CY_EXAMPLE_NAME)_cm0p"'
#
# Defines specific to the CM4 application
#
APP_MAINAPP_CM4_DEFINES = \
-DAPP_NAME='"$(CY_EXAMPLE_NAME)_cm4"'
#
# Software components needed by CM0+
#
CY_MAINAPP_CM0P_SWCOMP_USED = \
#
# Software components needed by CM4
#
CY_MAINAPP_SWCOMP_USED= \
psoc6sw-1.1/components/psoc6pdl/utilities/retarget_io \
psoc6sw-1.1/components/psoc6pdl/devices/psoc6/cm0p/prebuilt
CY_MAINAPP_SWCOMP_EXT= \
psoc6sw-1.1/components/psoc6pdl/utilities/retarget_io/user
#
# Other libraries (.a) needed by the CM0+ application
#
APP_MAINAPP_CM0P_LIBS = \
#
# Other libraries (.a) needed by the CM4 application
#
APP_MAINAPP_CM4_LIBS = \
#
# The path to the design.modus file
#
CYCONFIG_DESIGN_MODUS = design.modus
#
# Additional (non-core) set of generated source files
#
CYCONFIG_GENERATED_SOURCES = \
GeneratedSource/cycfg_capsense.c \
GeneratedSource/cycfg_capsense.h \
#
# Check that the CYSDK environment variable exists
#
ifndef CYSDK
$(error The SDK must be defined via the CYSDK environment variable)
endif
#
# Include the main makefile for building this type of example
#
include $(CYSDK)/libraries/platforms-$(PLATFORMS_VERSION)/common/find_platform.mk