include/can_driver.h
changeset 319 4b331759169a
parent 314 68e83c3ffbb5
child 341 7ff01f109bbc
equal deleted inserted replaced
318:cef08361bab1 319:4b331759169a
    55 #define _P(fc) case fc: printf(#fc" ");break;
    55 #define _P(fc) case fc: printf(#fc" ");break;
    56 
    56 
    57 static inline void print_message(Message *m)
    57 static inline void print_message(Message *m)
    58 {
    58 {
    59     int i;
    59     int i;
       
    60     UNS8 fc;
    60     printf("id:%02x ", m->cob_id.w & 0x7F);
    61     printf("id:%02x ", m->cob_id.w & 0x7F);
    61     UNS8 fc = m->cob_id.w >> 7;
    62     fc = m->cob_id.w >> 7;
    62     switch(fc)
    63     switch(fc)
    63     {
    64     {
    64         case SYNC: 
    65         case SYNC: 
    65             if(m->cob_id.w == 0x080)
    66             if(m->cob_id.w == 0x080)
    66                 printf("SYNC ");
    67                 printf("SYNC ");