libdaisy-rust icon indicating copy to clipboard operation
libdaisy-rust copied to clipboard

[Feature] Flash Memory

Open mtthw-meyer opened this issue 3 years ago • 2 comments

Implement QSPI for flash memory access.

mtthw-meyer avatar Mar 31 '21 02:03 mtthw-meyer

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);
*/

mtthw-meyer avatar Apr 07 '21 03:04 mtthw-meyer

work in progress here: https://github.com/x37v/libdaisy-rust/blob/xnor/is25lp/src/flash.rs

It requires a branched version of the HAL.

x37v avatar Jul 12 '21 15:07 x37v