@@ -32,7 +32,7 @@ static uint8_t LPC17xx_SD_SendCmd(uint8_t cmd, uint32_t arg);
3232static bool LPC17xx_SD_ReadSector (uint32_t sector , uint8_t * buff , uint32_t count );
3333static bool LPC17xx_SD_ReadDataBlock (uint8_t * buff , uint32_t cnt );
3434static bool LPC17xx_SD_WriteSector (uint32_t sector , const uint8_t * buff , uint32_t count );
35- static bool LPC17xx_SD_WirteDataBlock (const uint8_t * buff , uint8_t token );
35+ static bool LPC17xx_SD_WriteDataBlock (const uint8_t * buff , uint8_t token );
3636static bool LPC17xx_SD_ReadCfg (SDCFG * cfg );
3737static bool LPC17xx_SD_WaitForReady (void );
3838
@@ -279,7 +279,7 @@ static bool LPC17xx_SD_WriteSector(uint32_t sector, const uint8_t *buff, uint32_
279279 if (count == 1 ) /* Single block write */
280280 {
281281 if ((LPC17xx_SD_SendCmd (WRITE_BLOCK , sector ) == 0 )
282- && LPC17xx_SD_WirteDataBlock (buff , TOKEN_SINGLE_BLOCK ))
282+ && LPC17xx_SD_WriteDataBlock (buff , TOKEN_SINGLE_BLOCK ))
283283 count = 0 ;
284284 }
285285 else /* Multiple block write */
@@ -289,12 +289,12 @@ static bool LPC17xx_SD_WriteSector(uint32_t sector, const uint8_t *buff, uint32_
289289 {
290290 do
291291 {
292- if (!LPC17xx_SD_WirteDataBlock (buff , TOKEN_MULTI_BLOCK )) break ;
292+ if (!LPC17xx_SD_WriteDataBlock (buff , TOKEN_MULTI_BLOCK )) break ;
293293 buff += 512 ;
294294 }
295295 while (-- count );
296296#if 1
297- if (!LPC17xx_SD_WirteDataBlock (0 , TOKEN_STOP_TRAN )) /* STOP_TRAN token */
297+ if (!LPC17xx_SD_WriteDataBlock (0 , TOKEN_STOP_TRAN )) /* STOP_TRAN token */
298298 count = 1 ;
299299#else
300300 LPC17xx_SPI_SendByte (TOKEN_STOP_TRAN );
@@ -312,7 +312,7 @@ static bool LPC17xx_SD_WriteSector(uint32_t sector, const uint8_t *buff, uint32_
312312 0xFC -> multi block
313313 0xFD -> Stop
314314*****************************************************************************/
315- static bool LPC17xx_SD_WirteDataBlock (const uint8_t * buff , uint8_t token )
315+ static bool LPC17xx_SD_WriteDataBlock (const uint8_t * buff , uint8_t token )
316316{
317317 uint8_t resp , i ;
318318
0 commit comments