Timer 0

Functions

void timer0_config (uint8_t config)
void timer0_enable (void)
void timer0_disable (void)
uint8_t timer0_read (void)
void timer0_set (uint8_t val)

Function Documentation

void timer0_config ( uint8_t  config  ) 

Determine the clock source for timer 0

Parameters:
config One of:
TIMER0_NOCLK: no input clock
TIMER0_NOPRE: No prescalar
TIMER0_PRE_8: Prescalar of 8
TIMER0_PRE_64: Prescalar of 64
TIMER0_PRE_256: Prescalar of 256
TIMER0_PRE_1024: Prescalar of 1024
TIMER0_EXT_FALLING: Count on falling edge of external pin T0
TIMER0_EXT_RISING: Count on rising edge of external pin T0
Author:
Andrew H. Fagg
void timer0_disable ( void   )  [inline]

Disable the timer 0 overflow interrupt.

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

Enable the timer 0 overflow interrupt.

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

Read the state of the timer 0 counter

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

Set the state of the timer 0 counter

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