From 2d6eec93b62c85f9172fcce0fdac7f52ee271937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sun, 1 May 2016 20:46:36 +0200 Subject: [PATCH] test DCF signal reception --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 525dd71..499eb8c 100644 --- a/main.c +++ b/main.c @@ -43,6 +43,7 @@ #include "usb_cdcacm.h" // USB CDC ACM utilities #include "led_ws2812b.h" // WS2812b LEDs utilities #include "rtc_ds1307.h" // Real Time Clock DS1307 utilities +#include "rtc_dcf77.h" // DCF77 time receiver utilities /** @defgroup main_flags flag set in interrupts to be processed in main task * @{ @@ -380,6 +381,7 @@ int main(void) printf("setup RTC: "); rtc_auto_awake(RCC_LSE, 32768/ticks_second-1); // ensure RTC is on, uses the 32.678 kHz LSE, and the prescale is set to our tick speed, else update backup registers accordingly (power off the micro-controller for the change to take effect) rtc_ds1307_setup(); // setup external RTC module + rtc_dcf77_setup(); // setup DCF77 module printf("OK\n"); // setup WS2812b LEDs