/*
    PacketStackGlobals.h, Copyright 1.4.97 (c) by Bernard Stauffer,
    Swiss Federal Institute of Technology,
    Computer Engineering and Networks Laboratory.
 
    TOPSY -- A Teachable Operating System.
             Implementation of a tiny and simple
             micro kernel for teaching purposes.
 
    For further information, please visit http://www.tik.ee.ethz.ch/~topsy
 
    This software is provided under the terms of the GNU General Public Licence.
 
    A full copy of the GNU GPL is provided in the file COPYING found in the 
    development root of Topsy.
*/
/*
  File:          $Source: /home/ruf/cvs_Topsy/cvs/Topsy/User/PacketStackGlobals.h,v $
  Author(s):         Bernard Stauffer 
  Affiliation:       ETH Zuerich, TIK
  Version:         $Revision: 2922 $
  Creation Date:       1.4.97
  Last Date of Change:   $Date: 2007-03-19 17:48:52 +0100 (Mon, 19 Mär 2007) $    by: $Author: baderma $
  
  
*/


#ifndef _PACKETSTACK_GLOBALS
#define _PACKETSTACK_GLOBALS



/* Constants */

#define MAXPACKETLEN  256

/* Used as indices for My_ThreadList */
#define TTY_ID        0           /* Driver threads (Kernel) */
#define DRIVER_ID     1
#define CONTROL_ID    2           /* User threads */
#define SENDER_ID     3
#define RECEIVER_ID   4
#define IRQSEND_ID    7
#define IRQRECV_ID    8
#define FRAMER_ID     5
#define DEFRAMER_ID   6
#define IRQTIMER_ID   9

#define THREAD_COUNT  10



/* Vars */

ThreadId  My_ThreadList[THREAD_COUNT];    /* List of all used thread id's */

volatile Boolean    packetStartFlag;      /* HAS TO BE VOLATILE !!!!! */

unsigned long TimerEnable;



#endif

