Michael Banther
9f98e13342
Use the HID_CONTROLS pre-processor symbol consistently.
2019-10-14 16:42:34 +01:00
Michael Banther
1808d7affa
Initial implementation of the USB HID Set_Idle Request.
...
This code builds successfully. It has not been tested even a little.
2019-10-10 17:21:21 +01:00
Larry Snizek
8ba9a0064c
Cosmetic
2019-10-09 16:45:57 +01:00
Larry Snizek
b592c943f8
Set_Idle request handled (incomplete reports sent instead of NAK)
2019-10-08 21:18:08 +01:00
Michael Banther
2a960700c5
Remove the duplicate USB HID Report Descriptor that Git, for some unknown reason, produced at the last merge.
2019-10-08 13:54:16 +01:00
Michael Banther
f08e79197d
Merge branch 'pendragon_hid_usage_investigation' into pendragon
2019-10-08 13:50:23 +01:00
Michael Banther
1690c4eff6
Remove the USB HID Report descriptor with the Voice Command Usage.
...
This commit also contains a small amount of whitespace clean-up.
2019-10-08 13:45:20 +01:00
Michael Banther
75fea9ed84
Change the simulated interrupt pulse width from 100 us to 100 ms.
2019-10-08 13:44:04 +01:00
Michael Banther
34ebbc8509
Change the HID Report Descriptor to use the AC Search Usage instead of Voice Command.
2019-10-07 16:50:27 +01:00
Michael Banther
5b87efb5a7
Change the HID Report Descriptor to use the AC Search Usage instead of Voice Command.
2019-10-07 12:35:23 +01:00
larry
22323daa5f
Merge pull request #2 from michaelb/pendragon
...
HID -- Interrupt integration
2019-10-02 17:10:16 +01:00
Michael Banther
211a49f26f
Remove unnecessary port parameters passed through XUA Buffer (whether the traditional one or the Lite version).
2019-10-02 16:57:42 +01:00
Michael Banther
74564edde8
Add HID trigger function.
2019-10-02 16:55:42 +01:00
Michael Banther
e7e8b58275
Move user_hid.xc from lib_xua to the application (sw_xvf3510).
2019-10-02 16:54:38 +01:00
Michael Banther
ce24c73dc0
Change pre-processor symbol names to make them generic.
2019-10-02 16:51:46 +01:00
Michael Banther
0440020c2f
Change pre-processor symbol names to make them generic.
2019-10-02 15:24:28 +01:00
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