equal
deleted
inserted
replaced
34 ** @brief |
34 ** @brief |
35 ** |
35 ** |
36 ** |
36 ** |
37 */ |
37 */ |
38 |
38 |
39 #ifdef CO_ENABLE_LSS |
|
40 |
39 |
41 #include "data.h" |
40 #include "data.h" |
42 #include "lss.h" |
41 #include "lss.h" |
43 #include "canfestival.h" |
42 #include "canfestival.h" |
44 #include "sysdep.h" |
43 #include "sysdep.h" |
|
44 |
|
45 #ifdef CO_ENABLE_LSS |
45 |
46 |
46 //#define LSS_TIMEOUT_MS (TIMEVAL)1000 /* ms */ |
47 //#define LSS_TIMEOUT_MS (TIMEVAL)1000 /* ms */ |
47 //#define LSS_FS_TIMEOUT_MS (TIMEVAL)100 /* ms */ |
48 //#define LSS_FS_TIMEOUT_MS (TIMEVAL)100 /* ms */ |
48 |
49 |
49 /* Returns the LSS ident field from a Message struct */ |
50 /* Returns the LSS ident field from a Message struct */ |
643 MSG_WAR(0x3D25, "The node Id has changed. Reseting to Initialisation state",0); |
644 MSG_WAR(0x3D25, "The node Id has changed. Reseting to Initialisation state",0); |
644 setNodeId(d, d->lss_transfer.nodeID); |
645 setNodeId(d, d->lss_transfer.nodeID); |
645 setState(d, Initialisation); |
646 setState(d, Initialisation); |
646 } |
647 } |
647 else{/* The nodeID will be changed on NMT_Reset Request*/ |
648 else{/* The nodeID will be changed on NMT_Reset Request*/ |
648 setNodeId(d, d->lss_transfer.nodeID); |
|
649 } |
649 } |
650 } |
650 } |
651 d->lss_transfer.mode=LSS_WAITING_MODE; |
651 d->lss_transfer.mode=LSS_WAITING_MODE; |
652 } |
652 } |
653 break; |
653 break; |