RKTK API Docs RKTK Home Repo

init_storage

Function init_storage 

Source
pub fn init_storage<const SIZE: usize>(
    flash: Peri<'static, FLASH>,
    dma: Peri<'static, AnyChannel>,
) -> impl StorageDriver
Expand description

Utility to initialize flash and initialize it as storage driver.

This function uses fixed flash area for storage: from 1MB to 3MB. If you need different area, you can create Flash and FlashSequentialMapStorage directly.