errno.h

Go to the documentation of this file.
00001 /* *****************************************************************************
00002 Copyright (c) 2006, Atmel Corporation All rights reserved.
00003 
00004 Redistribution and use in source and binary forms, with or without
00005 modification, are permitted provided that the following conditions are met:
00006 
00007 1. Redistributions of source code must retain the above copyright notice,
00008 this list of conditions and the
00009 following disclaimer.
00010 
00011 2. Redistributions in binary form must reproduce the above copyright notice,
00012 this list of conditions and the following disclaimer in the documentation
00013 and/or other materials provided with the distribution.
00014 
00015 3. The name of ATMEL may not be used to endorse or promote products
00016 derived from this software without specific prior written permission.
00017 
00018 THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS
00019 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00021 PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY
00022 DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00024 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00025 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00026 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00027 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00028 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
00029 WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00030 
00031 POSSIBILITY OF SUCH DAMAGE.
00032 
00033 ************************************************************************ */
00034 #ifndef _ernno_h_
00035 #define _errno_h_
00036 
00037 #define SUCCESS                 0
00038 
00039 /* Generic errors */
00040 #define ERROR                   -1
00041 #define INVALID_ARGUMENT        -2
00042 
00043 /* 
00044  * Module specific error codes can be added here 100 codes are reserved for 
00045  * each module. Add modules sequentially. A list of the modules ordered 
00046  * alphabetically should be inserted to ease the usability.
00047  *
00048  * LIST OF MODULES
00049  *
00050  * Power Manager                100
00051  * USART                        200
00052  *      
00053 */
00054 
00055 /* Power Manager */
00056 #define PM_LOCK_ERROR           -100
00057 #define PM_MODULE_IS_MASKED     -101
00058 
00059 /* USART */
00060 #define USART_SUCCESS 0
00061 #define USART_FAILURE -1
00062 #define USART_INVALID_INPUT 1
00063 #define USART_INVALID_ARGUMENT -1
00064 
00065 #define USART_TX_BUSY           -200
00066 #define USART_RX_EMPTY          -201
00067 #define USART_RX_ERROR          -202
00068 #define USART_MODE_FAULT        -203
00069 #define USART_ADDR_RECEIVED     -204
00070 
00071 #endif

Generated on Wed May 7 16:03:16 2008 for AVR32114 Using the AVR32 LCD Controller by  doxygen 1.5.3-20071008