From 70d56d2b287ca77504e8af6e5ff0da0ba86c9b80 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 12 Dec 2019 00:13:02 +0100 Subject: [PATCH] zynq::flash: doc --- src/zynq/flash/mod.rs | 2 ++ src/zynq/flash/regs.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zynq/flash/mod.rs b/src/zynq/flash/mod.rs index 7f67854..92de431 100644 --- a/src/zynq/flash/mod.rs +++ b/src/zynq/flash/mod.rs @@ -17,7 +17,9 @@ const INST_RDCR: u8 = 0x35; /// Instruction: Read Identification const INST_RDID: u8 = 0x9F; +/// Memory-mapped mode pub struct LinearAddressing; +/// Manual I/O mode pub struct Manual; /// Flash Interface Driver diff --git a/src/zynq/flash/regs.rs b/src/zynq/flash/regs.rs index 4f9fb80..01a50ea 100644 --- a/src/zynq/flash/regs.rs +++ b/src/zynq/flash/regs.rs @@ -79,9 +79,13 @@ register_bit!(config, register!(intr_status, IntrStatus, RW, u32); 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, 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, tx_fifo_underflow, 6);