stm32_fmc/devices/
is42s16400j.rs1#[allow(unused)]
3
4pub mod is42s16400j_7 {
6 use crate::sdram::{SdramChip, SdramConfiguration, SdramTiming};
7
8 const BURST_LENGTH_1: u16 = 0x0000;
9 const BURST_LENGTH_2: u16 = 0x0001;
10 const BURST_LENGTH_4: u16 = 0x0002;
11 const BURST_LENGTH_8: u16 = 0x0004;
12 const BURST_TYPE_SEQUENTIAL: u16 = 0x0000;
13 const BURST_TYPE_INTERLEAVED: u16 = 0x0008;
14 const CAS_LATENCY_2: u16 = 0x0020;
15 const CAS_LATENCY_3: u16 = 0x0030;
16 const OPERATING_MODE_STANDARD: u16 = 0x0000;
17 const WRITEBURST_MODE_PROGRAMMED: u16 = 0x0000;
18 const WRITEBURST_MODE_SINGLE: u16 = 0x0200;
19
20 #[derive(Clone, Copy, Debug, PartialEq)]
24 pub struct Is42s16400j {}
25
26 impl SdramChip for Is42s16400j {
27 const MODE_REGISTER: u16 = BURST_LENGTH_1
29 | BURST_TYPE_SEQUENTIAL
30 | CAS_LATENCY_2
31 | OPERATING_MODE_STANDARD
32 | WRITEBURST_MODE_SINGLE;
33
34 const TIMING: SdramTiming = SdramTiming {
36 startup_delay_ns: 100_000, max_sd_clock_hz: 100_000_000, refresh_period_ns: 15_625, mode_register_to_active: 2, exit_self_refresh: 7, active_to_precharge: 4, row_cycle: 7, row_precharge: 2, row_to_column: 2, };
46
47 const CONFIG: SdramConfiguration = SdramConfiguration {
49 column_bits: 8,
50 row_bits: 12,
51 memory_data_width: 16, internal_banks: 4, cas_latency: 2, write_protection: false,
55 read_burst: true,
56 read_pipe_delay_cycles: 0,
57 };
58 }
59}