Commit Graph

5918 Commits

Author SHA1 Message Date
023191be23 Let to define CFG_BOARD_UART_BAUDRATE in CMake 2022-06-29 20:28:22 +01:00
19956f070d Merge pull request #1539 from hathach/improve-ci
Improve ci
2022-06-29 16:27:17 +07:00
158b3d761d fix xmc4000 build 2022-06-29 15:27:24 +07:00
4da1a9359d fix build with fomu/fomu 2022-06-29 15:12:01 +07:00
5a378703fb fix end symbol for samx7x and same5x 2022-06-29 15:05:09 +07:00
7949a4ec7c skip freertos example for F1C100S 2022-06-29 14:12:58 +07:00
a62c2640b5 remove redundant rp2040 boards, all boards supported by pico-sdk already supported 2022-06-29 14:08:01 +07:00
1e00fe78c7 use action gcc 2022-06-29 14:07:00 +07:00
8fe9022a6e fix buid_board.py script 2022-06-29 14:06:44 +07:00
39069cf4be Merge pull request #1538 from kilograham/another_compiler_wawrning
Fix actual compiler warning on gcc 10.3.1
2022-06-29 13:47:42 +07:00
b12863d27c Fix actual compiler warning on gcc 10.3.1 2022-06-29 07:28:35 +01:00
3681ad2941 Merge pull request #1521 from kilograham/rp2040_warning
Re-add some warning suppression for rp2040
2022-06-29 11:39:05 +07:00
c7fce32dff Merge pull request #1535 from robert-hh/samd_xfer_lockup
samd: Fix a lock-up situation at high traffic.
2022-06-28 20:36:04 +07:00
898b52be45 update rp2040 warnings
- 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-28 16:27:44 +07:00
83602ea123 Merge branch 'master' into rp2040_warning 2022-06-28 13:34:47 +07:00
4057c2d8d9 rework suppress_tinyusb_warnings
* 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-27 22:43:41 +01:00
bc4da2047b samd: Fix a lock-up situation at high traffic.
This PR fixes a transmit lock-up, which happens, when data is received
and sent at the sime time at moderate to high speeds, like code
which just echoes incoming data.

In my case, an issue was reported here:
https://github.com/micropython/micropython/issues/8521
2022-06-27 20:31:44 +02:00
3ead682af0 Merge pull request #1534 from hathach/add-more-warnings
Add more warnings
2022-06-27 22:27:24 +07:00
25580b4fe9 use forloop to avoid -Warray-bounds with host setup packet 2022-06-27 21:05:41 +07:00
9c56f70111 suppress error with net example 2022-06-27 20:30:47 +07:00
dd7a17c345 prevent error on specific warnings for net lwip & dual example for rp2040 2022-06-27 17:53:42 +07:00
a0ef489890 fix all warnings with host rp2040 2022-06-27 17:11:24 +07:00
6522a8150e fix all device examples warnings 2022-06-27 13:48:47 +07:00
1a1f633922 Merge branch 'master' into add-more-warnings 2022-06-27 12:50:50 +07:00
bc0f5502e2 Merge pull request #1533 from hathach/hid-report-len-uint16
Hid report len uint16
2022-06-27 12:47:08 +07:00
556b5d5044 change report len in hid API from uint8_t to uint16_t
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-27 12:22:36 +07:00
0b3503cb33 clean up usbd log level 2022-06-27 11:56:48 +07:00
b9dc9dbd78 fix most warnings with rp2040 -wconversion 2022-06-27 11:50:17 +07:00
0042eccb3b fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
1d6918ce41 suppress redundant-decls warnings for freertos examples 2022-06-24 21:53:46 +07:00
835ab01cab fix stm32 g4 and wb build issue with freertos, also add them to ci build 2022-06-24 21:52:51 +07:00
4f6e770eda add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
4639cac85c Merge pull request #1526 from ccrome/chc-add-teensy-41
Added The Teensy 4.1 board
2022-06-22 11:22:44 +07:00
742b99f689 Added The Teensy 4.1 board
The Teensy 4.1 board has an 8MB W25Q64JV as opposed to the 2MB flash
on the Teensy 4.0.  This largely doensn't matter for TinyUsb, except
when you attempt to access any memory in the flash above the 2MB
boundary, when it fails with a hard fault.
2022-06-21 11:12:39 -07:00
070382d599 Merge pull request #1509 from liamfraser/rp2040_hcd_improvements
RP2040 HCD Improvements (Hub + Keyboard + Mouse working)
2022-06-21 15:55:02 +07:00
ae8b8f0c93 Merge pull request #1515 from maddyaby/dcd_edpt_close
Stub out dcd_edpt_close for samd
2022-06-18 12:40:39 +07:00
b4e62d1cda Merge pull request #1518 from mingpepe/master
Fix typo for log format
2022-06-18 12:39:16 +07:00
2f7f3e604e Re-add some warning suppression for rp2040 2022-06-17 12:54:28 -05:00
d09d0b3147 Merge pull request #1519 from kilograham/rp2040_shared_handler
rp2040: use shared IRQ handlers, so user can also hook the USB IRQ
2022-06-17 22:17:42 +07:00
c45118dacf rp2040: use shared IRQ handlers, so user can also hook the USB IRQ 2022-06-17 09:13:40 -05:00
1001d2da40 Fix typo for log format 2022-06-17 16:50:24 +08:00
e0d7c16788 Merge pull request #1516 from hathach/fix-example-with-highspeed
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
2022-06-17 15:11:55 +07:00
905a0b2457 correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples 2022-06-17 14:37:35 +07:00
05fc2fa7a6 Stub out dcd_edpt_close for samd
Not having this prevents the device from finishing the mounting process.

Tested on a SAMD51 and didn't seem to need to actually do anything in the close function.
2022-06-16 16:57:20 -07:00
80121303eb Merge pull request #1512 from kilograham/make_ram_code_optional
rp2040: make moving 1K of code into RAM optional - and off by default
2022-06-16 23:30:29 +07:00
c5ba4af25b rp2040: make moving 1K of code into RAM optional - and off by default 2022-06-16 11:04:48 -05:00
d7b579a978 Merge pull request #1480 from Ryzee119/multihub_rebase
Host: Add support for multi-level usb hubs
2022-06-16 16:33:48 +07:00
2036a0b62a update readme 2022-06-16 14:41:10 +07:00
f4a7b5b80c add note for recursive calls of process_device_unplugged() in case of hub 2022-06-16 14:37:57 +07:00
19d054f789 hcd_rp2040 improvements:
- Stall now has priority over other interrupt responses
 - Delete eunused hcd_edpt_busy
 - Assert !ep->active when trying to start a new xfer
 - Assert !ep->active when handling buff_status bits
 - Set ep->xferred_len to 8 once a setup packet is finished so the data
structure is accurate
2022-06-13 16:19:11 +01:00