#define GPIO_USART1_RX_PIN BV(10)
#define GPIO_USART2_TX_PIN BV(2)
#define GPIO_USART2_RX_PIN BV(3)
-#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
+#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE || CPU_CM3_STM32F100RB
#define GPIO_USART1_TX_PIN BV(9)
#define GPIO_USART1_RX_PIN BV(10)
#define GPIO_USART2_TX_PIN BV(2)
#if CPU_CM3_STM32F101C4
#define GPIO_I2C1_SCL_PIN BV(6)
#define GPIO_I2C1_SDA_PIN BV(7)
-#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
+#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE || CPU_CM3_STM32F100RB
#define GPIO_I2C1_SCL_PIN BV(6)
#define GPIO_I2C1_SDA_PIN BV(7)
#define GPIO_I2C2_SCL_PIN BV(10)
#error No i2c pins are defined for select cpu
#endif
-#if CPU_CM3_STM32F101C4 || CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
+#if CPU_CM3_STM32F101C4 || CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE || CPU_CM3_STM32F100RB
#define FLASH_PAGE_SIZE 1024
#else
#error No embedded definition for select cpu
--- /dev/null
+/**
+ * \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction. Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License. This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
+ * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
+ *
+ * -->
+ *
+ * \author Andrea Scalise <andreascalo@gmail.com>
+ * \Signed-off-by Matteo Silvestri <matteosilv@gmail.com>
+ *
+ * \brief Script for STM32VLDiscovery Cortex-M3 board.
+ *
+ */
+
+
+/*
+ * Define memory configuration for STM32F100RB
+ */
+MEMORY
+{
+ rom(rx) : org = 0x00000000, len = 128k
+ ram(rwx) : org = 0x20000000, len = 8k
+}
+
+INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
+
#define CPU_CM3_LM3S8962 0
#endif
+ #if defined (__ARM_STM32F100RB__)
+ #define CPU_CM3_STM32 1
+ #define CPU_CM3_STM32F100RB 1
+ #define CPU_NAME "STM32F100RB"
+ #else
+ #define CPU_CM3_STM32F100RB 0
+ #endif
+
#if defined (__ARM_STM32F101C4__)
#define CPU_CM3_STM32 1
#define CPU_CM3_STM32F101C4 1
#define CPU_CM3_STM32 0
#define CPU_CM3_SAM3 0
#elif defined (CPU_CM3_STM32)
- #if CPU_CM3_STM32F101C4 + CPU_CM3_STM32F103RB + CPU_CM3_STM32F103RE + 0 != 1
+ #if CPU_CM3_STM32F100RB + CPU_CM3_STM32F101C4 + CPU_CM3_STM32F103RB + CPU_CM3_STM32F103RE + 0 != 1
#error STM32 Cortex-M3 CPU configuration error
#endif
#define CPU_CM3_LM3S 0
#define CPU_CM3_LM3S8962 0
#define CPU_CM3_STM32 0
+ #define CPU_CM3_STM32F100RB 0
#define CPU_CM3_STM32F103RB 0
#define CPU_CM3_STM32F101C4 0
- #define CPU_CM3_STM32F103RE 0
+ #define CPU_CM3_STM32F103RE 0
#define CPU_CM3_SAM3 0
#define CPU_CM3_SAM3N 0