35 #include "contiki-raven.h"
40 #include "sicslow_ethernet.h"
43 void byte_reverse(uint8_t * bytes, uint8_t num)
68 uint64_t usb_ethernet_addr;
73 byte_reverse((uint8_t*)&macLongAddr,8);
76 macLongAddr &= ~(0x0700000000000000ULL);
77 macLongAddr |= 0x0200000000000000ULL;
83 usb_ethernet_addr = (usb_ethernet_addr & 0xffffffUL) | ((usb_ethernet_addr & 0xffffff0000000000ULL) >> 16);
87 macLongAddr = (macLongAddr & 0xffffff0000ffffffULL) | (0x000000fffe000000ULL);
93 byte_reverse((uint8_t*)&macLongAddr,8);
94 byte_reverse((uint8_t*)&usb_ethernet_addr,6);
96 usb_eth_set_mac_address((uint8_t*)&usb_ethernet_addr);