diff options
author | Michael Hope <michaelh@juju.net.nz> | 2010-10-20 21:05:38 +1300 |
---|---|---|
committer | Michael Hope <michaelh@juju.net.nz> | 2010-10-20 21:05:38 +1300 |
commit | 5b856438167d2f60ceeb295b70bd788874808031 (patch) | |
tree | 0cafb5f0d693a9cabde4fceebd59a81bff978b63 /libmaple | |
parent | 457fac0997eb8dbbaac913c15a8659637e58f186 (diff) | |
download | librambutan-5b856438167d2f60ceeb295b70bd788874808031.tar.gz librambutan-5b856438167d2f60ceeb295b70bd788874808031.zip |
Added DMA1 and DMA2 to the RCC
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/rcc.c | 2 | ||||
-rw-r--r-- | libmaple/rcc.h | 2 |
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) }; |