Цитата(_Артём_ @ Dec 4 2014, 20:26)

По вашему коду этого не скажешь.
А в EM0/EM1 прерывания от LETIMER-а происходят? Они вообще разрешены?
1. в коде нет конфигурции таймера но вообще это так
Код
void LETIMER_Setup(void)
{
/* Enable necessary clocks */
CMU_ClockSelectSet(cmuClock_LETIMER0, cmuSelect_LFXO);
CMU_ClockEnable(cmuClock_LETIMER0, true);
LETIMER_CompareSet(LETIMER0, 0, LOAD0);
/* Set configurations for LETIMER 0 */
const LETIMER_Init_TypeDef letimerInit =
{
.enable = true, /* Start counting when init completed. */
.debugRun = false, /* Counter shall not keep running during debug halt. - false */
.rtcComp0Enable = false, /* Don't start counting on RTC COMP0 match. */
.rtcComp1Enable = false, /* Don't start counting on RTC COMP1 match. */
.comp0Top = false, /* Load COMP0 register into CNT when counter underflows. COMP0 is used as TOP else TOP = 0xFFFF */
.bufTop = false, /* Don't load COMP1 into COMP0 when REP0 reaches 0. */
.out0Pol = 0, /* Idle value for output 0. */
.out1Pol = 0, /* Idle value for output 1. */
.ufoa0 = letimerUFOANone, /* PWM output on output 0 */
.ufoa1 = letimerUFOANone, /* Pulse output on output 1*/
.repMode = letimerRepeatFree /* Count until stopped */
};
/* Initialize LETIMER */
LETIMER_Init(LETIMER0, &letimerInit);
/* Enable underflow interrupt */
LETIMER_IntEnable(LETIMER0, LETIMER_IF_COMP0 | LETIMER_IF_UF);
/* Enable LETIMER0 interrupt vector in NVIC*/
NVIC_EnableIRQ(LETIMER0_IRQn);
}
2. разрешены до ЕМ2 включительно.
Сообщение отредактировал Jenya7 - Dec 4 2014, 15:42