From 82c3e1aa3193eee5a9f6f006a0508902368e106e Mon Sep 17 00:00:00 2001 From: Andrey Yurovsky Date: Tue, 20 Aug 2013 20:15:36 -0700 Subject: [PATCH] stlink_usb: remove gcc-specific constant Replace 0b10 with 0x02, 0b is a GCC extension and isn't supported by clang, for instance, so compiling on OS X will fail. No functional changes. Change-Id: Ie882be1563df03e7ad3da0bc9aee65a907a29549 Signed-off-by: Andrey Yurovsky Reviewed-on: http://openocd.zylin.com/1560 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver --- src/jtag/drivers/stlink_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index 047de52f..1f3fbe2c 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -990,7 +990,7 @@ static int stlink_configure_target_trace_port(void *handle) goto out; /* select the pin protocol. The STLinkv2 only supports asynchronous * UART emulation (NRZ) mode, so that's what we pick. */ - res = stlink_usb_write_debug_reg(handle, TPI_SPPR, 0b10); + res = stlink_usb_write_debug_reg(handle, TPI_SPPR, 0x02); if (res != ERROR_OK) goto out; /* disable continuous formatting */ -- 2.39.5