Commit Graph

80 Commits

Author SHA1 Message Date
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
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
lucianom
8e05595710 Update clock in unit test 2021-08-06 10:21:38 +01:00
mbanth
e8e31ed8ff Move the Clock Block (again) 2021-07-06 17:26:30 +01:00
mbanth
5910638bed Add and modify unit tests 2021-07-06 16:47:58 +01:00
mbanth
e3068ad245 Use an unused clock block 2021-07-06 16:45:39 +01:00
mbanth
b711b3adf6 Update to version 2.0.0 2021-06-22 15:59:16 +01:00
mbanth
5c402f26c9 Add cmake files 2021-06-22 13:45:24 +01:00
mbanth
00eb07e637 Change MCLK clock block to avoid overlap with XUD 2021-06-15 16:25:19 +01:00
mbanth
fd45908ff6 Add function to return the length of the HID Report 2021-06-03 15:53:50 +01:00
mbanth
4c9130166c Rename a constant to match the expected name 2021-06-01 14:41:15 +01:00
mbanth
f2b09522b8 Remove dead code 2021-05-27 16:49:21 +01:00
mbanth
13abe0e9e1 Update unit tests for explicit reset 2021-05-27 12:26:57 +01:00
mbanth
3c129ab521 Update unit tests to align with Report descriptor defined in application 2021-05-27 11:37:25 +01:00
mbanth
6adc94642a Attempt to correct the copyright date range 2021-05-26 14:07:06 +01:00
mbanth
7b433a40fc Assign an unused clock block to MCLK 2021-05-26 12:18:11 +01:00
mbanth
b81d096a5a Add XS1-specific XUD symbol to allow building with the current develop branch of lib_xud 2021-05-26 12:17:38 +01:00
mbanth
02596cc5a9 Clean-up 2021-05-25 15:12:45 +01:00
mbanth
a9dddfab2f Add tests: configurable and non-configurable items, and combined functions 2021-05-25 14:22:09 +01:00
mbanth
f3e8a1937f Add header tag and type tests 2021-05-25 12:07:11 +01:00
mbanth
b1f3cc0024 Add size range tests. Fix misspelled function name. 2021-05-25 11:23:18 +01:00
mbanth
b552d60567 Add byte range tests 2021-05-25 08:59:20 +01:00
mbanth
3ae4a4e456 Add tests for max and min valid bit location and one for an underflow 2021-05-24 17:12:32 +01:00
mbanth
728980e7dc Add test that specifies a bit out-of-range when modifying a report item 2021-05-24 16:54:01 +01:00
mbanth
f1a1ee077f Add test for returning an initialized Report descriptor 2021-05-24 16:01:54 +01:00
mbanth
eb6d3b0869 Split functionality into test code in pure C and helper code in XC 2021-05-24 15:47:31 +01:00
mbanth
fbef825a3b Add include path to HID header files 2021-05-24 15:46:16 +01:00
mbanth
c0dade0156 Updated trivial test. Builds for xCore200 with minimal warnings. 2021-05-20 15:47:02 +01:00
mbanth
ede81bd5f7 Working infrastructure for xCore200 2021-05-20 15:29:25 +01:00
mbanth
7836aacf47 Do not track Unity test runners 2021-05-20 15:14:55 +01:00
mbanth
4ffe3d94c7 Reverse the dependencies (yet again) and target only xCore-200 2021-05-19 18:08:49 +01:00
mbanth
0f47ef96be Reverse dependency order (again) 2021-05-19 18:02:05 +01:00
mbanth
496dd16431 Remove dual issue configuration 2021-05-19 17:57:22 +01:00
mbanth
cbf2320de6 Change order of dependency list 2021-05-19 17:41:53 +01:00