Nathan Conrad
7f6316dbe1
Use CRLF on UART.
2020-03-14 14:26:14 -04:00
hathach
c8247f0907
fix zlp for nrf52840
2020-03-08 14:20:28 +07:00
hathach
7aa5a53652
fix log printf
2020-03-08 13:26:36 +07:00
Ha Thach
5f5ee465a6
Merge pull request #291 from hathach/port-samg55
...
Port samg55
2020-03-07 16:38:59 +07:00
Peter Lawrence
fee79d7466
add CDC-ECM/RNDIS/CDC-EEM network device class with example
2020-03-02 21:15:01 -06:00
Chang Feng
b8ea0f0a6b
Add langid support to descriptor string callback.
...
Signed-off-by: Chang Feng <chang_196700@hotmail.com>
2020-02-26 13:07:15 +08:00
hathach
b6b9fe42af
more log for debugging
2020-02-07 16:43:44 +07:00
Nathan Conrad
25c1bea782
Normalize line endings
2020-01-15 14:47:43 -05:00
Ha Thach
d6a8d42bd6
Merge pull request #254 from majbthrd/multi-setconfig
...
gracefully handle multiple SET_CONFIGURATION requests
2020-01-05 17:48:55 +07:00
Jeremy Herbert
db24b2f372
Let device respond to endpoint requests on EP0 ( #251 )
...
Since endpoint 0 is used for control requests, it doesn't have a class driver attached to it. As such, the corresponding `_usbd_dev.ep2drv` entry points to driver `0xFF`, which is invalid and this makes the `TU_ASSERT(drvid < USBD_CLASS_DRIVER_COUNT);` line fail, and eventually causes an endpoint stall. So as-is the stack cannot respond to any endpoint requests on endpoint 0.
However, standard requests on endpoint 0 do not need a class driver to produce a valid response. This commit changes the order of execution so that the assert is only checked if the endpoint is not 0.
2019-12-30 10:58:06 +07:00
Peter Lawrence
e7bf66b29e
gracefully handle multiple SET_CONFIGURATION requests
2019-12-28 16:49:52 -06:00
hathach
2caa1ac078
Merge branch 'master' into develop
2019-12-24 21:13:05 +07:00
hathach
bbada1d3e6
adding lookup table for debugging
...
add msc scsi command list
2019-12-23 18:54:06 +07:00
hathach
050fa2fd39
able to response to scsi inquiry, but failed to response to test unit ready
2019-12-21 19:33:41 +07:00
hathach
a1e55e57a4
clean warnings
2019-12-20 17:09:42 +07:00
hathach
d7558e8a0f
use dcd_edpt0_status_complete() to set address without blocking for samd21/samd51/stm32_fsdev
2019-11-28 13:39:29 +07:00
hathach
5dc04887e2
get passed set address
2019-11-28 11:48:08 +07:00
hathach
6bc245cb36
add dcd_edpt0_status_complete() which is useful for several mcu port
2019-11-28 11:46:36 +07:00
hathach
40b454cf28
get passed first get device descriptor
2019-11-27 23:20:48 +07:00
hathach
8a1b6327ba
extract code to invoke_class_control()
...
- also rename usbd_class_drivers to _usbd_driver
2019-11-27 12:12:52 +07:00
hathach
f5d737aa7e
moving irq to bsp for lpc17/40
2019-11-21 23:19:38 +07:00
hathach
bbec47b647
adding tud_isr/tuh_isr with lpc18/43
2019-11-21 22:20:30 +07:00
hathach
1ab3a1035c
Merge branch 'master' into cr1901-msp430f5529
2019-11-05 10:17:36 +07:00
hathach
3c49ff153e
Merge pull request #149 from pigrew/ZLP_Request2
...
Zlp request2
2019-11-05 00:05:21 +07:00
Nathan Conrad
8d0fa158d7
Change one more TU_ASSERT to TU_VERIFY in usbd.
2019-11-04 11:33:14 -05:00
hathach
2727983a2d
fix #211
2019-11-04 22:52:29 +07:00
Nathan Conrad
a94fe05ecb
usbd: Change TU_ASSERT to TU_VERIFY as the assertion can be hit when bad data is sent from host.
2019-11-04 08:59:29 -05:00
hathach
44ad683bd6
fix tud_control_status() didn't update request
2019-11-04 11:21:57 +07:00
hathach
65e96e5d52
added optional dcd_control_status_complete()
2019-11-03 18:00:07 +07:00
hathach
62f8c14fae
add a bit of log1 for debugging
2019-11-03 14:08:38 +07:00
hathach
7bf01e218d
make control buf static
2019-11-03 11:43:07 +07:00
hathach
1b51b78eaf
hack the request length for the first get device descriptor if EP0 size =8 or 16
...
to prevent usbd control send out ZLP
2019-11-03 00:17:17 +07:00
hathach
a0cffdc843
Merge branch 'pigrew-ZLP_Request2' into cr1901-msp430f5529
2019-11-02 23:29:35 +07:00
hathach
164d0db825
Merge branch 'ZLP_Request2' into pigrew-ZLP_Request2
2019-11-01 10:16:59 +07:00
Nathan Conrad
d35f86993f
Merge remote-tracking branch 'origin/master' into ZLP_Request2
2019-10-31 12:23:54 -04:00
hathach
cacbb80a90
zlp should work with control in, tested with Unity framework
2019-10-31 21:14:06 +07:00
hathach
6de9eb4b1a
add more tests, fix an issue with tud_descriptor_configuration_cb() return NULL
2019-10-31 13:06:57 +07:00
hathach
d9ba4d90a8
move function around, more rename
2019-10-31 12:26:36 +07:00
hathach
0029b58417
rename
2019-10-31 12:18:41 +07:00
hathach
e6857d8ee0
clean up
2019-10-31 11:25:41 +07:00
hathach
8a57997c0f
Merge branch 'master' into pigrew-ZLP_Request2
2019-10-31 09:57:52 +07:00
hathach
4d329d46cc
Merge pull request #206 from hathach/develop
...
Added a couple of unit testing with Ceedling/Cmock/Unity
2019-10-31 08:29:11 +07:00
hathach
a0002cc709
rename usbd_init() to tud_init()
2019-10-30 23:26:34 +07:00
hathach
16665672a4
initally adding test_usbd.c
2019-10-30 12:24:07 +07:00
hathach
880ac1e398
move dcd event helper to be dcd.h as inline function
2019-10-30 11:35:25 +07:00
hathach
a29eb87c38
Merge branch 'ZLP_Request2' of https://github.com/pigrew/tinyusb into pigrew-ZLP_Request2
2019-10-29 18:19:10 +07:00
hathach
f6a65720e5
should fix #184
...
only response up to EP0 size with get device descriptor if not
addressed.
2019-10-29 16:25:32 +07:00
hathach
78523301bb
Merge pull request #202 from smunaut/dfu-rt
...
Add support for DFU Runtime class for devices
2019-10-28 22:56:14 +07:00
Sylvain Munaut
ec4ecfa817
Add support for DFU Runtime class for devices
...
This is really just a few descriptors and then answering to the
request from the host to reboot into DFU mode.
That latter part is delegated to the app since this is platform
specific.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-10-28 16:11:08 +01:00
hathach
4e8c57171c
Merge branch 'master' into cr1901-msp430f5529
2019-10-25 21:20:05 +07:00