Skip to content

Commit

Permalink
Refactor: Remove Official Library
Browse files Browse the repository at this point in the history
  • Loading branch information
but0n committed Sep 21, 2017
1 parent 182dee7 commit 9a32430
Show file tree
Hide file tree
Showing 56 changed files with 182 additions and 27,699 deletions.
8 changes: 4 additions & 4 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ TypeOfMCU=STM32F10X_HD
#============================================================================#

TC=arm-none-eabi
CC=$(TC)-gcc
LD=$(TC)-ld -v
CC=echo "CC $@";$(TC)-gcc
LD=echo "LD $@";$(TC)-ld -v
OBJCOPY=$(TC)-objcopy
OBJDUMP=$(TC)-objdump
AR=$(TC)-ar
AR=echo "AR $@";$(TC)-ar
GDB=$(TC)-gdb
INCLUDE=-I$(TOP)/inc
INCLUDE+=-I$(STMLIB)/CMSIS/Include
INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Include
INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates
INCLUDE+=-I$(STMLIB)/STM32F10x_StdPeriph_Driver/inc
INCLUDE+=-I$(STMLIB)/STM32_USB-FS-Device_Driver/inc
INCLUDE+=-I$(LIBDIR)/include
INCLUDE+=-I$(LIBDIR)/module
COMMONFLAGS=-g -mcpu=cortex-m3 -mthumb -std=c99
COMMONFLAGSlib=$(COMMONFLAGS)
#Commands for general Makefile and src Makefile
Expand Down
6 changes: 3 additions & 3 deletions libs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ libstm32.a:
@cd $(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates && \
$(CC) $(CFLAGSlib) \
system_stm32f10x.c
@cd $(LIBDIR)/source && \
@cd $(LIBDIR)/module && \
$(CC) $(CFLAGSlib) \
-D"assert_param(expr)=((void)0)" \
-I../STM32_USB-FS-Device_Lib_V4.0.0/Libraries/CMSIS/Include \
Expand All @@ -28,7 +28,7 @@ libstm32.a:
# *.c
@$(AR) cr $(LIBDIR)/$@ \
$(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates/system_stm32f10x.o \
$(LIBDIR)/source/*.o \
$(LIBDIR)/module/*.o \
# $(STMLIB)/STM32_USB-FS-Device_Driver/src/*.o
@echo "done."
.PHONY: libs clean tshow
Expand All @@ -37,7 +37,7 @@ clean:
rm -f $(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates/system_stm32f10x.o
rm -f $(STMLIB)/STM32F10x_StdPeriph_Driver/src/*.o
rm -f $(STMLIB)/STM32_USB-FS-Device_Driver/src/*.o
rm -f $(LIBDIR)/source/*.o
rm -f $(LIBDIR)/module/*.o
rm -f $(LIBS)
tshow:
@echo "######################################################################################################"
Expand Down
7 changes: 0 additions & 7 deletions libs/README.md

This file was deleted.

226 changes: 0 additions & 226 deletions libs/include/misc.h

This file was deleted.

Loading

0 comments on commit 9a32430

Please sign in to comment.