X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/cfa48f5987ee00f1ef44959cedc6e5248f2bdfb9..7cd9e0dbc45afa4b047711d5dc255f4850e80c6b:/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h diff --git a/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h index eb56bc796..724c19c73 100644 --- a/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h +++ b/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h @@ -40,13 +40,13 @@ /** \ingroup Group_Serial * \defgroup Group_Serial_AVR8 Serial USART Peripheral Driver (AVR8) * - * \section Sec_ModDescription Module Description + * \section Sec_Serial_AVR8_ModDescription Module Description * On-chip serial USART driver for the 8-bit AVR microcontrollers. * * \note This file should not be included directly. It is automatically included as needed by the USART driver * dispatch header located in LUFA/Drivers/Peripheral/Serial.h. * - * \section Sec_ExampleUsage Example Usage + * \section Sec_Serial_AVR8_ExampleUsage Example Usage * The following snippet is an example of how this module may be used within a typical * application. * @@ -172,6 +172,8 @@ * \param[in] DoubleSpeed Enables double speed mode when set, halving the sample time to double the baud rate. */ static inline void Serial_Init(const uint32_t BaudRate, + const bool DoubleSpeed); + static inline void Serial_Init(const uint32_t BaudRate, const bool DoubleSpeed) { UBRR1 = (DoubleSpeed ? SERIAL_2X_UBBRVAL(BaudRate) : SERIAL_UBBRVAL(BaudRate)); @@ -185,6 +187,7 @@ } /** Turns off the USART driver, disabling and returning used hardware to their default configuration. */ + static inline void Serial_Disable(void); static inline void Serial_Disable(void) { UCSR1B = 0;