Ross Owen
1ef5129fde
Variable i2s bit width ( #331 )
...
- Add support for variable width I2S (via XUA_I2S_N_BITS)
- Add support for variable width TDM (again via XUD_I2S_N_BITS when XUA_PCM_FORMAT=XUA_PCM_FORMAT_TDM)
- Includes support for xcore as I2S/TDM master and slave
- Add testing of the the above to test_i2s_loopback
- Rationalised test config building in test_i2s_loopback
- Documentation updated
2023-06-08 15:31:12 +01:00
Ross Owen
e2c36a9a95
xpd: Cleaned up whitespace
2023-03-15 13:00:39 +00:00
Ross Owen
208491fe51
Added mixer control unit tests ( #316 )
...
* Added test_mixer_routing_output_ctrl
* Added test_mixer_routing_input_ctrl
* Some minor mixer test and code improvements
* Update lib_xud dep version requirement
2023-03-08 10:53:33 +00:00
Ross Owen
6d8cf9913f
Increase timeout cycles for test_mixer_routing_output
2023-02-06 23:42:33 +00:00
Ross Owen
73955c1a4c
- Added mixer related defines to reduce use of magic numbers
...
- Increases debug output when DEBUG flag set
- Removed some dead code
- Increased alignment of asm mixer functions
- Removed some usages of “xc_ptr” type in favour of native pointers in XC
- Added some asserts to mixer
- Added test_mixer_routing_input
- Moved test_mixer_routing_output to use shared code
2023-02-01 11:54:48 +00:00
Ross Owen
0ce91bec90
Copyright comment
2023-01-17 12:12:46 +00:00
Ross Owen
2404eaf35f
Remove extern, mark static inline
2023-01-17 11:53:44 +00:00
Ross Owen
513761ef5b
Moved DoSampleTransfer to a header file so it can still be inlined (but also used in unit tests). Resolves fails in test_i2s_loopback
2023-01-17 11:33:52 +00:00
Ross Owen
da7c45500d
- Added test_mixer_routing_output
...
- Various buffers no longer marked static to allow for easier unit testing
- Added some comments and removed some dead code from the implementation
- Moved mixer control comms to functions for unit test convenience
2023-01-16 17:28:04 +00:00
xross
16ce73391a
xpd: Cleaned up whitespace
2022-10-25 19:18:28 +01:00
xross
e1d0974912
test_i2s_loopback:
...
- Add tracing options
- Add TDM testing at 96khz
- Fix up defines
2022-09-28 11:09:33 +01:00
xross
b17cc0de6d
Copyright and licence comments
2022-08-08 11:15:50 +01:00
xross
5690442a4b
- test_sync_clk_basic and test_sync_clk_plugin now run at FS & HS
...
- test_sync_clk_plugin marked as known failure (now fails as expected for HS and FS)
2022-08-04 19:54:29 +01:00
xross
3a9f2fff3a
* Renamed test_sync to test_sync_clk_basic
...
* Authored test for known issue in sync mode, test_sync_clk_plugin
* Removed some unrequired test related files
2022-08-03 17:25:32 +01:00
xross
2c01f440fd
Added basic test for PLL reference generation on Sync mode
2022-08-03 16:50:28 +01:00
xross
43c561c831
Add tracing related options to conftest
2022-08-03 15:12:12 +01:00
xross
a0f5591e0b
Auto-format via black
2022-07-21 13:10:47 +01:00
xross
36dedc494c
Update to latest test_support api
2022-07-21 13:10:38 +01:00
xross
06822c7499
Conflicted merge
2022-07-13 16:49:48 +01:00
xross
9401bfff83
- Rename app_test_i2s_loopback to test_i2s_loopback
...
- Port test_i2s_loopback from xmostest to pytest and test_support
2022-07-05 18:14:05 +01:00
xross
476e3d9f2f
app_test_i2s_loopback: Update makefile
2022-07-05 12:30:13 +01:00
xross
438c24d436
Moved legacy tests into tests
2022-07-05 12:05:31 +01:00
xross
638a4f0d16
Bulk copyright comment update
2022-06-01 14:47:58 +01:00
xross
206a895b74
xpd: Cleaned up whitespace
2022-06-01 14:21:44 +01:00
Michael Banther
769bfa1a5a
Remove unnecessary HID functionality ( #243 )
...
* Include HID report functionality only when the HID feature is enabled
* Define HID_CONTROLS=1 so HID unit tests work correctly
2022-02-21 13:20:52 +00:00
Angel Cascarino
c60da7fd82
Reversed renaming function to avoid upversioning
2022-01-11 17:57:18 +00:00
Angel Cascarino
45ab345521
Update copyright
2022-01-11 16:35:44 +00:00
Angel Cascarino
692c4ee7ed
Missed brace
2022-01-11 16:31:07 +00:00
Angel Cascarino
5fa86dabbb
Updated unit tests to remove "reportAll" tests
2022-01-11 16:27:28 +00:00
Ciaran Woodward
cb774f3c11
Modify unit test report descriptor to match the working 3610
2021-12-23 12:38:27 +00:00
Ciaran Woodward
466cc0abbb
Fix the handling of setidle requests
2021-12-22 16:29:03 +00:00
Ciaran Woodward
e7f9428731
Fix typos in unit tests
2021-12-20 17:34:01 +00:00
Ciaran Woodward
6400e146d0
Add an iterator style mechanism for iterating through report IDs
2021-12-20 17:26:08 +00:00
Ciaran Woodward
d3d9b5ba23
Add hidReportIdInUse command to determine whether report IDs are used
2021-12-17 14:35:23 +00:00
Ciaran Woodward
c3e95a379f
Add some report time tests & fix comments]
2021-12-15 12:44:39 +00:00
Ciaran Woodward
5be97ac227
Begin work on setidle unit tests
2021-12-14 14:15:48 +00:00
Ciaran Woodward
71dd8b5409
Add descriptor validation function & fix issues it found
...
Note this is in progress, I either want to move the check function somewhere else,
or convert the printf calls to something else (I imagine some kind of log function
exists?)
2021-12-10 18:00:04 +00:00
Ciaran Woodward
548ccebb27
Propegate constants and helper macro around codebase
2021-12-10 11:32:04 +00:00
Ciaran Woodward
3895b486ab
Add constants header for common constants; helper macro for header
2021-12-10 10:45:54 +00:00
Ciaran Woodward
353d7c3c8d
Fix merge issues
2021-12-09 17:28:16 +00:00
Ciaran Woodward
5f971af054
Merge remote-tracking branch 'michael/feature/multiple_hid_reports' into feature/multiple_hid_reports_tests
2021-12-09 17:19:04 +00:00
mbanth
2b5dab51b5
Add explicit initialization of static variables in hid_report.c
2021-12-09 16:15:29 +00:00
Ciaran Woodward
19be25809b
Fix implementation of hidGetReportIdLimit to match docs & usage
2021-12-09 16:10:28 +00:00
mbanth
26cac1abb1
Update includes of xua_hid_report.h
2021-12-09 15:58:51 +00:00
Ciaran Woodward
1b186a0c2f
Remove test-specific information from hid_report_descriptor.h
2021-12-09 14:55:38 +00:00
Ciaran Woodward
ed7a33b40f
Write a bunch of unit tests that exercise the HID report IDs
2021-12-09 11:45:03 +00:00
Ciaran Woodward
459ce6bd63
Begin building up a set of multi-report unit tests
...
This work is starting by expanding the tests written for
single report purposes. I have also added a couple of
extra simple tests that made sense (under/overflow of
report IDs) as I went along.
2021-12-08 17:55:33 +00:00
Ciaran Woodward
3819f30ad0
Enable waf building unit tests in different confgurations
2021-12-08 15:47:15 +00:00
Ciaran Woodward
79e256f829
Update existing unit tests to work with the new API
2021-12-08 12:34:14 +00:00
Ciaran Woodward
7dfd78deb4
Update unit test header to match new report id api
2021-12-08 11:01:33 +00:00