On Wed, Aug 21, 2013 at 03:17:12AM +0000, [email protected] wrote: > > 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. > > +++ 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, 0x20); > if (res != ERROR_OK) > goto out;
A typo? 0x20 in the code should be 0x02 I suspect. John ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
