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 69... Line 69...
69
static uint16_t maxTimer = 10;
69
static uint16_t maxTimer = 10;
70
static uint8_t resolution = 1;
70
static uint8_t resolution = 1;
71
static uint8_t act_softPWM_ReportInterval =0;
71
static uint8_t act_softPWM_ReportInterval =0;
72
static uint8_t currentSendChannelId = 0;
72
static uint8_t currentSendChannelId = 0;
73
 
73
 
74
#ifdef act_softPWM_USEEEPROM
74
#if act_softPWM_USEEEPROM==1
75
#include "act_softPWM_eeprom.h"
75
#include "act_softPWM_eeprom.h"
76
struct eeprom_act_softPWM EEMEM eeprom_act_softPWM =
76
struct eeprom_act_softPWM EEMEM eeprom_act_softPWM =
77
{
77
{
78
    {
78
    {
79
        ///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. 
79
        ///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 92... Line 92...
92
static uint8_t offCounter[NUMBEROFCHANNELS];
92
static uint8_t offCounter[NUMBEROFCHANNELS];
93
#endif
93
#endif
94
 
94
 
95
void act_softPWM_Init(void)
95
void act_softPWM_Init(void)
96
{
96
{
97
#ifdef act_softPWM_USEEEPROM
97
#if act_softPWM_USEEEPROM==1
98
    //if (EEDATA_OK)
98
    //if (EEDATA_OK)
99
    //{
99
    //{
100
     // ;
100
     // ;
101
    //} else
101
    //} else
102
    //{ //The CRC of the EEPROM is not correct, store default values and update CRC
102
    //{ //The CRC of the EEPROM is not correct, store default values and update CRC