projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6af51
)
buspirate: fix building on some OSes
author
Damjan Marion
<damjan.marion@gmail.com>
Thu, 21 Apr 2011 20:07:03 +0000
(22:07 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Tue, 26 Apr 2011 09:55:54 +0000
(11:55 +0200)
src/jtag/drivers/buspirate.c
patch
|
blob
|
history
diff --git
a/src/jtag/drivers/buspirate.c
b/src/jtag/drivers/buspirate.c
index 7813f3302d6d78071c56cc8a8491072d2f4eb355..a360d2304287bbff5fdf7786fbbe061c2bba3f1c 100644
(file)
--- a/
src/jtag/drivers/buspirate.c
+++ b/
src/jtag/drivers/buspirate.c
@@
-55,6
+55,11
@@
static void buspirate_scan(bool ir_scan, enum scan_type type,
#define CMD_UART_SPEED 0x07
#define CMD_JTAG_SPEED 0x08
+/* Not all OSes have this speed defined */
+#if !defined(B1000000)
+#define B1000000 0010010
+#endif
+
enum {
MODE_HIZ = 0,
MODE_JTAG = 1, /* push-pull outputs */