Subversion Repositories HomeAutomation

Rev

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

Rev 389 Rev 426
Line 48... Line 48...
48
    Can_Message_t txMsg;
48
    Can_Message_t txMsg;
49
    Can_Message_t rxMsg;
49
    Can_Message_t rxMsg;
50
    //The databytes are just what happens to be in the memory. They are never set.
50
    //The databytes are just what happens to be in the memory. They are never set.
51
    txMsg.RemoteFlag = 0;
51
    txMsg.RemoteFlag = 0;
52
    txMsg.ExtendedFlag = 1;
52
    txMsg.ExtendedFlag = 1;
53
#define NODENUMBER 1
-
 
54
#if NODENUMBER == 1
-
 
55
    txMsg.Id = 16;
53
    txMsg.Id = 1600000;
56
    txMsg.DataLength = 2;
54
    txMsg.DataLength = 2;
57
#elif NODENUMBER == 2
-
 
58
    txMsg.Id = 32;
-
 
59
    txMsg.DataLength = 5;
-
 
60
#else
-
 
61
# error NODENUMBER not set!
-
 
62
#endif
-
 
63
   
55
   
64
    /* main loop */
56
    /* main loop */
65
    while (1) {
57
    while (1) {
66
        /* service the CAN routines */
58
        /* service the CAN routines */
67
        Can_Service();
59
        Can_Service();