// task1.c

#include <stdio.h>
#include <912d60.h>
#include "kernel.h"



/* dummy task to eat up time, and to give the kernel
   something to multitask with  */
int task1 (void) {
	 
	 int i;
	 
	 get_mutex(COM1);
	 INTR_ON();
	 
	 
	 puts("T1 Starting");
	 for (i=0; i<0x0800; i++);
	 puts("T1.1");
	 
	 for (i=0; i<0x1000; i++);
	 puts("T1.2");
	 
	 for (i=0; i<0x1A00; i++);
	 puts("T1.3");

	 for (i=0; i<0x2000; i++);
	 puts("T1 Finished");
	 
	 
	 
	 INTR_OFF();
	 give_mutex(COM1);
	 
	 return 0;

}

