rename a single function

This commit is contained in:
Oliver Lehmann 2012-06-05 18:24:16 +00:00
parent 22fbb4f11c
commit a2e1dc52dc
2 changed files with 26 additions and 29 deletions

View File

@ -67,7 +67,7 @@
</avrgcc.linker.libraries.Libraries> </avrgcc.linker.libraries.Libraries>
<avrgcc.linker.optimization.GarbageCollectUnusedSections>True</avrgcc.linker.optimization.GarbageCollectUnusedSections> <avrgcc.linker.optimization.GarbageCollectUnusedSections>True</avrgcc.linker.optimization.GarbageCollectUnusedSections>
<avrgcc.linker.optimization.RelaxBranches>True</avrgcc.linker.optimization.RelaxBranches> <avrgcc.linker.optimization.RelaxBranches>True</avrgcc.linker.optimization.RelaxBranches>
</AvrGcc> </AvrGcc>
</ToolchainSettings> </ToolchainSettings>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -86,9 +86,6 @@
<Compile Include="mmc.h"> <Compile Include="mmc.h">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
<Compile Include="sd.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="uart.c"> <Compile Include="uart.c">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>

View File

@ -1,7 +1,7 @@
/* /*
* P8000 WDC Emulator * P8000 WDC Emulator
* *
* $Id: wdc_drv_mmc.c,v 1.4 2012/06/05 18:21:48 olivleh1 Exp $ * $Id: wdc_drv_mmc.c,v 1.5 2012/06/05 18:24:16 olivleh1 Exp $
* *
*/ */
@ -126,7 +126,7 @@ uint16_t crc16 ( const uint8_t *buffer, uint16_t len )
} }
#endif #endif
uint8_t SDSetCRC ( uint8_t on_off ) uint8_t mmc_enable_crc ( uint8_t on_off )
{ {
unsigned char cmd[] = {CMD59, 0x00, 0x00, 0x00, 0x00, 0xFF}; unsigned char cmd[] = {CMD59, 0x00, 0x00, 0x00, 0x00, 0xFF};
@ -191,7 +191,7 @@ uint8_t mmc_init ()
SPSR = SPSR | ( 1 << SPI2X ); SPSR = SPSR | ( 1 << SPI2X );
#ifdef SPI_CRC #ifdef SPI_CRC
SDSetCRC ( 1 ); mmc_enable_crc ( 1 );
#endif #endif
MMC_Disable(); MMC_Disable();