Skip to content

Commit

Permalink
firmware: set proper endianness in uip
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-holenko committed Jul 24, 2019
1 parent f21f4f2 commit 0bbd67b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firmware/uip/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ typedef unsigned int uip_stats_t;
#endif

/* uIP configuration */
#if defined(__lm32__) || defined(__or1k__)
#define UIP_CONF_BYTE_ORDER UIP_BIG_ENDIAN
#else
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
#endif

#define UIP_CONF_LLH_LEN 14
#define UIP_CONF_BROADCAST 1
#define UIP_CONF_LOGGING 1
Expand Down

0 comments on commit 0bbd67b

Please sign in to comment.