#include <string.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
/* driver pcan pci for Peak board */
//#include "libpcan.h"
m->data[data] = peakMsg.DATA[data]; /* data bytes, up to 8 */
#if defined DEBUG_MSG_CONSOLE_ON
- printf("in : ");
+ MSG("in : ");
print_message(m);
#endif
peakMsg.DATA[data] = m->data[data]; /* data bytes, up to 8 */
#if defined DEBUG_MSG_CONSOLE_ON
- printf("out : ");
+ MSG("out : ");
print_message(m);
#endif
if((errno = CAN_Write(fd0, & peakMsg))) {
HANDLE fd0 = NULL;
char busname[64];
char* pEnd;
- int i;
int baudrate;
if(strtol(board->busname, &pEnd,0) >= 0)