STMF100RB CPU added to the wizard.
[bertos.git] / bertos / cpu / cortex-m3 / info / STM32F100RB.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 2010 Develer S.r.l. (http://www.develer.com/)
32 #
33 # -->
34 #
35 # General CPU info denfinition for Cortex-M3-based STM32VLDiscovery board.
36 #
37 # This file contain all info for the BeRTOS wizard.
38 #
39 # \author Andrea Scalise <andreascalo@gmail.com>
40 # \author Matteo Silvestri <matteosilv@gmail.com>
41 #
42 #
43
44 # Import the common settings for the path.
45 include("cm3.common")
46
47 # CPU type used for flashing/debugging
48 MK_PROGRAMMER_CPU = "stm32"
49 MK_FLASH_SCRIPT = PRG_SCRIPTS_DIR + "arm/flash-stm32.sh"
50
51 # CPU default clock frequency
52 CPU_DEFAULT_FREQ = "24000000UL"
53
54 # Special CPU related tags.
55 CPU_TAGS += ["stm32"]
56
57 # Additional hw drivers.
58 MK_CPU_CSRC += DRV_DIR + "gpio_stm32.c " + DRV_DIR + "clock_stm32.c "
59
60 # Short description of the cpu.
61 CPU_DESC += [ "128 Kbytes on-chip flash memory",
62               "8 Kbytes on-chip SRAM memory",
63               "2 UART interfaces",
64               "1 I2C interfaces" ]
65
66 # GCC flags for this cpu.
67 MK_CPU_CPPFLAGS += " -D__ARM_STM32F100RB__"
68 MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "stm32f100rb_rom.ld"