avr/cpp/USART.cpp

Go to the documentation of this file.
00001 /**********************************************************************************************************************\
00002 
00003         C++ library for Atmel AVR microcontrollers
00004         Copyright (C) 2007 Lauri Kirikal, Mikk Leini, MT� TT� Robotiklubi
00005 
00006         This program is free software; you can redistribute it and/or
00007         modify it under the terms of the GNU General Public License
00008         as published by the Free Software Foundation; either version 2
00009         of the License, or (at your option) any later version.
00010 
00011         This program is distributed in the hope that it will be useful,
00012         but WITHOUT ANY WARRANTY; without even the implied warranty of
00013         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014         GNU General Public License for more details.
00015 
00016         You should have received a copy of the GNU General Public License
00017         along with this program; if not, write to the Free Software
00018         Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019 
00020         See http://creativecommons.org/licenses/GPL/2.0/
00021 
00022         MT� TT� Robotiklubi  http://www.robotiklubi.ee robotiklubi@gmail.com
00023         Lauri Kirikal        laurikirikal@gmail.com
00024         Mikk Leini           mikk.leini@gmail.com
00025 
00026 \**********************************************************************************************************************/
00027 
00028 #include "USART.h"
00029 
00030 namespace AVRCpp
00031 {
00032         namespace USART
00033         {
00034 #if defined(__AVR_ATmega8__) || defined(__AVR_ATmega8515__) || defined(__AVR_ATmega644__) \
00035                 || defined(__AVR_ATmega48__) || defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__)
00036                 
00037                 static bool cancel0 = false;
00038                 
00039                 namespace Internal
00040                 {
00041                         bool &Cancel0() { return cancel0; }
00042                         
00043                 } // namespace Internal
00044                 
00045 #elif defined(__AVR_ATmega128__) || defined(__AVR_ATmega64__) \
00046                 || defined(__AVR_ATmega164P__) || defined(__AVR_ATmega324P__) || defined(__AVR_ATmega644P__)
00047                 
00048                 static bool cancel0 = false;
00049                 static bool cancel1 = false;
00050                 
00051                 namespace Internal
00052                 {
00053                         bool &Cancel0() { return cancel0; }
00054                         bool &Cancel1() { return cancel1; }
00055                         
00056                 } // namespace Internal
00057                 
00058 #elif defined(__AVR_AT90USB1287__)
00059                 
00060                 static bool cancel1 = false;
00061                 
00062                 namespace Internal
00063                 {
00064                         bool &Cancel1() { return cancel1; }
00065                         
00066                 } // namespace Internal
00067                 
00068 #endif // if defined(__AVR_AT90USB1287__)
00069                 
00070         } // namespace USART
00071         
00072 } // namespace AVRCpp

Generated on Sat Sep 15 23:41:05 2007 for AVR C++ Lib for ATmega64 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi