Added new incomplete AudioInputHost Host LowLevel demo.
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGTarget.h
index 8d7181a..e2194b3 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2010.
+     Copyright (C) Dean Camera, 2011.
 
   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
 #define _XPROG_TARGET_
 
        /* Includes: */
-               #include <avr/io.h>
-               #include <avr/interrupt.h>
-               #include <stdbool.h>
-
                #include <LUFA/Common/Common.h>
 
+               #if (ARCH == ARCH_AVR8)
+                       #include <avr/io.h>
+                       #include <avr/interrupt.h>
+               #elif (ARCH == ARCH_UC3)
+                       #include <avr32/io.h>                   
+               #endif
+
                #include "../V2Protocol.h"
                #include "XPROGProtocol.h"
 
@@ -55,8 +58,8 @@
                        #endif
                #endif
 
-               /** Serial carrier TPI/PDI speed when hardware TPI/PDI mode is used. */
-               #define XPROG_HARDWARE_SPEED       500000
+               /** Serial carrier TPI/PDI speed in Hz, when hardware TPI/PDI mode is used. */
+               #define XPROG_HARDWARE_SPEED       250000
 
                /** Total number of bits in a single USART frame. */
                #define BITS_IN_USART_FRAME        12
                void    XPROGTarget_DisableTargetTPI(void);
                void    XPROGTarget_SendByte(const uint8_t Byte);
                uint8_t XPROGTarget_ReceiveByte(void);
-               void    XPROGTarget_SendBreak(void);
+               void    XPROGTarget_SendIdle(void);
                bool    XPROGTarget_WaitWhileNVMBusBusy(void);
 
                #if (defined(INCLUDE_FROM_XPROGTARGET_C) && defined(ENABLE_XPROG_PROTOCOL))