X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FTKN154.h;h=50b0d681c028617dfdc183eec08b47bdb346fb41;hb=d0573ffd623b75029b406fb2f74fc1de5160e8ab;hp=9889b7eb97a9ba3882ffe6fecfd164dcc4ecdc04;hpb=4e123af010077900246c741bb14231338d98f450;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/TKN154.h b/tos/lib/mac/tkn154/TKN154.h index 9889b7eb..50b0d681 100644 --- a/tos/lib/mac/tkn154/TKN154.h +++ b/tos/lib/mac/tkn154/TKN154.h @@ -36,7 +36,6 @@ #ifndef __TKN154_H #define __TKN154_H - /**************************************************** * IEEE 802.15.4 Enumerations */ @@ -230,6 +229,37 @@ typedef bool ieee154_macPanCoordinator_t; // When security is implemented the following line should be commented out #define IEEE154_SECURITY_DISABLED +/**************************************************** + * Flags for disabling MAC functionality (to save program memory) + */ + +// Disable scanning (MLME_SCAN will not work): +// #define IEEE154_SCAN_DISABLED +// +// Disable beacon tracking (MLME_SYNC will not work): +// #define IEEE154_BEACON_SYNC_DISABLED +// +// Disable beacon transmission (MLME_START will not work): +// #define IEEE154_BEACON_TX_DISABLED +// +// Disable promiscuous mode (PromiscuousMode.start() will not work): +// #define IEEE154_PROMISCUOUS_MODE_DISABLED +// +// Disallow next higher layer to switch to receive mode (MLME_RX_ENABLE will not work): +// #define IEEE154_RXENABLE_DISABLED +// +// Disable association (MLME_ASSOCIATE will not work): +// #define IEEE154_ASSOCIATION_DISABLED +// +// Disable association (MLME_DISASSOCIATE will not work): +// #define IEEE154_DISASSOCIATION_DISABLED +// +// Disable coordinator realignment (MLME_ORPHAN will not work): +// #define IEEE154_COORD_REALIGNMENT_DISABLED +// +// Disable transmission of broadcasts from coordinator to devices: +// #define IEEE154_COORD_BROADCAST_DISABLED + /**************************************************** * Static memory allocation for Queue/Pool */