/* tab:4 * PLANT_BASE.comp * * * Author: Waylon Brunette * Date: created 8/13/01 * * Modified from AM_ROUTE.comp * *================================================================= * Header from AM_ROUTE.comp *================================================================= * * "Copyright (c) 2000 and The Regents of the University * of California. All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." * * Authors: Jason Hill **================================================================ * * * */ TOS_MODULE PLANT_BASE; ACCEPTS{ char PLANT_BASE_INIT(void); char PLANT_BASE_START(void); }; HANDLES{ TOS_MsgPtr ACK_PACKET(TOS_MsgPtr data); TOS_MsgPtr PRIORITY_PACKET(TOS_MsgPtr data); TOS_MsgPtr DATA_PACKET(TOS_MsgPtr data); TOS_MsgPtr DISTRESS_PACKET(TOS_MsgPtr data); TOS_MsgPtr ROBOT_PACKET(TOS_MsgPtr data); void PLANT_BASE_SUB_CLOCK(void); char PLANT_BASE_SEND_DONE(TOS_MsgPtr data); }; USES{ char PLANT_BASE_SUB_SEND_MSG(char addr,char type, TOS_MsgPtr data); char PLANT_BASE_SUB_INIT(); char PLANT_BASE_SUB_CLOCK_INIT(char interval, char scale); char PLANT_BASE_RED_ON(); char PLANT_BASE_RED_OFF(); char PLANT_BASE_RED_TOGGLE(); char PLANT_BASE_GREEN_ON(); char PLANT_BASE_GREEN_OFF(); char PLANT_BASE_GREEN_TOGGLE(); char PLANT_BASE_YELLOW_ON(); char PLANT_BASE_YELLOW_OFF(); char PLANT_BASE_YELLOW_TOGGLE(); char PLANT_BASE_SUB_LED_INIT(); };