buspirate: fix building on some OSes

This commit is contained in:
Damjan Marion 2011-04-21 22:07:03 +02:00 committed by Øyvind Harboe
parent 3c6af518b3
commit 5d987bca9c
1 changed files with 5 additions and 0 deletions

View 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 */