Commit Graph

6 Commits

Author SHA1 Message Date
Johann Fischer
489f4acd68 tests: udc: get UDC driver skeleton tested on native_posix_64
Get UDC driver skeleton tested on native_posix_64.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-05-17 12:26:48 +02:00
Gerard Marull-Paretas
93b63df762 samples, tests: convert string-based twister lists to YAML lists
Twister now supports using YAML lists for all fields that were written
as space-separated lists. Used twister_to_list.py script. Some artifacts
on string length are due to how ruamel dumps content.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-10 09:52:37 +02:00
Johann Fischer
ad81b3b797 drivers: udc: move transfer status to buffer info structure
This allows us to get the result of synchronous transfer without
any hacks, just from the net_buf structure.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-03-23 10:08:03 +01:00
Johann Fischer
18a03ced93 tests: drivers: udc: fix udc_ep_try_config() test
Behavior of udc_ep_try_config() is changed by the commit e60a4efbb0
("drivers: udc: do not update MPS for isochronous endpoints"),
update test case accordingly.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-13 10:11:52 +01:00
Johann Fischer
33a8635008 tests: drivers: udc: fix uninitialized variable and thread
Variable to get MPS supported by the controller was used
uninitialized. This caused the test to fail depending on
the memory state.

test_udc_device_get has to be called only once, at the very
beginning. This was overlooked during migration to new test API.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-12-14 12:06:03 +01:00
Johann Fischer
db1fb82c18 tests: drivers: add simple UDC driver test
Simple test for API rules, allocation, queue, and dequeu
of the endpoint requests. USB device controller should not be
connected to the host as this state is not covered by this test.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-12-02 12:55:18 +01:00