diff --git a/Makefile b/Makefile index 211dd9b..d284aa9 100644 --- a/Makefile +++ b/Makefile @@ -44,9 +44,11 @@ else endif ifeq ($(OS),Windows_NT) + MSPDEBUG_CC = gcc WIN32_LIBS = -lws2_32 -lregex BINARY = mspdebug.exe else + MSPDEBUG_CC = $(CC) WIN32_LIBS = BINARY = mspdebug endif @@ -130,7 +132,7 @@ OBJ=\ ui/main.o $(BINARY): $(OBJ) - $(CC) $(MSPDEBUG_LDFLAGS) -o $@ $^ $(MSPDEBUG_LIBS) + $(MSPDEBUG_CC) $(MSPDEBUG_LDFLAGS) -o $@ $^ $(MSPDEBUG_LIBS) .c.o: - $(CC) $(MSPDEBUG_CFLAGS) -o $@ -c $*.c + $(MSPDEBUG_CC) $(MSPDEBUG_CFLAGS) -o $@ -c $*.c diff --git a/drivers/ti3410.c b/drivers/ti3410.c index fe73190..85e3c2a 100644 --- a/drivers/ti3410.c +++ b/drivers/ti3410.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include "ti3410.h" @@ -520,7 +521,7 @@ static int download_firmware(struct usb_device *dev) return -1; printc_dbg("Waiting for TI3410 reset...\n"); - sleep(2); + usleep(2000000); return 0; }