1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
//! Power management module

use msp430fr2355::PMM;

/// PMM type
pub struct Pmm(());

impl Pmm {
    /// Sets the LOCKLPM5 bit and returns a `Pmm`
    pub fn new(pmm: PMM) -> Pmm {
        pmm.pm5ctl0.write(|w| w.locklpm5().locklpm5_0());
        Pmm(())
    }
}