1
0
Fork 0

zynq::flash: doc

This commit is contained in:
Astro 2019-12-12 00:13:02 +01:00
parent b346ea8297
commit 70d56d2b28
2 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,9 @@ const INST_RDCR: u8 = 0x35;
/// Instruction: Read Identification /// Instruction: Read Identification
const INST_RDID: u8 = 0x9F; const INST_RDID: u8 = 0x9F;
/// Memory-mapped mode
pub struct LinearAddressing; pub struct LinearAddressing;
/// Manual I/O mode
pub struct Manual; pub struct Manual;
/// Flash Interface Driver /// Flash Interface Driver

View File

@ -79,9 +79,13 @@ register_bit!(config,
register!(intr_status, IntrStatus, RW, u32); register!(intr_status, IntrStatus, RW, u32);
register_bit!(intr_status, rx_overflow, 0); register_bit!(intr_status, rx_overflow, 0);
register_bit!(intr_status, tx_fifo_not_full, 2); register_bit!(intr_status,
/// < tx_thres
tx_fifo_not_full, 2);
register_bit!(intr_status, tx_fifo_full, 3); register_bit!(intr_status, tx_fifo_full, 3);
register_bit!(intr_status, rx_fifo_not_empty, 4); register_bit!(intr_status,
/// >= rx_thres
rx_fifo_not_empty, 4);
register_bit!(intr_status, rx_fifo_full, 5); register_bit!(intr_status, rx_fifo_full, 5);
register_bit!(intr_status, tx_fifo_underflow, 6); register_bit!(intr_status, tx_fifo_underflow, 6);