aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-29 12:02:51 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-29 12:02:51 -0400
commit13faed75ea1366c14995aa6649b4262029822516 (patch)
tree91c45967a8ff557000951fe87f9ab1a64f5c4875
parent7cd5350622f5c7c84662beaee5b92a362be0f59b (diff)
downloadlibrambutan-13faed75ea1366c14995aa6649b4262029822516.tar.gz
librambutan-13faed75ea1366c14995aa6649b4262029822516.zip
Adding RCC_SPI3 for high density devices.
-rw-r--r--libmaple/rcc.c1
-rw-r--r--libmaple/rcc.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/libmaple/rcc.c b/libmaple/rcc.c
index efb2599..37c1ec4 100644
--- a/libmaple/rcc.c
+++ b/libmaple/rcc.c
@@ -83,6 +83,7 @@ static const struct rcc_dev_info rcc_dev_table[] = {
[RCC_DAC] = { .clk_domain = APB1, .line_num = 29 },
[RCC_DMA2] = { .clk_domain = AHB, .line_num = 1 },
[RCC_SDIO] = { .clk_domain = AHB, .line_num = 10 },
+ [RCC_SPI3] = { .clk_domain = APB1, .line_num = 15 },
#endif
#ifdef STM32_XL_DENSITY
[RCC_TIMER9] = { .clk_domain = APB2, .line_num = 19 },
diff --git a/libmaple/rcc.h b/libmaple/rcc.h
index 08f8977..f0f026b 100644
--- a/libmaple/rcc.h
+++ b/libmaple/rcc.h
@@ -467,6 +467,7 @@ typedef enum {
RCC_DAC,
RCC_DMA2,
RCC_SDIO,
+ RCC_SPI3,
#endif
#ifdef STM32_XL_DENSITY
RCC_TIMER9,