diff options
| author | Matous Hybl <[email protected]> | 2021-12-02 18:07:05 +0100 |
|---|---|---|
| committer | Matous Hybl <[email protected]> | 2021-12-02 18:07:05 +0100 |
| commit | 6e0eb33ea8ee85bbf11778796d5717b90076a3ac (patch) | |
| tree | 66e3433a9c34d711b7cadb2afd532bf2638418af | |
| parent | 2d620df9d67653f9c2bb80670795061f95094f62 (diff) | |
Downcast timer to GP16 for time drivers.
| -rw-r--r-- | embassy-stm32/src/time_driver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs index 4e1eb7aaa..d20929e17 100644 --- a/embassy-stm32/src/time_driver.rs +++ b/embassy-stm32/src/time_driver.rs | |||
| @@ -295,7 +295,7 @@ macro_rules! impl_timer { | |||
| 295 | type Interrupt = crate::interrupt::$inst; | 295 | type Interrupt = crate::interrupt::$inst; |
| 296 | 296 | ||
| 297 | fn regs() -> TimGp16 { | 297 | fn regs() -> TimGp16 { |
| 298 | crate::pac::$inst | 298 | crate::pac::timer::TimGp16(crate::pac::$inst.0) |
| 299 | } | 299 | } |
| 300 | } | 300 | } |
| 301 | 301 | ||
