Skip to content

Commit 75dd240

Browse files
committed
drv/motor: remove extraneous interrupt disable
On Move hub, this was moved to the counter driver and no longer belongs in the motor driver. On the City hub, this is not used at all and was probably copied from the Move hub.
1 parent 16bdb65 commit 75dd240

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/pbio/drv/city_hub/motor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ void _pbdrv_motor_deinit(void) {
205205
GPIOC->BRR = GPIO_BRR_BR_7;
206206
GPIOC->MODER = (GPIOC->MODER & ~GPIO_MODER_MODER9_Msk) | (1 << GPIO_MODER_MODER9_Pos);
207207
GPIOC->BRR = GPIO_BRR_BR_9;
208-
209-
// disable tacho irq
210-
NVIC_DisableIRQ(EXTI0_1_IRQn);
211208
}
212209
#endif
213210

lib/pbio/drv/move_hub/motor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,6 @@ void _pbdrv_motor_deinit(void) {
322322
GPIOC->BRR = GPIO_BRR_BR_7;
323323
GPIOC->MODER = (GPIOC->MODER & ~GPIO_MODER_MODER9_Msk) | (1 << GPIO_MODER_MODER9_Pos);
324324
GPIOC->BRR = GPIO_BRR_BR_9;
325-
326-
// disable tacho irq
327-
NVIC_DisableIRQ(EXTI0_1_IRQn);
328325
}
329326
#endif
330327

0 commit comments

Comments
 (0)