Commit Graph

1755 Commits

Author SHA1 Message Date
Scott Shawcroft 909891325a Fix slow CDC OUT by NAKing
This NAKs CDC OUT packets when the ring buffer doesn't have
enough space for it. This makes CDC OUT reliable rather than
allowing overwriting into the ring buffer.
2019-03-21 14:52:56 -07:00
hathach 29b49199be Merge pull request #34 from hathach/develop
add tusb_inited(), better compatible with nrf SD
2019-01-29 20:13:17 +07:00
hathach 1a84f5da54 nrf5x Let application decide USBD_IRQn priority 2019-01-29 19:42:31 +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
hathach 777f41a066 clean up 2019-01-29 18:47:29 +07:00
hathach 6752a71264 usb work when sd is init first 2019-01-29 18:02:25 +07:00
hathach ae560bd825 fix segger debug with SD
- Add macro NO_VTOR_CONFIG
- In Properties -> Debugger -> Debugger Options -> Start From Entry
Point Symbol, set to 'No.' This is because we should enter our
SoftDevice's ResetHandler(), not our applications. For more information,
see RK's comment below.
2019-01-29 17:31:32 +07:00
hathach c81b56eb45 nrf5x usb init before sd works 2019-01-29 17:05:53 +07:00
hathach d8b361fdaa add S140 v6 build config for nrf5x 2019-01-29 14:15:13 +07:00
hathach cff217fb47 Merge branch 'devlocal' into develop 2019-01-25 16:04:06 +07:00
hathach bd53256126 fix #32 2019-01-23 19:06:37 +07:00
hathach 5804e56e3c Merge pull request #31 from tannewt/remove_txbuf
Remove txbuf in favor of fifo.
2019-01-09 13:14:02 +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
hathach 7016d7fa54 Merge pull request #30 from tannewt/midi
Add MIDI support
2019-01-07 23:45:33 +07:00
Scott Shawcroft aa281521a6 Fix the test 2019-01-04 18:32:42 -08:00
Scott Shawcroft ebbd8578af Change travis for makefile. 2019-01-04 18:29:52 -08:00
Scott Shawcroft 048fc9694c Split out txbuf and add unit test. 2019-01-04 18:27:00 -08: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 e6224bccf9 adding makefile support for nrf5x
got undefined reference to `_start'
2019-01-02 22:35:42 +07:00
hathach 4bcd3f9a8f more readme 2018-12-29 14:39:28 +07:00
hathach 4e2a79a8bb update makefile 2018-12-29 14:38:36 +07:00
hathach 6b0a747d28 update readme 2018-12-29 14:36:57 +07:00
hathach 6ed96cb93b Merge pull request #27 from hathach/devlocal
clean up & add dcd_get_frame_number()
2018-12-21 14:23:36 +07:00
hathach 257d60fe1a white spaces 2018-12-21 12:58:53 +07:00
hathach 6f17b4e019 change to dcd_get_frame_number 2018-12-21 12:46:20 +07:00
hathach 426064201a fix samd build 2018-12-19 13:16:42 +07:00
hathach 902697ca07 add dcd_get_microframe() 2018-12-17 12:14:11 +07:00
hathach 455da57f9d docs clean up 2018-12-17 12:08:11 +07:00
hathach 10021eda67 minor readme update 2018-12-15 13:13:22 +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 27208ad2fd Merge pull request #25 from hathach/devlocal
remove OSAL_TASK_DEF, osal_task_create
2018-12-13 15:28:04 +07:00
hathach edf885ca46 white spaces 2018-12-13 15:25:43 +07:00
hathach 07bcc6ca91 clean up files 2018-12-13 15:20:28 +07:00
hathach a6b9432600 clean up error enum 2018-12-13 14:57:21 +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 b562fa741b Update readme.md 2018-12-12 23:08:08 +07:00
hathach fafef1aa17 Update LICENSE 2018-12-12 16:59:39 +07:00
hathach cb830a82e0 docs clean up 2018-12-12 16:57:10 +07:00
hathach aa17ec60d3 Merge branch 'develop' 2018-12-12 16:49:38 +07:00
hathach 908931320e Merge pull request #21 from hathach/devlocal
Devlocal
2018-12-12 16:41:12 +07:00
hathach 142f274c1d docs update 2018-12-12 16:35:53 +07:00
hathach a76d3a8726 clean up 2018-12-12 14:53:11 +07:00
hathach bb544a0951 minor update 2018-12-12 14:43:45 +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