Permalink
Browse files

DCF77 Receiver und Timeservice wieder aktiviert

  • Loading branch information...
RealMerlin committed Feb 6, 2019
1 parent 1c08b51 commit 404aa7f5bd77a0c6d3675bbed345a63dfa6817fc
@@ -67,6 +67,14 @@ void devices_load_config(void)
data_size = sizeof (device_data_<xsl:value-of select="@name" />);
break;
</xsl:for-each>
case EDS_dcf77_receiver_BLOCK_ID:
config_size = sizeof(eds_dcf77_receiver_block_t);
data_size = sizeof(device_data_dcf77_receiver);
break;
case EDS_timeservice_BLOCK_ID:
config_size = sizeof(eds_timeservice_block_t);
data_size = sizeof(device_data_timeservice);
break;
default:
// Falls wir den Block Typ (ausser 255) nicht kennen, dann
// geben wir eine Syslog Meldung aus
@@ -151,7 +159,9 @@ void devices_load_config(void)
<xsl:value-of select="@name" />_init( (device_data_<xsl:value-of select="@name" />*) p, it);
break;
</xsl:for-each>

case EDS_dcf77_receiver_BLOCK_ID:
dcf77_receiver_init((device_data_dcf77_receiver *) p, it);
break;

}
}
@@ -12,6 +12,8 @@
#define DEVICES_H

#include &lt;canix/eds.h&gt;
#include "dcf77_receiver.h"
#include "timeservice.h"
<xsl:apply-templates select="device" />
// definiert die Groesse der verschiedenen Device-Configs im EEPROM
extern uint8_t device_config_size[];
@@ -44,4 +46,4 @@ void hauselektrik_callback(const canix_frame *frame);
#include "devices/<xsl:value-of select="@name" />.h"
</xsl:template>

</xsl:stylesheet>
</xsl:stylesheet>
@@ -86,6 +86,9 @@ void idle_handler(void)
<xsl:value-of select="@name" />_timer_handler( (device_data_<xsl:value-of select="@name" />*) p, 100);
break;
</xsl:for-each>
case EDS_dcf77_receiver_BLOCK_ID:
dcf77_receiver_timer_handler((device_data_dcf77_receiver *) p, 100);
break;
}
}
}
@@ -163,4 +166,4 @@ void idle_handler(void)
</xsl:template>


</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 404aa7f

Please sign in to comment.