Removed trailing whitespaces
This commit is contained in:
parent
f0a3cd6da8
commit
6e45340993
5
uart.cpp
5
uart.cpp
@ -6,15 +6,18 @@ Software: AVR-GCC 4.x
|
|||||||
Hardware: any AVR with built-in UART,
|
Hardware: any AVR with built-in UART,
|
||||||
License: GNU General Public License
|
License: GNU General Public License
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
An interrupt is generated when the UART has finished transmitting or
|
An interrupt is generated when the UART has finished transmitting or
|
||||||
receiving a byte. The interrupt handling routines use circular buffers
|
receiving a byte. The interrupt handling routines use circular buffers
|
||||||
for buffering received and transmitted data.
|
for buffering received and transmitted data.
|
||||||
|
|
||||||
|
|
||||||
The UART_RX_BUFFER_SIZE and UART_TX_BUFFER_SIZE variables define
|
The UART_RX_BUFFER_SIZE and UART_TX_BUFFER_SIZE variables define
|
||||||
the buffer size in bytes. Note that these variables must be a
|
the buffer size in bytes. Note that these variables must be a
|
||||||
power of 2.
|
power of 2.
|
||||||
|
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
Refere to the header file uart.h for a description of the routines.
|
Refere to the header file uart.h for a description of the routines.
|
||||||
See also example test_uart.c.
|
See also example test_uart.c.
|
||||||
@ -22,6 +25,7 @@ USAGE:
|
|||||||
NOTES:
|
NOTES:
|
||||||
Based on Atmel Application Note AVR306
|
Based on Atmel Application Note AVR306
|
||||||
|
|
||||||
|
|
||||||
LICENSE:
|
LICENSE:
|
||||||
Copyright (C) 2015 Peter Fleury, GNU General Public License Version 3
|
Copyright (C) 2015 Peter Fleury, GNU General Public License Version 3
|
||||||
|
|
||||||
@ -35,6 +39,7 @@ LICENSE:
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user