]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/reset.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
13 $stderr.puts
"USAGE: #{$0} <addr>"
17 addr
= ARGV.shift
.to_i
19 puts
"sending sync sequence"
22 puts
"starting bootloader"
23 start_bootloader(addr
)
26 puts
"sending sync sequence"
29 puts
"starting firmware"
30 boot_enter_application(addr
)