comparison 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
comparison
equal deleted inserted replaced
6:2b92d9632999 7:9404b9869c27
5 lcd.c \ 5 lcd.c \
6 main.c \ 6 main.c \
7 misc.c \ 7 misc.c \
8 startup_stm32f10x_md_mthomas.c \ 8 startup_stm32f10x_md_mthomas.c \
9 syscalls.c \ 9 syscalls.c \
10 system_stm32f10x.c \ 10 system_stm32f10x.c
11 11
12 STM32LIBS= usart gpio rcc rtc pwr bkp fsmc spi tim 12 STM32LIBS= usart gpio rcc rtc pwr bkp fsmc spi tim
13 13
14 .for f in ${STM32LIBS} 14 .for f in ${STM32LIBS}
15 SRCS+= stm32f10x_${f}.c 15 SRCS+= stm32f10x_${f}.c
22 # Set CPU type 22 # Set CPU type
23 COMMONFLAGS= -mcpu=cortex-m3 23 COMMONFLAGS= -mcpu=cortex-m3
24 # Enable thumb code (since the Cortex M3 only does thumb) 24 # Enable thumb code (since the Cortex M3 only does thumb)
25 COMMONFLAGS+= -mthumb 25 COMMONFLAGS+= -mthumb
26 # Debugging & optimisation 26 # Debugging & optimisation
27 COMMONFLAGS+= -g -O2 27 COMMONFLAGS+= -g -O0
28 # Put functions & data in individual sections to allow the linker to optimise (breaks debugging apparently) 28 # Put functions & data in individual sections to allow the linker to optimise (breaks debugging apparently)
29 #COMMONFLAGS+= -ffunction-sections -fdata-sections 29 COMMONFLAGS+= -ffunction-sections -fdata-sections
30 # We aren't using exceptions 30 # We aren't using exceptions
31 COMMONFLAGS+= -fno-exceptions 31 COMMONFLAGS+= -fno-exceptions
32 32
33 CFLAGS+= -I ${.CURDIR} 33 CFLAGS+= -I ${.CURDIR}
34 34
66 ${GDB} --eval-command="target remote 127.0.0.1:61234" ${PROG}.elf 66 ${GDB} --eval-command="target remote 127.0.0.1:61234" ${PROG}.elf
67 67
68 load: 68 load:
69 ${GDB} --eval-command="target remote 127.0.0.1:61234" --eval-command "load" ${PROG}.elf 69 ${GDB} --eval-command="target remote 127.0.0.1:61234" --eval-command "load" ${PROG}.elf
70 70
71 png2bin: png2bin.c
72 gcc ${.CURDIR}/png2bin.c -o ${.OBJDIR}/png2bin -O2 -Wall -I/opt/local/include -L/opt/local/lib -lpng
73
71 .include "${.CURDIR}/BSDmakefile.arm" 74 .include "${.CURDIR}/BSDmakefile.arm"