diff BSDmakefile @ 7:9404b9869c27

Make the LCD panel work (timings, GPIOE clock needs to be on, etc) Factor out LCD init (needs more work)
author Daniel O'Connor <darius@dons.net.au>
date Sun, 22 Jan 2012 17:10:51 +1030
parents 2c87e30c982d
children 58d76cf522ff
line wrap: on
line diff
--- a/BSDmakefile	Sat Jan 14 11:42:24 2012 +1030
+++ b/BSDmakefile	Sun Jan 22 17:10:51 2012 +1030
@@ -7,7 +7,7 @@
 		misc.c \
 		startup_stm32f10x_md_mthomas.c \
 		syscalls.c \
-		system_stm32f10x.c \
+		system_stm32f10x.c
 
 STM32LIBS=	usart gpio rcc rtc pwr bkp fsmc spi tim
 
@@ -24,9 +24,9 @@
 # Enable thumb code (since the Cortex M3 only does thumb)
 COMMONFLAGS+=	-mthumb
 # Debugging & optimisation
-COMMONFLAGS+= -g -O2
+COMMONFLAGS+= -g -O0
 # Put functions & data in individual sections to allow the linker to optimise (breaks debugging apparently)
-#COMMONFLAGS+=	-ffunction-sections -fdata-sections
+COMMONFLAGS+=	-ffunction-sections -fdata-sections
 # We aren't using exceptions
 COMMONFLAGS+=	-fno-exceptions
 
@@ -68,4 +68,7 @@
 load:
 	${GDB} --eval-command="target remote 127.0.0.1:61234" --eval-command "load" ${PROG}.elf
 
+png2bin:	png2bin.c
+	gcc ${.CURDIR}/png2bin.c -o ${.OBJDIR}/png2bin -O2 -Wall -I/opt/local/include -L/opt/local/lib -lpng
+
 .include "${.CURDIR}/BSDmakefile.arm"