Subversion Repositories HomeAutomation

Rev

Rev 1910 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1910 Rev 1977
Line 23... Line 23...
23
                                                //  connection also needed, see config.inc.template for more info
23
                                                //  connection also needed, see config.inc.template for more info
24
 
24
 
25
 
25
 
26
#include "act_linearAct.h"
26
#include "act_linearAct.h"
27
 
27
 
28
#ifdef act_linearAct_USEEEPROM
28
#if act_linearAct_USEEEPROM==1
29
#include "act_linearAct_eeprom.h"
29
#include "act_linearAct_eeprom.h"
30
struct eeprom_act_linearAct EEMEM eeprom_act_linearAct =
30
struct eeprom_act_linearAct EEMEM eeprom_act_linearAct =
31
{
31
{
32
    {
32
    {
33
        ///TODO: Define initialization values on the EEPROM variables here, this will generate a *.eep file that can be used to store this values to the node, can in future be done with a EEPROM module and the make-scrips. Write the values in the exact same order as the struct is defined in the *.h file.
33
        ///TODO: Define initialization values on the EEPROM variables here, this will generate a *.eep file that can be used to store this values to the node, can in future be done with a EEPROM module and the make-scrips. Write the values in the exact same order as the struct is defined in the *.h file.
Line 77... Line 77...
77
 
77
 
78
 
78
 
79
 
79
 
80
void act_linearAct_Init(void)
80
void act_linearAct_Init(void)
81
{
81
{
82
#ifdef act_linearAct_USEEEPROM
82
#if act_linearAct_USEEEPROM==1
83
    if (EEDATA_OK)
83
    if (EEDATA_OK)
84
    {
84
    {
85
      ///TODO: Use stored data to set initial values for the module
85
      ///TODO: Use stored data to set initial values for the module
86
      pulses = eeprom_read_word(EEDATA16.pulses_ee);
86
      pulses = eeprom_read_word(EEDATA16.pulses_ee);
87
      min = eeprom_read_word(EEDATA16.min_ee);
87
      min = eeprom_read_word(EEDATA16.min_ee);