aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-23 03:51:17 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-23 03:51:17 +0000
commite11fddfe66fcd6fa5b783bb5f1c39dfb5687538d (patch)
tree22da0a1f9754ad8a475212c4cc1585f3ca94f990 /Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
parentc24027f3b5f1ca7bceababc82ea5b897b18dbac1 (diff)
downloadlufa-e11fddfe66fcd6fa5b783bb5f1c39dfb5687538d.tar.gz
lufa-e11fddfe66fcd6fa5b783bb5f1c39dfb5687538d.tar.bz2
lufa-e11fddfe66fcd6fa5b783bb5f1c39dfb5687538d.zip
Update Temperature board driver to be AVR32 compatible when the ADC peripheral driver is eventually ported. Make architecture includes explicit for both the AVR32 and the AVR8, to make way for future architecture ports.
Add SPI driver aliases for the old function names in the AVR8 driver, so that existing code will still compile against the new version.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c')
-rw-r--r--Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c b/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
index 94f1c3d74..b657758e9 100644
--- a/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
+++ b/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
@@ -131,11 +131,11 @@ uint8_t ISPTarget_WaitForProgComplete(const uint8_t ProgrammingMode, const uint1
TimeoutMSRemaining--;
}
- SPI_SendByte(ReadMemCommand);
- SPI_SendByte(PollAddress >> 8);
- SPI_SendByte(PollAddress & 0xFF);
+ SPI_Send(ReadMemCommand);
+ SPI_Send(PollAddress >> 8);
+ SPI_Send(PollAddress & 0xFF);
}
- while ((SPI_TransferByte(0x00) == PollValue) && TimeoutMSRemaining);
+ while ((SPI_Transfer(0x00) == PollValue) && TimeoutMSRemaining);
if (!(TimeoutMSRemaining))
ProgrammingStatus = STATUS_CMD_TOUT;
@@ -169,11 +169,11 @@ uint8_t ISPTarget_WaitWhileTargetBusy(void)
TimeoutMSRemaining--;
}
- SPI_SendByte(0xF0);
- SPI_SendByte(0x00);
- SPI_SendByte(0x00);
+ SPI_Send(0xF0);
+ SPI_Send(0x00);
+ SPI_Send(0x00);
}
- while ((SPI_ReceiveByte() & 0x01) && TimeoutMSRemaining);
+ while ((SPI_Receive() & 0x01) && TimeoutMSRemaining);
if (TimeoutMSRemaining)
{
@@ -192,10 +192,10 @@ uint8_t ISPTarget_WaitWhileTargetBusy(void)
*/
void ISPTarget_LoadExtendedAddress(void)
{
- SPI_SendByte(LOAD_EXTENDED_ADDRESS_CMD);
- SPI_SendByte(0x00);
- SPI_SendByte((CurrentAddress & 0x00FF0000) >> 16);
- SPI_SendByte(0x00);
+ SPI_Send(LOAD_EXTENDED_ADDRESS_CMD);
+ SPI_Send(0x00);
+ SPI_Send((CurrentAddress & 0x00FF0000) >> 16);
+ SPI_Send(0x00);
}
#endif