Update contrib.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #define WM_USER_PRINTOUT (WM_USER+100)
23 // The version of this program
24 #define VERSION_MAJOR 1
25 #define VERSION_MINOR 2
26 #define VERSION_MICRO 0
28 // The version of the USBIO driver this program is compiled against
29 #define USBIO_VERSION_MAJOR 2
30 #define USBIO_VERSION_MINOR 41
32 #define VERSION_DATAOUT_SIZE 5
33 #define VERSION_DATAIN_SIZE 96
35 #define MAX_DESCRIPTOR_BUFFER_SIZE 2047
37 #define MAX_INTERFACES 128
38 #define MAX_SETTINGS 10
39 #define MAX_ENDPOINTS 5
41 #define MAX_THREADS 10
43 #define WAIT_SETTING_BUFFER_SIZE 8
44 #define WAIT_SETTING_TIMEOUT 250
45 #define WAIT_BEFORETHREAD_TIMEOUT 30000
46 #define READWRITE_TIMEOUT 10000
47 #define FIRSTFILEREAD_TIMEOUT 500000
48 #define WAITDISCONNECT_TIMEOUT 10000
50 #define FIRST_SETTING_THREAD_MASK 0x8000
51 #define LAST_SETTING_THREAD_MASK 0x4000
53 #define HOST_ERROR_INDEX 0xFFF
55 // a number of definitions for using the Aten USB switch
56 #define SWITCH_REQUEST 0x09
57 #define SWITCH_INDEX 0x0001
58 #define SWITCH_VALUE 0x0202
59 #define SWITCH_DATA0 0x02
60 #define SWITCH_DATA1 0x03
63 #define WAIT_TEST_COMPLETE 50
64 #define WAIT_SETTING_DELAY 50
65 #define BEFORE_SWITCH_DELAY 3000
66 #define AFTER_SWITCH_DELAY 5000
67 #define DEVICE_CONFIG_DELAY 2000
71 // Helper #defines for print messages
72 #define PRINT_ALWAYS PrintOut (TRUE,TRUE,FALSE,
73 #define PRINT_TIME PrintOut (TRUE,TRUE,TRUE,
74 #define PRINT_NOLOG PrintOut (TRUE,FALSE,FALSE,
75 #define PRINT_IF_VERBOSE PrintOut (gVerboseMode,gVerboseMode,FALSE,