mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2025-01-19 05:27:13 +04:00
commit
a8e4c13e99
@ -423,7 +423,7 @@ impl</*'a,*/ X: SPI> SDCard</*'a,*/ X> {
|
||||
/* Byte 15 */
|
||||
CSD_CRC: (csd_tab[15] & 0xFE) >> 1,
|
||||
Reserved4: 1,
|
||||
/* Return the reponse */
|
||||
/* Return the response */
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ use volatile::{ReadOnly, Volatile, WriteOnly};
|
||||
bitflags! {
|
||||
/// InterruptEnableRegister
|
||||
pub struct IER: u8 {
|
||||
const RX_AVALIABLE = 1 << 0;
|
||||
const RX_AVAILABLE = 1 << 0;
|
||||
const TX_EMPTY = 1 << 1;
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ impl NS16550aRaw {
|
||||
mcr |= MCR::REQUEST_TO_SEND;
|
||||
mcr |= MCR::AUX_OUTPUT2;
|
||||
read_end.mcr.write(mcr);
|
||||
let ier = IER::RX_AVALIABLE;
|
||||
let ier = IER::RX_AVAILABLE;
|
||||
read_end.ier.write(ier);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ pub fn main(argc: usize, argv: &[&str]) -> i32 {
|
||||
assert!(argc == 2);
|
||||
let fd = open(argv[1], OpenFlags::RDONLY);
|
||||
if fd == -1 {
|
||||
panic!("Error occured when opening file");
|
||||
panic!("Error occurred when opening file");
|
||||
}
|
||||
let fd = fd as usize;
|
||||
let mut buf = [0u8; 256];
|
||||
|
Loading…
Reference in New Issue
Block a user