hathach
d6e9fe38be
rp2040 implement dcd_edpt_close_all()
...
aslo rename reset_ep0_pid() and clean up. We only need to reset pid when
setup packet received
2021-09-01 19:44:12 +07:00
hathach
fc889ece74
rp2040 correct ep set/clear stall
...
- stall will remove pending (not complete) transfer. Correct reset data
toggle when clear stall.
- remove buf ctrl debug code
2021-09-01 16:52:27 +07:00
hathach
ab0c3e8dd0
fix rp2040 chapter 9 TD 9.6 test
2021-08-31 17:41:08 +07:00
hathach
71e77e47fa
add dcd_edpt_close_all() for clear existing configured state
...
correctly responded to TD 9.13 Set Configuration Test
2021-08-26 17:07:03 +07:00
hathach
88bb8fac3d
rename host API to be consistent with naming on device stack
...
- tuh_device_get_speed() to tuh_speed_get()
- tuh_device_configured() to tuh_mounted()
- tuh_device_ready() to tuh_ready()
2021-08-24 12:37:04 +07:00
hathach
8dc16dd3a7
fix rp2040 build
2021-08-24 01:19:06 +07:00
hathach
17ef9f4843
add ready check for edpt claim
2021-08-12 15:54:04 +07:00
hathach
4ad47d9e26
bus_reset will reset all endpoints
...
allow for dynamic configuration as well as state-less enumeration
2021-08-12 15:40:26 +07:00
hathach
4f2999bc04
white space
2021-08-12 00:31:26 +07:00
hathach
88d4cb402d
simplify hw_endpoint_init()
2021-08-12 00:11:04 +07:00
hathach
a2baf9427d
more dcd clean up
2021-08-11 20:36:23 +07:00
hathach
979af6c2a8
clean up endpoint set/clear stall
2021-08-11 20:29:39 +07:00
hathach
f3a6e564ee
rp2040 enable suspend and resume interrupt
2021-08-11 20:06:57 +07:00
hathach
832d22d7ad
force single buffered for device mode, out endpoint
2021-06-17 01:55:35 +07:00
hathach
5c567129ea
fix calculating xferred bytes with double buffer with short packet on buffer0
2021-06-13 18:30:26 +07:00
hathach
f38c460433
fix ep tx with double buffered
2021-06-13 17:19:14 +07:00
hathach
bd039c8d37
fix build with log for device
2021-06-13 16:16:25 +07:00
hathach
1af64f9729
remove sent_setup from hw endpoint
2021-06-13 15:31:00 +07:00
hathach
289ccf3c93
remove dev_ep_map
2021-06-13 13:19:20 +07:00
hathach
910e11a8ab
fix ci build
2021-06-11 19:04:16 +07:00
hathach
dfe5a727c6
log clean up
2021-06-11 18:54:09 +07:00
hathach
b39faa15ef
map pico_info to log2, pico_trace to log3
2021-06-11 18:44:08 +07:00
hathach
a6d22f5a68
replace pico_warn by log level 1
2021-06-11 18:40:01 +07:00
hathach
66c8a13f13
remove unused variable in hw endpoint
...
last_buf, buf_sel, transfer_size
2021-06-11 18:26:41 +07:00
hathach
93cb2ff4cf
more refactor double buffered rp2040
2021-06-11 18:16:13 +07:00
hathach
1d48320d8a
rename hw endpoint
...
- total_len to remaining_len
- len to xferred_len
2021-06-11 17:58:29 +07:00
hathach
5d6e381ef6
refactor rp2040 usb
...
- make _hw_endpoint_xfer_sync and _hw_endpoint_start_next_buffer private
- drop prefix _ from _hw_endpoint_xfer_continue and
_hw_endpoint_reset_transfer
2021-06-11 17:34:51 +07:00
hathach
a1a03c92f6
double buffered work with host
2021-06-11 17:05:49 +07:00
hathach
43656dc0a7
more clean up
2021-06-10 23:29:02 +07:00
hathach
cf0a475a2e
clean up
2021-06-10 22:00:59 +07:00
hathach
c7f51cde40
implement usbh_edpt_busy (WIP), remove hcd_edpt_busy
2021-06-10 17:19:21 +07:00
hathach
7e6cba7359
remove hcd_edpt_stalled()
2021-06-10 16:55:12 +07:00
hathach
501de2a5e8
fix computing transferred bytes with E4
2021-06-08 10:29:22 +07:00
graham sanderson
c81bc38d42
Add __unused to variables that are only used if TU_LOG does something
2021-06-03 10:10:44 -05:00
Ha Thach
8ea0dfba68
Merge pull request #865 from kilograham/pico-0.10.0
...
Pico 0.10.0
2021-06-03 01:02:54 +07:00
hathach
4e98ce9147
use hcd_frame_number() instead of uframe
2021-05-31 18:15:47 +07:00
hathach
3fb80e76ce
remove obsolete hcd_pipe_queue_xfer()/hcd_pipe_xfer()
2021-05-31 12:08:37 +07:00
hathach
c2a0c1507b
add more comment
2021-05-30 23:44:29 +07:00
hathach
54c9150574
add errata number
2021-05-30 23:41:59 +07:00
hathach
6498ee1996
fix incorrect data toggle when max packet size < 64
...
fix host buf_sel panic with "already available"
2021-05-30 23:35:54 +07:00
graham sanderson
3973ec4b5e
rp2040: fix debug compilation error
2021-05-30 08:16:15 -05:00
hathach
164778a716
update limit each transfer not less than 64
2021-05-28 17:42:13 +07:00
hathach
b36b211c26
clean up tusb_fifo.h include
2021-05-27 17:58:42 +07:00
corvus-ossifragus
72f5202086
Update trace statements that referenced deprecated structure elements.
2021-05-10 10:09:09 -04:00
corvus-ossifragus
13b510ad8e
Update hcd_rp2040.c
...
Remove reference to the deprecated "num" and "in" members of struct hw_endpoint which still exist in an assert statement and break DEBUG builds.
2021-05-07 16:49:48 -04:00
hathach
a397353916
fix ci build with rp2040
2021-03-10 17:58:39 +07:00
hathach
8cabbb28df
fix enum walkaround forever check for SE0 when pull up is disabled
2021-03-04 18:36:18 +07:00
hathach
a298045f6c
clean up
2021-03-02 23:30:21 +07:00
hathach
9d5e369170
rp2040 add disconnection detection
...
- also use dcd_event_bus_reset()
- Add TODO for suspend, resume later on (need to test with/without vbus
detection).
2021-03-02 23:24:36 +07:00
hathach
1676a836d1
fix rp2040 host build
2021-03-02 14:54:12 +07:00