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
hathach
6ab0663c1a
adding more log
2019-10-24 12:00:06 +07:00
hathach
661515a807
adding debug log function
2019-10-23 21:18:46 +07:00
William D. Jones
a01b0a73c1
Remove accidentally-commited debug var.
2019-10-03 23:59:22 -04:00
William D. Jones
432e9dcd2e
Merge remote-tracking branch 'pigrew/ZLP_Request2' into msp430f5529
2019-10-03 23:50:55 -04:00
hathach
7fd68efe7b
couldn't get 32L4 running with crystal less mode
2019-10-03 13:37:10 +07:00
William D. Jones
5ee1070c16
Merge remote-tracking branch 'origin' into msp430f5529
2019-10-02 23:18:49 -04:00
William D. Jones
b0b737b42a
usbd_control.c: Decide whether a control transfer has a data stage
...
based on setup packet wLength.
2019-10-02 23:02:55 -04:00
Nathan Conrad
cef388b7bd
Merge branch 'master' into ZLP_Request2
2019-10-02 01:15:47 -04:00
hathach
204791b3e7
2nd attempt to fix #161
2019-10-01 22:19:04 +07:00
hathach
12609f818b
fix #161 added volatile for ep_busy_map/ep_stall_map
2019-10-01 14:43:34 +07:00
Nathan Conrad
4ea2a4ed60
Github's web interface changed line endings without asking me. Oops.
2019-09-29 10:45:13 -04:00
Nathan Conrad
0078be9c24
Merge branch 'master' into ZLP_Request2
2019-09-29 09:52:53 -04:00
Nathan Conrad
c4483d244b
Fix typo of CFG_TUD_ENDOINT0_SIZE.
2019-09-27 21:22:19 -04:00
Nathan Conrad
4ccdc5522d
Fix typo of CFG_TUD_ENDOINT0_SIZE.
2019-09-27 12:41:46 -04:00
Nathan Conrad
91fa24d99c
Merge branch 'master' into ZLP_Request2
2019-09-27 00:37:21 -04:00
Nathan Conrad
2aa10daf26
Merge branch 'clear_feature_ordering' into usbtmc
2019-09-21 21:39:25 -04:00
Nathan Conrad
9498adef71
Changing the bitwise to a logical OR created a huge hard to find bug. It shortcutted the call to the class function,
...
so, lets use shortcutting anyway?
2019-09-21 19:29:57 -04:00
Nathan Conrad
fbb8520acd
logical or.
2019-09-21 14:34:29 -04:00
Nathan Conrad
37b52e354f
Correct wording of comment on handling EP requests.
2019-09-21 12:17:17 -04:00
Nathan Conrad
a187f0268c
When unstalling, EP must be marked as not busy. Also, mark EP as busy when stalling as xfer requests should fail.
2019-09-21 12:05:57 -04:00
Nathan Conrad
be28a05409
Make type casting explicit
2019-09-21 12:05:46 -04:00
Nathan Conrad
55abb3d717
Calling EP open with bad parameters should be considered a bug.
2019-09-21 12:02:52 -04:00
Nathan Conrad
aebecf169a
Reorder handling of EP control requests,
2019-09-21 12:02:06 -04:00
Nathan Conrad
b6590490a8
USB Control: Pointer arithmetic on void* is forbiden
2019-09-21 12:00:52 -04:00
Nathan Conrad
2a7ca15e2c
Rename functions to include tud_ and _cb
2019-09-19 20:43:49 -04:00
Nathan Conrad
7e0490bbf3
Move descriptors to usbd.h
2019-09-19 19:51:37 -04:00
Nathan Conrad
ac2c9ff02f
Merge branch 'master' into usbtmc
2019-09-17 13:31:53 -04:00
hathach
9c5ae0369b
follow up to suggestion to pr 155
2019-09-16 11:13:17 +07:00
Nathan Conrad
1cae96951f
Add usbtmc class driver.
2019-09-14 13:35:08 -04:00
hathach
ac8c343fef
fix #154 forward all endpoint recipeint request to class driver
...
fix typo
remove magic number 0xff of driver id
2019-09-13 22:16:24 +07:00
hathach
064adebbd0
fix #152 , potential memory issue
2019-09-13 14:03:59 +07:00
hathach
c3598f0301
fix #139 , correct usbd request intepreting, Non-STD request to Interface must be forward to class driver
2019-09-13 13:03:11 +07:00
Nathan Conrad
340dcb81bf
For control transfers, compare the transmitted length against the requested length to know if a ZLP needs to happen. ( fixes #139 )
2019-09-12 16:06:45 -04:00
Nathan Conrad
4517d504b8
Fix typo of ENDOINT
2019-09-09 13:34:30 -04:00
hathach
48c7b80c57
fix warnings of template descriptor
2019-08-23 13:33:40 +07:00
hathach
30de17a830
clean up
...
- remove TUD_WEBUSB_URL_DESCRIPTOR to avoid flexible array member (C++
forbid in strict mode)
- remove unused TUD_DESC_STRLEN/TUD_DESC_STR_HEADER/TUD_DESC_STR_HEADER
2019-08-01 13:20:00 +07:00