Fix accidental struct copies on the stack in the old RNDISEthernet demo TCP code.
[pub/USBasp.git] / Demos / Host / LowLevel / VirtualSerialHost / ConfigDescriptor.h
index 469de40..e9f12dc 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
                #include "VirtualSerialHost.h"
 
        /* Macros: */
                #include "VirtualSerialHost.h"
 
        /* Macros: */
-               /** Pipe number for the CDC data IN pipe. */
-               #define CDC_DATA_IN_PIPE               1
+               /** Pipe address for the CDC data IN pipe. */
+               #define CDC_DATA_IN_PIPE               (PIPE_DIR_IN  | 1)
 
 
-               /** Pipe number for the CDC data OUT pipe. */
-               #define CDC_DATA_OUT_PIPE              2
+               /** Pipe address for the CDC data OUT pipe. */
+               #define CDC_DATA_OUT_PIPE              (PIPE_DIR_OUT | 2)
 
 
-               /** Pipe number for the CDC notification pipe. */
-               #define CDC_NOTIFICATION_PIPE          3
+               /** Pipe address for the CDC notification IN pipe. */
+               #define CDC_NOTIFICATION_PIPE          (PIPE_DIR_IN  | 3)
 
        /* Enums: */
                /** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */
 
        /* Enums: */
                /** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */