mtthw-meyer / libdaisy-rust

Hardware Abstraction Layer implementation for Daisy boards
MIT License
47 stars 17 forks source link

[Feature] Flash Memory #15

Open mtthw-meyer opened 3 years ago

mtthw-meyer commented 3 years ago

Implement QSPI for flash memory access.

mtthw-meyer commented 3 years ago

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);
*/
x37v commented 2 years ago

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

It requires a branched version of the HAL.