.sysctl_gpio = RCC_APB2_GPIOA,
.sysctl_usart = RCC_APB1_USART2,
},
-#if CPU_CM3_STM32F103RB
+#if CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
/* UART3 */
{
.base = GPIOB_BASE,
/* UART port instances */
UART_PORT(1)
UART_PORT(2)
-#if CPU_CM3_STM32F103RB
+#if CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
UART_PORT(3)
#endif
.base = USART2_BASE,
.irq = USART2_IRQHANDLER,
},
-#if CPU_CM3_STM32F103RB
+#if CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
{
.hw = {
.table = &USART3_VT,
{
SER_UART1 = 0,
SER_UART2,
-#if CPU_CM3_STM32F103RB
+#if CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
SER_UART3,
#endif
SER_CNT //< Number of serial ports
#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
+#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
#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
+#elif CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
#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
+#if CPU_CM3_STM32F101C4 || CPU_CM3_STM32F103RB || CPU_CM3_STM32F103RE
#define FLASH_PAGE_SIZE 1024
#else
#error No embedded definition for select cpu
#define CPU_CM3_STM32F103RB 0
#endif
+ #if defined (__ARM_STM32F103RE__)
+ #define CPU_CM3_STM32 1
+ #define CPU_CM3_STM32F103RE 1
+ #define CPU_NAME "STM32F103RE"
+ #else
+ #define CPU_CM3_STM32F103RE 0
+ #endif
+
+
#if defined (__ARM_SAM3N4__)
#define CPU_CM3_SAM3 1
#define CPU_CM3_SAM3N 1
#define CPU_CM3_STM32 0
#define CPU_CM3_SAM3 0
#elif defined (CPU_CM3_STM32)
- #if CPU_CM3_STM32F101C4 + CPU_CM3_STM32F103RB + 0 != 1
+ #if 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_STM32 0
#define CPU_CM3_STM32F103RB 0
#define CPU_CM3_STM32F101C4 0
+ #define CPU_CM3_STM32F103RE 0
#define CPU_CM3_SAM3 0
#define CPU_CM3_SAM3N 0