libdaisy-rust
libdaisy-rust copied to clipboard
[Feature] Flash Memory
Implement QSPI for flash memory access.
Pulling this out of the system file and leaving it here for future reference.
// TODO - QSPI
// info!("Setting up QSPI...");
/*
dsy_gpio_pin *pin_group;
qspi_handle.device = DSY_QSPI_DEVICE_IS25LP064A;
qspi_handle.mode = DSY_QSPI_MODE_DSY_MEMORY_MAPPED;
pin_group = qspi_handle.pin_config;
pin_group[DSY_QSPI_PIN_IO0] = dsy_pin(DSY_GPIOF, 8);
pin_group[DSY_QSPI_PIN_IO1] = dsy_pin(DSY_GPIOF, 9);
pin_group[DSY_QSPI_PIN_IO2] = dsy_pin(DSY_GPIOF, 7);
pin_group[DSY_QSPI_PIN_IO3] = dsy_pin(DSY_GPIOF, 6);
pin_group[DSY_QSPI_PIN_CLK] = dsy_pin(DSY_GPIOF, 10);
pin_group[DSY_QSPI_PIN_NCS] =
dsy_pin(DSY_GPIOG, 6);
*/
work in progress here: https://github.com/x37v/libdaisy-rust/blob/xnor/is25lp/src/flash.rs
It requires a branched version of the HAL.