[FL-1042][FL-1485][FL-1747] Metakom emulation fix (#721)

* iButton: Metakom emulation fix
* iButton: do not threat NVIC
* iButton: use proper GPIO from resources

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
SG
2021-09-24 22:16:59 +10:00
committed by GitHub
parent effda5ab44
commit c64052b491
3 changed files with 6 additions and 13 deletions

View File

@@ -54,9 +54,6 @@ void PulseSequencer::init_timer(uint32_t period) {
Error_Handler();
}
HAL_NVIC_SetPriority(TIM1_UP_TIM16_IRQn, 5, 0);
HAL_NVIC_EnableIRQ(TIM1_UP_TIM16_IRQn);
hal_gpio_init(&ibutton_gpio, GpioModeOutputOpenDrain, GpioPullNo, GpioSpeedLow);
}