diff options
author | Damien George <damien.p.george@gmail.com> | 2016-08-22 12:24:49 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-08-22 12:24:49 +1000 |
commit | d2d9dfcd40caafa99177ca36bd3e3faf52ee05b3 (patch) | |
tree | 3465e2161ccb3eb45c252989ea14b4634af4e604 /stmhal/timer.c | |
parent | c6983e3ce0bb9708afabb9fb7cbdf54ba46fb594 (diff) | |
download | micropython-d2d9dfcd40caafa99177ca36bd3e3faf52ee05b3.tar.gz micropython-d2d9dfcd40caafa99177ca36bd3e3faf52ee05b3.zip |
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.
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r-- | stmhal/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c index e8b29eb97f..5727a95b73 100644 --- a/stmhal/timer.c +++ b/stmhal/timer.c @@ -601,7 +601,7 @@ STATIC mp_obj_t pyb_timer_init_helper(pyb_timer_obj_t *self, mp_uint_t n_args, c } // set IRQ priority (if not a special timer) - if (self->tim_id != 3 && self->tim_id != 5) { + if (self->tim_id != 5) { HAL_NVIC_SetPriority(self->irqn, IRQ_PRI_TIMX, IRQ_SUBPRI_TIMX); if (self->tim_id == 1) { HAL_NVIC_SetPriority(TIM1_CC_IRQn, IRQ_PRI_TIMX, IRQ_SUBPRI_TIMX); |