summaryrefslogtreecommitdiff
path: root/src/class
AgeCommit message (Collapse)Author
2021-04-30Change read infos to pointer typeReinhard Panhuber
2021-04-29Fix typo and clean up resetJeremiah McCarthy
2021-04-28temporarily fix include recusrive loophathach
2021-04-26add TUP_MCU_STRICT_ALIGN macro that manually pick bytes for lpc55 port1 that ↵hathach
is m4 but cannot unaligned acces on usb ram
2021-04-23Change tu_fifo_get_linear_write/read_info() to return a structReinhard Panhuber
Compilers always complain that variables set by function via pointer might be uninitialized so to avoid that return values are now delivered via struct.
2021-04-23Init len_wrap = 0 to fix compiler complains.Reinhard Panhuber
2021-04-23Fix include path in audio_device.hReinhard Panhuber
2021-04-23Implement functions to allow for DMA usage in audio driver.Reinhard Panhuber
- Add tud_audio_n_get_ep_out_ff(), tud_audio_n_get_ep_in_ff(), tud_audio_n_get_rx_support_ff(), and tud_audio_n_get_tx_support_ff() - Change get_linear_read/write_info() to return linear and wrapped part at once - Adjusted affected code in audio_device.c and tested with audio_4_channel.
2021-04-22Removes polltimeout behaviour and restructuresJeremiah McCarthy
Moves dfu_req_dnload_reply to ACK stage of a DNREQUEST. Removes unneeded variables due to other simplifications.
2021-04-22Fix statte check on DATA stageJeremiah McCarthy
2021-04-22Remove custom status description tableJeremiah McCarthy
2021-04-22Add constJeremiah McCarthy
2021-04-22Remove uunused codeJeremiah McCarthy
2021-04-22Remove usb reset callbackJeremiah McCarthy
2021-04-22Remove nonstd behaviourJeremiah McCarthy
2021-04-22Move debug from .h to .cJeremiah McCarthy
2021-04-22Replace dfu_mode with dfuJeremiah McCarthy
2021-04-21Remove unnecessary volatile and short audio function index to func_idReinhard Panhuber
2021-04-20Clean up old depracted and misleading variable namesReinhard Panhuber
2021-04-20Refactor static function for better performanceReinhard Panhuber
2021-04-20Fix pointer alt_setting to be cleared when driver gets initializedReinhard Panhuber
2021-04-14Improve user feedback in case of wrong configuration of audio driverReinhard Panhuber
2021-04-12Remove DFU mode and rtJeremiah McCarthy
2021-04-08Fix defines in audio_device.cReinhard Panhuber
2021-04-08Remove depracted defines in audio_device.cReinhard Panhuber
2021-04-07Resolve gcc warnings for no parameter functionsJeremiah McCarthy
2021-04-07Revise per initial commentsJeremiah McCarthy
Returns the RT driver to the function state of previous iteration, which did not support the will_detach. Behavior should be fine without this feature. This removes much of the added bloat to track state, and handle requests in the APP_DETACH state which is no longer required. Removes the optional bloat added to the RT driver, such as responding to GETSTATE requests. Fixes the DFU Mode to extract the attr bits from the functional descriptor when opened. Fixes some incorrect bitwise if checks. Also, updates some naming of functions to be consistent with the rest of the library.
2021-04-07Optimize encode/decode - refactor unnecessary repetitive divisionReinhard Panhuber
2021-04-06minor clean uphathach
2021-04-06code formathathach
2021-04-05Add DFU runtime and mode "class"Jeremiah McCarthy
With the runtime and mode portions in separate classes, a single application should only be building with one or the other enabled. In some applications both might be desired at build time. The CFG_TUD_DFU_RUNTIME_AND_MODE option creates a DFU class, which asks the application which mode to initialize to. This allows a runtime change between RT and DFU mode, by just reinitializing tusb.
2021-04-05Remove unreachable callbackJeremiah McCarthy
2021-04-05Fix bug during initialization of DFU ModeJeremiah McCarthy
2021-04-05Separate DFU RT and Mode. UntestedJeremiah McCarthy
2021-04-06fix buildhathach
2021-04-06audio driver only use USE_LINEAR_BUFFER = 0 for stm32 synopsys driverhathach
2021-04-05Fix incorrect DNLOAD request len passed to appJeremiah McCarthy
Fixes bug where the app callback was getting the length of the status request transfer rather than the length of the data stage payload. TODO: Right now this returns the expected length, when it really should be returning the transfer length.
2021-04-03Fix wrong read mutexes in audio_device.cReinhard Panhuber
2021-04-03Fix wrong pointer type in audio_device.cReinhard Panhuber
2021-04-03Fix potential bug in support FIFO sizesReinhard Panhuber
2021-04-03Add missing #defines in uac2_headset exampleReinhard Panhuber
2021-04-03Fix error in #defines in uac2_headsetReinhard Panhuber
2021-04-03Fix #define error in audio_device.hReinhard Panhuber
2021-04-03Fix #define error in audio_device.hReinhard Panhuber
2021-04-03Fix #define errors in audio_device.hReinhard Panhuber
2021-04-03Merge remote-tracking branch 'upstream/master' into edpt_ISO_xferReinhard Panhuber
2021-04-03Generalize audio driver for 3 audio functions plus a lot more.Reinhard Panhuber
- Audio format and parameters are parsed from descriptors thus user no longer needs to give them explicitely - Tested for 4 channel software type I PCM encoding with 16 bit with 1 channel per FIFO and 2 channels per FIFO (this is I2S specific)
2021-04-02Merge pull request #766 from hathach/enhance-midiHa Thach
Enhance midi
2021-04-02correct midi stream read behavior to read until user buffer is full or no ↵hathach
more data from usb fifo
2021-04-02refactor midi read buffer to streamhathach