Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.481 kB
Dir.chdir(name)
`make clean`
# generate instructions.c
require 'psych'
instructions = Psych.load(open 'ruby/requests.yaml')
File.open('requests.h', 'w') do |file|
file.puts "// Instructions autogenerated from contents of instructions.yaml when compile.hex.rb is run"
instructions.each do |key, value|
file.puts "#define #{key} #{value}"
end
end
`env SPEED=#{speed} DEVICE=#{mmcu} make main.hex`
raise "failed!" unless $? == 0
`cp main.hex firmware.hex`
Dir.chdir('..')
Jump to Line
Something went wrong with that request. Please try again.