Completed integration of TFE driver into Contiki for the Apple2:
- Although there's currently only one packet driver available it's name is user-configurable ... it's so cool to have (un-)loadable drivers ;-)
- The configedit app doesn't read in the config file. Instead it get's the current values from the running system. For the packet driver name this means to extract it from the process list (assuming the name "Packet driver: xxx"). This menas that even if you kill a packet driver and load a different one via "run program ..." the configedit app will still show the true status.
- The changes to the cs8900a code are 100% untested so "expect the unexpected" ;-)
diff --git a/contiki-apple2/main.c b/contiki-apple2/main.c
index 810926a..1671de7 100644
--- a/contiki-apple2/main.c
+++ b/contiki-apple2/main.c
@@ -32,7 +32,7 @@
  *
  * This file is part of the Contiki desktop environment 
  *
- * $Id: main.c,v 1.6 2004/12/26 14:13:34 oliverschmidt Exp $
+ * $Id: main.c,v 1.7 2005/01/26 21:33:29 oliverschmidt Exp $
  *
  */
 
@@ -60,6 +60,9 @@
 
 #include "clock.h"
 
+
+unsigned char lanslot;
+
 /*-----------------------------------------------------------------------------------*/
 unsigned char
 uip_fw_forward(void)
@@ -123,7 +126,6 @@
       break;
     }
   }
-
   while(1) {
     ek_run();
   }