summaryrefslogtreecommitdiff
path: root/examples/device
AgeCommit message (Collapse)Author
2022-09-13Don't assume different enum types can be combinedBen Avison
IAR generates warning Pa089 'enumerated type mixed with another enumerated type'.
2022-09-13Don't assume ints automatically convert to enumsBen Avison
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-09-13Remove unreachable codeBen Avison
IAR generates warning Pe111 'statement is unreachable'. In a couple of cases, replace return statements with TU_ATTR_FALLTHROUGH; because some compilers apparently can't figure out that the return statements are unreachable but do whinge about an imagined fall-through without them!
2022-09-12IAR declares strncasecmp in string.h not strings.hBen Avison
strings.h is not an ISO header file, so IAR generates fatal error Pe1696 'cannot open source file "strings.h"'. Even though strncasecmp isn't an ISO C library function, IAR's runtime library defines it, though it declares it in string.h instead.
2022-08-23Remove Hardcoded interface numbers from video descriptorsAhmed El-Sharnoby
Removing the Hardcoded interface numbers from the video descriptors allow the user to add other interfaces before or after the Video Control Interface and Video Streaming Interface
2022-08-03add 'stm32l052dap52' (STM32L052K8 MCU) board targetPeter Lawrence
'dap52' is Olimex's name of their STM32L052-based fork of 'dap42'
2022-07-19Merge pull request #1568 from hathach/revert-hid-callback-len-temporarilyHa Thach
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() 0.14.0 release
2022-07-18Merge pull request #1531 from pigrew/usbtmc_highspeedHa Thach
USBTMC: Fixes and support for high-speed USB
2022-07-17temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for ↵hathach
up coming release
2022-07-12RP@040: rework CMake for compiler warningsgraham sanderson
2022-07-12minor update to webusb serial examplehathach
2022-06-29Merge pull request #1539 from hathach/improve-ciHa Thach
Improve ci
2022-06-29fix end symbol for samx7x and same5xhathach
2022-06-29skip freertos example for F1C100Shathach
2022-06-28update rp2040 warningshathach
- remove "-Wno-stringop-overflow -Wno-array-bounds" - skip -Wconversion for gcc 9 and prior - suppress_tinyusb_warnings only when building with gcc 9 and below
2022-06-28Merge branch 'master' into rp2040_warninghathach
2022-06-27rework suppress_tinyusb_warningsgraham sanderson
* gcc 9.2.1 has some spurious -Wconversion warnings * cmake 3.18 and above require set_target_properties to be added from the target directory (so added it to all examples) * fixed a few warnings in a couple of examples
2022-06-27suppress error with net examplehathach
2022-06-27prevent error on specific warnings for net lwip & dual example for rp2040hathach
2022-06-27fix all device examples warningshathach
2022-06-27Merge branch 'master' into add-more-warningshathach
2022-06-27change report len in hid API from uint8_t to uint16_thathach
since HS interrupt endpoint can be up to 1024, 8-bit is not enough. affected APIs are: - tud_hid_n_report() / tud_hid_report() - tud_hid_report_complete_cb()
2022-06-27fix most warnings with rp2040 -wconversionhathach
2022-06-24USBTMC: Update test python code to use the new pyvisa namespace, and other ↵NConrad
misc fixes
2022-06-24suppress redundant-decls warnings for freertos exampleshathach
2022-06-24add more warning option, also fix -Wconversion with rp2040hathach
-Wuninitialized, -Wunused, -Wredundant-decls
2022-06-21Update USBTMC descriptors to support high speed, set USB version to 2.0.0 ↵NConrad
for all cases.
2022-06-17correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc ↵hathach
exmaples
2022-06-06more example updatehathach
2022-06-06clean up example to use CFG_TUD_ENABLED + CFG_TUD_MAX_SPEED instead of ↵hathach
CFG_TUSB_RHPORT0_MODE
2022-06-03remove static port defined for device/hosthathach
2022-06-02rhport argument in usbd_ API() is not used (always use the initialized port)hathach
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-01rename board specific macro for examplehathach
- BOARD_DEVICE/HOST_RHPORT_NUM to BOARD_TUD/H_RHPORT - BOARD_DEVICE/HOST_RHPORT_SPEED to BOARD_TUD/H_MAX_SPEED
2022-06-01remove cmake compile macro for net example (use lwipopts.h instead)hathach
2022-05-28Fix printf long int compiler errorLeon Loeser
2022-05-20Minor cleanup of RP2040 code post addition of Pico-PIO_USBgraham sanderson
* Removed some compiler warnings, and cleaned out unnecessary warning suppression from CMake suppress_tinyusb_warnings() * Made explicit family_configure_dual_usb_example() for DUAL mode examples as family_configure_target() may not generally be called multiple times for the same target * Renamed library pico_pio_usb to tinyusb_picio_pio_usb to be clearer and avoid conflict if someone already has a pico_pio_usb in their project * Added family_add_pico_pio_usb() method for adding Pico-PIO_SUB support to an existing example * Allowed tinyusb_pico_pio_usb to be added to regular apps using the Pico SDK
2022-04-27clean uphathach
2022-04-27add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() sectionhathach
2022-04-21Merge branch 'master' into pio-hosthathach
2022-04-20update example for better cdc echohathach
2022-04-20add note for tud_task() behavior in freertos examplehathach
2022-04-20add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout ↵hathach
and in_isr also allow exit tud_task,tuh_task after processing all events for running other background task for user
2022-04-20fix freertos issue when 1 tick > 1 mshathach
2022-04-15pio device works wellhathach
2022-04-14catch up with pio libhathach
2022-04-08proof of concpet that device pio-usb work with host pio-usbhathach
2022-03-09Merge pull request #1360 from ccrome/uac2_headset_descriptor_updateHa Thach
in TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR, _nitfs should be 3.
2022-03-04fix build with esp32s2, also use dwc2 for esp examplehathach
2022-03-01in TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR, _nitfs should be 3.caleb crome
I believe that there is a mistake in the definition of TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR. The nitfs in the audio descriptor is always 3 regardless of ITF_NUM_TOTAL.
2022-02-25fix uac2_headset buildhathach