comparison BSDmakefile @ 49:ace431a0d0f5

Add SDIO code poached from STM. Use FatFS to read from SD card. LFN doesn't work reliably so it's disabled for now.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 03 Apr 2013 23:34:20 +1030
parents 7d4c25c288bb
children d7207a9d3c3b
comparison
equal deleted inserted replaced
48:2f336d212c74 49:ace431a0d0f5
2 2
3 SRCS= 1wire.c \ 3 SRCS= 1wire.c \
4 comm.c \ 4 comm.c \
5 core_cm3.c \ 5 core_cm3.c \
6 delay.c \ 6 delay.c \
7 fatfs_sd.c \
8 ff.c \
7 flash.c \ 9 flash.c \
8 hw.c \ 10 hw.c \
9 lcd.c \ 11 lcd.c \
10 main.c \ 12 main.c \
11 misc.c \ 13 misc.c \
14 sd.c \
12 spi.c \ 15 spi.c \
13 sprink.c \ 16 sprink.c \
17 stm32_eval_sdio_sd.c \
14 startup_stm32f10x_md_mthomas.c \ 18 startup_stm32f10x_md_mthomas.c \
15 syscalls.c \ 19 syscalls.c \
16 system_stm32f10x.c \ 20 system_stm32f10x.c \
17 tempctrl.c \ 21 tempctrl.c \
18 touch.c 22 touch.c
19 23
20 STM32LIBS= usart gpio rcc rtc pwr bkp fsmc spi tim i2c crc 24 STM32LIBS= usart gpio rcc rtc pwr bkp fsmc spi tim i2c crc sdio dma
21 25
22 .for f in ${STM32LIBS} 26 .for f in ${STM32LIBS}
23 SRCS+= stm32f10x_${f}.c 27 SRCS+= stm32f10x_${f}.c
24 CFLAGS+= -DSTM32F10X_${f:U}_EN 28 CFLAGS+= -DSTM32F10X_${f:U}_EN
25 .endfor 29 .endfor
68 72
69 .PATH: ${PERIPHDIR}/src 73 .PATH: ${PERIPHDIR}/src
70 .PATH: ${COREDIR} 74 .PATH: ${COREDIR}
71 .PATH: ${SYSDIR} 75 .PATH: ${SYSDIR}
72 76
77 # FatFS
78 FATFS= ${.CURDIR}/fatfs
79 CFLAGS+= -I${FATFS}
80 .PATH: ${FATFS}
81 .PATH: ${FATFS}/option
82
83
73 DBGPORT= /dev/cu.usbmodem7FC58901 84 DBGPORT= /dev/cu.usbmodem7FC58901
74 85
75 .include "${.CURDIR}/BSDmakefile.arm" 86 .include "${.CURDIR}/BSDmakefile.arm"