Subversion Repositories HomeAutomation

Rev

Rev 1910 | Rev 2012 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1910 Rev 1977
Line 11... Line 11...
11
 
11
 
12
uint16_t demoEndValue[4] = {0,0,0,0};
12
uint16_t demoEndValue[4] = {0,0,0,0};
13
uint16_t demoHighValue[4] = {0,0,0,0};
13
uint16_t demoHighValue[4] = {0,0,0,0};
14
uint8_t demoState[4] = {ACT_HWPWM_DEMO_STATE_NOT_RUNNING, ACT_HWPWM_DEMO_STATE_NOT_RUNNING, ACT_HWPWM_DEMO_STATE_NOT_RUNNING,                   ACT_HWPWM_DEMO_STATE_NOT_RUNNING};
14
uint8_t demoState[4] = {ACT_HWPWM_DEMO_STATE_NOT_RUNNING, ACT_HWPWM_DEMO_STATE_NOT_RUNNING, ACT_HWPWM_DEMO_STATE_NOT_RUNNING,                   ACT_HWPWM_DEMO_STATE_NOT_RUNNING};
15
 
15
 
16
#ifdef act_hwPWM_USEEEPROM
16
#if act_hwPWM_USEEEPROM==1
17
#include "act_hwPWM_eeprom.h"
17
#include "act_hwPWM_eeprom.h"
18
struct eeprom_act_hwPWM EEMEM eeprom_act_hwPWM =
18
struct eeprom_act_hwPWM EEMEM eeprom_act_hwPWM =
19
{
19
{
20
    {
20
    {
21
        ///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. 
21
        ///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 82... Line 82...
82
#endif
82
#endif
83
 
83
 
84
 
84
 
85
void act_hwPWM_Init(void)
85
void act_hwPWM_Init(void)
86
{
86
{
87
#ifdef act_hwPWM_USEEEPROM
87
#if act_hwPWM_USEEEPROM==1
88
    if (EEDATA_OK)
88
    if (EEDATA_OK)
89
    {
89
    {
90
      ///TODO: Use stored data to set initial values for the module
90
      ///TODO: Use stored data to set initial values for the module
91
      pwmValue[0] = eeprom_read_word(EEDATA16.ch1);
91
      pwmValue[0] = eeprom_read_word(EEDATA16.ch1);
92
      pwmValue[1] = eeprom_read_word(EEDATA16.ch2);
92
      pwmValue[1] = eeprom_read_word(EEDATA16.ch2);