aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/rcc.h
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2011-03-11 19:42:06 -0800
committerPiotr Esden-Tempski2011-03-11 19:49:23 -0800
commit3d20f37b279354e54cb5fd69e6fe078e97a6cce3 (patch)
treee6668e4d183b318facf1ed3954baf6bdb1a0fb64 /include/libopencm3/stm32/rcc.h
parent675b13ed2be1a85443d8b567e0c34aeb7a8c8568 (diff)
RCC now has two variables to hold the current apb1 and apb2 frequency.
Diffstat (limited to 'include/libopencm3/stm32/rcc.h')
-rw-r--r--include/libopencm3/stm32/rcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/rcc.h b/include/libopencm3/stm32/rcc.h
index a618439..c6bd874 100644
--- a/include/libopencm3/stm32/rcc.h
+++ b/include/libopencm3/stm32/rcc.h
@@ -369,6 +369,10 @@
#define RCC_CFGR2_PREDIV2_DIV15 0xe
#define RCC_CFGR2_PREDIV2_DIV16 0xf
+/* --- Variable definitions ------------------------------------------------ */
+extern u32 rcc_ppre1_frequency;
+extern u32 rcc_ppre2_frequency;
+
/* --- Function prototypes ------------------------------------------------- */
typedef enum {