graham sanderson
fc1a27b6c9
RP@040: rework CMake for compiler warnings
2022-07-12 12:58:30 -05:00
hathach
9ec92ff97b
rp2040 enable SOF as resumed signal when remote wakeup
2022-06-30 15:45:04 +07:00
hathach
25580b4fe9
use forloop to avoid -Warray-bounds with host setup packet
2022-06-27 21:05:41 +07:00
hathach
a0ef489890
fix all warnings with host rp2040
2022-06-27 17:11:24 +07:00
Ha Thach
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
Ha Thach
b4e62d1cda
Merge pull request #1518 from mingpepe/master
...
Fix typo for log format
2022-06-18 12:39:16 +07:00
graham sanderson
c45118dacf
rp2040: use shared IRQ handlers, so user can also hook the USB IRQ
2022-06-17 09:13:40 -05:00
mingpepe
1001d2da40
Fix typo for log format
2022-06-17 16:50:24 +08:00
graham sanderson
c5ba4af25b
rp2040: make moving 1K of code into RAM optional - and off by default
2022-06-16 11:04:48 -05:00
Liam Fraser
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
hathach
dd035b0eb2
make all hcd/dcd function used in isr into ram with __no_inline_not_in_flash_func() for faster irq handling
...
result is 1KB of code moved from rom -> ram
2022-06-08 16:08:53 +07:00
Ha Thach
fdeac8508b
Merge pull request #1381 from hathach/add-sof-isr
...
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
graham sanderson
26c4d4b328
Minor cleanup of RP2040 code post addition of Pico-PIO_USB
...
* Removed some compiler warnings, and cleaned out unnecessary warning suppression from CMake suppress_tinyusb_warnings()
* Made explicit family_configure_dual_usb_example() for DUAL mode examples as family_configure_target() may not generally be called multiple times for the same target
* Renamed library pico_pio_usb to tinyusb_picio_pio_usb to be clearer and avoid conflict if someone already has a pico_pio_usb in their project
* Added family_add_pico_pio_usb() method for adding Pico-PIO_SUB support to an existing example
* Allowed tinyusb_pico_pio_usb to be added to regular apps using the Pico SDK
2022-05-20 17:25:30 -05:00
hathach
d5d4909c20
proof of concpet that device pio-usb work with host pio-usb
2022-04-08 13:36:05 +07:00
hathach
45052c625e
Merge branch 'master' into pio-host
2022-03-20 00:51:00 +07:00
hathach
85dbcf5473
implement dcd_sof_enable() for rp2040
2022-03-07 23:04:47 +07:00
hathach
96165a1950
rename HCD_MAX_XFER to CFG_TUH_ENDPOINT_MAX
...
minor clean up
2022-03-04 17:07:04 +07:00
Scott Shawcroft
2cd73ca602
Add host string descriptor functions
...
Plus typo fixes, GCC11 array bounds fix, snprintf for malloc-free
debug and pragmas for alignment checks.
2022-03-03 21:53:12 -08:00
hathach
635fb9dcdd
try to fix ci
2022-03-02 12:33:47 +07:00
hathach
918f3e9cae
minor rename
2022-03-02 12:22:20 +07:00
hathach
1d29817139
start to add pio usb (host) support
...
run as proof of concept
2022-03-01 23:55:53 +07:00
Ha Thach
7c627f58d7
Merge pull request #1343 from Daft-Freak/patch-1
...
Open OUT endpoint for HID host
2022-02-28 20:00:40 +07:00
hathach
31aa077cb0
rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED
2022-02-25 18:35:21 +07:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
Charlie Birks
c0a65ba0f6
Support interrupt OUT in RP2040 HCD
2022-02-23 12:25:01 +00:00
Valentin Milea
ae970ba2e2
Handle xfer events before closing EP
2021-12-08 12:34:00 +02:00
Valentin Milea
36e69b86bf
Remove buffer reclaim logs
2021-12-07 15:35:30 +02:00
Valentin Milea
48e1f6d899
Handle the closing of endpoints on RP2040
2021-12-04 16:04:48 +02:00
hathach
3e3fe1e429
improve hcd_device_close() for rp2040
2021-11-30 17:36:52 +07:00
rppicomidi
06f99c220e
implement hcd device close
2021-11-30 17:17:06 +07:00
Liam Fraser
e692fa9ae4
RP2040 HCD: Move invalid ep->active assert in hw_trans_complete. The check for ep->active should only happen if a setup packet was just sent. Otherwise the transaction is handled in hw_handle_buff_status.
2021-11-05 09:39:31 +00:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +07:00
graham sanderson
06d9555389
More warning cleanup
...
- physically suppress warnings in TinyUSB headers using pragmas so they don't break -Werror compilation of external files that include them
- fix compiler warnings in rp2040 port
- add cmake method to rp2040 port to allow an external project to suppress warnings in TinyUSB itself
2021-10-14 15:23:26 -05:00
graham sanderson
7667299b48
Remove compiler warning
2021-10-14 12:13:39 -05:00
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