6f9c256ad0
complete remove dcd_set_config(), fix unit test
2020-04-17 13:52:34 +07:00
50be9d7c3a
mass rename tud/dcd_irq_handler to tud/dcd_init_handler
2020-04-17 12:27:53 +07:00
33610751d7
Merge pull request #336 from pigrew/edpt_close
...
> If you notice my chain of events above, the bulk transfer was started BEFORE the SET_INTERFACE call. The USB device hardware swaps the order of them being delivered. On STM32, it gives priority to the lower-numbered EP index.
It shouldn't be a matter, control is 2+ stage, before sending the setup. Host should stop all communication to the endpoint that It wants to close.
2020-04-16 23:10:36 +07:00
969121df4f
added dcd disconnect/connect to lpc17/40
2020-04-16 15:52:45 +07:00
16f65890eb
Merge branch 'master' into edpt_close
2020-04-14 10:22:03 -04:00
de208b31cf
edpt_close: Remove item from queue instead of modifying it.
2020-04-13 11:05:34 -04:00
0eeaccaf46
Skeleton, and initial stm32fsdev implementation (that leaks memory)
2020-04-12 21:27:27 -04:00
04a06ec401
Merge branch 'master' into refactor-irqhandler
2020-04-11 15:49:34 +07:00
5bd9d14fc1
stm32fsdev: set dcd_connect API definitions to strong, Modify documentation.
2020-04-10 10:26:41 -04:00
715c4dbbf8
stm32fsdev: Implement dcd_connect.
2020-04-09 17:03:12 -04:00
11201f1a06
adding dcd_connect/disconnect
2020-04-09 11:42:42 +07:00
4179334aca
call tud_irq_handler() for all nrf5x board
2020-04-06 17:35:11 +07:00
fb05451a26
mass rename dcd_isr() to dcd_irq_handler()
2020-04-06 17:24:22 +07:00
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
25c1bea782
Normalize line endings
2020-01-15 14:47:43 -05:00
6bc245cb36
add dcd_edpt0_status_complete() which is useful for several mcu port
2019-11-28 11:46:36 +07:00
f5d737aa7e
moving irq to bsp for lpc17/40
2019-11-21 23:19:38 +07:00
2727983a2d
fix #211
2019-11-04 22:52:29 +07:00
16665672a4
initally adding test_usbd.c
2019-10-30 12:24:07 +07:00
880ac1e398
move dcd event helper to be dcd.h as inline function
2019-10-30 11:35:25 +07:00
661515a807
adding debug log function
2019-10-23 21:18:46 +07:00
7fd68efe7b
couldn't get 32L4 running with crystal less mode
2019-10-03 13:37:10 +07:00
73d7ab201e
remove dcd_edpt_busy()
2019-06-10 22:29:18 +07:00
13e01c7dca
add TU_ prefix to compiler ATTR to prevent name conflict with application
2019-06-06 10:39:37 +07:00
a0307bafda
added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()
...
- improve fifo write/read_n with only one lock
- use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver
- replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-29 16:55:15 +07:00
61ec407752
update license year to 2019
2019-05-14 11:48:05 +07:00
77bc421359
fix clear stall usage, fix reset data toggle with dcd_clear_stall for nrf52
2019-05-09 23:31:18 +07:00
d9682f8240
replaced config_num by configured
2019-03-30 13:48:15 +07:00
93a853cd5b
usbd add connected, suspended, remote_wakeup
...
- remove use of osal_queue_reset
2019-03-30 02:26:15 +07:00
1c2beba85c
working on suspend and resume
...
change dcd_init signature
2019-03-29 16:23:00 +07:00
0bdd4bd550
added Suspend and Resume event for nrf5x port
...
also rename DCD_EVENT_SUSPENDED to DCD_EVENT_SUSPEND
2019-03-29 01:34:53 +07:00
1e9848d917
replace dcd_edpt_(clear)stall by usbd_edpt_(clear)stall
...
- remove dcd_edpt_stalled() from dcd porting
2019-03-27 16:09:49 +07:00
4722376654
remove dcd_get_frame_number()
2019-03-27 01:01:48 +07:00
43eb1a8b16
added stub for dcd_stm32f3
2019-03-22 23:57:56 +07:00
c211ee19dd
migrate license from BSD 3 clause to MIT
2019-03-20 16:11:42 +07:00
eda56769b9
dcd_set_address include status response, usbd control stall both control in and out
2019-03-13 23:14:48 +07:00
6f17b4e019
change to dcd_get_frame_number
2018-12-21 12:46:20 +07:00
902697ca07
add dcd_get_microframe()
2018-12-17 12:14:11 +07:00
6048a3bff4
remove dcd_connect/disconnect since there is no usage now
2018-12-05 12:22:33 +07:00
f196b24dce
rename DCD_XFER_SUCCESS to XFER_RESULT_SUCCESS
2018-11-23 15:22:46 +07:00
d036f62b0e
samd51 fix stable issue with dcd
2018-11-20 17:25:41 +07:00
215f8603b1
nrf5x: refactor device control transfer.
...
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
2018-11-16 21:56:39 +07:00
10bf41f718
change osal_queue_receive() signature
...
- fix build issue with freertos
2018-11-14 16:31:28 +07:00
7a40ec2647
Split out the control endpoint logic
2018-11-07 23:04:34 -08:00
c582c0fda9
Add SAMD21 and SAMD51 support for CircuitPython.
...
The ProtoThreads style subtasks were removed because it led to
extremely unclear control flow. RTOSes can be used if threading is
needed.
Also added some additional functionality to MSC to support dynamic
LUNs and read-only LUNs.
2018-11-07 12:02:28 -08:00
b2f18744fe
add dcd event helper setup_recieved and bus_signal
2018-10-25 15:02:43 +07:00
55427606ef
replace dcd_xfer_complete by dcd_xfer_complete()
2018-10-24 00:44:26 +07:00
e7a63324dd
clean up
2018-10-23 19:58:06 +07:00
9ba624a974
rename UBSD_EVT_ to DCD_EVENT_
2018-10-23 15:12:30 +07:00
e97b14848b
rename usbd_event_t to dcd_event_t
2018-10-23 15:08:31 +07:00