IF482 depends on RTC_INT not HAS_RTC
This commit is contained in:
parent
8a764af09b
commit
8459eec8ef
@ -1,13 +1,14 @@
|
||||
#if defined HAS_IF482 && defined HAS_RTC
|
||||
#if defined HAS_IF482 && defined RTC_INT
|
||||
|
||||
/* NOTE:
|
||||
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
|
||||
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
|
||||
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,
|
||||
which controls the realtime output of IF482 telegram. This is why code in
|
||||
GPS which can generate a precise time pulse signal (+/- 2ppm).
|
||||
|
||||
In this example code we use a Maxim DS3231 RTC chip, and configure the chips's
|
||||
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.
|
||||
*/
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Example IF482 telegram: "OAL160806F170400"
|
||||
|
||||
IF482 Specification:
|
||||
|
@ -198,6 +198,7 @@ void setup() {
|
||||
else
|
||||
ESP_LOGI(TAG, "RTC has set the system time");
|
||||
setSyncInterval(TIME_SYNC_INTERVAL_RTC);
|
||||
#endif // HAS_RTC
|
||||
|
||||
#ifdef HAS_IF482
|
||||
strcat_P(features, " IF482");
|
||||
@ -212,8 +213,6 @@ void setup() {
|
||||
0); // CPU core
|
||||
#endif // HAS_IF482
|
||||
|
||||
#endif // HAS_RTC
|
||||
|
||||
// initialize wifi antenna
|
||||
#ifdef HAS_ANTENNA_SWITCH
|
||||
strcat_P(features, " ANT");
|
||||
@ -433,7 +432,7 @@ void setup() {
|
||||
#endif
|
||||
|
||||
// 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
|
||||
assert(IF482Task != NULL); // has if482loop task started?
|
||||
ESP_LOGI(TAG, "Starting IF482 output...");
|
||||
|
Loading…
Reference in New Issue
Block a user