hathach
df1aac44b8
add board_noos_millis() for blinky
2019-03-23 16:51:07 +07:00
hathach
c211ee19dd
migrate license from BSD 3 clause to MIT
2019-03-20 16:11:42 +07:00
hathach
5e92d67015
stm32 update TX Fifo for edpt IN, both CDC + MSC work great
...
- call dcd_event_xfer_complete() when enough bytes received
- add dcd_get_frame_number()
2019-03-15 18:43:09 +07:00
Scott Shawcroft
52abbec7c5
Remove txbuf in favor of fifo.
...
Fifo incurs a second copy into a USB buffer but this ensures the
correct USB buffer alignment. Some LPC chips require 64 byte
alignment that txbuf couldn't do.
2019-01-08 14:10:40 -08:00
Scott Shawcroft
048fc9694c
Split out txbuf and add unit test.
2019-01-04 18:27:00 -08:00
hathach
902697ca07
add dcd_get_microframe()
2018-12-17 12:14:11 +07:00
hathach
351f0d7d78
merge binary.h into tusb_common.h
2018-12-14 15:45:49 +07:00
hathach
2a60427bdc
rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency
2018-12-14 15:30:54 +07:00
hathach
a3713f801d
clean up compiler attribute
2018-12-14 13:08:21 +07:00
hathach
a6b9432600
clean up error enum
2018-12-13 14:57:21 +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
5fd60e5761
clean up
2018-12-12 12:36:40 +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
67d6d753d6
replace all hcd pipe close by hcd_device_remove
2018-12-12 00:00:33 +07:00
hathach
600fac1845
fix build error with ohci
2018-12-11 16:18:56 +07:00
hathach
9c4c797502
add ep addr to host cdc
2018-12-10 19:01:28 +07:00
hathach
9478c647e3
change usbh_control_xfer name and signature
2018-12-07 12:23:37 +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
394a22ecf7
remove pragma GCC diagnostic
2018-11-23 15:25:25 +07:00
hathach
a619ff88a3
rename xfer complete enum
2018-11-23 15:17:43 +07:00
hathach
cb8782e5f2
rename tusb_event_t to xfer_result_t
2018-11-23 15:14:47 +07:00
hathach
569e85a0c0
cdc work ok with lpc43xx
2018-11-22 17:40:20 +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
983225ae60
Merge pull request #7 from tannewt/tinyusb_samd
...
Add SAMD support and simplify OS_NONE
2018-11-14 15:36:12 +07:00
hathach
3fe7cd1659
added tud_cdc_write_str, tu_fifo only use mutex for RTOS config
2018-11-13 15:45:22 +07:00
Scott Shawcroft
537a29273c
Exempt from strict warnings for struct packing and add MCU options
2018-11-09 00:10:44 -08:00
hathach
f6076b0e06
add mutex support (optional) for tu_fifo
2018-11-02 17:28:07 +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
c7340f4b0e
clean up helper func
2018-10-23 12:19:32 +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
1a4a27324b
clean up
2018-09-02 20:30:07 +07:00
hathach
460285f852
fix compiler static assert complain
2018-08-23 21:05:52 +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
e07b1acbed
rename VERIFY to TU_VERIFY to avoid conflict with application
2018-08-13 18:10:23 +07:00
hathach
683bb574e7
hid device enhance
2018-07-29 14:03:48 +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
5dd02cbdd3
house keeping
2018-07-27 16:59:57 +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
bd2313aa8b
house keeping
2018-07-24 18:17:09 +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
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
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