From dee88e422839ee0b2c5c17841feabc41fcc6b8ed Mon Sep 17 00:00:00 2001 From: Gregwar Date: Thu, 20 Feb 2014 22:39:04 +0100 Subject: Adding support for cm900 and opencm904 boards (robotis) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Grégoire Passault --- libmaple/stm32f1/include/series/stm32.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libmaple/stm32f1/include') diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h index f6e96f8..40f2b79 100644 --- a/libmaple/stm32f1/include/series/stm32.h +++ b/libmaple/stm32f1/include/series/stm32.h @@ -98,6 +98,15 @@ extern "C" { # define STM32_SRAM_END ((void*)0x20002000) # define STM32_MEDIUM_DENSITY +#elif defined(MCU_STM32F103C8) +# define STM32_NR_GPIO_PORTS 4 +# define STM32_DELAY_US_MULT 12 +# define STM32_SRAM_END ((void*)0x20005000) +# define NR_GPIO_PORTS STM32_NR_GPIO_PORTS +# define DELAY_US_MULT STM32_DELAY_US_MULT +# define STM32_F1_LINE STM32_F1_LINE_PERFORMANCE +# define STM32_MEDIUM_DENSITY + #else #warning "Unsupported or unspecified STM32F1 MCU." #endif -- cgit v1.2.3 From 43c2295119205bc40a0d21f2994ade9f84c5397c Mon Sep 17 00:00:00 2001 From: Gregwar Date: Fri, 21 Feb 2014 23:38:28 +0100 Subject: Removing redundant defines (see #85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Grégoire Passault --- libmaple/stm32f1/include/series/stm32.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libmaple/stm32f1/include') diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h index 40f2b79..42a9744 100644 --- a/libmaple/stm32f1/include/series/stm32.h +++ b/libmaple/stm32f1/include/series/stm32.h @@ -100,10 +100,8 @@ extern "C" { #elif defined(MCU_STM32F103C8) # define STM32_NR_GPIO_PORTS 4 -# define STM32_DELAY_US_MULT 12 # define STM32_SRAM_END ((void*)0x20005000) # define NR_GPIO_PORTS STM32_NR_GPIO_PORTS -# define DELAY_US_MULT STM32_DELAY_US_MULT # define STM32_F1_LINE STM32_F1_LINE_PERFORMANCE # define STM32_MEDIUM_DENSITY -- cgit v1.2.3