// // Created by cfif on 17.11.22. // #ifndef PWM_CAPTURE_FLAGCHIP_H #define PWM_CAPTURE_FLAGCHIP_H #include "PwmIO.h" #include "cmsis_os2.h" #include "fc7xxx_driver_tpu.h" #include "interrupt_manager.h" typedef struct { TPU_InterruptCfgType etpu_Int_config_tbl; TPU_CaptureCfgType etpu_captureconfig_tbl; uint8_t TPU_CAPTURE_CHANNEL; } tPwmCaptureFlagchip; void PWM_Capture_Initial( tPwmCaptureFlagchip *env, uint32_t PeriodTime, uint32_t ActiveTime, uint8_t TPU_CAPTURE_CHANNEL, uint8 TPU0_CH_PRIORITY, TPU_EventCallbackType Bsp_Tpu_PwmCallback, TPU_TCR1OverflowCallbackType Bsp_Tpu_OverflowCallBack); tPwmIO vPwmCaptureGetIo(tPwmCaptureFlagchip *env); void Get_Set_Tpu_PwmCaptureCallback(tPwmCaptureFlagchip *env); #endif //PWM_CAPTURE_FLAGCHIP_H