First Version (beta test) raw ethernet

Dependencies:   EthernetNetIf mbed

Committer:
ficofer
Date:
Mon Jul 09 22:31:28 2012 +0000
Revision:
0:db9ea2448fdd

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ficofer 0:db9ea2448fdd 1 /*
ficofer 0:db9ea2448fdd 2 *
ficofer 0:db9ea2448fdd 3 *
ficofer 0:db9ea2448fdd 4 * Variables needed in the program
ficofer 0:db9ea2448fdd 5 *
ficofer 0:db9ea2448fdd 6 *
ficofer 0:db9ea2448fdd 7 */
ficofer 0:db9ea2448fdd 8 #include "mbed.h"
ficofer 0:db9ea2448fdd 9 #include "EthernetNetIf.h"
ficofer 0:db9ea2448fdd 10 #include "defines.h"
ficofer 0:db9ea2448fdd 11
ficofer 0:db9ea2448fdd 12 /*Statics and uninitialiazed*/
ficofer 0:db9ea2448fdd 13
ficofer 0:db9ea2448fdd 14 Ethernet eth; /*Starts ethernet interface for mbed*/
ficofer 0:db9ea2448fdd 15 static char eth_txs_buffer[ETH_BUFF_SIZE];
ficofer 0:db9ea2448fdd 16
ficofer 0:db9ea2448fdd 17
ficofer 0:db9ea2448fdd 18 /*Statics and initialiazed*/
ficofer 0:db9ea2448fdd 19
ficofer 0:db9ea2448fdd 20 static const char broadcast[MAC_ADD_NUM] =
ficofer 0:db9ea2448fdd 21 {
ficofer 0:db9ea2448fdd 22 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
ficofer 0:db9ea2448fdd 23 };
ficofer 0:db9ea2448fdd 24
ficofer 0:db9ea2448fdd 25 static char my_mac[MAC_ADD_NUM] =
ficofer 0:db9ea2448fdd 26 {
ficofer 0:db9ea2448fdd 27 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
ficofer 0:db9ea2448fdd 28 };
ficofer 0:db9ea2448fdd 29