include/can_driver.h
changeset 341 7ff01f109bbc
parent 319 4b331759169a
child 365 9b76e0881beb
equal deleted inserted replaced
340:60e1eb89455e 341:7ff01f109bbc
    47 UNS8 DLL_CALL(canReceive)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    47 UNS8 DLL_CALL(canReceive)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    48 UNS8 DLL_CALL(canSend)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    48 UNS8 DLL_CALL(canSend)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    49 CAN_HANDLE DLL_CALL(canOpen)(s_BOARD *)FCT_PTR_INIT;
    49 CAN_HANDLE DLL_CALL(canOpen)(s_BOARD *)FCT_PTR_INIT;
    50 int DLL_CALL(canClose)(CAN_HANDLE)FCT_PTR_INIT;
    50 int DLL_CALL(canClose)(CAN_HANDLE)FCT_PTR_INIT;
    51 
    51 
    52 #if defined DEBUG_WAR_CONSOLE_ON || defined DEBUG_ERR_CONSOLE_ON || defined NEED_PRINT_MESSAGE
    52 #if defined DEBUG_MSG_CONSOLE_ON || defined NEED_PRINT_MESSAGE
    53 #include "def.h"
    53 #include "def.h"
    54 
    54 
    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)