diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-28 07:17:21 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-28 07:17:21 +0000 |
commit | 7c8f4a716f01f6598234fd60cd53345da4903fde (patch) | |
tree | 352ac03ad26c195e273b723bda4e1777592b8f6b /Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h | |
parent | 3222f21b849ca283cc6c1f07c347285b8cbce075 (diff) | |
download | lufa-7c8f4a716f01f6598234fd60cd53345da4903fde.tar.gz lufa-7c8f4a716f01f6598234fd60cd53345da4903fde.tar.bz2 lufa-7c8f4a716f01f6598234fd60cd53345da4903fde.zip |
Add first draft of the TPI NVM commands for reading, writing and erasing a target. Needs testing when physical access to a part is available.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h index ae0728af3..2d98c0d48 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h +++ b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h @@ -56,18 +56,16 @@ #endif
/* Defines: */
- #define TINY_NVM_REG_NVMCSR 0x32
- #define TINY_NVM_REG_NVMCMD 0x33
-
#define TINY_NVM_CMD_NOOP 0x00
#define TINY_NVM_CMD_CHIPERASE 0x10
#define TINY_NVM_CMD_SECTIONERASE 0x14
#define TINY_NVM_CMD_WORDWRITE 0x1D
/* Function Prototypes: */
+ void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress);
bool TINYNVM_WaitWhileNVMBusBusy(void);
- bool TINYNVM_ReadMemory(const uint32_t ReadAddress, uint8_t* ReadBuffer, const uint16_t ReadSize);
- bool TINYNVM_WriteMemory(const uint8_t WriteCommand, const uint32_t WriteAddress, const uint8_t* WriteBuffer);
- bool TINYNVM_EraseMemory(const uint8_t EraseCommand, const uint32_t Address);
+ bool TINYNVM_ReadMemory(const uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadLength);
+ bool TINYNVM_WriteMemory(const uint32_t WriteAddress, const uint8_t Byte);
+ bool TINYNVM_EraseMemory(void);
#endif
|