Timer 2

Functions

void timer2_config (uint8_t config)
void timer2_enable (void)
void timer2_disable (void)
uint8_t timer2_read (void)
void timer2_set (uint8_t val)

Function Documentation

void timer2_config ( uint8_t  config  ) 

Determine the clock source for timer 2

Parameters:
config One of:
TIMER2_NOCLK: no input clock
TIMER2_NOPRE: No prescalar
TIMER2_PRE_8: Prescalar of 8
TIMER2_PRE_32: Prescalar of 32
TIMER2_PRE_64: Prescalar of 64
TIMER2_PRE_128: Prescalar of 128
TIMER2_PRE_256: Prescalar of 256
TIMER2_PRE_1024: Prescalar of 1024
Author:
Andrew H. Fagg
void timer2_disable ( void   )  [inline]

Disable the timer 2 overflow interrupt.

Author:
Andrew H. Fagg
void timer2_enable ( void   )  [inline]

Enable the timer 2 overflow interrupt.

Author:
Andrew H. Fagg
uint8_t timer2_read ( void   )  [inline]

Read the state of the timer 2 counter

Returns:
The current state of the timer 2 counter
Author:
Andrew H. Fagg
void timer2_set ( uint8_t  val  )  [inline]

Set the state of the timer 2 counter

Parameters:
val The new value of the timer 2 counter.
Author:
Andrew H. Fagg
Generated on Tue Feb 14 00:23:58 2012 for OU Atmel Utilities Library by  doxygen 1.6.3