131 Commits

Author SHA1 Message Date
hathach
3e1d85eed2 comment clean up 2021-01-08 11:43:26 +07:00
hathach
cc5dfd03cd update comment and correct the size to 8+2 2021-01-08 11:21:26 +07:00
hathach
60620dca42 walkround for samd21 setup_packet overflow
increase setup packet size from 8 to 12, since USB DMA controller is
suspected to overflow the buffer with 2 extra bytes
2021-01-08 01:21:03 +07:00
hathach
9d3a9cf546 add OPT_MCU_SAMD11
skip ci build for example that need more ROM/RAM could fit into SAMD11
2020-08-22 18:46:19 +07:00
hathach
acde49ccc9
enable pull-up in dcd_init() instead of usbd 2020-08-01 20:14:58 +07:00
hathach
0407cfe16c fix samd21 race condition with setup packet
reproduced with Adafruit_TinyUSB_ArduinoCore port commit 11d669b4d2a40eb2fc5e51b2a9707a6de9d42363 and SAMD BSP 1.6.1
2020-07-23 01:39:15 +07:00
Jeff Epler
b2ef8cdd42 dcd_samd: Provide implementation for OPT_MCU_SAME5X 2020-06-25 18:51:04 -05:00
hathach
d4d6e06c1d added OPT_MCU_SAME5X option 2020-06-24 00:53:17 +07:00
hathach
0e30afa691 abstract all UDP_CSR 2020-05-02 18:24:23 +07:00
hathach
3ad0cd041b clean up 2020-05-02 16:29:22 +07:00
hathach
ac3c645dc1 fix EP0 data toggle issue 2020-05-02 16:09:28 +07:00
hathach
2a479175ae remove toggle walkaround, fix control stall race condition 2020-05-02 14:51:21 +07:00
hathach
a74a823b0a fix dcd samd race condition with setup packet
setup packet can complete together with previous status (in & out).
Always make sure to prepare valid buffer for holding setup packet when
queuing control status.
2020-04-30 00:29:47 +07:00
hathach
6f9c256ad0
complete remove dcd_set_config(), fix unit test 2020-04-17 13:52:34 +07:00
hathach
50be9d7c3a
mass rename tud/dcd_irq_handler to tud/dcd_init_handler 2020-04-17 12:27:53 +07:00
hathach
36d4efa077
samg implement dcd connect/disconnect 2020-04-16 22:59:19 +07:00
Ha Thach
04a06ec401
Merge branch 'master' into refactor-irqhandler 2020-04-11 15:49:34 +07:00
hathach
c1f3fbbc03 implement dcd connect/disconnect for samd and nrf 2020-04-09 11:47:02 +07:00
hathach
fb05451a26 mass rename dcd_isr() to dcd_irq_handler() 2020-04-06 17:24:22 +07:00
hathach
2d6d298302 move irqhandler to application
tud_isr() must be called by application to forward the irqhandle to the
stack
2020-04-06 14:11:45 +07:00
hathach
46f22860fb correct waklaround with only status IN
correct usb descriptor msc dual example to work with samg
2020-02-07 22:13:38 +07:00
hathach
02b2c60231 samg55 work with cdc msc example 2020-02-07 17:39:20 +07:00
hathach
9ca6311ac4 implement walkaround for incorrect DATA Toggle for status control. 2020-02-07 16:46:18 +07: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
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
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
208a77678c clean up, switch and update submodule samd to circuitpython branch 2019-12-09 18:37:54 +07: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
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
f16ebd512b indent clean up 2019-07-04 18:45:10 +07:00
hathach
73d7ab201e
remove dcd_edpt_busy() 2019-06-10 22:29:18 +07:00