diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-02 17:13:55 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-02 17:13:55 +0000 |
| commit | df9a41c3eb2871e1c0a2ef0a6bd930f4c33179cb (patch) | |
| tree | 9ee4f20f0bba00b9c1dea9531ff2baa16297a274 | |
| parent | 51c26a7d05b484cbf574b673db8abb91ecb70f1c (diff) | |
| parent | 6e0eb33ea8ee85bbf11778796d5717b90076a3ac (diff) | |
Merge #515
515: Downcast timer to GP16 for time drivers. r=lulf a=matoushybl
Co-authored-by: Matous Hybl <[email protected]>
| -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 | ||
