Rakefile: remove reset functionnality
This commit is contained in:
parent
8498e4dc03
commit
dd0fcc1df7
9
Rakefile
9
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue