diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-23 13:28:44 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-23 13:28:44 +0000 |
commit | bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610 (patch) | |
tree | 2134708569c80cf166664ef6ad3aeba9a9e08d9a /Projects/AVRISP/Lib/TPITarget.h | |
parent | be71f934a4434ebeab7e9c2263ffb1170499a169 (diff) | |
download | lufa-bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610.tar.gz lufa-bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610.tar.bz2 lufa-bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610.zip |
Stub out more of the TPI programming protocol routines in the AVRISP project.
Diffstat (limited to 'Projects/AVRISP/Lib/TPITarget.h')
-rw-r--r-- | Projects/AVRISP/Lib/TPITarget.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Projects/AVRISP/Lib/TPITarget.h b/Projects/AVRISP/Lib/TPITarget.h index 715af16d1..e11e07551 100644 --- a/Projects/AVRISP/Lib/TPITarget.h +++ b/Projects/AVRISP/Lib/TPITarget.h @@ -68,7 +68,25 @@ #define TPI_NVM_TIMEOUT_MS 200
+ #define TPI_CMD_SLD 0x20
+ #define TPI_CMD_SST 0x60
+ #define TPI_CMD_SSTPR 0x68
+ #define TPI_CMD_SIN 0x10
+ #define TPI_CMD_SOUT 0x90
+ #define TPI_CMD_SLDCS 0x80
+ #define TPI_CMD_SSTCS 0xC0
+ #define TPI_CMD_SKEY 0xE0
+
+ #define TPI_STATUS_REG 0x00
+ #define TPI_CTRL_REG 0x02
+ #define TPI_ID_REG 0x0F
+
+ #define TPI_STATUS_NVM (1 << 1)
+
#define TPI_NVMENABLE_KEY (uint8_t[]){0x12, 0x89, 0xAB, 0x45, 0xCD, 0xD8, 0x88, 0xFF}
+
+ #define TPI_POINTER_INDIRECT 0
+ #define TPI_POINTER_INDIRECT_PI (1 << 2)
/* Function Prototypes: */
void TPITarget_EnableTargetTPI(void);
|