Main Page | Data Structures | File List | Data Fields | Globals
SBA Loans Merchant Cash Advances Equipment Financingbusiness loans Working Capital Short Term Loads best business loans Small Business Loans Long Term Loans Big Lines of Credit

opale_internal.h

Go to the documentation of this file.
00001 // Header File 00002 // Created 07/02/05; 20:01:55 00003 00004 #include <tigcclib.h> 00005 00006 #include "opale.h" 00007 00008 #define MASK_X (_X_-1) 00009 #define MASK_Y (_N_) 00010 00011 #define IDLE_TASK_PRIORITY LOWEST_PRIORITY 00012 #define IDLE_TASK_IDENT IDLE_TASK_PRIORITY 00013 00014 #define indexToSettedBit(_itsb) (1<<(_itsb)) 00015 #define indexToUnsettedBit(_itub) (~(1<<(_itub))) 00016 00017 #define identToX(_itx) ((_itx)&MASK_X) 00018 #define identToY(_ity) ((_ity)>>MASK_Y) 00019 00020 #define op_Scheduler() asm(" trap #6") 00021 00022 typedef struct 00023 { 00024 unsigned long value; 00025 t_TASK_BLOCK waitingTasks; 00026 } t_EVENT; 00027 00028 void InitIntVectors( void ); 00029 void RestoreIntVectors( void ); 00030 00031 void addTaskToTable( register t_TASK_BLOCK* table asm(" "), register unsigned char ident asm("Ð") ); 00032 void removeTaskFromTable( register t_TASK_BLOCK* table asm(" "), register unsigned char ident asm("Ð") ) ; 00033 00034 void IdleTaskFunction( register void* asm(" ") ) __attribute__ ((noreturn)); 00035 00036 void ContextSwitch( register t_TASK* highestPriorityTaskReady asm("£"), register t_TASK** currentTask asm("¢") ) __attribute__ ((noreturn)); 00037 void* InitStack( register void* args asm(" "), register char* stack asm("¡"), register void(*func)() asm("¢") ); 00038 00039 extern unsigned short numberOfNestedISRs; 00040 extern unsigned short numberOfNestedShedulerHalts; 00041 00042 //extern t_TASK* highestPriorityTaskReady; 00043 extern t_TASK* currentTask; 00044 extern t_TASK idleTask; 00045 00046 extern t_TASK** runningTasks; 00047 extern t_TASK_BLOCK* readyTasks; 00048 00049 //extern unsigned char* readyTasksTable; 00050 //extern unsigned short readyTasksRowIndex; 00051 extern t_TASK_BLOCK* waitingTasks; 00052 extern unsigned char* indexToLowestSettedBit; 00053

Generated on Sun May 14 22:31:06 2006 for Opale by doxygen 1.3.8