diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-10-12 05:59:55 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-10-12 05:59:55 +0000 |
commit | dc68de15b69c2064b1b14d00659aa91054cccbe1 (patch) | |
tree | 36e3ac322537017ae61ae9d70ba56efddad8fc02 /Demos/Device/ClassDriver/AudioInput | |
parent | be9d0a5aa97c84cc8723f69f2b88576965e386aa (diff) | |
download | lufa-dc68de15b69c2064b1b14d00659aa91054cccbe1.tar.gz lufa-dc68de15b69c2064b1b14d00659aa91054cccbe1.tar.bz2 lufa-dc68de15b69c2064b1b14d00659aa91054cccbe1.zip |
Make Audio device demos compatible with AVRs running at 16MHz instead of 8MHz.
Fix up demo documentation device compatibility list to be as general as possible to reduce changes required as Atmel releases more devices within the same USB AVR series.
Diffstat (limited to 'Demos/Device/ClassDriver/AudioInput')
-rw-r--r-- | Demos/Device/ClassDriver/AudioInput/AudioInput.c | 4 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/AudioInput/AudioInput.txt | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.c b/Demos/Device/ClassDriver/AudioInput/AudioInput.c index 3aa26ae85..cf9d3b47e 100644 --- a/Demos/Device/ClassDriver/AudioInput/AudioInput.c +++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.c @@ -117,9 +117,9 @@ void EVENT_USB_Device_Connect(void) LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
/* Sample reload timer initialization */
- OCR0A = (F_CPU / AUDIO_SAMPLE_FREQUENCY) - 1;
+ OCR0A = (F_CPU / 8 / AUDIO_SAMPLE_FREQUENCY) - 1;
TCCR0A = (1 << WGM01); // CTC mode
- TCCR0B = (1 << CS00); // Fcpu speed
+ TCCR0B = (1 << CS01); // Fcpu/8 speed
}
/** Event handler for the library USB Disconnection event. */
diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.txt b/Demos/Device/ClassDriver/AudioInput/AudioInput.txt index b6649cca0..585faec1b 100644 --- a/Demos/Device/ClassDriver/AudioInput/AudioInput.txt +++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.txt @@ -8,13 +8,11 @@ *
* \section SSec_Compat Demo Compatibility:
*
- * The following table indicates what microcontrollers are compatible with this demo.
+ * The following list indicates what microcontrollers are compatible with this demo.
*
- * - AT90USB1287
- * - AT90USB1286
- * - AT90USB647
- * - AT90USB646
- * - ATMEGA32U6
+ * - Series 7 USB AVRs
+ * - Series 6 USB AVRs
+ * - Series 4 USB AVRs
*
* \section SSec_Info USB Information:
*
|