Comply to avr cdef format.
[bertos.git] / bertos / cpu / arm / info / at91sam7x128.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 # Cpu info of the AT91SAM7X128.
36
37 # This file contain all info for the BeRTOS wizard.
38 #
39 # \author Daniele Basile <asterix@develer.com>
40 #
41 #
42
43 # Where are locate the bertos directories
44 BERTOS_CPU_DIR = "bertos/cpu/"
45 BERTOS_SCRIPT_DIR = BERTOS_CPU_DIR + "arm/script/"
46 BERTOS_HW_DIR = BERTOS_CPU_DIR + "arm/hw/"
47
48 # Type of the toolchain we should use to compile the source for this CPU.
49 TOOLCHAIN = "arm"
50
51 # If we use the GCC compiler we should pass some flags. 
52 CORE_CPU = "arm7tdmi"
53
54 C_FLAGS = []
55
56 CPPA_FLAGS = []
57
58 CPP_FLAGS = [ "-D__ARM_AT91SAM7X128__"
59               "-fverbose-asm"]
60
61 LD_FLAGS = [ "-nostartfiles",
62              "-T " + BERTOS_SCRIPT_DIR + " at91sam7_128_rom.ld" 
63              "-Wl,--no-warn-mismatch" ]
64
65 CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S",
66              BERTOS_HW_DIR + "switch_arm.S" ]
67
68 PC_SRC = []
69
70 # For this cpu BeRTOS support these driver: 
71 SUPPORTED_DRV = [adc, kdebug, pwm, ser, stepper, timer, twi]
72