\r
# ChaN FatFS and SD card support\r
VPATH += drivers/fatfs\r
-OBJS += ff.o mmc.o\r
+OBJS += ff.o #mmc.o\r
\r
# Motors\r
VPATH += drivers/motor/stepper\r
VPATH += drivers/audio/tea5767\r
OBJS += tea5767.o\r
\r
+# IN219 Current Sensor\r
+VPATH += drivers/sensors/ina219\r
+OBJS += ina219.o\r
+\r
+# MPL115A2 Barometric Pressure Sensor\r
+VPATH += drivers/sensors/mpl115a2\r
+OBJS += mpl115a2.o\r
+\r
+# ADS1015 12-bit ADC\r
+VPATH += drivers/adc/ads1015\r
+OBJS += ads1015.o\r
+\r
##########################################################################\r
# Library files \r
##########################################################################\r
VPATH += core/libc\r
OBJS += stdio.o string.o\r
OBJS += adc.o cpu.o cmd.o gpio.o i2c.o pmu.o ssp.o systick.o timer16.o\r
-OBJS += timer32.o uart.o uart_buf.o usbconfig.o usbhid.o\r
+OBJS += timer32.o uart.o uart_buf.o usbconfig.o usbhid.o usbmsc.o\r
OBJS += wdt.o cdcuser.o cdc_buf.o usbcore.o usbdesc.o usbhw.o usbuser.o \r
OBJS += sysinit.o pwm.o iap.o\r
\r
+\r
+VPATH += lcd\r
+OBJS += display.o sprite.o\r
+\r
+VPATH += dataflash\r
+OBJS += at45db041d.o iobase.o diskio.o\r
+\r
##########################################################################\r
# GNU GCC compiler prefix and location\r
##########################################################################\r
# Compiler settings, parameters and flags\r
##########################################################################\r
ifeq (TRUE,$(DEBUGBUILD))\r
- CFLAGS = -c -g -O0 $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -fno-builtin $(OPTDEFINES)\r
+ CFLAGS = -c -g -O0 $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -fno-builtin $(OPTDEFINES) -std=c99\r
ASFLAGS = -c -g -O0 $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -D__ASSEMBLY__ -x assembler-with-cpp\r
else\r
- CFLAGS = -c -g -Os $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -fno-builtin $(OPTDEFINES)\r
+ CFLAGS = -c -g -Os $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -fno-builtin $(OPTDEFINES) -std=c99\r
ASFLAGS = -c -g -Os $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -D__ASSEMBLY__ -x assembler-with-cpp\r
endif\r
\r