Stub out more of the TPI programming protocol routines in the AVRISP project.
[pub/USBasp.git] / Projects / AVRISP / Lib / TPITarget.h
index 715af16..e11e075 100644 (file)
                \r
                #define TPI_NVM_TIMEOUT_MS       200\r
 \r
+               #define TPI_CMD_SLD              0x20\r
+               #define TPI_CMD_SST              0x60\r
+               #define TPI_CMD_SSTPR            0x68\r
+               #define TPI_CMD_SIN              0x10\r
+               #define TPI_CMD_SOUT             0x90\r
+               #define TPI_CMD_SLDCS            0x80\r
+               #define TPI_CMD_SSTCS            0xC0\r
+               #define TPI_CMD_SKEY             0xE0\r
+\r
+               #define TPI_STATUS_REG           0x00\r
+               #define TPI_CTRL_REG             0x02\r
+               #define TPI_ID_REG               0x0F\r
+               \r
+               #define TPI_STATUS_NVM           (1 << 1)\r
+\r
                #define TPI_NVMENABLE_KEY        (uint8_t[]){0x12, 0x89, 0xAB, 0x45, 0xCD, 0xD8, 0x88, 0xFF}\r
+\r
+               #define TPI_POINTER_INDIRECT     0\r
+               #define TPI_POINTER_INDIRECT_PI  (1 << 2)\r
                                \r
        /* Function Prototypes: */\r
                void    TPITarget_EnableTargetTPI(void);\r