Fix regnual for new Chopstx
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2016-06-02 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* regnual/regnual.c (usb_cb_tx_done): Follow the change of USB
|
||||||
|
API.
|
||||||
|
|
||||||
|
* regnual/reset.c: Rename from sys.c.
|
||||||
|
|
||||||
2016-06-01 Niibe Yutaka <gniibe@fsij.org>
|
2016-06-01 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* tool/stlinkv2.py (stlinkv2.__init__): Don't
|
* tool/stlinkv2.py (stlinkv2.__init__): Don't
|
||||||
|
|||||||
2
chopstx
2
chopstx
Submodule chopstx updated: c79a41870a...78718e57df
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
PROJECT = regnual
|
PROJECT = regnual
|
||||||
|
|
||||||
OBJS = regnual.o usb_stm32f103.o sys.o
|
OBJS = regnual.o usb-stm32f103.o reset.o
|
||||||
LDSCRIPT= regnual.ld
|
LDSCRIPT= regnual.ld
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
@@ -23,7 +23,7 @@ DEFS = -DFREE_STANDING
|
|||||||
|
|
||||||
CFLAGS = -O2 -g
|
CFLAGS = -O2 -g
|
||||||
CFLAGS += -Wa,-alms=$(notdir $(<:.c=.lst)) -fpie
|
CFLAGS += -Wa,-alms=$(notdir $(<:.c=.lst)) -fpie
|
||||||
CFLAGS += $(CWARN) -I . -I ../src -fno-common $(MCFLAGS) $(TOPT) $(DEFS)
|
CFLAGS += $(CWARN) -I . -I ../chopstx -fno-common $(MCFLAGS) $(TOPT) $(DEFS)
|
||||||
|
|
||||||
LDFLAGS = -T$(LDSCRIPT) -nostartfiles $(MCFLAGS) $(TOPT)
|
LDFLAGS = -T$(LDSCRIPT) -nostartfiles $(MCFLAGS) $(TOPT)
|
||||||
|
|
||||||
@@ -32,19 +32,19 @@ LDFLAGS = -T$(LDSCRIPT) -nostartfiles $(MCFLAGS) $(TOPT)
|
|||||||
|
|
||||||
all: regnual.hex
|
all: regnual.hex
|
||||||
|
|
||||||
regnual.o: regnual.c ../src/sys.h ../src/usb_lld.h
|
regnual.o: regnual.c ../chopstx/sys.h ../chopstx/usb_lld.h
|
||||||
|
|
||||||
regnual.hex: regnual.elf
|
regnual.hex: regnual.elf
|
||||||
$(OBJCOPY) -Obinary regnual.elf regnual.bin
|
$(OBJCOPY) -Obinary regnual.elf regnual.bin
|
||||||
$(OBJCOPY) -Oihex regnual.elf regnual.hex
|
$(OBJCOPY) -Oihex regnual.elf regnual.hex
|
||||||
|
|
||||||
usb_stm32f103.o: ../src/usb_stm32f103.c
|
usb-stm32f103.o: ../chopstx/mcu/usb-stm32f103.c
|
||||||
$(CC) $(CFLAGS) -c -o usb_stm32f103.o ../src/usb_stm32f103.c
|
$(CC) $(CFLAGS) -c -o usb-stm32f103.o ../chopstx/mcu/usb-stm32f103.c
|
||||||
|
|
||||||
regnual.elf: $(OBJS) $(LDSCRIPT)
|
regnual.elf: $(OBJS) $(LDSCRIPT)
|
||||||
$(CC) $(LDFLAGS) -o regnual.elf $(OBJS)
|
$(CC) $(LDFLAGS) -o regnual.elf $(OBJS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(OBJS) regnual.elf regnual.hex regnual.bin
|
-rm -f $(OBJS) regnual.elf regnual.hex regnual.bin *.lst
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|||||||
@@ -318,9 +318,10 @@ void usb_cb_rx_ready (uint8_t ep_num)
|
|||||||
(void)ep_num;
|
(void)ep_num;
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_cb_tx_done (uint8_t ep_num)
|
void usb_cb_tx_done (uint8_t ep_num, uint32_t len)
|
||||||
{
|
{
|
||||||
(void)ep_num;
|
(void)ep_num;
|
||||||
|
(void)len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wait (int count)
|
static void wait (int count)
|
||||||
|
|||||||
Reference in New Issue
Block a user