Round robin Scheduler

Dependencies:   mbed

Revision:
0:cf2d4c337b6f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/screen.c	Thu Sep 09 14:09:14 2010 +0000
@@ -0,0 +1,35 @@
+//main display routines
+
+#include "globals.h"
+
+extern "C" void clear_screen( void );
+extern "C" void goxy( unsigned char, unsigned char );
+extern "C" void spaces( unsigned char );
+extern "C" void cursor( int x, int y, int spaces );
+extern "C" void printfp( float, int );
+//extern "C" char *printd( int, int );
+extern "C" void sleepy_write( char * );
+
+
+//----------------------------------------------------
+extern "C" {
+void display_screen(void)
+{
+    clear_screen();
+    
+    goxy( 5,1);  sprintf(sl_buff, "Round Robin RTOS Demo"); sleepy_write( sl_buff);
+
+    
+    redraw = 0;
+}
+}   //end of extern "C"
+
+//----------------------------------------------------
+extern "C" {
+void update_data( void )
+{ 
+  cursor( 9,2,30 );  //cursor to main prompt
+  sprintf(sl_buff, ">"); sleepy_write( sl_buff);
+}
+}   //end of extern "C"
+