aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMichael Hope <michaelh@juju.net.nz>2010-10-20 21:05:38 +1300
committerMichael Hope <michaelh@juju.net.nz>2010-10-20 21:05:38 +1300
commit5b856438167d2f60ceeb295b70bd788874808031 (patch)
tree0cafb5f0d693a9cabde4fceebd59a81bff978b63 /libmaple
parent457fac0997eb8dbbaac913c15a8659637e58f186 (diff)
downloadlibrambutan-5b856438167d2f60ceeb295b70bd788874808031.tar.gz
librambutan-5b856438167d2f60ceeb295b70bd788874808031.zip
Added DMA1 and DMA2 to the RCC
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/rcc.c2
-rw-r--r--libmaple/rcc.h2
2 files changed, 4 insertions, 0 deletions
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)
};