]> git.sur5r.net Git - openocd/commitdiff
buspirate: fix building on some OSes
authorDamjan 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

index 7813f3302d6d78071c56cc8a8491072d2f4eb355..a360d2304287bbff5fdf7786fbbe061c2bba3f1c 100644 (file)
@@ -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 */