Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 18 lines (15 sloc) 0.481 kB
11b6eba initial commit
Jenna Fox authored
1 Dir.chdir(name)
2 `make clean`
3
4 # generate instructions.c
5 require 'psych'
6 instructions = Psych.load(open 'ruby/requests.yaml')
7 File.open('requests.h', 'w') do |file|
8 file.puts "// Instructions autogenerated from contents of instructions.yaml when compile.hex.rb is run"
9 instructions.each do |key, value|
10 file.puts "#define #{key} #{value}"
11 end
12 end
13
14 `env SPEED=#{speed} DEVICE=#{mmcu} make main.hex`
15 raise "failed!" unless $? == 0
16 `cp main.hex firmware.hex`
17 Dir.chdir('..')
Something went wrong with that request. Please try again.