Added new incomplete AudioInputHost Host LowLevel demo.
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGProtocol.h
index 5418411..9c7986e 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2010.
+     Copyright (C) Dean Camera, 2011.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2011  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
 #define _XPROG_PROTOCOL_
 
        /* Includes: */
 #define _XPROG_PROTOCOL_
 
        /* Includes: */
-               #include <avr/io.h>
-               #include <util/delay.h>
-               #include <stdio.h>
-
+               #include <LUFA/Common/Common.h>
                #include <LUFA/Drivers/USB/USB.h>
                #include <LUFA/Drivers/USB/USB.h>
-               #include <LUFA/Drivers/Peripheral/SerialStream.h>
+
+               #if (ARCH == ARCH_AVR8)
+                       #include <avr/io.h>
+               #elif (ARCH == ARCH_UC3)
+                       #include <avr32/io.h>                   
+               #endif
+               
+               #include <stdbool.h>
+               #include <stdio.h>
 
                #include "../V2Protocol.h"
 
                #include "../V2Protocol.h"
-               #include "XPROGTarget.h"
                #include "XMEGANVM.h"
                #include "TINYNVM.h"
 
                #include "XMEGANVM.h"
                #include "TINYNVM.h"
 
                extern uint16_t XPROG_Param_EEPageSize;
                extern uint8_t  XPROG_Param_NVMCSRRegAddr;
                extern uint8_t  XPROG_Param_NVMCMDRegAddr;
                extern uint16_t XPROG_Param_EEPageSize;
                extern uint8_t  XPROG_Param_NVMCSRRegAddr;
                extern uint8_t  XPROG_Param_NVMCMDRegAddr;
-               extern uint8_t  XPROG_SelectedProtocol;
 
        /* Function Prototypes: */
                void XPROGProtocol_SetMode(void);
 
        /* Function Prototypes: */
                void XPROGProtocol_SetMode(void);