Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
a1f19dbd
Commit
a1f19dbd
authored
Feb 24, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #882 from bovi/chipkit
chipKitMax32 target example
parents
a6767bd8
5e18b2b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
examples/targets/chipKitMax32.rb
examples/targets/chipKitMax32.rb
+36
-0
No files found.
examples/targets/chipKitMax32.rb
0 → 100644
View file @
a1f19dbd
# Cross Compiling configuration for Digilent chipKIT Max32
# http://www.digilentinc.com/Products/Detail.cfm?Prod=CHIPKIT-MAX32
#
# Requires MPIDE (https://github.com/chipKIT32/chipKIT32-MAX)
#
# This configuration is based on @kyab's version
# http://d.hatena.ne.jp/kyab/20130201
MRuby
::
CrossBuild
.
new
(
"chipKitMax32"
)
do
|
conf
|
toolchain
:gcc
# Mac OS X
# MPIDE_PATH = '/Applications/mpide.app/Contents/Resources/Java'
# GNU Linux
MPIDE_PATH
=
'/opt/mpide-0023-linux-20120903'
PIC32_PATH
=
"
#{
MPIDE_PATH
}
/hardware/pic32"
conf
.
cc
do
|
cc
|
cc
.
command
=
"
#{
PIC32_PATH
}
/compiler/pic32-tools/bin/pic32-gcc"
cc
.
include_paths
=
[
"
#{
PIC32_PATH
}
/cores/pic32"
,
"
#{
PIC32_PATH
}
/variants/Max32"
,
"
#{
MRUBY_ROOT
}
/include"
]
cc
.
flags
<<
"-O2 -mno-smart-io -w -ffunction-sections -fdata-sections -g -mdebugger -Wcast-align "
+
"-fno-short-double -mprocessor=32MX795F512L -DF_CPU=80000000L -DARDUINO=23 -D_BOARD_MEGA_ "
+
"-DMPIDEVER=0x01000202 -DMPIDE=23"
cc
.
compile_options
=
"%{flags} -o %{outfile} -c %{infile}"
end
conf
.
archiver
do
|
archiver
|
archiver
.
command
=
"
#{
PIC32_PATH
}
/compiler/pic32-tools/bin/pic32-ar"
archiver
.
archive_options
=
'rcs %{outfile} %{objs}'
end
# No binaries necessary
conf
.
bins
=
[]
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment