Hi,
芯片规格书和timer.h文件中,能够看出通用timer能够支持TIMER_TIMA_MATCH和TIMER_TIMB_MATCH中断,为什么驱动文件timer.c的函数TimerIntEnable()却没有列出TIMER_TIMA_MATCH和TIMER_TIMB_MATCH?我的库版本是1.1。
实际测试TIMER_TIMA_MATCH是正常的。
//*****************************************************************************
//
//! Enables individual timer interrupt sources.
//!
//! \param ui32Base is the base address of the timer module.
//! \param ui32IntFlags is the bit mask of the interrupt sources to be enabled.
//!
//! This function enables the indicated timer interrupt sources. Only the
//! sources that are enabled can be reflected to the processor interrupt;
//! disabled sources have no effect on the processor.
//!
//! The \e ui32IntFlags parameter must be the logical OR of any combination of
//! the following:
//!
//! - \b TIMER_CAPB_EVENT - Capture B event interrupt
//! - \b TIMER_CAPB_MATCH - Capture B match interrupt
//! - \b TIMER_TIMB_TIMEOUT - Timer B timeout interrupt
//! - \b TIMER_RTC_MATCH - RTC interrupt mask
//! - \b TIMER_CAPA_EVENT - Capture A event interrupt
//! - \b TIMER_CAPA_MATCH - Capture A match interrupt
//! - \b TIMER_TIMA_TIMEOUT - Timer A timeout interrupt
//!
//! \return None.
//
//*****************************************************************************
void
TimerIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
{
//
// Check the arguments.
//
ASSERT(_TimerBaseValid(ui32Base));
//
// Enable the specified interrupts.
//
HWREG(ui32Base + TIMER_O_IMR) |= ui32IntFlags;
}