Peter Lawrence
c04bc07c29
nuc121: enhanced driver and hopefully added readability
2020-01-15 20:09:50 -06:00
Peter Lawrence
7f2db321bf
nuc121: better fix for handling large OUT transfers
2020-01-15 10:23:23 -06:00
Peter Lawrence
f2a5335417
nuc121: fix handling of OUT transfers larger than max packet size
2020-01-14 22:07:38 -06:00
Sean Cross
a6b916ba85
Merge pull request #269 from antmicro/volatile_buffers_fix
...
dcd_eptri: Fix rx_buffer/tx_buffer volatile annotation
2020-01-15 07:02:11 +10:00
Mateusz Holenko
c1781e5e7c
dcd_eptri: Fix rx_buffer/tx_buffer volatile annotation
...
This makes `rx_buffer` and `tx_buffer` *pointers*
volatile in order to avoid caching them in a register.
The original notation meant "a pointer to a volatile value"
(equivalent of `volatile uint8_t *`). This resulted in
`while(rx_buffer[ep_num] != NULL) ;` loop to get stuck
forever, even though the IRQ handler set the `rx_buffer[ep_num] = NULL`.
2020-01-14 13:57:17 +01:00
Ha Thach
130250a2be
Merge branch 'master' into nuc121
2020-01-07 16:26:58 +07:00
Peter Lawrence
5c5f876461
dcd_nuc121: allow user ZLP transfers to get a callback
2020-01-04 13:36:26 -06:00
Peter Lawrence
f4371e79b1
add Nuvoton NUC121/NUC125/NUC126
2020-01-04 10:31:55 -06:00
hathach
89f3ad59da
fix #247
2019-12-27 09:42:57 +07:00
hathach
0da45c2e78
clean up
2019-12-26 22:31:29 +07:00
hathach
b5684c5c10
merge dcd_samd51 & dcd_samd21 into dcd_samd
2019-12-26 21:46:59 +07:00
hathach
49b316143a
improve samd, fix missing setup packet occasionally
2019-12-26 17:11:24 +07:00
hathach
5690e7b304
fix samd51 setup packet handling
...
issue occur due to race condition
https://github.com/adafruit/Adafruit_TinyUSB_Arduino/issues/37
2019-12-25 23:47:47 +07:00
hathach
bbada1d3e6
adding lookup table for debugging
...
add msc scsi command list
2019-12-23 18:54:06 +07:00
hathach
94e70f9b01
Merge branch 'master' into port-samg55
2019-12-21 23:53:48 +07:00
hathach
421221baa5
making more progress, but failed with WRITE10
...
incorrect queue 448 bytes instead of 512
2019-12-21 23:51:57 +07:00
hathach
050fa2fd39
able to response to scsi inquiry, but failed to response to test unit ready
2019-12-21 19:33:41 +07:00
Ha Thach
7a05b177a4
Merge pull request #236 from jeremyherbert/master
...
Update dcd_stm32_fsdev.c with note about F042Fx remapping
2019-12-12 10:17:40 +07:00
Jeremy Herbert
9d96b6d66e
Update dcd_stm32_fsdev.c
...
Add a note about pin remapping for the STM32F042Fx
2019-12-12 09:40:06 +10:00
hathach
96a9eca6a0
move VBUS sense out of dcd_synosys to bsp
2019-12-11 14:03:36 +07:00
hathach
752aea7d72
enhance samg
2019-12-09 23:58:13 +07:00
hathach
fa96078882
clear data toggle in clear stall, also set config bit
2019-12-09 23:21:06 +07:00
hathach
75a2157715
fix samd using TUSB_REQ_SET_ADDRESS in dcd_edpt0_status_complete
2019-12-09 23:20:21 +07:00
hathach
0316e0ecd4
update descriptor, enhance ep in transfer
2019-12-09 22:48:35 +07:00
hathach
759fa76280
implementing dcd_edpt_open
2019-12-09 21:36:15 +07:00
hathach
988edce745
fix build
2019-12-09 18:49:38 +07:00
hathach
208a77678c
clean up, switch and update submodule samd to circuitpython branch
2019-12-09 18:37:54 +07:00
Sean Cross
26dcc19b18
valentyusb: eptri: don't double-advance read buffer
...
Due to an error, we were double-advancing the FIFO buffer. The end
result was that the second half of most reads were getting ignored.
This wasn't found during earlier testing because only 64-byte buffers
were tested.
This corrects this error by avoiding double-advancing the buffer.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 18:14:23 +08:00
hathach
e9725dcdbe
use dcd_edpt0_status_complete() to prepare for setup packet for samd21/samd51
2019-11-28 13:48:55 +07:00
hathach
d7558e8a0f
use dcd_edpt0_status_complete() to set address without blocking for samd21/samd51/stm32_fsdev
2019-11-28 13:39:29 +07:00
hathach
ac701c398b
clean up
2019-11-28 12:18:56 +07:00
hathach
552cc3ef33
implement dcd_edpt_stall
2019-11-28 11:56:35 +07:00
hathach
5dc04887e2
get passed set address
2019-11-28 11:48:08 +07:00
hathach
6bc245cb36
add dcd_edpt0_status_complete() which is useful for several mcu port
2019-11-28 11:46:36 +07:00
hathach
40b454cf28
get passed first get device descriptor
2019-11-27 23:20:48 +07:00
hathach
6225d5bcfd
able to handle setup packet
2019-11-27 16:01:25 +07:00
hathach
bc21714c7e
detect bus reset
2019-11-27 14:49:19 +07:00
hathach
745f0b4521
clean up
2019-11-27 11:02:24 +07:00
hathach
c691dc4cb2
update
2019-11-25 10:42:32 +07:00
hathach
58e8265964
usb hw init OK
2019-11-24 23:46:28 +07:00
hathach
24b2cea139
Merge branch 'master' into port-samg55
2019-11-24 21:22:42 +07:00
hathach
d991466a8e
fix rt1010 rt1020 only has 1 usb controller, rt1050 rt1060 has 2
2019-11-23 00:48:56 +07:00
hathach
38b14725f7
rename OPT_MCU_IMXRT10XX to OPT_MCU_MIMXRT10XX
2019-11-22 17:40:12 +07:00
hathach
281e8cd9ec
rename OPT_MCU_RT10XX to OPT_MCU_IMXRT10XX
2019-11-22 15:42:46 +07:00
Ha Thach
ca741dfc2a
Merge pull request #220 from hathach/develop
...
Port NXP iMX RT10XX
2019-11-22 15:16:41 +07:00
hathach
6123b600fc
rename dcd_lpc18_43 to dcd_transdimension
2019-11-22 14:47:07 +07:00
hathach
a0b2561a2d
move nxp dcd ehci controller reset and modde into dcd
...
rt1064 work with cdc msc example
2019-11-22 14:20:10 +07:00
hathach
fca4653b95
able to compile dcd 18/43 with rt1064
2019-11-22 12:34:41 +07:00
hathach
2ead26a12d
more clean up
2019-11-22 12:26:40 +07:00
hathach
ccb09db3b7
more clean up
2019-11-22 12:16:47 +07:00