Commit 440256f4 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

o Make sure to #include <sys/endian.h> before using le16toh().

o Move definitions of all ESC_MAILBOX_TYPE_*'s from esc_coe.c to
  esc_mailbox.h as we're going to need at least ESC_MAILBOX_TYPE_SOE in
  esc_soe.c once it starts to exist..
parent 6273e3ae
......@@ -20,6 +20,7 @@
#include <string.h>
#include <stdio.h>
#include <pthread.h>
#include <sys/endian.h>
#include "canopen.h"
......
......@@ -27,17 +27,12 @@
#include <pthread.h>
#include <limits.h>
#include <unistd.h>
#include <sys/endian.h>
#include "ec.h"
#include "esc_coe.h"
#include "log.h"
#define ESC_MAILBOX_TYPE_ADS 0x1
#define ESC_MAILBOX_TYPE_EOE 0x2
#define ESC_MAILBOX_TYPE_COE 0x3
#define ESC_MAILBOX_TYPE_FOE 0x4
#define ESC_MAILBOX_TYPE_SOE 0x5
#define ESC_MAILBOX_TYPE_VOE 0xf
struct canopen_dev_priv {
......
......@@ -35,5 +35,12 @@ void esc_mailbox_destroy(struct esc_mailbox *mailbox);
int esc_syncmanager_claim(struct ec_dgram_addr *addr);
#define ESC_MAILBOX_TYPE_ADS 0x1
#define ESC_MAILBOX_TYPE_EOE 0x2
#define ESC_MAILBOX_TYPE_COE 0x3
#define ESC_MAILBOX_TYPE_FOE 0x4
#define ESC_MAILBOX_TYPE_SOE 0x5
#define ESC_MAILBOX_TYPE_VOE 0xf
#endif /* _INCLUDE_EC_ESC_MAILBOX_H_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment