Commit Graph

5985 Commits

Author SHA1 Message Date
Ben Avison 53f0d5538b Don't assume ints automatically convert to enums
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-09-13 18:00:50 +01:00
Ben Avison 65ba15c37d Remove unreachable code
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-13 18:00:50 +01:00
Ben Avison 16518dcbbb Refactor pointer arithmetic on void*
This is a GCC extension, illegal in ISO C. IAR generates errors Pa152
'these operand types cannot be used here' and Pe852 'expression must be a
pointer to a complete object type'.

Replace with uint8_t*.
2022-09-13 18:00:49 +01:00
Ben Avison 6dfc857b91 [rp2040] Explicit cast value of `hw_set_alias`
Some compilers don't support the GNU extension `typeof` so their definitions
of `hw_set_alias` can't inherit their type from their argument, and the best
we can do is have `hw_set_alias` act the same as `hw_set_alias_untyped`.
This requires an explicit cast when the macro is used instead, otherwise
IAR generates error Pe132 'expression must have pointer-to-struct-or-union
type but it has type "void *"'.

The same goes for `hw_clear_alias`.
2022-09-12 18:46:09 +01:00
Ben Avison e5355d0335 [rp2040] Remove non-portable return statements
IAR generates error Pe118 'a void function may not return a value'.
2022-09-12 18:46:09 +01:00
Ben Avison d28ff1175d IAR declares strncasecmp in string.h not strings.h
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-09-12 18:46:01 +01:00
Ha Thach b624664f52
Merge pull request #1614 from kasjer/kasjer/fix-nrf5x-with-iso
nrf5x: Fix endpoint internal state when closed
2022-08-26 13:47:36 +07:00
Jerzy Kasenberg 5e3cfe7b57 nrf5x: Fix endpoint internal state when closed
Field started (regardind transfer) was only cleaed when transfer
was finished.
For audio devices set interface is called many times.
When there is no audio (silence) set interface requests zero
lenght bandwithd that in turn calls dcd_edpt_close().

When endpoint is closed due to set interface request transfer
should not longer be started since it will block next start transfer
with assert.

This just sets 'started' to false when endpoint is closed.
2022-08-26 08:10:15 +02:00
Ha Thach 101cbf6e31
Merge pull request #1613 from Lan-Hekary/video-descriptors-fix
Remove Hardcoded interface numbers from video descriptors
2022-08-25 18:44:22 +07:00
Ahmed El-Sharnoby 8a537a0092
Remove Hardcoded interface numbers from video descriptors
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-23 17:18:32 +02:00
Ha Thach e3b4d3f406
Merge pull request #1611 from hathach/fix-release-body
try to fix release body in tinyusb_src (not tested)
2022-08-23 14:44:02 +07:00
hathach 660e8f50a7
try to fix release body in tinyusb_src (not tested) 2022-08-23 14:43:09 +07:00
Ha Thach 9e91b02ec7
Merge pull request #1609 from hathach/release-0.14.0-p2
update repository.yml
2022-08-23 13:15:11 +07:00
hathach 3e815c709c
update repository.yml 2022-08-23 12:00:20 +07:00
Ha Thach 05e19b7848
Update feature_request.yml 2022-08-19 23:57:39 +07:00
Ha Thach f6c1ce5b1c
Merge pull request #1569 from hathach/release-0.14.0
increase version to 0.14.0 for release
2022-08-19 21:13:09 +07:00
hathach 961e83e083
more docs update 2022-08-19 17:14:53 +07:00
Ha Thach 792b2fb956
Merge pull request #1603 from Ryzee119/hub_improv
Host hub clear port and device interrupts
2022-08-17 15:03:48 +07:00
Ryzee119 2b2354d302 Hub: Clear other port feature changes 2022-08-16 18:25:46 +09:30
Ryzee119 3c7b5dcaff Hub: Handle hub device status change interrupt 2022-08-16 18:25:43 +09:30
Ha Thach 585f37a797
Merge pull request #1489 from kasjer/kasjer/fix-nrf5x-dma-access
nrf5x: Fix DMA access
2022-08-15 21:30:39 +07:00
Ryzee119 aafea8ef5d Hub: Rename port status callback to be more generic 2022-08-15 17:43:04 +09:30
Ryzee119 5efef4393c Hub: Expand hub helpers to handle device events 2022-08-15 17:42:56 +09:30
Ha Thach 8a28e7cd75
Merge pull request #1597 from kasjer/kasjer/dfu-coexistence
dfu: Allow DFU coexistence with other interfaces (BTH, RNDIS, future one)
2022-08-10 12:45:22 +07:00
Ha Thach 7ade0d0ce4
Merge pull request #1588 from majbthrd/stm32l052
add 'stm32l052dap52' (STM32L052K8 MCU) board target
2022-08-10 12:41:29 +07:00
Jerzy Kasenberg c7469ce986 dfu: Allow DFU coexistence with other interfaces
dfu_moded_open() only works correct when its called on DFU interface
descriptor. It means that DFU is the only one interface in configuration
or driver is called after all others interface drivers were tried and
gave up.

If other interface is supported and but driver for DFU is called first
(this is the case for BTH and RNDIS).
Code after while loop (that was not entered) has an TU_ASSERT that will
make set_configuration to fail.

Now TU_VERIFY is called first to make sure open code is called for DFU
only and not other interface descriptors like in other drivers.
2022-08-09 10:42:30 +02:00
Peter Lawrence d1c61e33a6 add 'stm32l052dap52' (STM32L052K8 MCU) board target
'dap52' is Olimex's name of their STM32L052-based fork of 'dap42'
2022-08-03 12:31:37 -05:00
Ha Thach 251ce98990
Merge pull request #1586 from hathach/fix-TUD_OPT_HIGH_SPEED
fix issue with TUD_OPT_HIGH_SPEED
2022-08-01 15:51:54 +07:00
hathach a219ba86ea
fix issue with TUD_OPT_HIGH_SPEED 2022-08-01 14:52:29 +07:00
hathach d36ea6ddc1
update issue template 2022-07-28 12:23:01 +07:00
hathach 23ea8d1e25 update doc 2022-07-25 22:27:33 +07:00
Ha Thach fd5bb6e5db
Merge pull request #1514 from maddyaby/audiod_typo
Fix typo in audiod_rx_done_cb in audio_device.c
2022-07-19 17:10:45 +07:00
hathach b0b155c949
increase version for release
along with minor doc update
2022-07-19 12:28:52 +07:00
Ha Thach ed2e587ace
Merge pull request #1568 from hathach/revert-hid-callback-len-temporarily
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() 0.14.0 release
2022-07-19 12:16:32 +07:00
Ha Thach 2110e27678
Merge pull request #1531 from pigrew/usbtmc_highspeed
USBTMC: Fixes and support for high-speed USB
2022-07-18 22:20:43 +07:00
hathach b495d6f8ec
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release 2022-07-17 22:56:07 +07:00
Ha Thach 868f2bcda0
Merge pull request #1554 from kilograham/rp2040_warning2
Rework CMake example warnings some more
2022-07-14 21:53:34 +07:00
hathach 7e4c0f64cd
abtract attribute fallthrough 2022-07-14 18:39:47 +07:00
graham sanderson 4bd47bcb99 disable bad gcc 6 warning 2022-07-12 13:29:47 -05:00
graham sanderson fc1a27b6c9 RP@040: rework CMake for compiler warnings 2022-07-12 12:58:30 -05:00
Ha Thach 1a8c3a863b
Merge pull request #1552 from hathach/fix-old-gcc
Fix warnings when compiling rp2040 with older version of gcc
2022-07-12 11:08:19 +07:00
hathach 4ea27acd1d minor update to webusb serial example 2022-07-12 01:55:33 +07:00
hathach 345558307d fix incorrect null-dereference warnings when compiling with gcc7 2022-07-12 00:50:52 +07:00
hathach bb5dbd2da8 only enable warnings with approriate gcc version for rp2040 2022-07-11 23:57:34 +07:00
Ha Thach 0bfb9d62de
Merge pull request #1543 from robert-hh/1170_0.13.0
mimxrt: Change the definitions for MIMXRT boards.
2022-07-11 15:53:24 +07:00
hathach 6da1e93edd
fix rt1050 evk build with latest mcu-sdk 2022-07-11 14:21:19 +07:00
hathach 19768936ae
bump up mcux-sdk for rt11xx, add back OPT_MCU_MIMXRT11XX 2022-07-11 14:01:18 +07:00
NConrad 54250d7dd5 USBTMC: explicit type conversions fix 2022-07-09 17:50:17 -04:00
Ha Thach ecb899408b
Merge pull request #1544 from hathach/ci-parallel-build
Ci parallel build
2022-07-01 20:52:46 +07:00
hathach 53db23142a add get-dependencies.py 2022-07-01 17:23:14 +07:00