From e4f84278f2b62dee7b4e0ac718c7c6ce998240ba Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 22 Jul 2012 21:58:09 +0000 Subject: Add most of the rcc functions. (Add the forgotten gpio.c file from before) --- include/libopencm3/stm32/l1/rcc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/libopencm3/stm32/l1') diff --git a/include/libopencm3/stm32/l1/rcc.h b/include/libopencm3/stm32/l1/rcc.h index 07d3692..209d24f 100644 --- a/include/libopencm3/stm32/l1/rcc.h +++ b/include/libopencm3/stm32/l1/rcc.h @@ -84,6 +84,11 @@ LGPL License Terms @ref lgpl_license #define RCC_CR_HSIRDY (1 << 1) #define RCC_CR_HSION (1 << 0) +#define RCC_CR_RTCPRE_DIV2 0 +#define RCC_CR_RTCPRE_DIV4 1 +#define RCC_CR_RTCPRE_DIV8 2 +#define RCC_CR_RTCPRE_DIV18 3 + /* --- RCC_ICSCR values ---------------------------------------------------- */ // TODO @@ -360,7 +365,6 @@ typedef enum { PLL, HSE, HSI, MSI, LSE, LSI } osc_t; -#if FINISHED == 0 void rcc_osc_ready_int_clear(osc_t osc); void rcc_osc_ready_int_enable(osc_t osc); void rcc_osc_ready_int_disable(osc_t osc); @@ -400,6 +404,5 @@ void rcc_clock_setup_in_hse_8mhz_out_72mhz(void); void rcc_clock_setup_in_hse_12mhz_out_72mhz(void); void rcc_clock_setup_in_hse_16mhz_out_72mhz(void); void rcc_backupdomain_reset(void); -#endif #endif -- cgit v1.2.3