Commit Graph

2003 Commits

Author SHA1 Message Date
Michael Banther
17317093d5 Rework HID data processing.
Move port handling up into XUA_Buffer_lite2() to take advantage of its select operator.  Add functions to initialise and set the HID data.
2019-10-01 17:04:13 +01:00
Michael Banther
2fb0bdfcc2 A slightly different way of saying the same thing.
I've changed to an if - else construct to make it easy to add in debugging print statements if needed.
2019-10-01 13:52:08 +01:00
Michael Banther
d32235d0f0 Final clean-up of HID -- NDP10x Interrupt integration. 2019-10-01 11:57:54 +01:00
Michael Banther
e1b72c47bc Add a version of UserReadHIDData() which uses a signal on a port to set the Voice Command bit in the HID Report data.
This commit preserves the ability to simulate the NDP100 entirely, i.e. without using a port for input.
2019-09-30 16:14:16 +01:00
Michael Banther
660b483d1e Clean up whitespace, no functional change. 2019-09-30 16:12:16 +01:00
Michael Banther
d7be8419d8 Add a 1b port for receiving the NDP10x interrupt. 2019-09-30 13:52:22 +01:00
Michael Banther
b68c192ad9 Updated change log 2019-09-26 16:29:53 +01:00
larry
0b30ba0cb7 Merge pull request #1 from michaelb/pendragon
Add UAC1 HID support for Voice Command detection
2019-09-26 15:32:02 +01:00
Michael Banther
37bbea3726 Use a consistent method to interpret the HID_CONTROLS pre-processor symbol throughout the code base. 2019-09-26 14:45:17 +01:00
Michael Banther
ba666fb314 Add a 100 ms assertion period when this demonstration code signals an NDP100 interrupt.
When testing with the Play/Pause Usage (0xCD) with a Mac as USB Host, adding in this assertion period produced reliable playing and pausing of the iTunes app every 10 seconds.  Without an explicit assertion period, i.e. sending only one report with the lsb set to 1b followed by many reports with the lsb set to 0b, the iTunes app behaved as though it did not see many of the Play/Pause signals.  The inclusion of an assertion period may or may not help when reporting Voice Command events on Andriod.
2019-09-26 14:27:20 +01:00
Michael Banther
9472bd7dce Change HID usage from Play On-Off Control (OOC) to Voice Command One-Shot Control (OSC).
OSC requires relative data.
2019-09-26 14:22:17 +01:00
Michael Banther
3c86da7c09 Add demo HID code that simulates an interrupt roughly every 10 seconds. 2019-09-25 16:13:46 +01:00
Michael Banther
d491eb2da9 Change HID Report descriptor to contain one variable bit in the lsb position. This bit reports the interrupt. The remaining seven bits are constant at zero. 2019-09-25 16:12:59 +01:00
Michael Banther
960333ca09 Add the missing MSB of the maximum packet size and use hex values instead of decimal. 2019-09-25 14:38:17 +01:00
Michael Banther
3131b89a1d Add HID descriptors for UAC1. 2019-09-25 11:46:16 +01:00
Michael Banther
958d52b5eb Consistently use hex when defining descriptor values. 2019-09-25 11:45:40 +01:00
Michael Banther
35393d3739 Remove duplicate definitions. 2019-09-25 11:44:43 +01:00
Michael Banther
75422de6d1 Replace existing #ifdef HID_CONTROLS with #if( 0 < HID_CONTROLS ) to move to best practice regarding compile-time switches. 2019-09-25 11:42:59 +01:00
Michael Banther
017d937ec7 Add comments to match #endif directives to their corresponding #if or #ifdef directive.
Added to aid reading.
2019-09-25 11:39:48 +01:00
Michael Banther
bb5757e099 Initial implementation of HID. 2019-09-23 17:29:39 +01:00
Michael Banther
8ff44c553c Add the specific directory that contains user_hid.h.
Apparently xwaf doesn't recursively descend directory trees the way xmake does.
2019-09-23 15:36:35 +01:00
oscarbailey-xmos
3987224d50 Merge pull request #2 from ed-xmos/patch-2
Fix build error when USB not enabled
2019-04-29 06:31:55 -04:00
Ed
37ef88a602 Fix build error when USB not enabled
#ifdeffing the whole source as is the way in lib_xua
2019-04-29 11:04:20 +01:00
Oscar Bailey
786ce134c6 Update comments in xua_ep0_descriptors.h 2019-03-28 17:26:04 +00:00
Oscar Bailey
7339ceca19 Fix asynch mode not working on Windows 2019-03-28 17:11:05 +00:00
oscarbailey-xmos
06317b0b17 Merge pull request #1 from xmos/master
Update xua_lite branch with changes in master
2019-02-28 17:00:10 +00:00
Oscar Bailey
0588ea2d18 Fix XUA lite when using VENDOR_REQUESTS_PARAMS 2019-02-27 17:07:36 +00:00
Oscar Bailey
0b926fd907 Refactor: Separate XUA lite and app code 2019-02-27 11:05:25 +00:00
Oscar Bailey
b12aeac264 Whitespace changes 2019-02-26 17:18:02 +00:00
Oscar Bailey
86b4ab89ea Change version of lib_mic_array; Fix synchronous endpoint behaviour
The device now adjusts it's clock to the USB clock when host is not
pushing data to device.
2019-02-26 16:59:29 +00:00
Ross Owen
ee5e1095c2 Removed -fsubword-select 2019-01-11 11:31:33 +00:00
Ross Owen
0e362dab46 Merge pull request #72 from samchesney/feature/sync_buildsystems
Sync buildsystems
2019-01-10 12:07:53 +00:00
Ross Owen
d4300f0e5c Merge branch 'master' into feature/sync_buildsystems 2019-01-10 12:07:40 +00:00
Ross Owen
87d2a3db26 Merge pull request #74 from lucianomartin/feature/fix_reset
Fix PLL mask to reset tile - WIP
2019-01-10 12:05:39 +00:00
Ross Owen
533ec7b5df Update wscript 2019-01-10 12:05:04 +00:00
Ross Owen
b6b26f252e Update module_build_info 2019-01-10 12:04:49 +00:00
Ross Owen
1d09916b54 Update CHANGELOG.rst 2019-01-10 12:04:37 +00:00
Sam Chesney
8340c4054b Update XMOS copyright 2019-01-09 17:40:45 +00:00
Luciano Martin
868b17a5ff Update lib version and copyright 2019-01-09 17:39:15 +00:00
Sam Chesney
1460b610a4 Set INCLUDE_DIRS in module_build_info
This is required in the wscript.
2019-01-09 17:32:43 +00:00
Luciano Martin
532c872902 Fix PLL mask to reset tile 2019-01-09 17:17:15 +00:00
Sam Chesney
600ec0da92 Add XMOS copyright 2018-12-13 18:14:54 +00:00
Sam Chesney
5830b75c0f Fix CHANGELOG 2018-12-13 18:14:27 +00:00
Sam Chesney
3f1fd3db37 Add Jenkins Pipeline 2018-12-13 18:01:44 +00:00
Sam Chesney
7b4ff40b25 Read values required in wscript from module_build_info 2018-12-11 17:39:21 +00:00
Sam Chesney
a2498dacd8 Add file specific flags for xua_ep0_uacreqs.xc
This is to bring the xwaf build in line with the xmake build.
2018-12-11 17:27:34 +00:00
Sam Chesney
6f295d388a Remove file specific flags for audiorequests.xc
Library does not contain a file of this name.
2018-12-11 16:22:50 +00:00
Sam Chesney
68d1455ed8 Update module_build_info to match wscript 2018-12-11 16:20:53 +00:00
Ed Clarke
a8fa274230 Separate out pdm from rate calc 2018-11-30 14:00:55 +00:00
Ross Owen
21c18c0599 Merge pull request #71 from larry-xmos/master
Correct comment on class 1 control interface descriptor
2018-11-30 11:46:18 +00:00