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 15... Line 15...
15
svn export template_module modDUT; cd modDUT; make bios; make installbios; sleep 2; ./ModuleManager --add=sns_BusVoltage; make; make install; cd ..; rm -r modDUT
15
svn export template_module modDUT; cd modDUT; make bios; make installbios; sleep 2; ./ModuleManager --add=sns_BusVoltage; make; make install; cd ..; rm -r modDUT
16
 
16
 
17
*/
17
*/
18
 
18
 
19
 
19
 
20
#ifdef tst_TestPrgRig_USEEEPROM
20
#if tst_TestPrgRig_USEEEPROM==1
21
#include "tst_TestPrgRig_eeprom.h"
21
#include "tst_TestPrgRig_eeprom.h"
22
struct eeprom_tst_TestPrgRig EEMEM eeprom_tst_TestPrgRig =
22
struct eeprom_tst_TestPrgRig EEMEM eeprom_tst_TestPrgRig =
23
{
23
{
24
    {
24
    {
25
        ///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. 
25
        ///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 30... Line 30...
30
};
30
};
31
#endif
31
#endif
32
 
32
 
33
void tst_TestPrgRig_Init(void)
33
void tst_TestPrgRig_Init(void)
34
{
34
{
35
#ifdef tst_TestPrgRig_USEEEPROM
35
#if tst_TestPrgRig_USEEEPROM==1
36
    if (EEDATA_OK)
36
    if (EEDATA_OK)
37
    {
37
    {
38
      ///TODO: Use stored data to set initial values for the module
38
      ///TODO: Use stored data to set initial values for the module
39
      blablaX = eeprom_read_byte(EEDATA.x);
39
      blablaX = eeprom_read_byte(EEDATA.x);
40
      blablaY = eeprom_read_word(EEDATA.y);
40
      blablaY = eeprom_read_word(EEDATA.y);