FreeBSD Bugzilla – Attachment 181331 Details for
Bug 218241
[PATCH] devel/bossa: Add 1200bps hack w/ -a flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn(1) diff of devel/bossa
bossa-1.7.0_1.diff (text/plain), 2.15 KB, created by
Kyle Evans
on 2017-03-30 21:17:42 UTC
(
hide
)
Description:
svn(1) diff of devel/bossa
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2017-03-30 21:17:42 UTC
Size:
2.15 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 437263) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= bossa > PORTVERSION= 1.7.0 >+PORTREVISION= 1 > CATEGORIES= devel > > MAINTAINER= bsdports@kyle-evans.net >Index: files/patch-src_bossac.cpp >=================================================================== >--- files/patch-src_bossac.cpp (nonexistent) >+++ files/patch-src_bossac.cpp (working copy) >@@ -0,0 +1,62 @@ >+--- src/bossac.cpp.orig 2017-03-30 20:52:21 UTC >++++ src/bossac.cpp >+@@ -64,6 +64,7 @@ class BossaConfig (public) >+ bool help; >+ bool forceUsb; >+ string forceUsbArg; >++ bool arduinoErase; >+ >+ int readArg; >+ string portArg; >+@@ -89,6 +90,7 @@ BossaConfig::BossaConfig() >+ info = false; >+ help = false; >+ forceUsb = false; >++ arduinoErase = false; >+ >+ readArg = 0; >+ bootArg = 1; >+@@ -189,6 +191,11 @@ static Option opts[] = >+ 'R', "reset", &config.reset, >+ { ArgNone }, >+ "reset CPU (if supported)" >++ }, >++ { >++ 'a', "arduino_erase", &config.arduinoErase, >++ { ArgNone }, >++ "erase and reset via Arduino 1200 baud hack (cannot be used with port autodetection)" >+ } >+ }; >+ >+@@ -257,6 +264,12 @@ main(int argc, char* argv[]) >+ return help(argv[0]); >+ } >+ >++ if (config.arduinoErase && !config.port) >++ { >++ fprintf(stderr, "%s: port must be specified for Arduino 1200bps erase hack\n", argv[0]); >++ return help(argv[0]); >++ } >++ >+ if (config.read || config.write || config.verify) >+ { >+ if (args == argc) >+@@ -311,6 +324,18 @@ main(int argc, char* argv[]) >+ fprintf(stderr, "Invalid USB value: %s\n", config.forceUsbArg.c_str()); >+ return 1; >+ } >++ } >++ >++ if (config.arduinoErase) >++ { >++ SerialPort::Ptr port; >++ if (config.forceUsb) >++ port = portFactory.create(config.portArg, isUsb); >++ else >++ port = portFactory.create(config.portArg); >++ >++ port->open(1200); >++ port->close(); >+ } >+ >+ if (config.port)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
kevans
:
maintainer-approval-
Actions:
View
|
Diff
Attachments on
bug 218241
:
181331
|
181352