From: Damjan Marion Date: Thu, 21 Apr 2011 20:07:03 +0000 (+0200) Subject: buspirate: fix building on some OSes X-Git-Tag: v0.5.0-rc1~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d987bca9cc24056e0e2529e2f6446e7b0e30a15;p=openocd buspirate: fix building on some OSes --- diff --git a/src/jtag/drivers/buspirate.c b/src/jtag/drivers/buspirate.c index 7813f330..a360d230 100644 --- 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 */