Subversion Repositories NaviCtrl

Rev

Rev 151 | Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 153
Line 304... Line 304...
304
        // if data in the rxd buffer are not locked immediately return
304
        // if data in the rxd buffer are not locked immediately return
305
        if((UART0_rx_buffer.Locked == FALSE) || (DebugUART == UART0) ) return;
305
        if((UART0_rx_buffer.Locked == FALSE) || (DebugUART == UART0) ) return;
Line 306... Line 306...
306
       
306
       
Line 307... Line 307...
307
        MKProtocol_DecodeSerialFrame(&UART0_rx_buffer, &SerialMsg); // decode serial frame in rxd buffer
307
        MKProtocol_DecodeSerialFrame(&UART0_rx_buffer, &SerialMsg); // decode serial frame in rxd buffer
308
 
308
 
309
        switch(SerialMsg.Address) // check for Slave Address
309
        switch(*SerialMsg.pAddress) // check for Slave Address
310
        {
310
        {
311
                case MKOSD_ADDRESS: // answers from the MKOSD
311
                case MKOSD_ADDRESS: // answers from the MKOSD
312
                        switch(SerialMsg.CmdID)
312
                        switch(*SerialMsg.pCmdID)
313
                        {
313
                        {
314
                                case 'V':
314
                                case 'V':
315
                                        memcpy(&MKOSD_VersionInfo, SerialMsg.pData, sizeof(MKOSD_VersionInfo)); // copy echo pattern
315
                                        memcpy(&MKOSD_VersionInfo, SerialMsg.pData, sizeof(MKOSD_VersionInfo)); // copy echo pattern
316
                                        break;
316
                                        break;
317
                                default:
317
                                default:
318
                                        break;
318
                                        break;
Line 319... Line 319...
319
                        } // case MKOSD_ADDRESS 
319
                        } // case MKOSD_ADDRESS 
320
                        break;
320
                        break;
321
 
321
 
322
                case NC_ADDRESS:  // own Slave Address
322
                case NC_ADDRESS:  // own Slave Address
323
                        switch(SerialMsg.CmdID)
323
                        switch(*SerialMsg.pCmdID)
324
                        {
324
                        {
325
                                case 'e': // request for the text of the error status
325
                                case 'e': // request for the text of the error status
Line 333... Line 333...
333
                                        break;
333
                                        break;
334
                        } // case NC_ADDRESS
334
                        } // case NC_ADDRESS
335
                        // "break;" is missing here to fall thru to the common commands
335
                        // "break;" is missing here to fall thru to the common commands
Line 336... Line 336...
336
 
336
 
337
                default:  // and any other Slave Address
337
                default:  // and any other Slave Address
338
                        switch(SerialMsg.CmdID) // check CmdID
338
                        switch(*SerialMsg.pCmdID) // check CmdID
339
                        {
339
                        {
340
                                case 'v': // request for version info
340
                                case 'v': // request for version info
341
                                        UART0_Request_VersionInfo = TRUE;
341
                                        UART0_Request_VersionInfo = TRUE;
342
                                        break;
342
                                        break;