From 5a580c6854a54126d830ba89c6719f482f0fc2f1 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 30 Jun 2011 09:44:37 +0000 Subject: Pull out Android Accessory Mode functions into a seperate set of files in the incomplete Android Accessory Mode Host demo. Improve Android Accessory Mode protocol support to correctly query the device's supported protocol and send the approriate device information strings. --- .../Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h') diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h b/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h index aea0b4447..59f49c518 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.h @@ -46,6 +46,7 @@ #include "DeviceDescriptor.h" #include "ConfigDescriptor.h" + #include "Lib/AndroidAccessoryCommands.h" #include #include @@ -69,17 +70,6 @@ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */ #define LEDMASK_USB_BUSY LEDS_LED2 - /* Enums: */ - enum Android_Requests_t - { - ANDROID_Req_GetAccessoryProtocol = 51, - ANDROID_Req_GetString = 52, - ANDROID_Req_StartAccessoryMode = 53, - }; - - /* Task Definitions: */ - void Android_Host_Task(void); - /* Event Handlers: */ void EVENT_USB_Host_DeviceAttached(void); void EVENT_USB_Host_DeviceUnattached(void); @@ -89,6 +79,7 @@ const uint8_t SubErrorCode); /* Function Prototypes: */ + void Android_Host_Task(void); void SetupHardware(void); #endif -- cgit v1.2.3