#include <avr/io.h>
#include <stdio.h>
#include "Serial.h"
Functions | |
static void | SerialStream_Init (const uint32_t BaudRate, const bool DoubleSpeed) |
static void SerialStream_Init | ( | const uint32_t | BaudRate, | |
const bool | DoubleSpeed | |||
) | [inline, static] |
Initializes the serial stream (and regular USART driver) so that both the stream and regular USART driver functions can be used. Must be called before any stream or regular USART functions.
BaudRate | Baud rate to configure the USART to | |
DoubleSpeed | Enables double speed mode when set, halving the sample time to double the baud rate |