Working code for STM32F103 PL2303 emulation

This commit is contained in:
eddyem
2019-05-21 11:41:41 +03:00
parent 0cd287d544
commit d46a604d6f
11 changed files with 200 additions and 90 deletions

View File

@@ -42,8 +42,7 @@ DFUUTIL := $(shell which dfu-util)
###############################################################################
# Source files
OBJDIR = mk
#SRC := $(wildcard *.c)
SRC = adc.c hardware.c main.c usart.c
SRC := $(wildcard *.c)
OBJS := $(addprefix $(OBJDIR)/, $(SRC:%.c=%.o))
STARTUP = $(OBJDIR)/startup.o
OBJS += $(STARTUP)
@@ -70,7 +69,7 @@ LDFLAGS += -T$(LDSCRIPT)
###############################################################################
# Used libraries
LDLIBS += $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
LDLIBS += -lc $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
DEFS += -DSTM32$(FAMILY) -DSTM32$(MCU) -DSTM32F10X_$(DENSITY)