CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches

◆ TIMER1_setup()

void TIMER1_setup ( void  )

Use of timer0 as an endless counter.

Returns
No Parameters
158void TIMER1_setup(void){
159 LPC_SC->PCONP |= 2; //Acensione timer1 (\'e gi\'a acceso, ma per sicurezza)
160 LPC_SC->PCLKSEL0 |= 1 << 4; //Clock = a quello della cpu
161 LPC_TIM1->PR = SystemCoreClock / TIMER0_freqeunza ; // 1 contenggio ogni 100 micros
162// LPC_TIM1 -> MCR |= TIM0_MR0I | TIM0_MR0S | TIM0_MR0R ; //Interrupt + reset conteggio e stop
163 TIMER1_start_conteggio
164}
void TIMER1_setup(void)
Use of timer0 as an endless counter.
Definition: Timer.c:158

Definition at line 158 of file Timer.c.