diff options
author | Damjan Marion <damjan.marion@gmail.com> | 2011-04-21 22:07:03 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-04-26 11:55:54 +0200 |
commit | 5d987bca9cc24056e0e2529e2f6446e7b0e30a15 (patch) | |
tree | 28da182cbba65e2cc820d0617c1744e1df370817 | |
parent | 3c6af518b3f0a9fb0e4b515b9e6f0fc93d8b9493 (diff) | |
download | openocd_libswd-5d987bca9cc24056e0e2529e2f6446e7b0e30a15.tar.gz openocd_libswd-5d987bca9cc24056e0e2529e2f6446e7b0e30a15.tar.bz2 openocd_libswd-5d987bca9cc24056e0e2529e2f6446e7b0e30a15.tar.xz openocd_libswd-5d987bca9cc24056e0e2529e2f6446e7b0e30a15.zip |
buspirate: fix building on some OSes
-rw-r--r-- | src/jtag/drivers/buspirate.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |