Commit Graph

185 Commits

Author SHA1 Message Date
15f704b623 improve dcd control lpc17xx 2018-11-27 21:51:02 +07:00
038851c362 enhance dcd lpc17xx. Able to pass enumeration 2018-11-27 20:48:46 +07:00
80ecf1fd54 add OPT_MODE_HIGH_SPEED 2018-11-26 14:56:07 +07:00
064eec5dd8 clean up warnings 2018-11-26 12:29:55 +07:00
bf70f89240 Introduce a Makefile for the OS_NONE device example
It currently supports the SAMD21 and SAMD51 only. More will be
added later.
2018-11-25 11:46:06 -08:00
47fabe42ed One tweak to make -Wdiscarded-qualifiers happy. 2018-11-23 12:48:55 -08:00
bf8c4612dc Make sure OUT endpoint 0 on the SAMDs always has a valid buffer to store
a SETUP token into.
2018-11-23 11:20:23 -08:00
246c28db1a Turn off interrupts when working with the event queue. 2018-11-23 11:18:53 -08:00
6aa0146c72 Reset USB peripheral and wait for startup 2018-11-23 11:15:39 -08:00
394a22ecf7 remove pragma GCC diagnostic 2018-11-23 15:25:25 +07:00
f196b24dce rename DCD_XFER_SUCCESS to XFER_RESULT_SUCCESS 2018-11-23 15:22:46 +07:00
a619ff88a3 rename xfer complete enum 2018-11-23 15:17:43 +07:00
cb8782e5f2 rename tusb_event_t to xfer_result_t 2018-11-23 15:14:47 +07:00
e61e9d8b1b nrf5x add DCD_EVENT_UNPLUGGED event 2018-11-23 15:05:40 +07:00
4e8400e6fb more clean up 2018-11-22 21:58:06 +07:00
a1faf5c9cb clean up dcd lpc43xx 2018-11-22 21:37:23 +07:00
569e85a0c0 cdc work ok with lpc43xx 2018-11-22 17:40:20 +07:00
60d8cde695 rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTION 2018-11-22 17:21:07 +07:00
4314be9aeb msc device block count and block num
- replace CFG_TUD_MSC_BLOCK_NUM & CFG_TUD_MSC_BLOCK_SZ by
tud_msc_capacity_cb() (mandatory callback)
2018-11-22 12:11:06 +07:00
1d6fc49fa9 clean up 2018-11-21 17:03:39 +07:00
3cad1d1134 samd21 work well with cdc 2018-11-21 15:00:36 +07:00
a30dfa3324 clean up 2018-11-21 13:11:19 +07:00
a0ce92bcfd update dcd samd21 2018-11-21 13:01:39 +07:00
155edc7b00 fix ses irq vector 2018-11-21 12:36:28 +07:00
d036f62b0e samd51 fix stable issue with dcd 2018-11-20 17:25:41 +07:00
c503d48ec4 clean up 2018-11-20 01:20:39 +07:00
cb37b819d9 rename control_state 2018-11-16 22:20:13 +07:00
00694b56c5 nrf5x: clean up dcd, add comment 2018-11-16 22:17:11 +07:00
7219ef8ed6 rename control.c to usbd_control 2018-11-16 22:00:16 +07:00
1640e7590e remove control.h (move prototype to usbd_pvt.h) 2018-11-16 21:58:35 +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
b62ca2e5cd nrf5x: correct control transfer direction
added dcd description.
2018-11-16 21:52:23 +07:00
95cd6c3a2f remove control from class driver array 2018-11-14 23:39:58 +07:00
5757918df4 usbd clean up 2018-11-14 17:40:29 +07:00
ff26c5c6b1 clean up 2018-11-14 16:40:07 +07:00
10bf41f718 change osal_queue_receive() signature
- fix build issue with freertos
2018-11-14 16:31:28 +07:00
5732be224c update example for PR. correct share_control definition
- rename dcd,hal to dcd_samd51, hal_samd51 since some IDE has issue with
duplicated names (e.g keil, ses).
2018-11-14 16:03:58 +07:00
983225ae60 Merge pull request #7 from tannewt/tinyusb_samd
Add SAMD support and simplify OS_NONE
2018-11-14 15:36:12 +07:00
3fe7cd1659 added tud_cdc_write_str, tu_fifo only use mutex for RTOS config 2018-11-13 15:45:22 +07:00
299a2f12de Support the no CDC protocol as well. 2018-11-09 11:32:59 -08:00
537a29273c Exempt from strict warnings for struct packing and add MCU options 2018-11-09 00:10:44 -08:00
30e3c64134 Polish up control split and treat it more like a normal endpoint. 2018-11-08 13:45:30 -08: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
cb9bcce6a2 use mutex for cdc device fifo 2018-11-02 18:40:47 +07:00
e9de56ad83 defer DCD_EVENT_BUS_RESET, DCD_EVENT_UNPLUGGED to usbd task 2018-11-02 17:29:49 +07:00
f6076b0e06 add mutex support (optional) for tu_fifo 2018-11-02 17:28:07 +07:00
2708632a6a clean up osal 2018-11-02 17:26:35 +07:00
4683dc1e68 add osal_mutex 2018-11-02 15:45:27 +07:00
b2f18744fe add dcd event helper setup_recieved and bus_signal 2018-10-25 15:02:43 +07:00