Split out NVM access code in the AVRISP project into a seperate NVMTarget.c source file and header. Make NVM register accesses use the NVM base address as set by the host, rather than using the fixed value from the XMEGA datasheet.

This commit is contained in:
Dean Camera 2009-12-14 02:59:34 +00:00
parent 6648234157
commit 1fa27139f5
13 changed files with 237 additions and 121 deletions

View file

@ -47,8 +47,8 @@
#include "PDIProtocol.h"
/* Preprocessor Checks: */
#if (BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)
#undef ENABLE_ISP_PROTOCOL
#if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL