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
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
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
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
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
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
hathach
4938971aad
code format
2023-08-07 20:48:09 +07:00
hathach
1f95a417f2
Add tuh_rhport_is_active() and tuh_rhport_reset_bus()
...
- also improve ehci bus reset
- seperate bus reset delay and contact debouncing delay in enumeration
2023-08-07 20:48:07 +07:00
Aladdin Bakosh
56e52037a8
clean(ra_hcd): fix typos in the hcd library
2023-08-04 12:00:25 +02:00
Ha Thach
1b04db2a77
Merge branch 'master' into master
2023-08-04 11:48:04 +07:00
hathach
ef5bd9ee6c
Merge branch 'master' into enhance-bsp
2023-08-04 00:31:12 +07:00
hathach
a160da1f2b
add lpc43 family
2023-08-03 17:19:47 +07:00
Martino Facchin
edee46e794
renesas: host: remove attach_attempt logic
2023-08-01 15:21:31 +02:00
hathach
f04e5108b2
Merge branch 'arduino-renesas_ra_hs_rebased' into renesas_ra_hs_rebased
2023-08-01 17:08:03 +07:00
hathach
04f1a34c39
add rusb2_common.c for dynami irq
2023-08-01 17:03:07 +07:00
Martino Facchin
965627e81c
rusb2: move dynamic irq function to c file
2023-08-01 11:41:33 +02:00
hathach
3f788a4e5a
enable USBMC for uno r4, add board_init_after_tusb() API
...
add BOARD_UPPERCASE for board detection
2023-07-31 19:09:40 +07:00
hathach
0d9973ef87
enable_irq since uno bootloader can disable it. systick triggered, however usb still not work with uno
2023-07-31 16:21:19 +07:00
hathach
feb58ebd54
add uno r4 wih FLASH_IMAGE_START=0x4000, running but interrupt (systick) does not seems to work
2023-07-28 19:01:12 +07:00
hathach
e56d5443a8
- revert usb address
...
- more clean up
2023-07-28 12:42:40 +07:00
hathach
6021803d58
fix ci
2023-07-28 11:33:26 +07:00
hathach
ec093bebad
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-27 16:50:34 +07:00
Ha Thach
db59494b1b
Merge pull request #2179 from hathach/enhance-ehci
...
Enhance EHCI
2023-07-27 16:15:43 +07:00
hathach
5a29db2787
add check for edpt_xfer() with halted, also reset data toggle when clear stall
2023-07-27 15:52:55 +07:00
hathach
10575c1b38
mising ehci
2023-07-26 20:48:18 +07:00
hathach
c37a957174
correct hcd_edpt_clear_stall() API signature
2023-07-26 19:56:48 +07:00
hathach
6b6dcc6c09
refactored multiple ports for hcd rusb2
2023-07-26 19:52:33 +07:00
hathach
fbaa148fe0
updating hcd rusb2
...
- make osal_task_delay() as weak function in usbh
- implement osal_task_delay() in hcd rusb2 (may moved to other places)
2023-07-26 18:55:41 +07:00
hathach
4deea87579
improve processing usb complete and error isr.
...
also merge them together
2023-07-25 15:07:21 +07:00