Changed all *_SendByte() function prototypes to accept a void pointer for the input buffer (thanks to Simon Küppers) instead of a uint8_t pointer.

This commit is contained in:
Dean Camera 2013-02-24 15:46:58 +00:00
parent 2b4658de2c
commit cfa48f5987
16 changed files with 54 additions and 53 deletions

View file

@ -88,11 +88,11 @@ void Serial_SendString(USART_t* const USART,
}
void Serial_SendData(USART_t* const USART,
const uint8_t* Buffer,
const void* Buffer,
uint16_t Length)
{
while (Length--)
Serial_SendByte(USART, *(Buffer++));
Serial_SendByte(USART, *((uint8_t*)Buffer++));
}
void Serial_CreateStream(FILE* Stream)