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