Fix build errors on Win32.
This commit is contained in:
parent
a90a3ae86a
commit
9e42c1e6f4
6
Makefile
6
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
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <usb.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue