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
be90779db5
Temporary workaround for ENDPOINT_INT_INTERVAL_IN_HID definition
2021-12-08 12:33:37 +00:00
Ciaran Woodward
de382e5cc0
Merge remote-tracking branch 'angel/feature/multiple_hid_reports' into feature/multiple_hid_reports_tests
2021-12-08 11:28:37 +00:00
Angel Cascarino
6dfc934d36
Correct error in hidCaptureReportTime
2021-12-08 11:14:52 +00:00
Ciaran Woodward
7dfd78deb4
Update unit test header to match new report id api
2021-12-08 11:01:33 +00:00
Angel Cascarino
fac0542920
Merge branch 'mbanth:feature/multiple_hid_reports' into feature/multiple_hid_reports
2021-12-08 10:47:55 +00:00
mbanth
8c9e8b11b9
Changes to support the Set Idle request with multiple Report IDs
2021-12-07 18:50:28 +00:00
Angel Cascarino
21b259bc88
Update legacy_test to new HID API
2021-12-07 18:12:00 +00:00
Angel Cascarino
589c16d56c
Updated gitignore
2021-12-07 17:17:14 +00:00
mbanth
b4d5cb93f1
Use an unsigned constant with an unsigned variable
2021-12-07 10:35:20 +00:00
mbanth
1d22975fd2
Update HID initialisation and handling to include multiple reports and the effect of the Set Idle command
2021-12-06 17:28:30 +00:00
mbanth
5354d94987
Remove unused pointer
2021-12-06 17:16:11 +00:00
mbanth
171ef30f42
Remove redundant function declaration
2021-12-06 13:53:20 +00:00
mbanth
8c175187c8
Modify hidClearChangePending(), hidIsChangePending() amd hidSetChangePending() to operate on a Report ID basis
2021-12-01 12:26:26 +00:00
mbanth
53f80dfba4
Add documentation
2021-12-01 12:25:18 +00:00
mbanth
21c1e661ae
Change static variable names to indicate that they are static.
2021-12-01 09:47:52 +00:00
mbanth
d515458b83
Add id parameter to hidClearChangePending(), hidIsChangePending() and hidSetChangePending(). Correct the name of the underlying static variable.
2021-12-01 09:42:32 +00:00
mbanth
b853589120
Move the HID Clear Pending, Is Pending and Set Pending functions from hid.xc to hid_report_descriptor.c.
...
These functions are called from the application so they do not belong in hid.xc which contains internal XUA functionality.
2021-11-30 18:29:17 +00:00
mbanth
966d8db9a9
Additional documentation and a minor renaming of an automatic variable
2021-11-30 15:05:37 +00:00
mbanth
dc22b0593f
Additional documentation
2021-11-30 15:04:33 +00:00
mbanth
0892ff9a8b
Move the declaration of the HID Get Report Limit function and provide its definition
2021-11-29 17:09:26 +00:00
mbanth
65b1b41ec4
Change the interface to UserHIDGetData() and UserHIDRecordEvent()
2021-11-26 16:32:12 +00:00
mbanth
3b6f1c80e2
Move HID_REPORT_COUNT to hid_report_descriptor.h
2021-11-26 16:30:47 +00:00
mbanth
bf9e150310
Use size_t for each index into an array.
2021-11-26 13:40:58 +00:00
mbanth
1857ddbc67
Set constant values explicitly to unsigned. Add access function for HID Report length. Update hidGetReportItem() and hidSetReportItem() to check for correct Reporty ID. Update hidGetReportLength() to report the length of the given HID Report. Update hidGetUsagePage() to iterate across all HID Reports.
2021-11-26 10:50:53 +00:00
mbanth
145c0cb80f
Set constant values explicitly to unsigned
2021-11-26 10:46:03 +00:00
mbanth
1fe4fc6771
Safety commit. Builds but not run.
2021-11-25 17:30:30 +00:00
mbanth
88a3d6b20d
Initial commit made to keep a safe copy. Builds but will not run and definitely very incomplete.
2021-11-24 16:06:17 +00:00
Ross Owen
33ec43134c
Merge pull request #224 from xross/fix/223
...
fix/223
2021-10-26 14:57:45 +01:00
xross
2bbebc0a39
Further removed of XS1 support items
2021-10-18 17:05:35 +01:00
xross
32af5b7b20
Removed XS1 implementation in fastmix.S
2021-10-18 16:54:54 +01:00
xross
fc6915be6f
Removed XS3 related warning from reboot.xc
2021-10-18 16:49:46 +01:00
xross
d9dc7cc7c7
XS2 now special case in DFU flag check
2021-10-18 16:45:07 +01:00
xross
898a6c2410
Remove XS1 related USB port. Also fixed errors related to removing XS1 support from ADAT
2021-10-18 16:38:32 +01:00
xross
da758f48fa
Removed remaining references to SU1 devices
2021-10-18 16:37:33 +01:00
Michael Banther
8233ef1d47
Merge pull request #218 from mbanth/feature/fix_hid_set_report_item
...
Fix hid set report item
2021-08-26 16:52:06 +01:00
mbanth
1109e08dd8
Increment version and add change log entry
2021-08-26 16:25:40 +01:00
mbanth
15f1d4de59
Use correct order of expected vs actual results in test assertions
2021-08-26 16:13:23 +01:00
mbanth
911a82cd83
Add test for the case of a modified item that of length 1 that overwrites data of length 2
2021-08-25 18:16:54 +01:00
mbanth
ec657d1e8d
Zero the MSB if given an item of length 1
2021-08-25 18:13:12 +01:00
Luciano Martin
ef46bd72b9
Merge pull request #216 from xmos/feature/update_dependency_version
...
Updare lib_xud dependency version
2021-08-20 15:48:17 +01:00
lucianom
7abcb487a9
Updare lib_xud dependency version
2021-08-20 14:55:05 +01:00
Luciano Martin
e87a53ff83
Merge pull request #214 from lucianomartin/feature/lib_xud_v2_0_0
...
Update clock blocks to support lib_xud v2.0.0
2021-08-06 11:50:43 +01:00
lucianom
8e05595710
Update clock in unit test
2021-08-06 10:21:38 +01:00
lucianom
ffee831f5d
Updated clock blocks to support lib_xud v2.0.0
2021-08-06 08:52:36 +01:00
Michael Banther
9d148f68a3
Merge pull request #209 from mbanth/feature/bump_version
...
Bump version to 2.0.1
2021-07-26 14:47:48 +01:00
mbanth
3b1b7f81dc
Bumped version to 2.0.1
2021-07-26 14:23:27 +01:00