cda755569b13b9c0201ec5c090301bc8aee00aa8
[bertos.git] / bertos / cpu / general.cdef
1 #
2 #-*- coding: utf-8 -*-
3 #
4 # \file
5 # <!--
6 # This file is part of BeRTOS.
7 #
8 # Bertos is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 #
22 # As a special exception, you may use this file as part of a free software
23 # library without restriction.  Specifically, if other files instantiate
24 # templates or use macros or inline functions from this file, or you compile
25 # this file and link it with other files to produce an executable, this
26 # file does not by itself cause the resulting executable to be covered by
27 # the GNU General Public License.  This exception does not however
28 # invalidate any other reasons why the executable file might be covered by
29 # the GNU General Public License.
30 #
31 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
32 #
33 # -->
34
35 # General CPU info denfinition.
36
37 # This file contain all info for the BeRTOS wizard.
38 #
39 # \author Daniele Basile <asterix@develer.com>
40 #
41 #
42
43 # List of the BeRTOS's supported cpu.
44 SUPPORTED_CPU_CORE = [ "arm", "avr" ]
45
46 # Where are locate the bertos directories
47 BERTOS_CPU_DIR = "bertos/cpu/"
48
49 BERTOS_SCRIPT_DIR = { "arm": BERTOS_CPU_DIR + "arm/script/",
50                       "avr": BERTOS_CPU_DIR + "avr/script/" }
51
52 BERTOS_HW_DIR = { "arm": BERTOS_CPU_DIR + "arm/hw/",
53                   "avr": BERTOS_CPU_DIR + "avr/hw/" }
54
55 BERTOS_DRV_DIR = { "arm": BERTOS_CPU_DIR + "arm/drv/",
56                    "avr": BERTOS_CPU_DIR + "avr/drv/" }
57
58 # Common GCC flags.
59 COM_C_FLAGS = { "arm": None,
60                 "avr": [ "-O0", "-fno-strict-aliasing"] }
61
62 COM_CPPA_FLAGS = { "arm": [ "-O0", "-g -gdwarf-2", "-g -gen-debug" ],
63                    "avr": None }
64
65 COM_CPP_FLAGS = { "arm": [ "-O0", "-g3 -gdwarf-2", "-fverbose-asm" ]
66                   "avr": None }
67
68 COM_LD_FLAGS = { "arm": None,
69                  "avr": None }
70
71 COM_CPPA_SRC = { "arm": None,
72                  "avr": None }
73
74 COM_PC_SRC = { "arm": None,
75                "avr": None }
76
77
78 # If you want to use, one o more, of these modules in your project you should compile in 
79 # different way.
80 PC_SRC = { "arm": None,
81            "avr": [ "kdebug",
82                     "formartwr",
83                     "sprintf",
84                     "text_format",
85                     "text" ] }
86
87 COM_SUPPORTED_DRV = { "arm": [ "adc",
88                                "kdebug",
89                                "pwm",
90                                "ser", 
91                                "stepper",
92                                "timer", 
93                                "twi" ]
94                       "avr": [ "adc",
95                                "flash",
96                                "flash",
97                                "pwm",
98                                "ser",
99                                "sipo",
100                                "timer",
101                                "wdt",
102                                "ic2",
103                                "kdebug",
104                                "lcd_32122a"] }
105