Reduced guard bit time in the AVRISP project PDI/TPI protocols to reduce the time...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGProtocol.h
index 19a2a4d..7dc6af5 100644 (file)
@@ -42,6 +42,7 @@
                #include <stdio.h>\r
                \r
                #include <LUFA/Drivers/USB/USB.h>\r
                #include <stdio.h>\r
                \r
                #include <LUFA/Drivers/USB/USB.h>\r
+               #include <LUFA/Drivers/Peripheral/SerialStream.h>\r
        \r
                #include "../V2Protocol.h"\r
                #include "XPROGTarget.h"\r
        \r
                #include "../V2Protocol.h"\r
                #include "XPROGTarget.h"\r
@@ -97,6 +98,8 @@
 \r
                #define XPRG_PARAM_NVMBASE                  0x01\r
                #define XPRG_PARAM_EEPPAGESIZE              0x02\r
 \r
                #define XPRG_PARAM_NVMBASE                  0x01\r
                #define XPRG_PARAM_EEPPAGESIZE              0x02\r
+               #define XPRG_PARAM_NVMCMD                   0x03\r
+               #define XPRG_PARAM_NVMCSR                   0x04\r
                \r
                #define XPRG_PROTOCOL_PDI                   0x00\r
                #define XPRG_PROTOCOL_JTAG                  0x01\r
                \r
                #define XPRG_PROTOCOL_PDI                   0x00\r
                #define XPRG_PROTOCOL_JTAG                  0x01\r
        \r
        /* External Variables: */\r
                extern uint32_t XPROG_Param_NVMBase;\r
        \r
        /* External Variables: */\r
                extern uint32_t XPROG_Param_NVMBase;\r
+               extern uint16_t XPROG_Param_EEPageSize;\r
+               extern uint8_t  XPROG_Param_NVMCSRRegAddr;\r
+               extern uint8_t  XPROG_Param_NVMCMDRegAddr;\r
+               extern uint8_t  XPROG_SelectedProtocol;\r
                \r
        /* Function Prototypes: */\r
                void XPROGProtocol_SetMode(void);\r
                \r
        /* Function Prototypes: */\r
                void XPROGProtocol_SetMode(void);\r