Oops - revert commit of an incomplete port of the AVRISP-MKII project.
This commit is contained in:
parent
ea922c98d1
commit
0b6d5467bc
19 changed files with 156 additions and 324 deletions
|
@ -42,17 +42,13 @@ uint32_t CurrentAddress;
|
|||
/** Flag to indicate that the next read/write operation must update the device's current extended FLASH address */
|
||||
bool MustLoadExtendedAddress;
|
||||
|
||||
/** Command timeout expiration flag. */
|
||||
volatile bool TimeoutExpired;
|
||||
|
||||
#if (ARCH == ARCH_AVR8) // TODO: FIXME
|
||||
/** ISR to manage timeouts whilst processing a V2Protocol command */
|
||||
ISR(WDT_vect, ISR_BLOCK)
|
||||
{
|
||||
TimeoutExpired = true;
|
||||
wdt_disable();
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Initialises the hardware and software associated with the V2 protocol command handling. */
|
||||
void V2Protocol_Init(void)
|
||||
|
@ -79,12 +75,10 @@ void V2Protocol_ProcessCommand(void)
|
|||
{
|
||||
uint8_t V2Command = Endpoint_Read_8();
|
||||
|
||||
#if (ARCH == ARCH_AVR8) // TODO: FIXME
|
||||
/* Start the watchdog with timeout interrupt enabled to manage the timeout */
|
||||
TimeoutExpired = false;
|
||||
wdt_enable(WDTO_1S);
|
||||
WDTCSR |= (1 << WDIE);
|
||||
#endif
|
||||
|
||||
switch (V2Command)
|
||||
{
|
||||
|
@ -146,10 +140,8 @@ void V2Protocol_ProcessCommand(void)
|
|||
break;
|
||||
}
|
||||
|
||||
#if (ARCH == ARCH_AVR8) // TODO: FIXME
|
||||
/* Disable the timeout management watchdog timer */
|
||||
wdt_disable();
|
||||
#endif
|
||||
|
||||
Endpoint_WaitUntilReady();
|
||||
Endpoint_SelectEndpoint(AVRISP_DATA_OUT_EPNUM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue