Added Serial USART peripheral driver for the XMEGA platform.

Fix XMEGA SPI peripheral driver's incorrect const-ness on the SPI peripheral struct.
This commit is contained in:
Dean Camera 2012-02-12 11:48:24 +00:00
parent 82fdedc192
commit f45d60f768
7 changed files with 389 additions and 14 deletions

View file

@ -82,7 +82,8 @@ void Serial_SendString(const char* StringPtr)
}
}
void Serial_SendData(const uint8_t* Buffer, uint16_t Length)
void Serial_SendData(const uint8_t* Buffer,
uint16_t Length)
{
while (Length--)
Serial_SendByte(*(Buffer++));