Rakefile: remove reset functionnality

This commit is contained in:
King Kévin 2018-04-08 15:45:07 +02:00
parent 8498e4dc03
commit dd0fcc1df7
1 changed files with 0 additions and 9 deletions

View File

@ -232,12 +232,3 @@ task :debug => APPLICATION+".elf" do |t|
exec("#{GDB} --eval-command='target extended-remote #{BMP_PORT}' --eval-command='monitor version' --eval-command='monitor swdp_scan' --eval-command='attach 1' #{t.source}")
end
end
# reset device by setting the data width to 5 bis on the USB CDC ACM port
ACM_PORT = ENV["ACM_PORT"] || ("/dev/ttyACM0"==BMP_PORT ? "/dev/ttyACM2" : "/dev/ttyACM0")
desc "reset application using serial"
task :reset do
sh "stty --file #{ACM_PORT} raw cs5"
sleep 0.5
end