projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace blind interface descriptor search in the incomplete AndroidAccessoryHost...
[pub/USBasp.git]
/
Demos
/
Host
/
Incomplete
/
AndroidAccessoryHost
/
ConfigDescriptor.h
diff --git
a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h
b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h
index
92c0d99
..
4989d9d
100644
(file)
--- a/
Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h
+++ b/
Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h
@@
-42,6
+42,10
@@
/* Macros: */
#define ANDROID_DATA_IN_PIPE 1
#define ANDROID_DATA_OUT_PIPE 2
/* Macros: */
#define ANDROID_DATA_IN_PIPE 1
#define ANDROID_DATA_OUT_PIPE 2
+
+ #define ANDROID_INTERFACE_CLASS 0xFF
+ #define ANDROID_INTERFACE_SUBCLASS 0x42
+ #define ANDROID_INTERFACE_PROTOCOL 0x01
/* Enums: */
/** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */
/* Enums: */
/** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */
@@
-57,6
+61,7
@@
/* Function Prototypes: */
uint8_t ProcessConfigurationDescriptor(void);
/* Function Prototypes: */
uint8_t ProcessConfigurationDescriptor(void);
+ uint8_t DCOMP_NextAndroidAccessoryInterface(void* const CurrentDescriptor);
uint8_t DCOMP_NextInterfaceBulkEndpoint(void* CurrentDescriptor);
#endif
uint8_t DCOMP_NextInterfaceBulkEndpoint(void* CurrentDescriptor);
#endif