From 20eb2d7b98c400292ee5173ea64f1095fa9fbe07 Mon Sep 17 00:00:00 2001 From: a*morale Date: Sun, 18 Nov 2012 11:10:47 +0100 Subject: [PATCH] Fixed RTC clock --- flight/board_hw_defs/revomini/board_hw_defs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/board_hw_defs/revomini/board_hw_defs.c b/flight/board_hw_defs/revomini/board_hw_defs.c index 5c86d6624..7d9d8fe19 100644 --- a/flight/board_hw_defs/revomini/board_hw_defs.c +++ b/flight/board_hw_defs/revomini/board_hw_defs.c @@ -896,7 +896,7 @@ void PIOS_I2C_pressure_adapter_er_irq_handler(void); void PIOS_RTC_IRQ_Handler (void); void RTC_WKUP_IRQHandler() __attribute__ ((alias ("PIOS_RTC_IRQ_Handler"))); static const struct pios_rtc_cfg pios_rtc_main_cfg = { - .clksrc = RCC_RTCCLKSource_HSE_Div16, // Divide 8 Mhz crystal down to 1 + .clksrc = RCC_RTCCLKSource_HSE_Div8, // Divide 8 Mhz crystal down to 1 // For some reason it's acting like crystal is 16 Mhz. This clock is then divided // by another 16 to give a nominal 62.5 khz clock .prescaler = 100, // Every 100 cycles gives 625 Hz