From d03ab7f8cfbf02ba68cfe1e3c28cfa6b37c3a8c6 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 8 May 2012 11:40:46 -0400 Subject: stm32f1: stm32.h: Cosmetics. Signed-off-by: Marti Bolivar --- libmaple/stm32f1/include/series/stm32.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'libmaple/stm32f1/include/series') diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h index d7ec2ea..60af6b5 100644 --- a/libmaple/stm32f1/include/series/stm32.h +++ b/libmaple/stm32f1/include/series/stm32.h @@ -78,9 +78,9 @@ extern "C" { #elif defined(MCU_STM32F103CB) # define STM32_F1_LINE STM32_F1_LINE_PERFORMANCE - /* This STM32_NR_GPIO_PORTS is not strictly true, but only pins 0 - * and exist, and they're used for OSC (e.g. on e.g. LeafLabs - * Maple Mini), so we'll live with this for now. */ + /* This STM32_NR_GPIO_PORTS is not true, but only pins 0 and + * exist, and they're used for OSC (e.g. on LeafLabs' Maple Mini), + * so we'll live with this for now. */ # define STM32_NR_GPIO_PORTS 3 # define STM32_SRAM_END ((void*)0x20005000) # define STM32_MEDIUM_DENSITY @@ -166,7 +166,13 @@ extern "C" { #elif STM32_F1_LINE == STM32_F1_LINE_CONNECTIVITY /* TODO */ #endif -/* Make sure we have the F1-specific defines we need. */ +/* + * Sanity checks. + * + * Make sure we have the F1-specific defines we need. + * will check that we've defined everything it needs. + */ + #if !defined(STM32_F1_LINE) #error "Bad STM32F1 configuration. Check STM32F1 header." #endif -- cgit v1.2.3