hathach
5d3084a714
add TUP_USBIP_FSDEV and TUP_USBIP_FSDEV_STM32, clean up ifdef with stm32
2023-03-01 11:22:04 +07:00
hathach
ffdc100cb9
rename ep_num to ep_idx, minor clean up
2023-02-28 17:11:59 +07:00
Mengsk
8db462bf6e
Add fix to dcd_edpt_iso_activate()
2023-01-05 16:54:42 +01:00
Simon Kueppers
d6b612257e
Fixed bug where with some devices, the TU_ASSERT inserted with this commit gets triggered for ISOCHRONOUS endpoints. It is necessary for those endpoints to set the NUM_BLOCK and BLSIZE for the receiving buffer in both, USB_COUNTn_TX and USB_COUNTn_RX. Despite the datasheet showing those fields only for the USB_COUNTn_RX register
2023-01-05 16:23:53 +01:00
Mengsk
69475cd1bf
Remove tu_stm32_sof_cb
2023-01-02 12:06:26 +01:00
Mengsk
fc32280f42
Fix buffer allocation overflow.
2022-12-30 15:10:00 +01:00
Mengsk
21bdafcfef
Add ISO buffer allocation.
2022-12-30 01:08:04 +01:00
Mengsk
07ad64adfe
Do not set USB_EP_RX_NAK for ISO EP.
2022-12-29 23:30:24 +01:00
Mengsk
0bd41d5354
Fix CI.
2022-12-29 21:37:44 +01:00
Mengsk
fe8c170c98
Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management.
2022-12-29 19:19:27 +01:00
Mengsk
cece59df22
Generally enable ISO xfer.
2022-12-29 12:33:44 +01:00
Mengsk
ef2f17a514
Add hardware endpoint allocator.
2022-12-29 12:33:43 +01:00
Mengsk
b156a8b78c
dcd_stm32_fsdev : Implement FIFO transfer correctly.
2022-12-29 12:33:43 +01:00
Mengsk
17990025bb
dcd_stm32_fsdev : Fix index out of bound in dcd_write_packet_memory()
...
If src is odd then src[wNBytes] is accessed.
2022-12-29 12:33:43 +01:00
Simon Kueppers
1d37f5ef9b
Added improvements with regards to SOF timing jitter
2022-12-29 12:33:16 +01:00
Simon Kueppers
76413a95d4
Added TU_ATTR_ALWAYS_INLINE to all static inline functions
2022-12-29 12:29:47 +01:00
Simon Kueppers
9ec21248d7
Fixed various small problems and inaccuracies regarding ISOCHRONOUS endpoint
2022-12-29 12:29:47 +01:00
Mengsk
b4b619abd6
SHA-1: 5cb3ed518301e2237ee4e468e97e51ece0ba3838
...
* Correct handling of SOF interrupt
2022-12-29 12:29:28 +01:00
Mengsk
8327090171
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev
2022-12-29 12:14:52 +01:00
Simon Kueppers
d584b07e2c
Fixed problem where the transmit byte count was written into the wrong register on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
510720b396
Renamed pcd_set_ep_rx_cnt because it actually sets the maximum buffer size
2022-12-29 12:13:56 +01:00
Simon Kueppers
9a84390878
Changed comments, added define to fail if ISOCHRONOUS endpoint is not available but requested
2022-12-29 12:13:56 +01:00
Simon Kueppers
ec826732fc
Fixed non-aligned allocated memory sizes
2022-12-29 12:13:56 +01:00
Simon Kueppers
abf53f9270
Changed indirection from actual endpoint address to hardware endpoint through lookup table. Allocation of endpoint is now only performed in dcd_edpt_open
2022-12-29 12:13:56 +01:00
Simon Kueppers
8c0388f477
Fixed wrongly enabling RX and TX status simultaneously on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
d9b2c9934a
Implemented an optional callback function that is used instead of tu_edpt_number in the stm32 device driver as a crude tool to control mapping of the endpoint address to actual endpoint register
2022-12-29 12:13:56 +01:00
Simon Kueppers
6d65eaf7a1
Implemented very rudimentary support for isochronous transfer buffer handling
2022-12-29 12:13:55 +01:00
Bastien Nocera
6a2cf67289
Fix typos
2022-12-04 19:43:23 +07:00
Mengsk
f3f3739073
Fix DCD build.
2022-11-07 13:38:35 +01:00
Mengsk
9d3d8fd5b0
Merge branch 'master' of https://github.com/hathach/tinyusb into bsp_412
2022-11-07 12:47:41 +01:00
Mengsk
1eae139aa9
Add support for STM32L412.
2022-11-07 12:32:36 +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
Jerzy Kasenberg
a18ac84229
Add support for STM32WB mcu
2022-03-07 09:35:12 +01: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
hathach
f90f5ea369
adding g4 family with g474nucleo, able to blink led and button
2021-11-04 16:16:51 +07:00
hathach
dbd31895bc
change usage of TU_CHECK_MCU() to prevent macro conflict
2021-10-25 17:04:03 +07:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +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
Robert Manzke
ea72d64992
STM32L151 portable driver adaptations
2021-08-08 08:30:52 +02:00
hathach
b36b211c26
clean up tusb_fifo.h include
2021-05-27 17:58:42 +07:00
hathach
13de8f5d98
minor clean up
2021-05-10 19:15:46 +07:00
Reinhard Panhuber
03f974c9b9
Implement functions to allow for DMA usage in audio driver.
...
- Add tud_audio_n_get_ep_out_ff(), tud_audio_n_get_ep_in_ff(),
tud_audio_n_get_rx_support_ff(), and tud_audio_n_get_tx_support_ff()
- Change get_linear_read/write_info() to return linear and wrapped part
at once
- Adjusted affected code in audio_device.c and tested with
audio_4_channel.
2021-04-23 10:27:48 +02:00
hathach
8d2dfe872c
revert dcd_edpt_xfer_fifo() implementation for stm32_fsdev
2021-04-05 19:19:49 +07:00
Reinhard Panhuber
7b8a08d2e1
Rename dcd_edpt_iso_xfer() to dcd_edpt_xfer_fifo()
2021-03-02 20:00:39 +01:00
Reinhard Panhuber
6cb9a6ebb1
Add (void *) for pointer cast.
2021-02-17 23:04:19 +01:00
Reinhard Panhuber
666e0fad35
Fix wrong tu_fifo_read_n() call in dcd_stm32_fsdev.c
2021-02-17 22:50:49 +01:00
Reinhard Panhuber
eee47493a3
Fix bug in evasion buffer list
2021-02-17 21:59:32 +01:00
Reinhard Panhuber
2d7b61972c
Implement dcd_edpt_iso_xfer() for dcd_stm32_fsdev
...
Implemented a special copy strategy to copy directly from the FIFO. This
function, however, is untested and should be regarded as unreliable
until somebody was able to test it
2021-02-17 20:46:31 +01:00
hathach
6e6e6265e4
use dcd_event_bus_reset() with speed to replace bus_signal
2021-01-08 22:34:36 +07:00