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 5... Line 5...
5
uint8_t pushStatus;
5
uint8_t pushStatus;
6
point lastValidPoint;
6
point lastValidPoint;
7
uint8_t timeCnt;
7
uint8_t timeCnt;
8
 
8
 
9
 
9
 
10
#ifdef sns_Touch_USEEEPROM
10
#if sns_Touch_USEEEPROM==1
11
#include "sns_Touch_eeprom.h"
11
#include "sns_Touch_eeprom.h"
12
struct eeprom_sns_Touch EEMEM eeprom_sns_Touch =
12
struct eeprom_sns_Touch EEMEM eeprom_sns_Touch =
13
{
13
{
14
    {
14
    {
15
        ///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. 
15
        ///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 20... Line 20...
20
};
20
};
21
#endif
21
#endif
22
 
22
 
23
void sns_Touch_Init(void)
23
void sns_Touch_Init(void)
24
{
24
{
25
#ifdef sns_Touch_USEEEPROM
25
#if sns_Touch_USEEEPROM==1
26
    if (EEDATA_OK)
26
    if (EEDATA_OK)
27
    {
27
    {
28
      ///TODO: Use stored data to set initial values for the module
28
      ///TODO: Use stored data to set initial values for the module
29
      blablaX = eeprom_read_byte(EEDATA.x);
29
      blablaX = eeprom_read_byte(EEDATA.x);
30
      blablaY = eeprom_read_word(EEDATA.y);
30
      blablaY = eeprom_read_word(EEDATA.y);