2007-05-22 21:03:03 +00:00
|
|
|
/*
|
|
|
|
* This is an example of how to write a network device driver ("packet
|
|
|
|
* driver") for Contiki.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EXAMPLE_PACKET_DRV_H__
|
|
|
|
#define __EXAMPLE_PACKET_DRV_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We include the "contiki.h" file to get the macro and typedef used below.
|
|
|
|
*/
|
|
|
|
#include "contiki.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Here we declare the process name used to start it (typically from main()).
|
|
|
|
*/
|
|
|
|
PROCESS_NAME(example_packet_driver_process);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Finally we declare the output function for use with uIP packet forwarding.
|
|
|
|
*/
|
2012-02-20 19:45:47 +00:00
|
|
|
uint8_t example_packet_driver_output(void);
|
2007-05-22 21:03:03 +00:00
|
|
|
|
|
|
|
#endif /* __EXAMPLE_PACKET_DRV_H__ */
|