Skip to content

Commit 6e05ff2

Browse files
committed
Merge remote-tracking branch 'chibios/chibios-21.11.x' into sn32_new_chips
2 parents d07102b + 7777831 commit 6e05ff2

File tree

440 files changed

+93610
-9421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+93610
-9421
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
3+
<storageModule moduleId="org.eclipse.cdt.core.settings">
4+
<cconfiguration id="0.1413744523">
5+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1413744523" moduleId="org.eclipse.cdt.core.settings" name="Default">
6+
<externalSettings/>
7+
<extensions>
8+
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
9+
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
10+
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
11+
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12+
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13+
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14+
</extensions>
15+
</storageModule>
16+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
17+
<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.1413744523" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg">
18+
<folderInfo id="0.1413744523." name="/" resourcePath="">
19+
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.269595716" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
20+
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.269595716.1141107066" name=""/>
21+
<builder autoBuildTarget="all" cleanBuildTarget="clean" enableAutoBuild="false" enableCleanBuild="true" enabledIncrementalBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.2129274930" incrementalBuildTarget="all" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
22+
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1772759319" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
23+
<tool id="org.eclipse.cdt.build.core.settings.holder.2136515191" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
24+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1437726415" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
25+
</tool>
26+
<tool id="org.eclipse.cdt.build.core.settings.holder.1423420271" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
27+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1083076961" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
28+
</tool>
29+
<tool id="org.eclipse.cdt.build.core.settings.holder.1120713120" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
30+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.279633077" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
31+
</tool>
32+
</toolChain>
33+
</folderInfo>
34+
</configuration>
35+
</storageModule>
36+
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
37+
</cconfiguration>
38+
</storageModule>
39+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
40+
<project id="RT-AT-START-F402.null.1831709739" name="RT-AT-START-F402"/>
41+
</storageModule>
42+
<storageModule moduleId="scannerConfiguration">
43+
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
44+
<scannerConfigBuildInfo instanceId="0.1413744523">
45+
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
46+
</scannerConfigBuildInfo>
47+
</storageModule>
48+
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
49+
<storageModule moduleId="refreshScope" versionNumber="2">
50+
<configuration configurationName="Default">
51+
<resource resourceType="PROJECT" workspacePath="/RT-AT-START-F402"/>
52+
</configuration>
53+
</storageModule>
54+
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
55+
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
56+
</cproject>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>RT-AT-START-F402</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
<dictionary>
13+
<key>?name?</key>
14+
<value></value>
15+
</dictionary>
16+
<dictionary>
17+
<key>org.eclipse.cdt.make.core.append_environment</key>
18+
<value>true</value>
19+
</dictionary>
20+
<dictionary>
21+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
22+
<value>all</value>
23+
</dictionary>
24+
<dictionary>
25+
<key>org.eclipse.cdt.make.core.buildArguments</key>
26+
<value></value>
27+
</dictionary>
28+
<dictionary>
29+
<key>org.eclipse.cdt.make.core.buildCommand</key>
30+
<value>mingw32-make</value>
31+
</dictionary>
32+
<dictionary>
33+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
34+
<value>clean</value>
35+
</dictionary>
36+
<dictionary>
37+
<key>org.eclipse.cdt.make.core.contents</key>
38+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
39+
</dictionary>
40+
<dictionary>
41+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
42+
<value>false</value>
43+
</dictionary>
44+
<dictionary>
45+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
46+
<value>true</value>
47+
</dictionary>
48+
<dictionary>
49+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
50+
<value>true</value>
51+
</dictionary>
52+
<dictionary>
53+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
54+
<value>all</value>
55+
</dictionary>
56+
<dictionary>
57+
<key>org.eclipse.cdt.make.core.stopOnError</key>
58+
<value>true</value>
59+
</dictionary>
60+
<dictionary>
61+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
62+
<value>false</value>
63+
</dictionary>
64+
</arguments>
65+
</buildCommand>
66+
<buildCommand>
67+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
68+
<triggers>full,incremental,</triggers>
69+
<arguments>
70+
</arguments>
71+
</buildCommand>
72+
</buildSpec>
73+
<natures>
74+
<nature>org.eclipse.cdt.core.cnature</nature>
75+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
76+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
77+
</natures>
78+
</projectDescription>
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
##############################################################################
2+
# Build global options
3+
# NOTE: Can be overridden externally.
4+
#
5+
6+
# Compiler options here.
7+
ifeq ($(USE_OPT),)
8+
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
9+
endif
10+
11+
# C specific options here (added to USE_OPT).
12+
ifeq ($(USE_COPT),)
13+
USE_COPT =
14+
endif
15+
16+
# C++ specific options here (added to USE_OPT).
17+
ifeq ($(USE_CPPOPT),)
18+
USE_CPPOPT = -fno-rtti
19+
endif
20+
21+
# Enable this if you want the linker to remove unused code and data.
22+
ifeq ($(USE_LINK_GC),)
23+
USE_LINK_GC = yes
24+
endif
25+
26+
# Linker extra options here.
27+
ifeq ($(USE_LDOPT),)
28+
USE_LDOPT =
29+
endif
30+
31+
# Enable this if you want link time optimizations (LTO).
32+
ifeq ($(USE_LTO),)
33+
USE_LTO = yes
34+
endif
35+
36+
# Enable this if you want to see the full log while compiling.
37+
ifeq ($(USE_VERBOSE_COMPILE),)
38+
USE_VERBOSE_COMPILE = no
39+
endif
40+
41+
# If enabled, this option makes the build process faster by not compiling
42+
# modules not used in the current configuration.
43+
ifeq ($(USE_SMART_BUILD),)
44+
USE_SMART_BUILD = yes
45+
endif
46+
47+
# Enable this if you want to use bitbang I2C.
48+
ifeq ($(USE_HAL_I2C_FALLBACK),)
49+
USE_HAL_I2C_FALLBACK = no
50+
endif
51+
52+
#
53+
# Build global options
54+
##############################################################################
55+
56+
##############################################################################
57+
# Architecture or project specific options
58+
#
59+
60+
# Stack size to be allocated to the Cortex-M process stack. This stack is
61+
# the stack used by the main() thread.
62+
ifeq ($(USE_PROCESS_STACKSIZE),)
63+
USE_PROCESS_STACKSIZE = 0x400
64+
endif
65+
66+
# Stack size to the allocated to the Cortex-M main/exceptions stack. This
67+
# stack is used for processing interrupts and exceptions.
68+
ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69+
USE_EXCEPTIONS_STACKSIZE = 0x400
70+
endif
71+
72+
# Enables the use of FPU (no, softfp, hard).
73+
ifeq ($(USE_FPU),)
74+
USE_FPU = no
75+
endif
76+
77+
# FPU-related options.
78+
ifeq ($(USE_FPU_OPT),)
79+
USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16
80+
endif
81+
82+
#
83+
# Architecture or project specific options
84+
##############################################################################
85+
86+
##############################################################################
87+
# Project, target, sources and paths
88+
#
89+
90+
# Define project name here
91+
PROJECT = ch
92+
93+
# Target settings.
94+
MCU = cortex-m4
95+
96+
# Imported source files and paths.
97+
CHIBIOS := ../../../../ChibiOS
98+
CHIBIOS_CONTRIB := ../../..
99+
CONFDIR := ./cfg
100+
BUILDDIR := ./build
101+
DEPDIR := ./.dep
102+
103+
# Licensing files.
104+
include $(CHIBIOS)/os/license/license.mk
105+
# Startup files.
106+
include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_at32f402.mk
107+
# HAL-OSAL files (optional).
108+
include $(CHIBIOS_CONTRIB)/os/hal/hal.mk
109+
include $(CHIBIOS_CONTRIB)/os/hal/ports/AT32/AT32F402_405/platform.mk
110+
include $(CHIBIOS_CONTRIB)/os/hal/boards/AT_START_F402/board.mk
111+
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
112+
# RTOS files (optional).
113+
include $(CHIBIOS)/os/rt/rt.mk
114+
include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk
115+
# Auto-build files in ./source recursively.
116+
include $(CHIBIOS)/tools/mk/autobuild.mk
117+
# Other files (optional).
118+
include $(CHIBIOS)/os/test/test.mk
119+
include $(CHIBIOS)/test/rt/rt_test.mk
120+
include $(CHIBIOS)/test/oslib/oslib_test.mk
121+
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
122+
include $(CHIBIOS)/os/various/shell/shell.mk
123+
124+
# Define linker script file here.
125+
LDSCRIPT= $(STARTUPLD_CONTRIB)/AT32F402xC.ld
126+
127+
# C sources that can be compiled in ARM or THUMB mode depending on the global
128+
# setting.
129+
CSRC = $(ALLCSRC) \
130+
$(TESTSRC) \
131+
main.c
132+
133+
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
134+
# setting.
135+
CPPSRC = $(ALLCPPSRC)
136+
137+
# List ASM source files here.
138+
ASMSRC = $(ALLASMSRC)
139+
140+
# List ASM with preprocessor source files here.
141+
ASMXSRC = $(ALLXASMSRC)
142+
143+
# Inclusion directories.
144+
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
145+
146+
# Define C warning options here.
147+
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
148+
149+
# Define C++ warning options here.
150+
CPPWARN = -Wall -Wextra -Wundef
151+
152+
#
153+
# Project, target, sources and paths
154+
##############################################################################
155+
156+
##############################################################################
157+
# Start of user section
158+
#
159+
160+
# List all user C define here, like -D_DEBUG=1
161+
UDEFS =
162+
163+
# Define ASM defines here
164+
UADEFS =
165+
166+
# List all user directories here
167+
UINCDIR =
168+
169+
# List the user directory to look for the libraries here
170+
ULIBDIR =
171+
172+
# List all user libraries here
173+
ULIBS =
174+
175+
#
176+
# End of user section
177+
##############################################################################
178+
179+
##############################################################################
180+
# Common rules
181+
#
182+
183+
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
184+
include $(RULESPATH)/arm-none-eabi.mk
185+
include $(RULESPATH)/rules.mk
186+
187+
#
188+
# Common rules
189+
##############################################################################
190+
191+
##############################################################################
192+
# Custom rules
193+
#
194+
195+
#
196+
# Custom rules
197+
##############################################################################

0 commit comments

Comments
 (0)