Contiki 2.5
config.h
Go to the documentation of this file.
1 /* This file has been prepared for Doxygen automatic documentation generation.*/
2 /*! \file *********************************************************************
3  *
4  * \brief
5  * This file contains the system configuration definition.
6  *
7  * \par Application note:
8  * AVR280: USB Host CDC Demonstration
9  *
10  * \par Documentation
11  * For comprehensive code documentation, supported compilers, compiler
12  * settings and supported devices see readme.html
13  *
14  * \author
15  * Atmel Corporation: http://www.atmel.com \n
16  * Support email: avr@atmel.com
17  *
18  * $Name: $
19  * $Revision: 1.1 $
20  * $RCSfile: config.h,v $
21  * $Date: 2008/10/14 20:16:36 $ \n
22  * $Id: config.h,v 1.1 2008/10/14 20:16:36 c_oflynn Exp $
23  ******************************************************************************/
24 /* Copyright (c) 2008 ATMEL Corporation
25  All rights reserved.
26 
27  Redistribution and use in source and binary forms, with or without
28  modification, are permitted provided that the following conditions are met:
29 
30  * Redistributions of source code must retain the above copyright
31  notice, this list of conditions and the following disclaimer.
32  * Redistributions in binary form must reproduce the above copyright
33  notice, this list of conditions and the following disclaimer in
34  the documentation and/or other materials provided with the
35  distribution.
36  * Neither the name of the copyright holders nor the names of
37  contributors may be used to endorse or promote products derived
38  from this software without specific prior written permission.
39 
40  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
41  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
43  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
44  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
45  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
46  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
47  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
48  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
50  POSSIBILITY OF SUCH DAMAGE.
51 */
52 
53 #ifndef _CONFIG_H_
54 #define _CONFIG_H_
55 
56 /**
57  @addtogroup usb
58  @{
59 */
60 
61 //_____ I N C L U D E S ____________________________________________________
62 
63 
64 #include "compiler.h" //!< Compiler definitions
65 
66 #include "contiki-raven.h"
67 
68 #ifdef AVRGCC
69  #define __AVR_AT90USBxxx__
70  #include <avr/io.h>
71 #else
72  #include "lib_mcu/mcu.h" //!< Register declaration
73 #endif
74 
75 //#include "conf_scheduler.h" //!< Scheduler tasks declaration
76 
77 //! Enable or not the ADC usage
78 #undef USE_ADC
79 
80 //! CPU core frequency in kHz
81 #define FOSC 8000
82 
83 
84 // -------- END Generic Configuration -------------------------------------
85 
86 // UART Sample configuration, if we have one ... __________________________
87 
88 #ifndef AVRGCC
89  #define uart_usb_putchar putchar
90 #endif
91 #define r_uart_ptchar int
92 #define p_uart_ptchar int
93 
94 #define NB_MS_BEFORE_FLUSH 50
95 #define REPEAT_KEY_PRESSED 100
96 
97 // ADC Sample configuration, if we have one ... ___________________________
98 
99 //! ADC Prescaler value
100 #define ADC_PRESCALER 64
101 //! Right adjust
102 #define ADC_RIGHT_ADJUST_RESULT 1
103 //! AVCC As reference voltage (See adc_drv.h)
104 #define ADC_INTERNAL_VREF 2
105 
106 //!--------- Device Mass Storage Identifiers Signature -----------------------
107 #define SBC_VENDOR_ID {'A','T','M','E','L',' ',' ',' '} // 8 Bytes only
108 #define SBC_PRODUCT_ID {'R','Z','R','A','V','E','N','U','S','B',' ','D','O','C','S',' '} // 16 Bytes only
109 #define SBC_REVISION_ID {'0','.','0','0'} // 4 Bytes only
110 
111 /** @} */
112 
113 #endif // _CONFIG_H_
114