aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32
diff options
context:
space:
mode:
authorUwe Hermann2009-08-31 14:47:07 +0200
committerUwe Hermann2009-08-31 14:47:07 +0200
commit25a003b07693581cb443630b6f1c91a5041ee21b (patch)
tree0c8b10b0f74cabdf51b11bca764b226ba5740cf2 /include/libopenstm32
parentcf69b51ee7ba9effc928af8550fc311536a394f4 (diff)
Add rcc_peripheral_{reset,clear_reset} functions.
Also, rename two other functions for consistency.
Diffstat (limited to 'include/libopenstm32')
-rw-r--r--include/libopenstm32/rcc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h
index 649e03d..6422f46 100644
--- a/include/libopenstm32/rcc.h
+++ b/include/libopenstm32/rcc.h
@@ -378,8 +378,10 @@ void rcc_css_enable(void);
void rcc_css_disable(void);
void rcc_osc_bypass_enable(osc_t osc);
void rcc_osc_bypass_disable(osc_t osc);
-void rcc_enable_peripheral_clock(volatile u32 *reg, u32 peripheral_en);
-void rcc_disable_peripheral_clock(volatile u32 *reg, u32 peripheral_en);
+void rcc_peripheral_enable_clock(volatile u32 *reg, u32 en);
+void rcc_peripheral_disable_clock(volatile u32 *reg, u32 en);
+void rcc_peripheral_reset(volatile u32 *reg, u32 reset);
+void rcc_peripheral_clear_reset(volatile u32 *reg, u32 clear_reset);
void rcc_set_sysclk_source(u32 clk);
void rcc_set_pll_multiplication_factor(u32 mul);
void rcc_set_pll_source(u32 pllsrc);