diff options
| author | eZio Pan <[email protected]> | 2024-11-28 15:48:27 +0800 |
|---|---|---|
| committer | eZio Pan <[email protected]> | 2024-11-28 15:48:27 +0800 |
| commit | f3e674a79cc6530d8185d3ff02e6bed1d7533c11 (patch) | |
| tree | 0ee0dab6bc07bfc71927ef5a17a5333f4d778e18 /embassy-stm32/src | |
| parent | 04c1d69de9d5f0d9285015daba631aeef123b00e (diff) | |
stm32: remove redundant time-driver macro
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/time_driver.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs index 74e4d0575..88b6c48bb 100644 --- a/embassy-stm32/src/time_driver.rs +++ b/embassy-stm32/src/time_driver.rs | |||
| @@ -75,14 +75,6 @@ foreach_interrupt! { | |||
| 75 | DRIVER.on_interrupt() | 75 | DRIVER.on_interrupt() |
| 76 | } | 76 | } |
| 77 | }; | 77 | }; |
| 78 | (TIM1, timer, $block:ident, CC, $irq:ident) => { | ||
| 79 | #[cfg(time_driver_tim1)] | ||
| 80 | #[cfg(feature = "rt")] | ||
| 81 | #[interrupt] | ||
| 82 | fn $irq() { | ||
| 83 | DRIVER.on_interrupt() | ||
| 84 | } | ||
| 85 | }; | ||
| 86 | (TIM2, timer, $block:ident, CC, $irq:ident) => { | 78 | (TIM2, timer, $block:ident, CC, $irq:ident) => { |
| 87 | #[cfg(time_driver_tim2)] | 79 | #[cfg(time_driver_tim2)] |
| 88 | #[cfg(feature = "rt")] | 80 | #[cfg(feature = "rt")] |
| @@ -123,14 +115,6 @@ foreach_interrupt! { | |||
| 123 | DRIVER.on_interrupt() | 115 | DRIVER.on_interrupt() |
| 124 | } | 116 | } |
| 125 | }; | 117 | }; |
| 126 | (TIM8, timer, $block:ident, CC, $irq:ident) => { | ||
| 127 | #[cfg(time_driver_tim8)] | ||
| 128 | #[cfg(feature = "rt")] | ||
| 129 | #[interrupt] | ||
| 130 | fn $irq() { | ||
| 131 | DRIVER.on_interrupt() | ||
| 132 | } | ||
| 133 | }; | ||
| 134 | (TIM9, timer, $block:ident, CC, $irq:ident) => { | 118 | (TIM9, timer, $block:ident, CC, $irq:ident) => { |
| 135 | #[cfg(time_driver_tim9)] | 119 | #[cfg(time_driver_tim9)] |
| 136 | #[cfg(feature = "rt")] | 120 | #[cfg(feature = "rt")] |
| @@ -163,14 +147,6 @@ foreach_interrupt! { | |||
| 163 | DRIVER.on_interrupt() | 147 | DRIVER.on_interrupt() |
| 164 | } | 148 | } |
| 165 | }; | 149 | }; |
| 166 | (TIM20, timer, $block:ident, CC, $irq:ident) => { | ||
| 167 | #[cfg(time_driver_tim20)] | ||
| 168 | #[cfg(feature = "rt")] | ||
| 169 | #[interrupt] | ||
| 170 | fn $irq() { | ||
| 171 | DRIVER.on_interrupt() | ||
| 172 | } | ||
| 173 | }; | ||
| 174 | (TIM21, timer, $block:ident, CC, $irq:ident) => { | 150 | (TIM21, timer, $block:ident, CC, $irq:ident) => { |
| 175 | #[cfg(time_driver_tim21)] | 151 | #[cfg(time_driver_tim21)] |
| 176 | #[cfg(feature = "rt")] | 152 | #[cfg(feature = "rt")] |
