Yannis Damigos
bf74f5410f
tests/subsys/usb/device: Fix comment and message
...
Fix comment and message.
Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2019-05-20 09:04:08 -04:00
Andrei Emeltchenko
f350c275e1
tests: usb: Add write() and set_callback() tests
...
Add more tests for invalid EP testing.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
8cf9bf032b
tests: usb: Add usb_read() for invalid endpoint
...
Check that reading invalid endpoint does not succeed.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
1178042cf4
tests: usb: Add more USB DC tests and refactor names
...
Add more tests covering almost all DC API with invalid parameters.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
1b1c5f72d9
tests: usb: Add write() and set_callback() tests
...
Add more tests for invalid EP testing.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
dad6ddef7f
tests: usb: Cleanup tests
...
General test cleanup and remove optimized variables.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
d0bc6891d8
tests: usb: Add usb_read() for invalid endpoint
...
Check that reading invalid endpoint does not succeed.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
9fa5d9a5bf
tests: usb: Fix checking error code
...
Instead of checking for -EINVAL check that return is not successful
since USB device may return other error code.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Andrei Emeltchenko
69726bbccb
usb: tests: Enable other boards for test
...
Enable other boards with USB device supported
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-18 12:16:05 -04:00
Johann Fischer
c13e201b18
usb: replace MAX_PACKET_SIZE0 with meaningful USB_MAX_CTRL_MPS
...
Replace MAX_PACKET_SIZE0 with meaningful USB_MAX_CTRL_MPS.
Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-04-11 13:35:24 -04:00
Anas Nashif
3ae52624ff
license: cleanup: add SPDX Apache-2.0 license identifier
...
Update the files which contain no license information with the
'Apache-2.0' SPDX license identifier. Many source files in the tree are
missing licensing information, which makes it harder for compliance
tools to determine the correct license.
By default all files without license information are under the default
license of Zephyr, which is Apache version 2.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-07 08:45:22 -04:00
Andrei Emeltchenko
721f3d1cd0
usb: Refactor USB status callback
...
Merge cb_usb_status_composite and cb_usb_status and use common
forward_status_cb for both composite and normal devices.
Fixes #14882
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-04-05 12:23:57 +02:00
Andrei Emeltchenko
43d7c5bd2c
tests: usb: Add more basic device API tests
...
Add more tests testing basic API and native_posix driver.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-02-08 07:56:24 -05:00
Andrei Emeltchenko
9832f1c1cb
tests: device: Remove wpanusb mentions from the test
...
Remove wpanusb prefixes for the test to be more generic.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-02-08 07:56:24 -05:00
Andrei Emeltchenko
b483804c75
usb: tests: Add basic unit test for USB drivers
...
Add basic tests testing simple endpoint enable and configuration.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-02-01 19:03:12 -05:00