xmc4-hal 0.5.7

Peripheral access API for XMC4 series microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![no_main]
#![no_std]

extern crate panic_semihosting;
use cortex_m_rt::entry;
use hal::pac;
use xmc4_hal as hal;

#[entry]
fn main() -> ! {
    let p = pac::Peripherals::take().unwrap();
    let watchdog = hal::wdt::Wdt::new(p.WDT, hal::scu::Scu::new());
    watchdog.start();
    loop {
        continue;
    }
}