diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ OPTLVL:=3 # Optimization level, can be [ TOP:=$(shell readlink -f "../..") DISCOVERY:=Utilities/STM32L100C-Discovery STMLIB:=libraries +OLEDDRV:=oleddrv STD_PERIPH:=$(STMLIB)/STM32L1xx_StdPeriph_Driver STARTUP:=$(STMLIB)/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc_ride7 LINKER_SCRIPT:=$(CURDIR)/stm32-flash.ld @@ -18,6 +19,7 @@ INCLUDE+=-I$(STMLIB)/CMSIS/Include INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32L1xx/Include INCLUDE+=-I$(STD_PERIPH)/inc INCLUDE+=-I$(DISCOVERY) +INCLUDE+=-I$(STMLIB)/$(OLEDDRV) #INCLUDE+=-I$(STMLIB)/STM32_USB_OTG_Driver/inc #INCLUDE+=-I$(STMLIB)/STM32_USB_Device_Library/Class/hid/inc #INCLUDE+=-I$(STMLIB)/STM32_USB_Device_Library/Core/inc @@ -37,6 +39,7 @@ SRC=main.c SRC+=stm32l1xx_it.c SRC+=system_stm32l1xx.c SRC+=stm32l100c_discovery.c +SRC+=ssd1306.c # Discovery Source Files #SRC+=stm32f4_discovery_lis302dl.c