Commit Graph

7161 Commits

Author SHA1 Message Date
42eb4e0da0 Fix CI. 2023-09-27 11:46:52 +02:00
b35621fc63 Update IAR template. 2023-09-27 11:43:23 +02:00
56c6d2feab Merge pull request #2258 from hathach/cmake-u5
Cmake u5
2023-09-19 21:26:20 +07:00
b73262be3a minor indent 2023-09-19 18:38:47 +07:00
8cdcd0fa9d fix build and add u5 to ci 2023-09-19 18:35:15 +07:00
71a2e8a36d addding cmake support for u5 2023-09-19 17:59:38 +07:00
46f7cf4da2 Merge pull request #2235 from slark-yuxj/master
fix:Resource leak: fp
2023-09-12 17:43:14 +07:00
e9ba93315c Merge pull request #2245 from arduino/fix_msd_extraneus_bytes_on_reading
Fix msd extraneus bytes on reading
2023-09-12 12:53:52 +07:00
6d922de0cb Merge pull request #2251 from hathach/add-max3421e-hcd
Add max3421e host driver
2023-09-11 22:22:13 +07:00
f55052b61f enable max3421 host for feather nrf52840 with makefile 2023-09-11 16:44:06 +07:00
1eb0cb0c65 update readme to include max3421 support 2023-09-11 15:45:26 +07:00
ab9585401b wrap up build cmake & make support for max3421, to enable the Host driver, 'MAX3421_HOST=1' must be added as part of make/cmake command 2023-09-11 11:35:51 +07:00
e32c1e08bd both samd21/d51 works perfectly with max3421e 2023-09-09 16:50:16 +07:00
605ad73ec0 refactor max3421_init() for samd51 to be generic for sercom and eic 2023-09-09 13:04:36 +07:00
c074488f75 minor rename 2023-09-09 12:20:16 +07:00
228acbeac2 wait_pipe_fifo_empty() now returns bool (as expected using TU_ASSERT macro) 2023-09-08 15:48:05 +02:00
1d68f2a328 metro m4 working with max3421e 2023-09-08 18:39:09 +07:00
bcc77a60e0 get spi working for metro m4 express 2023-09-08 17:40:00 +07:00
7ce4cfa638 renesas: added wait function for IN transaction
This fixes a problem found on MSD class where data read from from disks were sometimes partially overwritten by the status MSD message ("USBS...").
The function introduced wait for the hw fifo pipe to be empty, that prevent that new writing in the fife overwrite data which are not yet be transmitted by hw.
2023-09-08 10:49:05 +02:00
ed102a7795 Merge branch 'master' into add-max3421e-hcd 2023-09-07 21:42:46 +07:00
702740a3e2 Merge pull request #2246 from hathach/add-cmake-samd
Add cmake support for samd21 and samd51
2023-09-07 17:55:50 +07:00
d3c08ecc3a more ci fix 2023-09-07 17:20:07 +07:00
e8558458c4 fix ci 2023-09-07 17:09:25 +07:00
2dea4ce6a2 add cmake support for samd21.
update ci cmake
2023-09-07 16:58:40 +07:00
bb5d43e9c5 add samd51 to cmake 2023-09-07 15:31:43 +07:00
21ab40bab2 - wrap up hcd max3421, work well with nrf52840
- also add usbh_defer_func()
2023-09-07 12:38:18 +07:00
1b9108ea0d minor debug clean up 2023-09-06 17:11:35 +07:00
ed0a233d48 vastly improve attach/detach device, still have issue where thing is still hanged occasionally. 2023-08-31 21:28:27 +07:00
3b7d5aa042 improve connection & disconnection detection. But there is still issue when CONDETIRQ occurs but we are disabled interrupt (for osal queue access). 2023-08-31 16:52:09 +07:00
41493426b3 use ep buf to keep setup packet, work well with hid device 2023-08-30 16:21:43 +07:00
1ab488eb06 call xfer_complete_isr() when result is not successful (stalled or failed) 2023-08-30 16:04:18 +07:00
2a814a99af - hcd_setup_send() also check for busy flag
- xact_inout() to support send setup
2023-08-29 20:27:37 +07:00
3740a3287a - correct tuh_max3421e_int_api() for nrf52
- hcd_int_disable/enable is software only to reduce interrupt lag
2023-08-29 18:22:21 +07:00
c350616038 fix:Resource leak: fp
Signed-off-by: yuxiaojun <yuxiaojun1011@outlook.com>
2023-08-28 15:24:14 +08:00
b31924e13e - add xfer_complete_isr()
- merge addr0 ep to pool
- add control status to xact in/out
- use atomic flag busy to ensure only 1 transfer is active at any time
- execute pending transfer after one is complete (or clear busy flag)
- change rtt mode to block if full
2023-08-28 12:41:44 +07:00
84df3b04db minor update 2023-08-27 23:54:24 +07:00
502b1bdda6 more update to transaction 2023-08-27 23:45:34 +07:00
cd7464a884 try next endpoint when received NAK 2023-08-25 17:37:09 +07:00
ac00b91472 add xact_out(), xact_in() to manage transfer 2023-08-25 17:26:57 +07:00
ecf2f91042 use endpoint pool for more flexible multiple devices support 2023-08-25 16:36:28 +07:00
09ceaa6cf3 add osal mutex for spi 2023-08-25 13:18:47 +07:00
f5ebc1700f add spi lock with interrupt enable/disable 2023-08-25 12:12:44 +07:00
e6cf125e53 save data toggle, always retry NAK. work with msc device 2023-08-24 16:46:20 +07:00
344932d27e add tuh_max3421e_int_api(), retry control if received NAK 2023-08-24 16:27:47 +07:00
3ed5d6c372 complete enumeration 2023-08-24 16:27:12 +07:00
7bf5923052 Merge pull request #2142 from sjanc/symlinks
Fix documentation symlinks
2023-08-24 00:01:55 +07:00
2c237b1ae4 able to complete 1st get device descriptor and set address 2023-08-23 17:49:28 +07:00
e3f3179924 able to get 8 byte descriptor, but read(RCVBC) always return 0
- rename max3421e to max3421
- fix incorrect bitmask for HCTL, fix initial device connect
- fix bus reset cause connect IRQ
2023-08-23 15:08:12 +07:00
274578ff46 able to send setup packet 2023-08-22 23:17:12 +07:00
b413439416 able to detect new device and start enumerating 2023-08-22 19:57:59 +07:00