aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
AgeCommit message (Collapse)Author
2012-06-09Spell check source code, fix mistakes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2322 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-04-14Reintegrate the FullEPAddresses development branch into trunk.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2155 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-03-14Audio Device Class driver changed to also require the index of the Audio ↵Dean
Control interface within the device, for SET/GET/CUR/MIN/MAX/RES property adjustments. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2110 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-03-07Fix incorrect Doxygen references in the Audio Input/Output ClassDriver demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2088 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-01-28Added new CALLBACK_Audio_Device_GetSetInterfaceProperty() callback to the ↵Dean
Audio Device Class driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2012 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-19Removed the ENDPOINT_DESCRIPTOR_DIR_* macros in favour of the shorter ↵Dean
ENDPOINT_DIR_* macros, which can now be used with both Endpoint_ConfigureEndpoint() and in the device descriptors. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1895 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-29Update AudioInput and AudioOutput Class Driver device mode demos to use a ↵Dean
switch statement when selecting the audio request type for clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1830 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-16Rename new Audio class driver functions, callbacks and events to ensure that ↵Dean
they contain the USB mode (Device or Host) in the function names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1803 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-14Fix Doxygen documentation errors.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1802 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-09Add new Audio Class Driver Host demos.Dean
Fix errors in the new Audio Host mode Class Driver, which would have prevented data from being sent or received properly by the device. Add microphone/square wave generation compile time switch to the Low Level AudioOutput Host demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1794 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-07Fix errors in the Audio device demos and class driver regarding multiple ↵Dean
sample frequency support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1787 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-06Update the Low Level Audio Input and Audio Output demos to support multiple ↵Dean
sample rates. Remove custom PIDs on the Class Driver Audio device demos and revert back to the original Audio PIDs, as the low level and class driver demo versions are now descriptor compatible once again. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1783 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-03Added new callback to the Audio Class driver to allow for endpoint control ↵Dean
manipulations such as data sample rates. Modified the Class Driver AudioInput and AudioOutput demos to support multiple sample rates. Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed. Fix broken LowLevel audio demo descriptors. Minor documentation fixes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1779 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-10Add static keyword to all project globals whose scope should be restricted ↵Dean
to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1661 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-08Added board hardware driver support for the Adafruit U4 breakout board.Dean
Fixed calculation of timer register reload values derived from F_CPU; must subtract one from the division result for the compare value to be correct. Change AVRISP-MKII rescue clock speed to 4MHz to ensure that a 125KHz ISP speed works regardless of the target's fuses (i.e. DIV8 set). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1559 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-05Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean
EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1556 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-26Changed AudioInput and AudioOutput demos to reload the next sample via an ↵Dean
interrupt rather than polling the sample timer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1539 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-09Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean
use inlined or function called versions depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing with basic code. Changed over all device demos to use a clearer algorithm for the configuring of the application's endpoints. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1438 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-29Spell check all source files once again to find any typos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1420 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-12Minor fixes to demos to add in some missing comments, printf() formatting. ↵Dean
Make incomplete Bluetooth demo indicate connections visually via the board LEDs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1329 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean
be done in the user application once all init code has run. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1219 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-12Make Audio device demos compatible with AVRs running at 16MHz instead of 8MHz.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@865 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-04Fix broken Endpoint/Pipe stream templates.Dean
Simplify AudioOutput demos, to reduce the number of cycles needed to process each incomming sample. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@859 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-03Changed Audio Class driver sample read/write functions to be inline, to ↵Dean
reduce the number of cycles needed to transfer samples to and from the device (allowing more time for processing and output). Fixed ClassDriver AudioOutput demo not selecting an audio output mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@857 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-02Make both LowLevel and ClassDriver AudioOutput demos always output to board ↵Dean
LEDs, regardless of output mode (removed AUDIO_OUT_LEDS compile time option from the demo). This allows for positive feedback to the user of audio activity regardless of output mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@711 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-30Fix incorrect configuration in the ClassDriver AudioOutput demo.Dean
Make all audio device Class Driver functions require a reference to the Audio class instance, so that the endpoint size can be checked (and to standardize the APIs). Make LEDs more responsive in the AudioOutput device demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@702 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-28Change project makefiles so that the current target settings and not just ↵Dean
the board selection is printed during the build process. Fix warning in AudioOutput demos when AUDIO_OUT_STEREO output mode is selected. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@694 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-28Changed AudioOutput demos to explicitly use timer 3 - the smaller USB AVRs ↵Dean
where timer 1 was needed instead did not have the endpoint size neccesary for good audio throughput anyway. Fix Benito documentation indicating erronously that the project used the HID USB class instead of the CDC class. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@690 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27State information for class drivers is now zeroed out during enumeration ↵Dean
(both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@689 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Break device mode class driver interfaces into seperate config and state ↵Dean
structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@609 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-11Changed to new device mode Class Driver function name prefixes to make way ↵Dean
for similar host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@591 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-11Some minor whitespace corrections.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@590 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-05Move new Class Driver powered demos to a new ClassDriver subdirectory, ↵Dean
re-add old low level demos to a LowLevel subdirectory. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@572 d5102386-fcda-11dd-9fdb-3debd5008f28