wakedemo/buzzer.c
void buzzer_set_period(short cycles) /* buzzer clock = 2MHz.  (period of 1k results in 2kHz tone) */
{
  CCR0 = cycles;
  CCR1 = cycles >> 1;/* one half cycle */
}
/* Function to set the buzzer period */
Function to set the buzzer period
Function to set the buzzer period
void buzzer_set_period(short cycles) 
{
  CCR0 = cycles;
  CCR1 = cycles >> 1;
}
void buzzer_set_period ( short cycles ) { CCR0 = cycles ; CCR1 = cycles >> 1 ; }
Function to set the buzzer period
Function to set the buzzer period
/* buzzer clock = 2MHz.  (period of 1k results in 2kHz tone) */ /* one half cycle */