hathach
99c1585ed2
rename board specific macro for example
...
- BOARD_DEVICE/HOST_RHPORT_NUM to BOARD_TUD/H_RHPORT
- BOARD_DEVICE/HOST_RHPORT_SPEED to BOARD_TUD/H_MAX_SPEED
2022-06-01 23:53:40 +07:00
Ha Thach
fd8afc7e3b
Merge pull request #1454 from Iktek/bugfix_1453
...
overwrite grstctl on edpt_disable
2022-06-01 14:36:36 +07:00
hathach
6e7cd220dc
grstctl set fifo + flush in one assign
2022-06-01 13:18:24 +07:00
Ha Thach
9352f75220
Merge pull request #1438 from Nikitarc/master
...
Update dwc2_stm32.h
2022-06-01 12:23:32 +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
Ha Thach
7b1344fe69
Merge pull request #1467 from kilograham/rp2040_cleanup
...
Minor cleanup of RP2040 code post addition of Pico-PIO-USB
2022-05-26 23:54:20 +07:00
Ha Thach
0a4a28a90c
Merge pull request #1451 from kasjer/kasjer/pic32-sanity-fixes
...
pic32 sanity fixes
2022-05-24 20:42:06 +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
8473ca16fb
clean up
2022-05-10 22:56:06 +07:00
Pascal Speck
f452ab745e
overwrite grstctl on edpt_disable
2022-05-03 09:52:10 +02:00
Jerzy Kasenberg
e49cad84e2
dcd_pic32: Fix memory overwrite in incoming data
...
When transfer was finished rx_fifo_read() read all that
was to read RXPKTRDY was cleared allowing next packet to
be received.
Then xfer_complete was called.
Interrupt for OUT endpoint was left enable, that would not
be a problem if data was handled fast and new transfer was
scheduled.
For MSC when host sends a lot of data this interrupt that was
enabled could cause epn_handle_rx_int() to be called after
transfer was completed and next was not scheduled yet.
Without TU_ASSERT that was added to detect this, incoming
data was written past buffer provided by user code resulting
in random memory corruption.
This just blocks RX interrupt when transfer is finished,
and also only unmasked rx interrupts are handled.
2022-05-01 14:26:24 +02:00
Jerzy Kasenberg
c145777e0e
dcd_pic32: Add asserts transfer sanity check
...
TU_ASSERTS added to detect transfer inconsistency.
2022-05-01 14:14:42 +02:00
hathach
85dcb73774
more clean up
2022-04-28 18:00:30 +07:00
hathach
ae5490e5a5
clean up
2022-04-27 20:52:56 +07:00
hathach
455bddddcd
minor clean up
2022-04-26 18:47:09 +07:00
hathach
4d11c658ff
improve pio usb endpoint handler
2022-04-26 13:08:03 +07:00
hathach
26a25279bc
follow pio usb changes
2022-04-26 00:35:16 +07:00
hathach
2f9b9a31be
more with pio usb
2022-04-22 18:26:58 +07:00
hathach
12debd7763
keep up with pio usb
2022-04-22 01:06:17 +07:00
hathach
98bbb0d402
Merge branch 'master' into pio-host
2022-04-21 12:05:22 +07:00
Nikitarc
c422b9ef41
Update dwc2_stm32.h
...
Add missing #endif
2022-04-20 11:29:03 +02:00
hathach
a90839688c
add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms
2022-04-20 13:25:38 +07:00
Nikitarc
52190e7308
Update dwc2_stm32.h
...
Support STM32H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
2022-04-19 21:53:00 +02:00
hathach
a32cb1bb93
clean up pio driver
2022-04-18 17:49:21 +07:00
hathach
b5a9537eea
support pio dcd endpiont stall
2022-04-16 01:19:51 +07:00
hathach
05bfc1a9eb
pio device works well
2022-04-15 01:04:12 +07:00
hathach
cc5a4720e5
catch up with pio lib
2022-04-14 22:00:47 +07:00
hathach
d5d4909c20
proof of concpet that device pio-usb work with host pio-usb
2022-04-08 13:36:05 +07:00
hathach
d97c154695
add need_pre for pio usb, but not work out well
2022-04-05 00:04:47 +07:00
hathach
d7d7e61f34
correct pio usb speed, and close device
2022-04-03 22:48:08 +07:00
hathach
7ea75d3c09
use pio usb host init
2022-04-03 20:44:16 +07:00
hathach
f6851cf187
clean up hcd pio
2022-04-03 00:17:58 +07:00
hathach
f881e77e66
extracting hw root port
2022-04-02 19:19:00 +07:00
hathach
c25f835aea
update to use pio hw endpoint
2022-04-01 23:31:43 +07:00
hathach
db6cba6a7b
rename pio to pio_usb
2022-04-01 16:38:41 +07:00
hathach
e6e3dfedc8
hid example work well
2022-04-01 16:34:36 +07:00
hathach
75bca96bc6
pio usb control work well including stall response
2022-04-01 16:01:24 +07:00
hathach
e94d11a5b3
implement pio_usb_irq_handler
2022-03-31 12:56:53 +07:00
hathach
e2f0aef93b
make use pio_usb_port_reset_start/end
2022-03-30 16:41:55 +07:00
hathach
45052c625e
Merge branch 'master' into pio-host
2022-03-20 00:51:00 +07:00
hathach
4795cca04a
add parse config descriptor to example
...
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
Reinhard Panhuber
9fde8f2d9e
Fix DSTS_FNSOF in dwc2.c
2022-03-16 07:53:47 +01:00
Reinhard Panhuber
26339e694f
Merge remote-tracking branch 'upstream/add-sof-isr' into add-sof-isr
2022-03-14 20:40:57 +01:00
Reinhard Panhuber
f212899b54
Add SOF callback function for feedback value determination in uac - wip!
2022-03-14 20:40:33 +01:00
Ha Thach
41ffd54fa0
Merge branch 'master' into add-sof-isr
2022-03-14 11:57:01 +07:00
hathach
606f932d92
added dcd_sof_enable() stubs for all other ports
2022-03-07 23:05:05 +07:00
hathach
85dbcf5473
implement dcd_sof_enable() for rp2040
2022-03-07 23:04:47 +07:00
hathach
ce60e98f6d
remove broadcom/synopssy (repalced by synopsys/dwc2)
2022-03-07 23:00:11 +07:00
Ha Thach
7180883fae
Merge pull request #1379 from Qianhao2579/master
...
Modify the wrong macro definition code
2022-03-07 16:09:16 +07:00
Ha Thach
1bd31c22e1
Merge pull request #1374 from kasjer/kasjer/stm32wb55
...
stm32wb55 support
2022-03-07 16:09:06 +07:00