515: Downcast timer to GP16 for time drivers. r=lulf a=matoushybl



Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
bors[bot] 2021-12-02 17:13:55 +00:00 committed by GitHub
commit df9a41c3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,7 @@ macro_rules! impl_timer {
type Interrupt = crate::interrupt::$inst; type Interrupt = crate::interrupt::$inst;
fn regs() -> TimGp16 { fn regs() -> TimGp16 {
crate::pac::$inst crate::pac::timer::TimGp16(crate::pac::$inst.0)
} }
} }