diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 11:40:46 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 11:40:46 -0400 |
commit | d03ab7f8cfbf02ba68cfe1e3c28cfa6b37c3a8c6 (patch) | |
tree | c314a3dcee06a23c8c006d40de844a37a6327ed2 /libmaple/stm32f1 | |
parent | 7ed7ff2280bd0d2a73ca2577a6da212b510c7694 (diff) | |
download | librambutan-d03ab7f8cfbf02ba68cfe1e3c28cfa6b37c3a8c6.tar.gz librambutan-d03ab7f8cfbf02ba68cfe1e3c28cfa6b37c3a8c6.zip |
stm32f1: stm32.h: Cosmetics.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1')
-rw-r--r-- | libmaple/stm32f1/include/series/stm32.h | 14 |
1 files changed, 10 insertions, 4 deletions
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. + * <libmaple/stm32.h> will check that we've defined everything it needs. + */ + #if !defined(STM32_F1_LINE) #error "Bad STM32F1 configuration. Check STM32F1 <series/stm32.h> header." #endif |