X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/0bf5064aec5ac43ba2b25d44528bebb27db2f117..1f1d0710f379a8b08ef646cbadb63d92c35e47fb:/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h?ds=inline diff --git a/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h b/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h index 4772bb3ea..b151f2283 100644 --- a/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h +++ b/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h @@ -48,12 +48,25 @@ #include #include #include + #include #include #include #include "ConfigDescriptor.h" /* Macros: */ + /** ADC channel number for the microphone input. */ + #define MIC_IN_ADC_CHANNEL 2 + + /** ADC channel MUX mask for the microphone input. */ + #define MIC_IN_ADC_MUX_MASK ADC_CHANNEL2 + + /** Maximum audio sample value for the microphone input. */ + #define SAMPLE_MAX_RANGE 0xFFFF + + /** Maximum ADC range for the microphone input. */ + #define ADC_MAX_RANGE 0x3FF + /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ #define LEDMASK_USB_NOTREADY LEDS_LED1