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:
parent
2b4658de2c
commit
cfa48f5987
16 changed files with 54 additions and 53 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue