IF482 depends on RTC_INT not HAS_RTC

This commit is contained in:
Klaus K Wilting 2019-01-29 09:04:31 +01:00
parent 8a764af09b
commit 8459eec8ef
2 changed files with 9 additions and 8 deletions

View File

@ -1,13 +1,14 @@
#if defined HAS_IF482 && defined HAS_RTC #if defined HAS_IF482 && defined RTC_INT
/* NOTE: /* NOTE:
The IF482 Generator needs an high precise 1 Hz clock signal which cannot be The IF482 Generator needs an high precise 1 Hz clock signal which cannot be
acquired in suitable precision on the ESP32 SoC itself. Additional clocking acquired in suitable precision on the ESP32 SoC itself. Additional clocking
hardware is required, ususally the clock signal is generated by external RTC or hardware is required, ususally the clock signal is generated by external RTC or
GPS chip or a GPS chip which can generate a precise clock signal (+/- 2ppm). In GPS which can generate a precise time pulse signal (+/- 2ppm).
this example code we use a Maxim DS3231 RTC chip, and configure it's interrupt
output as clock output. The clock signal triggers an interrupt on the ESP32, In this example code we use a Maxim DS3231 RTC chip, and configure the chips's
which controls the realtime output of IF482 telegram. This is why code in interrupt output pin as clock. The clock signal triggers an interrupt on the
ESP32, which controls the realtime output of IF482 telegram. This is why code in
IF482.cpp depends on code in RTCTIME.cpp. IF482.cpp depends on code in RTCTIME.cpp.
*/ */
@ -16,6 +17,7 @@ IF482.cpp depends on code in RTCTIME.cpp.
/* /*
IF482 Generator to control clocks with IF482 telegram input (e.g. BÜRK BU190) IF482 Generator to control clocks with IF482 telegram input (e.g. BÜRK BU190)
Example IF482 telegram: "OAL160806F170400" Example IF482 telegram: "OAL160806F170400"
IF482 Specification: IF482 Specification:

View File

@ -198,6 +198,7 @@ void setup() {
else else
ESP_LOGI(TAG, "RTC has set the system time"); ESP_LOGI(TAG, "RTC has set the system time");
setSyncInterval(TIME_SYNC_INTERVAL_RTC); setSyncInterval(TIME_SYNC_INTERVAL_RTC);
#endif // HAS_RTC
#ifdef HAS_IF482 #ifdef HAS_IF482
strcat_P(features, " IF482"); strcat_P(features, " IF482");
@ -212,8 +213,6 @@ void setup() {
0); // CPU core 0); // CPU core
#endif // HAS_IF482 #endif // HAS_IF482
#endif // HAS_RTC
// initialize wifi antenna // initialize wifi antenna
#ifdef HAS_ANTENNA_SWITCH #ifdef HAS_ANTENNA_SWITCH
strcat_P(features, " ANT"); strcat_P(features, " ANT");
@ -433,7 +432,7 @@ void setup() {
#endif #endif
// start RTC interrupt // start RTC interrupt
#if defined HAS_IF482 && defined HAS_RTC #if defined HAS_IF482 && defined RTC_INT
// setup external interupt for active low RTC INT pin // setup external interupt for active low RTC INT pin
assert(IF482Task != NULL); // has if482loop task started? assert(IF482Task != NULL); // has if482loop task started?
ESP_LOGI(TAG, "Starting IF482 output..."); ESP_LOGI(TAG, "Starting IF482 output...");