update
This commit is contained in:
parent
ba5c7198e0
commit
e3b3f563e4
|
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: wdc_config.h,v 1.9 2012/06/07 20:25:46 olivleh1 Exp $
|
||||
* $Id: wdc_config.h,v 1.10 2012/06/08 10:40:39 olivleh1 Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -71,6 +71,7 @@
|
|||
/*
|
||||
* maximum performance with both turned off
|
||||
*
|
||||
*
|
||||
* #define MMC_PRESET_MULTIBLOCKCOUNT 1
|
||||
* #define SPI_CRC 1
|
||||
*/
|
||||
|
|
@ -78,7 +79,5 @@
|
|||
#define MMC_MULTIBLOCK 1
|
||||
|
||||
#undef MEASURE_SDCARD_TIME
|
||||
#define MEASURE_SDCARD_TIME 1
|
||||
|
||||
|
||||
#endif /* CONFIG_H_ */
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: wdc_drv_mmc.c,v 1.12 2012/06/07 20:25:46 olivleh1 Exp $
|
||||
* $Id: wdc_drv_mmc.c,v 1.13 2012/06/08 10:40:39 olivleh1 Exp $
|
||||
*/
|
||||
|
||||
#include <avr/io.h>
|
||||
|
|
@ -159,7 +159,6 @@ uint16_t crc16 ( const uint8_t *buffer, uint16_t len )
|
|||
}
|
||||
return crc;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t mmc_enable_crc ( uint8_t on_off )
|
||||
{
|
||||
|
|
@ -173,6 +172,7 @@ uint8_t mmc_enable_crc ( uint8_t on_off )
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t mmc_init ()
|
||||
{
|
||||
|
|
@ -429,11 +429,12 @@ uint8_t mmc_read_multiblock ( uint32_t addr, uint8_t *buffer, uint8_t numblocks
|
|||
#endif
|
||||
|
||||
MMC_Enable();
|
||||
// wait_till_card_ready();
|
||||
|
||||
#ifdef MMC_MULTIBLOCK
|
||||
#ifdef MMC_PRESET_MULTIBLOCKCOUNT
|
||||
|
||||
wait_till_card_ready();
|
||||
|
||||
/*
|
||||
* send CMD55
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include "uart.h"
|
||||
|
||||
#ifdef MEASURE_SDCARD_TIME
|
||||
#define BLOCKNO 550000
|
||||
#define BLOCKNO 150000
|
||||
|
||||
extern uint32_t overflow;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
/*
|
||||
* P8000 WDC Emulator
|
||||
*
|
||||
* $Id: wdc_main.c,v 1.20 2012/06/07 20:25:46 olivleh1 Exp $
|
||||
* $Id: wdc_main.c,v 1.21 2012/06/08 10:40:39 olivleh1 Exp $
|
||||
*
|
||||
* TODO: - Different Errorcodes in the MMC layer (use defines)
|
||||
* - errorchecking in several places
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
#include "wdc_if_sdcard.h"
|
||||
#include "config.h"
|
||||
|
||||
#define DEBUG 1
|
||||
#define DEBUG 3
|
||||
|
||||
void atmega_setup ( void );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue