From: asterix Date: Tue, 6 Sep 2011 08:44:08 +0000 (+0000) Subject: Update sd project. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6c4b0cf8c98308df4866839b9c7d8fe813376969;p=bertos.git Update sd project. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5022 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h index a91df59f..8d4a7ad3 100644 --- a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h @@ -63,6 +63,14 @@ */ #define CONFIG_SD_AUTOASSIGN_FAT 1 +/** + * SD bus mode. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "sd_mode" + */ +#define CONFIG_SD_MODE SD_SPI_MODE + /** * Enable backward compatibility for sd_init(). * If enabled, sd_init() will allocate internally an Sd context, diff --git a/boards/at91sam7x-ek/examples/sd_fat/sd_fat.mk b/boards/at91sam7x-ek/examples/sd_fat/sd_fat.mk index 5a25ccc0..7e4a5897 100644 --- a/boards/at91sam7x-ek/examples/sd_fat/sd_fat.mk +++ b/boards/at91sam7x-ek/examples/sd_fat/sd_fat.mk @@ -37,6 +37,7 @@ sd_fat_WIZARD_CSRC = \ bertos/struct/kfile_fifo.c \ bertos/mware/formatwr.c \ bertos/drv/sd.c \ + bertos/drv/sd_spi.c \ bertos/io/kblock.c \ bertos/mware/event.c \ bertos/cpu/arm/drv/sysirq_at91.c \