forked from ChibiOS/ChibiOS-Contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic support for AT32F402/5 (#15)
* Added support CMSIS for Artery AT32F402/5 * Added linker, startup and cmparams for AT32F402/5 * Added board files for AT32F402/5 * Added CRM and fixed CMSIS files for AT32F402/5 * Added DMAMUX mapping and ISR files for AT32F402/5 * Added EFL and registry files for AT32F402/5 * Added HAL LLD source and platform files for AT32F402/5 * Added GPIO v2 LLD driver, update GPIO v1 and board files * Update EXINT, SYSTICK LLD driver and ISR files * Move USART ISR to new folder and added new ISR for TMR & USART * Added USART v2 LLD driver (only Serial) * Added demos board for AT32F402/5 * Fix grammar issue, disabled ERTCSEL at default and update demo board for AT32F415 * Added USB CDC test HAL for AT32F402/5 and update changes * Update SDC HAL test and board config for AT32F415 * Added SDC-FATFS HAL test for AT32F415 * Nit.
- Loading branch information
1 parent
ce62332
commit 8644c8b
Showing
134 changed files
with
96,411 additions
and
147 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,56 @@ | ||
<?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.1413744523"> | ||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1413744523" 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.1413744523" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
<folderInfo id="0.1413744523." name="/" resourcePath=""> | ||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.269595716" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.269595716.1141107066" name=""/> | ||
<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"/> | ||
<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"/> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.2136515191" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<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"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1423420271" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<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"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1120713120" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<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"/> | ||
</tool> | ||
</toolChain> | ||
</folderInfo> | ||
</configuration> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
</cconfiguration> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<project id="RT-STM32F103-MAPLEMINI.null.1831709739" name="RT-STM32F103-MAPLEMINI"/> | ||
</storageModule> | ||
<storageModule moduleId="scannerConfiguration"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
<scannerConfigBuildInfo instanceId="0.1413744523"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | ||
</scannerConfigBuildInfo> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
<storageModule moduleId="refreshScope" versionNumber="2"> | ||
<configuration configurationName="Default"> | ||
<resource resourceType="PROJECT" workspacePath="/RT-STM32F103-MAPLEMINI"/> | ||
</configuration> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/> | ||
</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,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>RT-AT-START-F402</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>?name?</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.append_environment</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
<value>all</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildArguments</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildCommand</key> | ||
<value>mingw32-make</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
<value>clean</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.contents</key> | ||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
<value>false</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
<value>all</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.stopOnError</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
<value>false</value> | ||
</dictionary> | ||
</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> | ||
</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,197 @@ | ||
############################################################################## | ||
# Build global options | ||
# NOTE: Can be overridden externally. | ||
# | ||
|
||
# Compiler options here. | ||
ifeq ($(USE_OPT),) | ||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 | ||
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 | ||
|
||
# Enable this if you want to use bitbang I2C. | ||
ifeq ($(USE_HAL_I2C_FALLBACK),) | ||
USE_HAL_I2C_FALLBACK = no | ||
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 = 0x400 | ||
endif | ||
|
||
# Stack size to the allocated to the Cortex-M main/exceptions stack. This | ||
# stack is used for processing interrupts and exceptions. | ||
ifeq ($(USE_EXCEPTIONS_STACKSIZE),) | ||
USE_EXCEPTIONS_STACKSIZE = 0x400 | ||
endif | ||
|
||
# Enables the use of FPU (no, softfp, hard). | ||
ifeq ($(USE_FPU),) | ||
USE_FPU = no | ||
endif | ||
|
||
# FPU-related options. | ||
ifeq ($(USE_FPU_OPT),) | ||
USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16 | ||
endif | ||
|
||
# | ||
# Architecture or project specific options | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Project, target, sources and paths | ||
# | ||
|
||
# Define project name here | ||
PROJECT = ch | ||
|
||
# Target settings. | ||
MCU = cortex-m4 | ||
|
||
# Imported source files and paths. | ||
CHIBIOS := ../../../../ChibiOS | ||
CHIBIOS_CONTRIB := ../../.. | ||
CONFDIR := ./cfg | ||
BUILDDIR := ./build | ||
DEPDIR := ./.dep | ||
|
||
# Licensing files. | ||
include $(CHIBIOS)/os/license/license.mk | ||
# Startup files. | ||
include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_at32f402.mk | ||
# HAL-OSAL files (optional). | ||
include $(CHIBIOS)/os/hal/hal.mk | ||
include $(CHIBIOS_CONTRIB)/os/hal/ports/AT32/AT32F402/platform.mk | ||
include $(CHIBIOS_CONTRIB)/os/hal/boards/AT_START_F402/board.mk | ||
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk | ||
# RTOS files (optional). | ||
include $(CHIBIOS)/os/rt/rt.mk | ||
include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk | ||
# Auto-build files in ./source recursively. | ||
include $(CHIBIOS)/tools/mk/autobuild.mk | ||
# Other files (optional). | ||
include $(CHIBIOS)/os/test/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_CONTRIB)/AT32F402xC.ld | ||
|
||
# C sources that can be compiled in ARM or THUMB mode depending on the global | ||
# setting. | ||
CSRC = $(ALLCSRC) \ | ||
$(TESTSRC) \ | ||
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)/os/common/startup/ARMCMx/compilers/GCC/mk | ||
include $(RULESPATH)/arm-none-eabi.mk | ||
include $(RULESPATH)/rules.mk | ||
|
||
# | ||
# Common rules | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Custom rules | ||
# | ||
|
||
# | ||
# Custom rules | ||
############################################################################## |
Oops, something went wrong.