Subversion Repositories HomeAutomation

Rev

Rev 801 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 801 Rev 804
Line 80... Line 80...
80
         * message in the queue.
80
         * message in the queue.
81
         */
81
         */
82
    }
82
    }
83
}
83
}
84
 
84
 
85
StdCan_Ret_t StdCan_Init()
85
StdCan_Ret_t StdCan_Init(void)
86
{
86
{
87
    StdCan_Ret_t retval;
87
    StdCan_Ret_t retval;
88
   
88
   
89
    /* Reset all queue variables. */
89
    /* Reset all queue variables. */
90
    RxQ_Rd_idx = 0;
90
    RxQ_Rd_idx = 0;
Line 184... Line 184...
184
    for (n = 0; n < msg->Length; n++) {
184
    for (n = 0; n < msg->Length; n++) {
185
        Can_Msg.Data.bytes[n] = msg->Data[n];
185
        Can_Msg.Data.bytes[n] = msg->Data[n];
186
    }
186
    }
187
 
187
 
188
    if (Can_Send(&Can_Msg) == CAN_OK) {
188
    if (Can_Send(&Can_Msg) == CAN_OK) {
-
 
189
#ifdef MODULE_APPLICATION
189
        Can_Process(&Can_Msg);
190
        Can_Process(&Can_Msg);
-
 
191
#endif
190
        return StdCan_Ret_OK;
192
        return StdCan_Ret_OK;
191
    }
193
    }
192
    else
194
    else
193
        return StdCan_Ret_Full;
195
        return StdCan_Ret_Full;
194
}
196
}