mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 23:14:20 +00:00
IRDA: fix NVIC setup (#592)
LF-RFID uses HAL functions to deinit TIM2, which also disables NVIC for TIM2. Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
f25d000d53
commit
b886ae17b6
1 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,9 @@ void api_hal_irda_rx_irq_init(void) {
|
|||
|
||||
LL_TIM_SetCounter(TIM2, 0);
|
||||
LL_TIM_EnableCounter(TIM2);
|
||||
|
||||
NVIC_SetPriority(TIM2_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(),5, 0));
|
||||
NVIC_EnableIRQ(TIM2_IRQn);
|
||||
}
|
||||
|
||||
void api_hal_irda_rx_irq_deinit(void) {
|
||||
|
|
Loading…
Reference in a new issue