2021-02-18 12:49:32 +00:00
|
|
|
#include "api-hal/api-interrupt-mgr.h"
|
|
|
|
#include <main.h>
|
|
|
|
|
|
|
|
extern void api_interrupt_call(InterruptType type, void* hw);
|
|
|
|
|
|
|
|
/* interrupts */
|
|
|
|
|
|
|
|
/* Comparator trigger event */
|
|
|
|
void HAL_COMP_TriggerCallback(COMP_HandleTypeDef* hcomp) {
|
|
|
|
api_interrupt_call(InterruptTypeComparatorTrigger, hcomp);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Timer update event */
|
|
|
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef* htim) {
|
|
|
|
api_interrupt_call(InterruptTypeTimerUpdate, htim);
|
2021-05-24 09:57:14 +00:00
|
|
|
}
|