Esempio n. 1
0
void bsp_tick_timer_stop(void)
{
    // Disable the interrupt and timer
    TIMER_Enable(TIMER0, false);
    TIMER_IntDisable(TIMER0, TIMER_IF_OF);
    NVIC_DisableIRQ(TIMER0_IRQn);
}
Esempio n. 2
0
void us_ticker_set_interrupt(timestamp_t timestamp)
{
    TIMER_IntDisable(US_TICKER_TIMER, TIMER_IEN_CC0);

    TIMER_IntClear(US_TICKER_TIMER, TIMER_IEN_CC0);

    TIMER_CompareSet(US_TICKER_TIMER, 0, timestamp);

    TIMER_IntEnable(US_TICKER_TIMER, TIMER_IEN_CC0);
}
Esempio n. 3
0
void TIMER0_IRQHandler(void)
{
  /* Clear flag for TIMER0 overflow interrupt */
  TIMER_IntClear(TIMER0, TIMER_IF_OF);

  /* If the total transfer has not finished, send a request for another
   * transfer */
  if (flashTransferActive)
  {
    /* Manual software request to DMA channel 0 */
    DMA->CHSWREQ = DMA_CHSWREQ_CH0SWREQ;

    /* Output the buffer */
    SegmentLCD_Write(ramBuffer);
  }
  else
  {
    /* The transfer has completed, no more need for the interrupt */
    TIMER_IntDisable(TIMER0, TIMER_IEN_OF);
  }
}
Esempio n. 4
0
void us_ticker_disable_interrupt(void)
{
    /* Disable compare channel interrupts */
    TIMER_IntDisable(US_TICKER_TIMER, TIMER_IEN_CC0);
}
Esempio n. 5
0
void timerTurnOff(void)
{
	TIMER_IntDisable(TIMER0, TIMER_IF_OF);
}