Comments to source code

This commit is contained in:
Andreas Mieke 2018-04-03 17:18:28 +02:00
parent d109bae8d7
commit 9a18bd88f0
22 changed files with 286 additions and 122 deletions

View file

@ -2,6 +2,7 @@
void bluetooth_init(void)
{
// Init USART1
usart1_init();
}
@ -9,6 +10,8 @@ void bluetooth_send_gyro_data(uint8_t X, uint8_t Y, uint8_t Z)
{
char __str[128] = {0};
char *str = __str;
// Print data comma-sperated to String
sprintf(str, "%d,%d,%d\r\n", X, Y, Z);
// Send string over USARt to the bluetooth module
USART_SendString(USART1, str);
}