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 |
hathach
|
cc143cccf4
|
move default option
|
2018-07-31 14:27:48 +07:00 |
hathach
|
191b73b58c
|
tud_hid_generic_get_report_cb and tud_hid_generic_set_report_cb are mandantory
|
2018-07-31 13:45:31 +07:00 |
hathach
|
1a0ffcee25
|
add tud_hid_generic_report()
|
2018-07-31 13:31:03 +07:00 |
hathach
|
8eeee22ffc
|
enhance device hid driver
seperate inteface and report
|
2018-07-30 17:01:20 +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
|
6034553be7
|
adding hid_generic support
|
2018-07-28 13:50:46 +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
|
cf6c534c19
|
add usb msc callback description
|
2018-07-27 17:20:15 +07:00 |
hathach
|
5dd02cbdd3
|
house keeping
|
2018-07-27 16:59:57 +07:00 |
hathach
|
72b600c393
|
update device msc callback
|
2018-07-26 22:41:46 +07:00 |
hathach
|
e362f5fd64
|
rename some scsi command struct, add SCSI_CMD_MODE_SENSE_6 to built-in support command
|
2018-07-26 16:57:30 +07:00 |
hathach
|
86c445cd71
|
move nrf_drv_usbd_errata to portable folder
|
2018-07-26 16:12:09 +07:00 |
hathach
|
faf88d00c2
|
clean up
|
2018-07-26 16:01:14 +07:00 |
hathach
|
f5b2912372
|
add tud_msc_set_sense(), update msc device to reponse with default sense (illegal request) when there is issue with scsi command
|
2018-07-26 15:59:13 +07:00 |
hathach
|
602315cd57
|
fix hid keyboard idle rate
|
2018-07-26 11:27:34 +07:00 |
hathach
|
8694285ad2
|
add SCSI_CMD_REQUEST_SENSE into device msc built-in command
|
2018-07-25 23:56:06 +07:00 |
hathach
|
226a4f8816
|
clean up device msc
|
2018-07-25 22:51:43 +07:00 |
hathach
|
93db46292a
|
update msc example
|
2018-07-25 22:35:02 +07:00 |
hathach
|
8fc1d151fc
|
correct msc stall behavior
|
2018-07-25 22:24:58 +07:00 |
hathach
|
be7b0caf2d
|
enhance device msc response in case of STALL response
|
2018-07-25 22:21:14 +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
|
9365794623
|
clean up device msc API
|
2018-07-25 20:34:56 +07:00 |
hathach
|
d2ab4db25e
|
add scsi start stop unit struct, improve device msc, correctly stall unsupported scsi command
|
2018-07-25 16:56:57 +07:00 |
hathach
|
1982886f87
|
add control set boot protocol support and keyboard idle rate
- tud_hid_keyboard_is_boot_protocol()
- tud_hid_mouse_is_boot_protocol()
|
2018-07-25 15:58:52 +07:00 |
hathach
|
c3b082ab20
|
add tusb_usbser.inf for windows
|
2018-07-25 14:07:27 +07:00 |
hathach
|
2729937e87
|
add tud_msc_ready()
|
2018-07-25 12:26:08 +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
|
a6fede4962
|
improve tud_hid_mouse API()
|
2018-07-24 20:51:50 +07:00 |
hathach
|
b370283174
|
rename tud_hid_mouse_busy to tud_hid_mouse_ready
|
2018-07-24 20:41:06 +07:00 |
hathach
|
17369cfda0
|
change tud_hid_keyboard_busy() to tud_hid_keyboard_ready() for positive meaning
|
2018-07-24 18:18:02 +07:00 |
hathach
|
bd2313aa8b
|
house keeping
|
2018-07-24 18:17:09 +07:00 |
hathach
|
255f832904
|
rename device mouse API
|
2018-07-24 16:55:30 +07:00 |
hathach
|
3dc1d847b8
|
rename device keyboard api
|
2018-07-24 16:52:38 +07:00 |
hathach
|
3400dfdf4e
|
nrf52840 boot mouse does not work, need more work
|
2018-07-24 00:45:07 +07:00 |
hathach
|
5f6cd49031
|
clean up include
|
2018-07-23 23:41:14 +07:00 |
hathach
|
51903a60c5
|
rename timeout_ API to tu_timeout API
|
2018-07-23 22:36:29 +07:00 |
hathach
|
361928f429
|
rename timeout_timer.h to tusb_timeout.h
|
2018-07-23 22:32:21 +07:00 |
hathach
|
176607dbe1
|
rename tud_hid_mouse_is_busy to tud_hid_mouse_busy
|
2018-07-23 22:30:24 +07:00 |
hathach
|
3e209f9c20
|
enhance device hid
- add CFG_TUD_HID_ASCII_TO_KEYCODE_LOOKUP
- add tud_hid_keyboard_send_keycode(), tud_hid_keyboard_send_char(),
tud_hid_keyboard_send_string()
- add timeout_blocking_wait()
|
2018-07-23 17:46: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
|
141ac25e3b
|
also added wanted char to fifo
|
2018-07-20 15:47:28 +07:00 |
hathach
|
421ae8fc82
|
nrf: move power setup out of stack (to application)
|
2018-07-17 23:55:56 +07:00 |
hathach
|
6129670e4a
|
forgot to add tud_cdc_read_flush()
|
2018-07-17 21:20:37 +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
|
abb37e98ba
|
rename tud_cdc_flush() to tud_cdc_write_flush(), add tud_cdc_read_flush()
|
2018-07-14 23:43:19 +07:00 |
hathach
|
19b6bbfd14
|
add device cdc wanted char callback, cdc peek
|
2018-07-14 23:28:07 +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
|
ffdd925854
|
clean up
|
2018-07-13 00:34:32 +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
|
a0849fee9f
|
add nrf errata check temporarily part of hal_nrf
|
2018-07-10 22:08:03 +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
|
40de723d41
|
allow tusb_init() to call multiple times
enhance nrf5x
|
2018-07-05 00:23:47 +07:00 |
hathach
|
fc139b009f
|
add CFG_TUD_MSC_VENDOR,CFG_TUD_MSC_PRODUCT, CFG_TUD_MSC_PRODUCT_REV for msc inquiry response
|
2018-07-04 15:00:46 +07:00 |
hathach
|
3eb410cf85
|
add CFG_TUD_MSC_BLOCK_NUM, CFG_TUD_MSC_BLOCK_SZ msc device auto response to scsi read capa and read format cap
|
2018-07-04 14:39:32 +07:00 |
hathach
|
3e66d2d31e
|
rename fifo * to tu_fifo to avoid conflict with other module
|
2018-07-04 00:22:15 +07:00 |
hathach
|
ec3227b220
|
add TUD_DESC_STRCONV
|
2018-07-03 16:39:42 +07:00 |
hathach
|
1faf0a81e4
|
clean up
|
2018-07-02 17:32:09 +07:00 |
hathach
|
1ee2bee5c8
|
clean up
|
2018-07-02 11:09:22 +07:00 |
hathach
|
142300ca60
|
remove sdk, add nrfx as submodule
update segger project to work with nrfx
|
2018-07-02 11:00:05 +07:00 |
hathach
|
a08cb6e727
|
clean up
|
2018-07-01 15:54:40 +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
|
cfd5e1e6d1
|
clean up
|
2018-06-24 22:30:44 +07:00 |
hathach
|
6b2b6aaa3f
|
fix msc device with transfer len > 65k bytes
|
2018-06-24 00:16:22 +07:00 |
hathach
|
84ef486418
|
enhance and fix bug with dcd for nrf5x
fix issue with large enough bulk out.
|
2018-06-23 13:20:07 +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
|
5f1bec943b
|
fix msc block count get
|
2018-06-21 12:20:21 +07:00 |
hathach
|
a6a06bca69
|
update msc device adjust lba for read10, write10 callback
|
2018-06-19 22:59:54 +07:00 |
hathach
|
19807f0c07
|
clean up
|
2018-06-19 22:59:16 +07:00 |
hathach
|
3ace03cbc7
|
re-increase cdc buffer for nrf52840 due to bulk out issue
|
2018-06-19 15:16:26 +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 |