Commit Graph

143 Commits

Author SHA1 Message Date
Scott Shawcroft 7a40ec2647
Split out the control endpoint logic 2018-11-07 23:04:34 -08:00
Scott Shawcroft 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
hathach cb9bcce6a2 use mutex for cdc device fifo 2018-11-02 18:40:47 +07:00
hathach e9de56ad83 defer DCD_EVENT_BUS_RESET, DCD_EVENT_UNPLUGGED to usbd task 2018-11-02 17:29:49 +07:00
hathach f6076b0e06 add mutex support (optional) for tu_fifo 2018-11-02 17:28:07 +07:00
hathach 2708632a6a clean up osal 2018-11-02 17:26:35 +07:00
hathach 4683dc1e68 add osal_mutex 2018-11-02 15:45:27 +07:00
hathach b2f18744fe add dcd event helper setup_recieved and bus_signal 2018-10-25 15:02:43 +07:00
hathach 87d89cf5cb fix nrf52 freeRTOS interrupt priority 2018-10-24 16:48:27 +07:00
hathach bfa10016ae rename verify_breakpoint to TU_BREAKPOINT 2018-10-24 12:37:43 +07:00
hathach 55427606ef replace dcd_xfer_complete by dcd_xfer_complete() 2018-10-24 00:44:26 +07:00
hathach e7a63324dd clean up 2018-10-23 19:58:06 +07:00
hathach 177adf4bfa replace dcd_bus_event() and dcd_setup_received() by dcd_event_handler() 2018-10-23 16:31:45 +07:00
hathach 3dd635f4c1 merge osal_queue_send_isr to osal_queue_send, osal_semaphore_post_isr to osal_semaphore_post 2018-10-23 15:53:29 +07:00
hathach 9ba624a974 rename UBSD_EVT_ to DCD_EVENT_ 2018-10-23 15:12:30 +07:00
hathach e97b14848b rename usbd_event_t to dcd_event_t 2018-10-23 15:08:31 +07:00
hathach 959480d82c clean up usbd 2018-10-23 13:12:19 +07:00
hathach f339ac7a6a clean up msc device 2018-10-23 12:48:49 +07:00
hathach c7340f4b0e clean up helper func 2018-10-23 12:19:32 +07:00
hathach 0ae54310d6 Merge branch 'develop' of github.com:hathach/tinyusb into develop 2018-10-22 12:21:00 +07:00
hathach 33c61bfda2 comment out cdc flush on write (for now). Since it has issue with circuitpython 2018-10-05 21:35:40 +07:00
hathach 99c5219dc1 rename queue.h to sys_queue.h to prevent name conflict 2018-09-28 01:59:47 +07:00
hathach a6870add95 format queue.h a bit 2018-09-26 01:44:36 +07:00
hathach c78540be0f add sys/queue.h to common 2018-09-26 01:39:59 +07:00
hathach a660fb0cfc clean up, update nrfx to 1.3.0 2018-09-25 12:57:46 +07:00
hathach 8600c4b616 adding mynewt to osal 2018-09-04 14:20:51 +07:00
hathach e6fdfe8ac7 rename file 2018-09-02 20:37:02 +07:00
hathach 1a4a27324b clean up 2018-09-02 20:30:07 +07:00
hathach dce2296756 allow no mode compilation (no host/device enabled). Handy for project without usb to compile such as nrf52832 2018-08-30 16:12:34 +07:00
hathach e623fc656d cdc flush on write() if queue more than epsize 2018-08-30 15:28:19 +07:00
hathach 4ef01d721a clean up osal task and subtask 2018-08-30 15:21:15 +07:00
hathach 61e4a8c3d3 remove CFG_TUD_CDC_FLUSH_ON_SOF option 2018-08-30 15:20:15 +07:00
hathach 583326e535 nrf5x fix an issue with EP0STATUS require Easy DMA 2018-08-28 15:57:21 +07:00
hathach c8b72e397e add while loop to usbd task to run until task queue is empty 2018-08-28 15:56:43 +07:00
hathach bb2a8fcebf cdc device : rename epin_buf, epout_buf 2018-08-28 14:18:39 +07:00
hathach b0d14e2e41 minor nrf52 driver correct 2018-08-28 13:15:03 +07:00
hathach 030c64b9cd make tud_mount_cb() and tud_umount_cb() optional 2018-08-24 18:35:46 +07:00
hathach 460285f852 fix compiler static assert complain 2018-08-23 21:05:52 +07:00
hathach 23c7c2102b fix compiler warnings 2018-08-23 20:54:51 +07:00
hathach c5d2f661e7 rename common func to avoid conflict 2018-08-23 20:09:28 +07:00
hathach 7b35cd0203 add string desc helper 2018-08-21 14:51:59 +07:00
hathach d996bd5295 correct cdc line coding memory align 2018-08-15 17:57:33 +07:00
hathach cf43a6b53b fix memory issue with usbd control xfer 2018-08-15 17:55:16 +07:00
hathach e07b1acbed rename VERIFY to TU_VERIFY to avoid conflict with application 2018-08-13 18:10:23 +07:00
hathach b07124c623 fix issue with cdc write failed sometimes 2018-08-13 18:09:29 +07:00
hathach d5e58ba024 clean up 2018-08-01 09:59:32 +07:00
hathach 6d96b12e27 improve auto descriptor 2018-08-01 00:50:04 +07:00
hathach 9444d45af6 dev hid enhancement, add report descriptor templates for keyboard, mouse, consumer, syscontrol, gamepad 2018-07-31 23:10:50 +07:00
hathach a2b7b9ddb9 fix hid warning, move report descriptor template to hid.h 2018-07-31 14:59:39 +07:00
hathach d1a9d52c05 rename to prevent confusion 2018-07-31 14:42:03 +07:00