msp430fr247x-hal 0.1.1

Implementation of embedded-hal for microcontrollers MSP430FR2475 and MSP430FR2476
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Power management module

use msp430fr247x::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(())
    }
}