CuVoodoo STM32F1 firmware template
rtc_dcf77.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
2  * it under the terms of the GNU General Public License as published by
3  * the Free Software Foundation, either version 3 of the License, or
4  * (at your option) any later version.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13  *
14  */
21 #pragma once
22 
26 #define RTC_DCF77_ENABLE_RCC RCC_GPIOA
27 #define RTC_DCF77_ENABLE_PORT GPIOA
28 #define RTC_DCF77_ENABLE_PIN GPIO2
29 #define RTC_DCF77_SIGNAL_RCC RCC_GPIOA
30 #define RTC_DCF77_SIGNAL_PORT GPIOA
31 #define RTC_DCF77_SIGNAL_PIN GPIO3
32 #define RTC_DCF77_SIGNAL_EXTI EXTI3
33 #define RTC_DCF77_SIGNAL_IRQ NVIC_EXTI3_IRQ
34 #define RTC_DCF77_SIGNAL_ISR exti3_isr
40 #define RTC_DCF77_TIMER TIM4
41 #define RTC_DCF77_TIMER_RCC RCC_TIM4
42 #define RTC_DCF77_TIMER_MAX_TIME 2200
46 extern volatile bool rtc_dcf77_time_flag;
47 
49 void rtc_dcf77_setup(void);
51 void rtc_dcf77_on(void);
53 void rtc_dcf77_off(void);
57 uint8_t* rtc_dcf77_time(void);
void rtc_dcf77_on(void)
switch on DCF77 time receiver module
Definition: rtc_dcf77.c:64
void rtc_dcf77_off(void)
switch off DCF77 time receiver module
Definition: rtc_dcf77.c:69
void rtc_dcf77_setup(void)
setup DCF77 time receiver module
Definition: rtc_dcf77.c:40
uint8_t * rtc_dcf77_time(void)
get last received DCF77 time
Definition: rtc_dcf77.c:74