1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//! (TODO) Flash Memory Controller (FMC)

// this module maybe used in on-air firmware update programs (OTA)
// or store user defined important data
use crate::pac::FMC;

#[doc(hidden)] // not finished
pub struct Fmc {
    fmc: FMC,
}

impl Fmc {
    pub fn new(fmc: FMC) -> Self {
        Fmc { fmc }
    }

    pub fn free(self) -> FMC {
        self.fmc
    }
}