api-interrupts.c 380 B

12345678910111213
  1. #include "api-hal/api-interrupt-mgr.h"
  2. #include <main.h>
  3. extern void api_interrupt_call(InterruptType type, void* hw);
  4. /* interrupts */
  5. void HAL_COMP_TriggerCallback(COMP_HandleTypeDef* hcomp) {
  6. api_interrupt_call(InterruptTypeComparatorTrigger, hcomp);
  7. }
  8. void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef* htim) {
  9. api_interrupt_call(InterruptTypeTimerCapture, htim);
  10. }