Subversion Repositories HomeAutomation

Rev

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

Rev 1910 Rev 1978
Line 2... Line 2...
2
#include "act_SlowPWM.h"
2
#include "act_SlowPWM.h"
3
 
3
 
4
#ifdef act_SlowPWM_USEEEPROM
4
#if act_SlowPWM_USEEEPROM==1
5
#include "act_SlowPWM_eeprom.h"
5
#include "act_SlowPWM_eeprom.h"
6
struct eeprom_act_SlowPWM EEMEM eeprom_act_SlowPWM =
6
struct eeprom_act_SlowPWM EEMEM eeprom_act_SlowPWM =
7
{
7
{
8
    {
8
    {
9
        ///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. 
9
        ///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 101... Line 101...
101
    }
101
    }
102
}
102
}
103
 
103
 
104
void act_SlowPWM_Init(void)
104
void act_SlowPWM_Init(void)
105
{
105
{
106
#ifdef act_SlowPWM_USEEEPROM
106
#if act_SlowPWM_USEEEPROM==1
107
    if (EEDATA_OK)
107
    if (EEDATA_OK)
108
    {
108
    {
109
      ;
109
      ;
110
    } else
110
    } else
111
    {   //The CRC of the EEPROM is not correct, store default values and update CRC
111
    {   //The CRC of the EEPROM is not correct, store default values and update CRC