module BaseStationP @safe() {
uses {
interface Boot;//启动系统
interface SplitControl as SerialControl; //串口控制
interface SplitControl as RadioControl; //radio控制
//向串口发送数据的设置am_id_t id,指定发送接收的am数据id
interface AMSend as UartSend[am_id_t id];
interface Receive as UartReceive[am_id_t id];
interface Packet as UartPacket;
interface AMPacket as UartAMPacket;
//向radio发送数据的设置
interface AMSend as RadioSend[am_id_t id];
interface Receive as RadioReceive[am_id_t id];
interface Receive as RadioSnoop[am_id_t id]; //嗅探
interface Packet as RadioPacket;
interface AMPacket as RadioAMPacket;