hathach
6102183193
clean up
2019-04-11 00:22:18 +07:00
hathach
491b5936d5
usbd better support suspend/resume
2019-04-02 01:30:01 +07:00
hathach
eabfc53f38
added tud_suspended() and tud_ready()
2019-03-30 23:01:23 +07:00
hathach
f3a954e7de
self powered and remote wakeup support are from configuration descriptor attribute
2019-03-30 17:38:00 +07:00
hathach
ee6ed084f4
clean up text
2019-03-30 15:03:48 +07:00
hathach
b28cc6ddb1
added dcd_remote_wakeup() stub for all ports
2019-03-30 14:47:11 +07:00
hathach
cabf6abb4f
added tud_set_self_powered(), fix #50 reponse to GET_STATUS request
2019-03-30 14:34:38 +07:00
hathach
d9682f8240
replaced config_num by configured
2019-03-30 13:48:15 +07:00
hathach
93a853cd5b
usbd add connected, suspended, remote_wakeup
...
- remove use of osal_queue_reset
2019-03-30 02:26:15 +07:00
hathach
28610198df
clean up
2019-03-29 17:42:10 +07:00
hathach
7d9b68a7b9
clean up control req a bit
2019-03-29 16:55:58 +07:00
hathach
3a38cde53d
support set/clear feature Device_remote_wakeup
2019-03-29 16:37:08 +07:00
hathach
1c2beba85c
working on suspend and resume
...
change dcd_init signature
2019-03-29 16:23:00 +07:00
hathach
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
hathach
8fb9fbb0b1
add tud_mounted() check in tud_cdc_connected()
...
mark device as disconnected immed with DCD_EVENT_UNPLUGGED
2019-03-27 23:58:24 +07:00
hathach
da452d4ba6
cleanup, remove the use of _TINY_USB_SOURCE_FILE_
2019-03-27 17:48:42 +07:00
hathach
f26fbaf404
clean up remove usbd_control_stall()
2019-03-27 16:26:52 +07:00
hathach
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
hathach
4722376654
remove dcd_get_frame_number()
2019-03-27 01:01:48 +07:00
hathach
43eb1a8b16
added stub for dcd_stm32f3
2019-03-22 23:57:56 +07:00
hathach
c211ee19dd
migrate license from BSD 3 clause to MIT
2019-03-20 16:11:42 +07:00
hathach
eda56769b9
dcd_set_address include status response, usbd control stall both control in and out
2019-03-13 23:14:48 +07:00
hathach
59c1b4b427
zero init internal class/device data
2019-01-29 19:39:34 +07:00
hathach
e4e8413acc
add tusb_inited() API, check for inited() before running device/host task
2019-01-29 19:05:07 +07:00
Scott Shawcroft
a3173b8de4
Add USB Midi support.
...
It also introduces a txbuffer which copies data into it but passes
the buffer straight to the USB rather than another copy.
2019-01-04 12:16:27 -08:00
hathach
6f17b4e019
change to dcd_get_frame_number
2018-12-21 12:46:20 +07:00
hathach
902697ca07
add dcd_get_microframe()
2018-12-17 12:14:11 +07:00
hathach
1c49c479ca
seperate tusb_task() to tud_task() and tuh_task()
...
tusb_task() still exists for backward compatible
2018-12-13 14:51:37 +07:00
hathach
af1ffe4675
remove task void* param
2018-12-13 13:53:43 +07:00
hathach
bc46dc6edf
osal clean up
...
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task
and call tinyusb_task(). This make API consistent with NO OS.
2018-12-13 13:49:09 +07:00
hathach
c1c501e0c2
change usbd xfer_cb return type to bool
2018-12-12 13:12:06 +07:00
hathach
b6cb4757d2
change class driver open return type to bool
2018-12-12 13:00:59 +07:00
hathach
6c0b0917e1
rename descriptor_* helper to tu_desc_*
2018-12-12 12:01:15 +07:00
hathach
6d86db3977
rename edpt_dir/number/addr to tu_edpt_*
2018-12-12 11:51:31 +07:00
hathach
4e7596ca9c
add tuh_mount_cb/tuh_umount_cb
2018-12-10 19:25:57 +07:00
hathach
9c4c797502
add ep addr to host cdc
2018-12-10 19:01:28 +07:00
hathach
ac67e0ea3f
clean up
2018-12-10 05:15:49 +07:00
hathach
6a6e7d0ecb
refactor usbh class driver
2018-12-10 05:07:22 +07:00
hathach
4537ba66e5
fixing build error with host stack
2018-12-05 20:26:55 +07:00
hathach
d887829b4c
change usbd_init() return to bool for simplicity
2018-12-05 17:30:04 +07:00
hathach
3dc0653d70
clean up
2018-12-05 17:09:30 +07:00
hathach
6f3898572d
add role to OSAL_QUEUE_DEF() to disable correct dcd/hcd isr
2018-12-05 17:01:19 +07:00
hathach
a73017fdc2
hal clean up
...
- replace tusb_hal_int_enable/disable to dcd_int_enable/disable,
hcd_int_enable/disable
- remove tusb_hal_init(), this will be part of dcd_init/hcd_init,
anything beyond dcd/hcd should be inited by bsp
2018-12-05 13:20:25 +07:00
hathach
6048a3bff4
remove dcd_connect/disconnect since there is no usage now
2018-12-05 12:22:33 +07:00
hathach
8b03b6d3b4
add Auto descriptor endpoint num config to support lpc17xx
...
CFG_TUD_DESC_*_EPNUM
2018-11-28 16:10:31 +07:00
hathach
064eec5dd8
clean up warnings
2018-11-26 12:29:55 +07:00
hathach
f196b24dce
rename DCD_XFER_SUCCESS to XFER_RESULT_SUCCESS
2018-11-23 15:22:46 +07:00
hathach
cb8782e5f2
rename tusb_event_t to xfer_result_t
2018-11-23 15:14:47 +07:00
hathach
60d8cde695
rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTION
2018-11-22 17:21:07 +07:00
hathach
d036f62b0e
samd51 fix stable issue with dcd
2018-11-20 17:25:41 +07:00
hathach
cb37b819d9
rename control_state
2018-11-16 22:20:13 +07:00
hathach
00694b56c5
nrf5x: clean up dcd, add comment
2018-11-16 22:17:11 +07:00
hathach
7219ef8ed6
rename control.c to usbd_control
2018-11-16 22:00:16 +07:00
hathach
1640e7590e
remove control.h (move prototype to usbd_pvt.h)
2018-11-16 21:58:35 +07:00
hathach
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
hathach
95cd6c3a2f
remove control from class driver array
2018-11-14 23:39:58 +07:00
hathach
5757918df4
usbd clean up
2018-11-14 17:40:29 +07:00
hathach
ff26c5c6b1
clean up
2018-11-14 16:40:07 +07:00
hathach
10bf41f718
change osal_queue_receive() signature
...
- fix build issue with freertos
2018-11-14 16:31:28 +07:00
hathach
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
Scott Shawcroft
30e3c64134
Polish up control split and treat it more like a normal endpoint.
2018-11-08 13:45:30 -08:00
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
e9de56ad83
defer DCD_EVENT_BUS_RESET, DCD_EVENT_UNPLUGGED to usbd task
2018-11-02 17:29:49 +07:00
hathach
2708632a6a
clean up osal
2018-11-02 17:26:35 +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
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
c7340f4b0e
clean up helper func
2018-10-23 12:19:32 +07:00
hathach
8600c4b616
adding mynewt to osal
2018-09-04 14:20:51 +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
4ef01d721a
clean up osal task and subtask
2018-08-30 15:21:15 +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
030c64b9cd
make tud_mount_cb() and tud_umount_cb() optional
2018-08-24 18:35:46 +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
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
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
hathach
2910b8d77a
clean up
2018-07-30 15:49:16 +07:00
hathach
683bb574e7
hid device enhance
2018-07-29 14:03:48 +07:00
hathach
8b17c54609
fix hid generic various error
2018-07-28 22:42:44 +07:00
hathach
c729db2294
beter hid report
2018-07-28 18:14:30 +07:00
hathach
9f61493020
change HID config, move HID boot config to part of auto descriptor only
2018-07-28 12:38:45 +07:00
hathach
456506045f
seperate CFG_TUD_HID_BOOT_PROTOCOL to CFG_TUD_HID_KEYBOARD_BOOT & CFG_TUD_HID_MOUSE_BOOT
2018-07-27 21:48:15 +07:00
hathach
5dd02cbdd3
house keeping
2018-07-27 16:59:57 +07:00
hathach
544f9c1315
add dcd_edpt_stalled() API
...
- implement control endpoint get status, endpoint set feature
2018-07-25 21:21:33 +07:00
hathach
c3b082ab20
add tusb_usbser.inf for windows
2018-07-25 14:07:27 +07:00
hathach
71934228d2
tested boot mouse working
2018-07-25 00:16:09 +07:00
hathach
67e52af936
fix boot mouse descriptor issue
2018-07-24 22:37:44 +07:00
hathach
3400dfdf4e
nrf52840 boot mouse does not work, need more work
2018-07-24 00:45:07 +07:00
hathach
262be103e0
add descriptor string count for tud_desc_set_t
2018-07-23 16:12:14 +07:00
hathach
2bff2a7d97
fix descriptor minor issue
2018-07-23 16:01:02 +07:00
hathach
4342325ee1
reworking device hid class driver
2018-07-23 15:25:45 +07:00
hathach
798ce59ebd
revert usbd_control_xfer_st() implementation
...
enhance cdc with better multiple interfaces support
add default ep size for cdc and msc device CFG_TUD_CDC_EPSIZE,
CFG_TUD_MSC_EPSIZE
2018-07-17 16:04:55 +07:00
hathach
e0c4e11ea3
use _usbd_ctrl_buf for control transferm refactor cdc device
2018-07-14 15:12:42 +07:00
hathach
7a1f40593f
only call class xfer callback associated with endpoint address
2018-07-13 18:01:16 +07:00
hathach
1efb552bfd
add ep2drv, rename descriptor offset
2018-07-13 17:48:26 +07:00
hathach
cd5b5d3a53
change mapping interface to driver instead of class code
2018-07-13 16:52:22 +07:00
hathach
dccb06ba7d
rename class driver close() to reset()
2018-07-13 16:09:26 +07:00
hathach
5f8882a6d7
remove unused usbd dev state
2018-07-13 15:08:38 +07:00
hathach
584b6f716d
more clean up
2018-07-13 14:44:44 +07:00
hathach
a623f0c179
better multiple interfaces support for cdc device
2018-07-13 00:32:02 +07:00
hathach
a4292e5906
changing cdc device to support multiple interface (not yet)
2018-07-12 23:08:54 +07:00
hathach
44c494106f
clean up
2018-07-12 22:42:03 +07:00
hathach
925c462b72
rename CFG_TUD_ENUM_BUFFER_SIZE to CFG_TUD_CTRL_BUFSIZE
2018-07-12 22:40:22 +07:00
hathach
3134d21b24
dropping multiple port device support
2018-07-12 22:25:06 +07:00
hathach
5d8cf5cf8f
fix ITF count
2018-07-10 00:56:58 +07:00
hathach
15cd30629a
clean up usbd auto desc
2018-07-10 00:36:07 +07:00
hathach
1faf0a81e4
clean up
2018-07-02 17:32:09 +07:00
hathach
19eb62ebe4
update auto descriptor
2018-07-01 15:45:04 +07:00
hathach
ff219f1f01
add CFG_TUD_DESC_AUTO for auto descritpor (device, config)
2018-07-01 15:11:58 +07:00
hathach
b9f8575e2d
clean up device cdc
...
separate cdc tx & rx bufsize
2018-06-23 13:19:36 +07:00
hathach
d438000b99
clean up
2018-06-22 16:01:55 +07:00
hathach
e3591ac682
enhance usbd: add usbd_defer_func()
2018-06-22 12:53:13 +07:00
hathach
af268ce951
clean up
2018-06-22 00:43:41 +07:00
hathach
f8e7695fe9
clean up
2018-06-18 14:31:15 +07:00
hathach
424735d440
rename subfolder source to src
2018-06-18 14:05:24 +07:00