aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-07-20 17:08:20 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-24 16:02:31 -0400
commit12f0e7cd92ab907772928f116c3f19fa117aa4d5 (patch)
tree1e9280625f80840d943674a4c836c930bf52fc12 /libmaple
parent37c7929637c7047955ddacfb70a5868dcbae7160 (diff)
downloadlibrambutan-12f0e7cd92ab907772928f116c3f19fa117aa4d5.tar.gz
librambutan-12f0e7cd92ab907772928f116c3f19fa117aa4d5.zip
rcc: Add RCC_USB to rcc_clk_id/rcc_dev_table.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-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 f3018ee..65abfb6 100644
--- a/libmaple/rcc.c
+++ b/libmaple/rcc.c
@@ -72,6 +72,7 @@ static const struct rcc_dev_info rcc_dev_table[] = {
[RCC_CRC] = { .clk_domain = AHB, .line_num = 6},
[RCC_FLITF] = { .clk_domain = AHB, .line_num = 4},
[RCC_SRAM] = { .clk_domain = AHB, .line_num = 2},
+ [RCC_USB] = { .clk_domain = APB1, .line_num = 23},
#if defined(STM32_HIGH_DENSITY) || defined(STM32_XL_DENSITY)
[RCC_GPIOE] = { .clk_domain = APB2, .line_num = 6 },
[RCC_GPIOF] = { .clk_domain = APB2, .line_num = 7 },
diff --git a/libmaple/rcc.h b/libmaple/rcc.h
index 98bcf92..c50686c 100644
--- a/libmaple/rcc.h
+++ b/libmaple/rcc.h
@@ -456,6 +456,7 @@ typedef enum rcc_clk_id {
RCC_CRC,
RCC_FLITF,
RCC_SRAM,
+ RCC_USB,
#if defined(STM32_HIGH_DENSITY) || defined(STM32_XL_DENSITY)
RCC_GPIOE,
RCC_GPIOF,