Skip to content

Commit d2d9dfc

Browse files
committed
stmhal: Remove obsolete code for special handling of TIM3 irq settings.
TIM3 is no longer special, or at least does not have special IRQ settings.
1 parent c6983e3 commit d2d9dfc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

stmhal/irq.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_irq_stats_obj);
126126
#define IRQ_PRI_OTG_HS 6
127127
#define IRQ_SUBPRI_OTG_HS 0
128128

129-
#define IRQ_PRI_TIM3 6
130-
#define IRQ_SUBPRI_TIM3 0
131-
132129
#define IRQ_PRI_TIM5 6
133130
#define IRQ_SUBPRI_TIM5 0
134131

stmhal/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ STATIC mp_obj_t pyb_timer_init_helper(pyb_timer_obj_t *self, mp_uint_t n_args, c
601601
}
602602

603603
// set IRQ priority (if not a special timer)
604-
if (self->tim_id != 3 && self->tim_id != 5) {
604+
if (self->tim_id != 5) {
605605
HAL_NVIC_SetPriority(self->irqn, IRQ_PRI_TIMX, IRQ_SUBPRI_TIMX);
606606
if (self->tim_id == 1) {
607607
HAL_NVIC_SetPriority(TIM1_CC_IRQn, IRQ_PRI_TIMX, IRQ_SUBPRI_TIMX);

0 commit comments

Comments
 (0)