Added const where possible to the source functions in the Projects directory.

Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device.

Removed string descriptors from the TeensyHID bootloader to reduce its size.
This commit is contained in:
Dean Camera 2009-12-26 04:13:55 +00:00
parent 35dac470f2
commit d1608d4af3
20 changed files with 102 additions and 137 deletions

View file

@ -56,7 +56,13 @@
#endif
/* Defines: */
#define TINY_NVM_BUSY_TIMEOUT_MS 100
#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: */
bool TINYNVM_WaitWhileNVMBusBusy(void);