35 lines
653 B
C
35 lines
653 B
C
/*
|
|
* dcf77.h
|
|
*
|
|
* Created on: 09.01.2016
|
|
* Author: BlexTw11
|
|
*/
|
|
|
|
#ifndef INCLUDE_DCF77_H_
|
|
#define INCLUDE_DCF77_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define DCF77_CHANGE_MEZ 16
|
|
#define DCF77_MESZ 17
|
|
#define DCF77_MEZ 18
|
|
#define DCF77_LEAP_SEC 19
|
|
#define DCF77_MINUTE 21
|
|
#define DCF77_MINUTE_PARITY 28
|
|
#define DCF77_HOUR 29
|
|
#define DCF77_HOUR_PARITY 35
|
|
#define DCF77_DAY 36
|
|
#define DCF77_WEEK 42
|
|
#define DCF77_MONTH 45
|
|
#define DCF77_YEAR 50
|
|
#define DCF77_DATE_PARITY 58
|
|
|
|
|
|
#define DCF77_PORT PORTB
|
|
#define DCF77_DDR DDRB
|
|
#define DCF77_PIN PB0
|
|
|
|
typedef enum {LOW, HIGH} t_dcf;
|
|
|
|
#endif /* INCLUDE_DCF77_H_ */
|