Added a 'name' field in the mac structure, which allows boot-up code to print out the name of the currently selected MAC protocol

This commit is contained in:
adamdunkels 2008-06-30 08:08:27 +00:00
parent 4349504219
commit a7dfa95551

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: mac.h,v 1.2 2008/02/24 21:05:28 adamdunkels Exp $
* $Id: mac.h,v 1.3 2008/06/30 08:08:27 adamdunkels Exp $
*/
/**
@ -45,6 +45,8 @@
* The structure of a device driver for a radio in Contiki.
*/
struct mac_driver {
char *name;
/** Send a packet from the Rime buffer */
int (* send)(void);