Downcast timer to GP16 for time drivers.
This commit is contained in:
parent
2d620df9d6
commit
6e0eb33ea8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue