rp/timer: add

This commit is contained in:
Dario Nieuwenhuis
2021-07-12 02:45:42 +02:00
parent c210a6efd1
commit 7547c8d8d6
6 changed files with 207 additions and 4 deletions

View File

@ -4,6 +4,7 @@ use crate::{pac, reset};
const XOSC_MHZ: u32 = 12;
/// safety: must be called exactly once at bootup
pub unsafe fn init() {
// Reset everything except:
// - QSPI (we're using it to run this code!)