Commit Graph

4270 Commits

Author SHA1 Message Date
hathach
1b9108ea0d minor debug clean up 2023-09-06 17:11:35 +07:00
Hardy Griech
51ea467350 removed debug comment 2023-08-31 20:34:12 +02:00
Hardy Griech
1dd9fa3f30 code review: changed to TinyUSB log system 2023-08-31 20:24:56 +02:00
hathach
ed0a233d48 vastly improve attach/detach device, still have issue where thing is still hanged occasionally. 2023-08-31 21:28:27 +07:00
hathach
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
hathach
41493426b3 use ep buf to keep setup packet, work well with hid device 2023-08-30 16:21:43 +07:00
hathach
1ab488eb06 call xfer_complete_isr() when result is not successful (stalled or failed) 2023-08-30 16:04:18 +07:00
Alexander Mueller
9665843635 Fix the weak dcd_edpt0_status_complete for Keil Compiler
The Keil compiler seems to have different semantics and the defined function was never called.

The same is probably true for the other weak functions. I can change those too.
2023-08-29 18:16:50 +02:00
hathach
2a814a99af - hcd_setup_send() also check for busy flag
- xact_inout() to support send setup
2023-08-29 20:27:37 +07:00
hathach
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
Ha Thach
9063ede25f Merge branch 'master' into nxp_k64 2023-08-28 17:46:05 +07:00
hathach
588b758717 rename OPT_MCU_KINETIS_K64 to OPT_MCU_KINETIS_K 2023-08-28 17:34:40 +07:00
hathach
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
hathach
502b1bdda6 more update to transaction 2023-08-27 23:45:34 +07:00
hathach
cd7464a884 try next endpoint when received NAK 2023-08-25 17:37:09 +07:00
hathach
ac00b91472 add xact_out(), xact_in() to manage transfer 2023-08-25 17:26:57 +07:00
hathach
ecf2f91042 use endpoint pool for more flexible multiple devices support 2023-08-25 16:36:28 +07:00
hathach
09ceaa6cf3 add osal mutex for spi 2023-08-25 13:18:47 +07:00
hathach
f5ebc1700f add spi lock with interrupt enable/disable 2023-08-25 12:12:44 +07:00
hathach
e6cf125e53 save data toggle, always retry NAK. work with msc device 2023-08-24 16:46:20 +07:00
hathach
344932d27e add tuh_max3421e_int_api(), retry control if received NAK 2023-08-24 16:27:47 +07:00
hathach
3ed5d6c372 complete enumeration 2023-08-24 16:27:12 +07:00
hathach
2c237b1ae4 able to complete 1st get device descriptor and set address 2023-08-23 17:49:28 +07:00
hathach
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
hathach
274578ff46 able to send setup packet 2023-08-22 23:17:12 +07:00
hathach
b413439416 able to detect new device and start enumerating 2023-08-22 19:57:59 +07:00
Hardy Griech
2c1addff4f defined(ECLIPSE_GUI) 2023-08-20 18:27:06 +02:00
Hardy Griech
28107326da bug fix recv/xmit_get_next_ready_ntb() 2023-08-20 18:24:08 +02:00
Hardy Griech
e4c18c101c Copyright 2023-08-20 18:24:01 +02:00
Hardy Griech
d5da303f45 moved some declarations 2023-08-20 18:23:53 +02:00
Hardy Griech
fca08c939c files taken from yapicoprobe 2023-08-20 18:23:32 +02:00
hathach
cacc96b25d adding connection event handling, add nrf gpio interrupt for max2341e interrupt pin 2023-08-18 17:39:10 +07:00
hathach
824e585e2b ground works for hcd max3421e 2023-08-18 14:07:38 +07:00
hathach
9257a0f562 - update nrf52 bsp for cmake
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
hathach
f4845e4e6c minor comment 2023-08-16 14:43:58 +07:00
hathach
0109ffbdcb fix abort transfer does not release endpoint, also reset state if it is control transfer 2023-08-16 14:31:14 +07:00
hathach
b3c7fe1023 clear qhd halted bit if not caused by STALL protocol, allow for next transfer 2023-08-16 11:12:00 +07:00
Ha Thach
7537985c08 Merge pull request #2222 from rppicomidi/fix-2188
fix issue 2188: support usbh_app_driver_get_cb()
2023-08-15 23:33:19 +07:00
hathach
67a374d932 more rename 2023-08-15 22:57:05 +07:00
hathach
1b33a31536 more minor clean up
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
rppicomidi
9d94296741 fix issue 2188: support usbh_app_driver_get_cb() 2023-08-14 15:38:48 -07:00
tswan-quasi
b5ba12119d UINT16_MAX stdint macro usage 2023-08-14 09:01:30 -04:00
tswan-quasi
bd51afb091 min on cdc r/w 2023-08-14 08:49:52 -04:00
Hardy Griech
798ff807b3 removed obsolete tud_network_link_state_cb() 2023-08-11 18:04:34 +02:00
Ha Thach
92457ec99f Merge pull request #2202 from Rocky04/patch-4
Invoke unmounted state on configuration reset
2023-08-09 20:48:26 +07:00
Ha Thach
04f0cd5c80 Merge pull request #2209 from HiFiPhile/hitl
Enhance HITL test
2023-08-09 20:20:46 +07:00
hathach
b8b01c1075 update to dcd ip3511 to add work-around for lpc54628 usb hs errata USB.1 and USB.2
msc is mounted, but device couldn't work reliably and got constant reset
due to other errata probably.
2023-08-09 12:47:24 +07:00
Rocky04
427ecbbc53 Bad line break at start 2023-08-08 23:33:47 +02:00
Rocky04
a98b219922 Remove port from SOF callback 2023-08-08 18:14:00 +00:00
Rocky04
0161955c22 Adding support for a SOF callback 2023-08-08 17:48:45 +00:00