-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chibios-20.3.x' into usbendpoints
- Loading branch information
Showing
111 changed files
with
61,877 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
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,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
<storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
<cconfiguration id="0.1487191575"> | ||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1487191575" moduleId="org.eclipse.cdt.core.settings" name="Default"> | ||
<externalSettings/> | ||
<extensions> | ||
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
</extensions> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.1487191575" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
<folderInfo id="0.1487191575." name="/" resourcePath=""> | ||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1471343573" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1471343573.621927840" name=""/> | ||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.750820837" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="org.eclipse.cdt.build.core.settings.default.builder"/> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.2127406235" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1729841372" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1508038223" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.797753085" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.643916244" 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"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.626880334" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.154285937" 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"/> | ||
</tool> | ||
</toolChain> | ||
</folderInfo> | ||
</configuration> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
</cconfiguration> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<project id="STM32F4xx-USB_CDC_IAD.null.1373754647" name="STM32F4xx-USB_CDC_IAD"/> | ||
</storageModule> | ||
<storageModule moduleId="scannerConfiguration"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
<scannerConfigBuildInfo instanceId="0.1487191575"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | ||
</scannerConfigBuildInfo> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
<storageModule moduleId="refreshScope"/> | ||
</cproject> |
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>STM32F4xx-USB_CDC_IAD</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.core.cnature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
</natures> | ||
<linkedResources> | ||
<link> | ||
<name>os</name> | ||
<type>2</type> | ||
<locationURI>CHIBIOS/os</locationURI> | ||
</link> | ||
<link> | ||
<name>test</name> | ||
<type>2</type> | ||
<locationURI>CHIBIOS/test</locationURI> | ||
</link> | ||
</linkedResources> | ||
</projectDescription> |
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,180 @@ | ||
############################################################################## | ||
# Build global options | ||
# NOTE: Can be overridden externally. | ||
# | ||
|
||
# Compiler options here. | ||
ifeq ($(USE_OPT),) | ||
USE_OPT = -Os -g2 | ||
endif | ||
|
||
# C specific options here (added to USE_OPT). | ||
ifeq ($(USE_COPT),) | ||
USE_COPT = | ||
endif | ||
|
||
# C++ specific options here (added to USE_OPT). | ||
ifeq ($(USE_CPPOPT),) | ||
USE_CPPOPT = -fno-rtti | ||
endif | ||
|
||
# Enable this if you want the linker to remove unused code and data. | ||
ifeq ($(USE_LINK_GC),) | ||
USE_LINK_GC = yes | ||
endif | ||
|
||
# Linker extra options here. | ||
ifeq ($(USE_LDOPT),) | ||
USE_LDOPT = | ||
endif | ||
|
||
# Enable this if you want link time optimizations (LTO). | ||
ifeq ($(USE_LTO),) | ||
USE_LTO = yes | ||
endif | ||
|
||
# Enable this if you want to see the full log while compiling. | ||
ifeq ($(USE_VERBOSE_COMPILE),) | ||
USE_VERBOSE_COMPILE = no | ||
endif | ||
|
||
# If enabled, this option makes the build process faster by not compiling | ||
# modules not used in the current configuration. | ||
ifeq ($(USE_SMART_BUILD),) | ||
USE_SMART_BUILD = yes | ||
endif | ||
|
||
# | ||
# Build global options | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Architecture or project specific options | ||
# | ||
|
||
# Stack size to be allocated to the Cortex-M process stack. This stack is | ||
# the stack used by the main() thread. | ||
ifeq ($(USE_PROCESS_STACKSIZE),) | ||
USE_PROCESS_STACKSIZE = 0x800 | ||
endif | ||
|
||
# | ||
# Architecture or project specific options | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Project, target, sources and paths | ||
# | ||
|
||
# Define project name here | ||
PROJECT = usbcdc | ||
|
||
# Target settings. | ||
MCU_ARCH = rv32imac | ||
MCU_ABI = ilp32 | ||
MCU_CMODEL = medlow | ||
|
||
# Imported source files and paths. | ||
CHIBIOS_CONTRIB := ../../.. | ||
CHIBIOS := ../../../../ChibiOS | ||
BUILDDIR := ./build | ||
DEPDIR := ./.dep | ||
CONFDIR := ./cfg | ||
BOARDDIR := $(CHIBIOS_CONTRIB)/os/hal/boards/SIPEED_LONGAN_NANO | ||
|
||
# Licensing files. | ||
include $(CHIBIOS)/os/license/license.mk | ||
# Startup files. | ||
include $(CHIBIOS_CONTRIB)/os/common/startup/RISCV-ECLIC/compilers/GCC/mk/startup_gd32vf103.mk | ||
# HAL-OSAL files (optional). | ||
include $(CHIBIOS)/os/hal/hal.mk | ||
include $(CHIBIOS_CONTRIB)/os/hal/ports/GD/GD32VF103/platform.mk | ||
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk | ||
include $(BOARDDIR)/board.mk | ||
# RTOS files (optional). | ||
include $(CHIBIOS)/os/rt/rt.mk | ||
include $(CHIBIOS_CONTRIB)/os/common/ports/RISCV-ECLIC/compilers/GCC/mk/port.mk | ||
# Auto-build files in ./source recursively. | ||
include $(CHIBIOS)/tools/mk/autobuild.mk | ||
# Other files (optional). | ||
include $(CHIBIOS)/test/lib/test.mk | ||
include $(CHIBIOS)/test/rt/rt_test.mk | ||
include $(CHIBIOS)/test/oslib/oslib_test.mk | ||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk | ||
include $(CHIBIOS)/os/various/shell/shell.mk | ||
|
||
# Define linker script file here | ||
LDSCRIPT= $(STARTUPLD)/GD32VF103xB.ld | ||
|
||
# C sources that can be compiled in ARM or THUMB mode depending on the global | ||
# setting. | ||
CSRC = $(ALLCSRC) \ | ||
$(TESTSRC) \ | ||
usbcfg.c \ | ||
main.c | ||
|
||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global | ||
# setting. | ||
CPPSRC = $(ALLCPPSRC) | ||
|
||
# List ASM source files here. | ||
ASMSRC = $(ALLASMSRC) | ||
|
||
# List ASM with preprocessor source files here. | ||
ASMXSRC = $(ALLXASMSRC) | ||
|
||
# Inclusion directories. | ||
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) | ||
|
||
# Define C warning options here. | ||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes | ||
|
||
# Define C++ warning options here. | ||
CPPWARN = -Wall -Wextra -Wundef | ||
|
||
# | ||
# Project, target, sources and paths | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Start of user section | ||
# | ||
|
||
# List all user C define here, like -D_DEBUG=1 | ||
UDEFS = | ||
|
||
# Define ASM defines here | ||
UADEFS = | ||
|
||
# List all user directories here | ||
UINCDIR = | ||
|
||
# List the user directory to look for the libraries here | ||
ULIBDIR = | ||
|
||
# List all user libraries here | ||
ULIBS = | ||
|
||
# | ||
# End of user section | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Common rules | ||
# | ||
|
||
RULESPATH = $(CHIBIOS_CONTRIB)/os/common/startup/RISCV-ECLIC/compilers/GCC/mk | ||
include $(RULESPATH)/riscv64-unknown-elf.mk | ||
include $(RULESPATH)/rules.mk | ||
|
||
# | ||
# Common rules | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Custom rules | ||
# | ||
|
||
# | ||
# Custom rules | ||
############################################################################## |
Oops, something went wrong.