forked from xcore/sc_util
-
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.
- Loading branch information
0 parents
commit 941485c
Showing
14 changed files
with
493 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?fileVersion 4.0.0?> | ||
|
||
<cproject> | ||
<storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
<cconfiguration id="com.xmos.cdt.toolchain.30841826"> | ||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.xmos.cdt.toolchain.30841826" moduleId="org.eclipse.cdt.core.settings" name="XMOS Compiler Collection (xcc)"> | ||
<externalSettings/> | ||
<extensions> | ||
<extension id="com.xmos.cdt.core.XEBinaryParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="com.xmos.cdt.core.XMapErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
</extensions> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<configuration artifactName="sc_util" buildProperties="" description="" id="com.xmos.cdt.toolchain.30841826" name="XMOS Compiler Collection (xcc)" parent="org.eclipse.cdt.build.core.emptycfg"> | ||
<folderInfo id="com.xmos.cdt.toolchain.30841826.1961785845" name="/" resourcePath=""> | ||
<toolChain id="com.xmos.cdt.toolchain.331533569" name="com.xmos.cdt.toolchain" superClass="com.xmos.cdt.toolchain"> | ||
<targetPlatform archList="all" binaryParser="com.xmos.cdt.core.XEBinaryParser" id="com.xmos.cdt.core.platform.312514423" isAbstract="false" osList="linux,win32,macosx" superClass="com.xmos.cdt.core.platform"/> | ||
<builder arguments="-f Makefile" buildPath="${workspace_loc:/sc_util}" command="xmake" id="com.xmos.cdt.builder.base.484433574" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="com.xmos.cdt.builder.base"/> | ||
<tool id="com.xmos.cdt.linker.base.564215645" name="XMOS Mapper" superClass="com.xmos.cdt.linker.base"> | ||
<inputType id="com.xmos.cdt.linker.input.xm.71127389" name="XM File"/> | ||
<inputType id="com.xmos.cdt.linker.input.1104586842" superClass="com.xmos.cdt.linker.input"> | ||
<additionalInput kind="additionalinput" paths="$(LIBS)"/> | ||
</inputType> | ||
<inputType id="com.xmos.cdt.linker.xnInput.293377365" name="XN File" superClass="com.xmos.cdt.linker.xnInput"/> | ||
<inputType id="com.xmos.cdt.linker.xtaInput.621753651" name="XTA input" superClass="com.xmos.cdt.linker.xtaInput"/> | ||
</tool> | ||
<tool id="com.xmos.cdt.c.compiler.base.372649012" name="XMOS C Compiler" superClass="com.xmos.cdt.c.compiler.base"> | ||
<inputType id="com.xmos.cdt.c.compiler.input.1533247653" superClass="com.xmos.cdt.c.compiler.input"/> | ||
<inputType id="com.xmos.cdt.c.compilerXNInput.818861648" name="XN File" superClass="com.xmos.cdt.c.compilerXNInput"/> | ||
</tool> | ||
<tool id="com.xmos.cdt.cpp.compiler.base.1161396055" name="XMOS C++ Compiler" superClass="com.xmos.cdt.cpp.compiler.base"> | ||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1553804963" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/> | ||
</tool> | ||
<tool id="com.xmos.cdt.xc.compiler.base.86146009" name="XMOS XC Compiler" superClass="com.xmos.cdt.xc.compiler.base"> | ||
<inputType id="com.xmos.cdt.xc.compiler.input.679575792" name="XC Sources" superClass="com.xmos.cdt.xc.compiler.input"/> | ||
<inputType id="com.xmos.cdt.core.xcCompilerXNInput.258588578" name="XN File" superClass="com.xmos.cdt.core.xcCompilerXNInput"/> | ||
</tool> | ||
<tool id="com.xmos.cdt.core.assembler.base.839004633" name="XMOS Assembler" superClass="com.xmos.cdt.core.assembler.base"> | ||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1797700444" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> | ||
<inputType id="com.xmos.cdt.core.asmXNInput.1869517701" name="XN File" superClass="com.xmos.cdt.core.asmXNInput"/> | ||
</tool> | ||
<tool id="com.xmos.cdt.archiver.base.730151905" name="Archiver" superClass="com.xmos.cdt.archiver.base"/> | ||
</toolChain> | ||
</folderInfo> | ||
</configuration> | ||
</storageModule> | ||
<storageModule moduleId="scannerConfiguration"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | ||
<profile id="com.xmos.cdt.core.XCManagedMakePerProjectProfile"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -v ${plugin_state_location}/specs.xc" command="xcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | ||
<buildOutputProvider> | ||
<openAction enabled="true" filePath=""/> | ||
<parser enabled="true"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | ||
<buildOutputProvider> | ||
<openAction enabled="true" filePath=""/> | ||
<parser enabled="true"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="makefileGenerator"> | ||
<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | ||
<buildOutputProvider> | ||
<openAction enabled="false" filePath=""/> | ||
<parser enabled="false"/> | ||
</buildOutputProvider> | ||
<scannerInfoProvider id="specsFile"> | ||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | ||
<parser enabled="true"/> | ||
</scannerInfoProvider> | ||
</profile> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | ||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"> | ||
<buildTargets> | ||
<target name="all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> | ||
<buildCommand>xmake</buildCommand> | ||
<buildArguments>-f .makefile</buildArguments> | ||
<buildTarget>all</buildTarget> | ||
<stopOnError>true</stopOnError> | ||
<useDefaultCommand>false</useDefaultCommand> | ||
<runAllBuilders>true</runAllBuilders> | ||
</target> | ||
<target name="app_uart_test.all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> | ||
<buildCommand>xmake</buildCommand> | ||
<buildArguments>-f Makefile</buildArguments> | ||
<buildTarget>app_uart_test.all</buildTarget> | ||
<stopOnError>true</stopOnError> | ||
<useDefaultCommand>true</useDefaultCommand> | ||
<runAllBuilders>true</runAllBuilders> | ||
</target> | ||
</buildTargets> | ||
</storageModule> | ||
</cconfiguration> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<project id="sc_util.null.306906532" name="sc_util"/> | ||
</storageModule> | ||
</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,9 @@ | ||
*/.build_*/* | ||
*/bin/* | ||
*.o | ||
*.xe | ||
*.vcd | ||
*.s | ||
*.xi | ||
*.i | ||
*.a |
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,81 @@ | ||
<?XL version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>sc_util</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>-f Makefile</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildCommand</key> | ||
<value>xmake</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildLocation</key> | ||
<value>${workspace_loc:/sc_util}</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> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
<nature>org.eclipse.cdt.core.cnature</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,30 @@ | ||
Software License Agreement | ||
|
||
Copyright (c) 2011, XMOS Ltd, All rights reserved. | ||
|
||
Additional copyright holders (each contributor holds copyright | ||
over contribution as described in the git commit logs for the repository): | ||
|
||
The copyright holders hereby grant to any person obtaining a copy of this software (the "Software") and/or its associated | ||
documentation files (the Documentation), the perpetual, irrevocable (except in the case of breach of this license) no-cost, | ||
royalty free, sublicensable rights to use, copy, modify, merge, publish, display, publicly perform, distribute, and/or | ||
sell copies of the Software and the Documentation, together or separately, and to permit persons to whom the Software and/or | ||
Documentation is furnished to do so, subject to the following conditions: | ||
|
||
. Redistributions of the Software in source code must retain the above copyright notice, this list of conditions and the | ||
following disclaimers. | ||
|
||
. Redistributions of the Software in binary form must reproduce the above copyright notice, this list of conditions and | ||
the following disclaimers in the documentation and/or other materials provided with the distribution. | ||
|
||
. Redistributions of the Documentation must retain the above copyright notice, this list of conditions and the following | ||
disclaimers. | ||
|
||
Neither the name of XMOS, nor the names of its contributors may be used to endorse or promote products derived from this | ||
Software or the Documentation without specific prior written permission of the copyright holder. | ||
|
||
THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT | ||
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR DOCUMENTATION OR THE USE OF OR OTHER | ||
DEALINGS WITH THE SOFTWARE OR DOCUMENTATION. |
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,10 @@ | ||
# This variable should contain a space separated list of all | ||
# the directories containing buildable applications (usually | ||
# prefixed with the app_ prefix) | ||
# | ||
# If the variable is set to "all" then all directories that start with app_ | ||
# are built. | ||
BUILD_SUBDIRS = all | ||
|
||
XMOS_MAKE_PATH ?= .. | ||
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.toplevel |
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,45 @@ | ||
<title> | ||
....... | ||
|
||
:Stable release: unreleased | ||
|
||
:Status: draft | ||
|
||
:Maintainer: https://github.com/henkmuller | ||
|
||
:Description: Programming utilities | ||
|
||
|
||
Key Features | ||
============ | ||
|
||
* Module that enables xcore resources to be used from C | ||
|
||
To Do | ||
===== | ||
|
||
* simple I/O | ||
* pthreads | ||
* exception handlers | ||
* interrupts | ||
* documentation | ||
|
||
Firmware Overview | ||
================= | ||
|
||
|
||
|
||
Known Issues | ||
============ | ||
|
||
* None | ||
|
||
Required Repositories | ||
================ | ||
|
||
* xcommon git\@github.com:xcore/xcommon.git | ||
|
||
Support | ||
======= | ||
|
||
Submit issues in the issue tab. |
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,12 @@ | ||
TARGET = XK-1 | ||
APP_NAME = | ||
USED_MODULES = module_c_xcore_resources | ||
XCC_FLAGS = -g -O3 | ||
VERBOSE = 0 | ||
|
||
#============================================================================= | ||
# The following part of the Makefile includes the common build infrastructure | ||
# for compiling XMOS applications. You should not need to edit below here. | ||
|
||
XMOS_MAKE_PATH ?= ../.. | ||
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common |
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,2 @@ | ||
main() { | ||
} |
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 @@ | ||
Put documentation in this directory |
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 @@ | ||
MODULE_XCC_FLAGS = $(XCC_FLAGS) -O3 |
Oops, something went wrong.