projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #21 from mondalaci/fix-ringbuffer-example
[pub/USBasp.git]
/
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
eb56bc7
..
f951f6b
100644
(file)
--- a/
LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h
+++ b/
LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.h
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
3
.
+ Copyright (C) Dean Camera, 201
4
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
3
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
4
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-40,13
+40,13
@@
/** \ingroup Group_Serial
* \defgroup Group_Serial_AVR8 Serial USART Peripheral Driver (AVR8)
*
/** \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.
*
* 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.
*
* 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,
* \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));
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. */
}
/** 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;
static inline void Serial_Disable(void)
{
UCSR1B = 0;