工具与软件:
您好!
是否有可能在 发生一定数量的中断/事件后触发 CLA 任务?
目前,我已经配置了一个 CLA 任务,以使用驱动程序库函数 CLA_setTriggerSource()在每个 SDFM 中断上自动触发
CLA_setTriggerSource(CLA_TASK_1, CLA_TRIGGER_SDFM1INT);
我想修改上述内容、以便 CLA 任务在"n"个 SDFM 中断发生后触发。 我该怎么做呢?
我正在寻找一个类似于 driverlib 函数 EPWM_setInterruptEventCount ()对 EPWM 模块所做的功能。
//***************************************************************************** // //! Sets the ePWM interrupt event counts. //! //! \param base is the base address of the EPWM module. //! \param eventCount is the event count for interrupt scale //! //! This function sets the interrupt event count that determines the number of //! events that have to occur before an interrupt is issued. //! Maximum value for eventCount is 15. //! //! \return None. // //***************************************************************************** static inline void EPWM_setInterruptEventCount(uint32_t base, uint16_t eventCount)
谢谢!