From: lottaviano Date: Wed, 4 May 2011 12:59:51 +0000 (+0000) Subject: STMF100RB CPU added to the wizard. X-Git-Tag: 2.7.0~92 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5ce253a022f17c1088c52e15e6c050bb58ae3952;p=bertos.git STMF100RB CPU added to the wizard. Signed-off-by: Matteo Silvestri Signed-off-by: Andrea Scalise git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4874 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/info/STM32F100RB.cdef b/bertos/cpu/cortex-m3/info/STM32F100RB.cdef new file mode 100644 index 00000000..2b960693 --- /dev/null +++ b/bertos/cpu/cortex-m3/info/STM32F100RB.cdef @@ -0,0 +1,68 @@ +# +#-*- coding: utf-8 -*- +# +# \file +# +# +# General CPU info denfinition for Cortex-M3-based STM32VLDiscovery board. +# +# This file contain all info for the BeRTOS wizard. +# +# \author Andrea Scalise +# \author Matteo Silvestri +# +# + +# Import the common settings for the path. +include("cm3.common") + +# CPU type used for flashing/debugging +MK_PROGRAMMER_CPU = "stm32" +MK_FLASH_SCRIPT = PRG_SCRIPTS_DIR + "arm/flash-stm32.sh" + +# CPU default clock frequency +CPU_DEFAULT_FREQ = "24000000UL" + +# Special CPU related tags. +CPU_TAGS += ["stm32"] + +# Additional hw drivers. +MK_CPU_CSRC += DRV_DIR + "gpio_stm32.c " + DRV_DIR + "clock_stm32.c " + +# Short description of the cpu. +CPU_DESC += [ "128 Kbytes on-chip flash memory", + "8 Kbytes on-chip SRAM memory", + "2 UART interfaces", + "1 I2C interfaces" ] + +# GCC flags for this cpu. +MK_CPU_CPPFLAGS += " -D__ARM_STM32F100RB__" +MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "stm32f100rb_rom.ld"