Skip to content

Commit 940073e

Browse files
authored
Merge pull request #26 from felixonmars/patch-1
Correct typos in drivers/block/sdcard.rs
2 parents 46900cc + 03151ac commit 940073e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

os/src/drivers/block/sdcard.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,14 @@ impl</*'a,*/ X: SPI> SDCard</*'a,*/ X> {
317317
* Get SD card data response.
318318
* @param None
319319
* @retval The SD status: Read data response xxx0<status>1
320-
* - status 010: Data accecpted
320+
* - status 010: Data accepted
321321
* - status 101: Data rejected due to a crc error
322322
* - status 110: Data rejected due to a Write error.
323323
* - status 111: Data rejected due to other error.
324324
*/
325325
fn get_dataresponse(&self) -> u8 {
326326
let response = &mut [0u8];
327-
/* Read resonse */
327+
/* Read response */
328328
self.read_data(response);
329329
/* Mask unused bits */
330330
response[0] &= 0x1F;
@@ -419,7 +419,7 @@ impl</*'a,*/ X: SPI> SDCard</*'a,*/ X> {
419419
/* Byte 15 */
420420
CSD_CRC: (csd_tab[15] & 0xFE) >> 1,
421421
Reserved4: 1,
422-
/* Return the reponse */
422+
/* Return the response */
423423
});
424424
}
425425

@@ -750,4 +750,4 @@ impl BlockDevice for SDCardWrapper {
750750
fn write_block(&self, block_id: usize, buf: &[u8]) {
751751
self.0.lock().write_sector(buf,block_id as u32).unwrap();
752752
}
753-
}
753+
}

0 commit comments

Comments
 (0)