test DCF signal reception

This commit is contained in:
King Kévin 2016-05-01 20:46:36 +02:00
parent fc9172a278
commit 2d6eec93b6
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -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