config.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00002 /*! \file *********************************************************************
00003  *
00004  * \brief
00005  *      This file contains the system configuration definition.
00006  *
00007  * \par Application note:
00008  *      AVR280: USB Host CDC Demonstration
00009  *
00010  * \par Documentation
00011  *      For comprehensive code documentation, supported compilers, compiler
00012  *      settings and supported devices see readme.html
00013  *
00014  * \author
00015  *      Atmel Corporation: http://www.atmel.com \n
00016  *      Support email: avr@atmel.com
00017  *
00018  * $Name:  $
00019  * $Revision: 1.1 $
00020  * $RCSfile: config.h,v $
00021  * $Date: 2008/10/14 20:16:36 $  \n
00022  * $Id: config.h,v 1.1 2008/10/14 20:16:36 c_oflynn Exp $
00023  ******************************************************************************/
00024 /* Copyright (c) 2008  ATMEL Corporation
00025    All rights reserved.
00026 
00027    Redistribution and use in source and binary forms, with or without
00028    modification, are permitted provided that the following conditions are met:
00029 
00030    * Redistributions of source code must retain the above copyright
00031      notice, this list of conditions and the following disclaimer.
00032    * Redistributions in binary form must reproduce the above copyright
00033      notice, this list of conditions and the following disclaimer in
00034      the documentation and/or other materials provided with the
00035      distribution.
00036    * Neither the name of the copyright holders nor the names of
00037      contributors may be used to endorse or promote products derived
00038      from this software without specific prior written permission.
00039 
00040   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00041   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00042   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00043   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00044   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00045   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00046   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00047   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00048   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00049   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00050   POSSIBILITY OF SUCH DAMAGE.
00051 */
00052 
00053 #ifndef _CONFIG_H_
00054 #define _CONFIG_H_
00055 
00056 /**
00057    @addtogroup usb
00058    @{
00059 */
00060 
00061 //_____ I N C L U D E S ____________________________________________________
00062 
00063 
00064 #include "compiler.h" //!< Compiler definitions
00065 
00066 #include "contiki-raven.h"
00067 
00068 #ifdef AVRGCC
00069    #define __AVR_AT90USBxxx__
00070    #include <avr/io.h>
00071 #else
00072    #include "lib_mcu/mcu.h" //!< Register declaration
00073 #endif
00074 
00075 //#include "conf_scheduler.h" //!< Scheduler tasks declaration
00076 
00077 //! Enable or not the ADC usage
00078 #undef  USE_ADC
00079 
00080 //! CPU core frequency in kHz
00081 #define FOSC 8000
00082 
00083 
00084 // -------- END Generic Configuration -------------------------------------
00085 
00086 // UART Sample configuration, if we have one ... __________________________
00087 
00088 #ifndef AVRGCC
00089    #define uart_usb_putchar putchar
00090 #endif
00091 #define r_uart_ptchar int
00092 #define p_uart_ptchar int
00093 
00094 #define NB_MS_BEFORE_FLUSH                      50
00095 #define REPEAT_KEY_PRESSED       100
00096 
00097 // ADC Sample configuration, if we have one ... ___________________________
00098 
00099 //! ADC Prescaler value
00100 #define ADC_PRESCALER 64
00101 //! Right adjust
00102 #define ADC_RIGHT_ADJUST_RESULT 1
00103 //! AVCC As reference voltage (See adc_drv.h)
00104 #define ADC_INTERNAL_VREF  2
00105 
00106 //!--------- Device Mass Storage Identifiers Signature -----------------------
00107 #define SBC_VENDOR_ID         {'A','T','M','E','L',' ',' ',' '}      // 8 Bytes only
00108 #define SBC_PRODUCT_ID        {'R','Z','R','A','V','E','N','U','S','B',' ','D','O','C','S',' '}  // 16 Bytes only
00109 #define SBC_REVISION_ID       {'0','.','0','0'}  // 4 Bytes only
00110 
00111 /** @}  */
00112 
00113 #endif // _CONFIG_H_
00114 

Generated on Mon Apr 11 14:23:33 2011 for Contiki 2.5 by  doxygen 1.6.1