From a96bc1986ddeda72a93f61a98ddea18d7835dc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 14 Oct 2012 06:16:18 +0000 Subject: [PATCH] provided empty sd_card_init() function to make the linker happy --- sources/sd_card.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sources/sd_card.c b/sources/sd_card.c index b3c9453..7295ec2 100644 --- a/sources/sd_card.c +++ b/sources/sd_card.c @@ -2,8 +2,8 @@ * sd card */ -#include #include +#include #define dspi_dtar0 0x0c #define dspi_dsr 0x2c @@ -83,13 +83,13 @@ void sd_card_idle(void) #endif } -#ifdef _NOT_USED_ + int sd_card_init(void) { long az_sectors; - +#ifdef _NOT_USED_ asm { lea MCF_PSC0_PSCTB_8BIT,a1 @@ -424,8 +424,11 @@ sd_c_not: return -2; sd_c_error: return -1; + +#endif /* _NOT_USED_ */ } +#ifdef _NOT_USED_ void sd_rcv_sector(void) // 1 sector daten holen ---------------------------- { if (sd_get_status() == 0xfe)