From 5b856438167d2f60ceeb295b70bd788874808031 Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Wed, 20 Oct 2010 21:05:38 +1300 Subject: Added DMA1 and DMA2 to the RCC --- libmaple/rcc.c | 2 ++ libmaple/rcc.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'libmaple') diff --git a/libmaple/rcc.c b/libmaple/rcc.c index 582e9a9..8914539 100644 --- a/libmaple/rcc.c +++ b/libmaple/rcc.c @@ -71,6 +71,8 @@ static const struct rcc_dev_info rcc_dev_table[] = { [RCC_SPI2] = { .clk_domain = APB1, .line_num = 14 }, [RCC_FSMC] = { .clk_domain = AHB, .line_num = 8 }, // High-density only [RCC_DAC] = { .clk_domain = APB1, .line_num = 9 }, // High-density only + [RCC_DMA1] = { .clk_domain = AHB, .line_num = 0 }, + [RCC_DMA2] = { .clk_domain = AHB, .line_num = 1 }, // High-density only }; /** diff --git a/libmaple/rcc.h b/libmaple/rcc.h index 012671d..deb567c 100644 --- a/libmaple/rcc.h +++ b/libmaple/rcc.h @@ -172,6 +172,8 @@ enum { RCC_SPI2, RCC_FSMC, // High-density devices only (Maple Native) RCC_DAC, // High-density devices only (Maple Native) + RCC_DMA1, + RCC_DMA2, // High-density devices only (Maple Native) }; -- cgit v1.2.3