projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
AudioInput
/
AudioInput.h
diff --git
a/Demos/Device/ClassDriver/AudioInput/AudioInput.h
b/Demos/Device/ClassDriver/AudioInput/AudioInput.h
index
ddb6430
..
dc3475e
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioInput/AudioInput.h
+++ b/
Demos/Device/ClassDriver/AudioInput/AudioInput.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
@@
-52,6
+53,9
@@
/* Macros: */
\r
/** ADC channel number for the microphone input. */
\r
#define MIC_IN_ADC_CHANNEL 2
\r
/* Macros: */
\r
/** ADC channel number for the microphone input. */
\r
#define MIC_IN_ADC_CHANNEL 2
\r
+
\r
+ /** ADC channel MUX mask for the microphone input. */
\r
+ #define MIC_IN_ADC_MUX_MASK ADC_CHANNEL2
\r
\r
/** Maximum ADC sample value for the microphone input. */
\r
#define SAMPLE_MAX_RANGE 0xFFFF
\r
\r
/** Maximum ADC sample value for the microphone input. */
\r
#define SAMPLE_MAX_RANGE 0xFFFF
\r