test DCF signal reception
This commit is contained in:
parent
fc9172a278
commit
2d6eec93b6
2
main.c
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user