Skip to content

Commit 96cdd10

Browse files
authored
Driver for DCF77 radio controlled clock (openshwprojects#1911)
* push driver for DCF77 to actual OBK code * Chnged to new HAL IRQ API Added missing "CHANGE" interrupt (rising and falling) for LN882H, W600/W800 and ESP (not yet tested) Moved code from ISR to QuickTick funktion (else LN882H would crash) Tested to work with W800 ("CHANGE") BL602 ("RISING" and "FALLING") LN882H (both "CHANGE" and "RISING"/"FALLING" tested) * fixed ESP (wrong formated comment for testing at least compilation, added "#define ENABLE_DRIVER_DCF77 1" for more platforms ... * disabled DCF77 driver for RDA5981 - no xticks code found * Changed logic again, IRS will only save timestamp, all decoding is done in QuickTick function No need for Rising/falling edge definition, driver ony searches for "bit" gaps (100 or 200 ms) and ignore the "in between" gap to the next bit. Therefore no need to know, if rising or falling edge starts the bit. * chagnge driver to get Pin from argument 1 * Disable driver in obk_config.h
1 parent 7f257f1 commit 96cdd10

File tree

9 files changed

+466
-3
lines changed

9 files changed

+466
-3
lines changed

platforms/obk_main.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ set(OBKM_SRC
109109
${OBK_SRCS}driver/drv_deviceclock.c
110110
${OBK_SRCS}driver/drv_ds3231.c
111111
${OBK_SRCS}driver/drv_neo6m.c
112+
${OBK_SRCS}driver/drv_DCF77.c
112113
${OBK_SRCS}libraries/obktime/obktime.c
113114
${OBK_SRCS}driver/drv_timed_events.c
114115
${OBK_SRCS}driver/drv_openWeatherMap.c

platforms/obk_main.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ OBKM_SRC += $(OBK_SRCS)driver/drv_ntp.c
129129
OBKM_SRC += $(OBK_SRCS)driver/drv_deviceclock.c
130130
OBKM_SRC += $(OBK_SRCS)driver/drv_ds3231.c
131131
OBKM_SRC += $(OBK_SRCS)driver/drv_neo6m.c
132+
OBKM_SRC += $(OBK_SRCS)driver/drv_DCF77.c
132133
OBKM_SRC += $(OBK_SRCS)libraries/obktime/obktime.c
133134
OBKM_SRC += $(OBK_SRCS)driver/drv_timed_events.c
134135
OBKM_SRC += $(OBK_SRCS)driver/drv_openWeatherMap.c

0 commit comments

Comments
 (0)