Search Code
About round-robin-rtos

Published 09 Sep 2010.

Last change message: N/A

Import this program

round-robin-rtos

Published 09 Sep 2010, by   user Tim Exton-McGuinness   tag No tags
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers globals.h Source File

globals.h

00001 
00002 #include "mbed.h"
00003 #include "LPC17xx.h"
00004 
00005 //if driver_static is defined then everthing is defined as static
00006 //otherwise its all external. driver_static is defined only in global.c
00007 
00008 #ifndef driver_static
00009 #define driver_static extern
00010 #endif
00011 
00012 #define TRUE  1
00013 #define FALSE 0
00014 
00015 #define ON    1
00016 #define OFF   0
00017 
00018 //---------rtos bits leave well alone----------------------------
00019 driver_static unsigned int sp0;                  //stack pointers
00020 driver_static unsigned int sp1;
00021 driver_static unsigned int sp2;
00022 driver_static unsigned int sp3;
00023 driver_static unsigned int sp4;
00024 driver_static unsigned int sp5;
00025 driver_static unsigned int savesp;
00026 driver_static int task_number;
00027 
00028 driver_static unsigned int taskstack0[256];     //stacks
00029 driver_static unsigned int taskstack1[256];
00030 driver_static unsigned int taskstack2[256];
00031 driver_static unsigned int taskstack3[256];
00032 driver_static unsigned int taskstack4[256];
00033 driver_static unsigned int taskstack5[256];
00034 //---------rtos bits leave well alone----------------------------
00035 
00036 driver_static char redraw;
00037 driver_static char eng_screen;
00038 
00039 driver_static char rxbuffer[256];
00040 driver_static unsigned char rxwr, rxrd;
00041 
00042 driver_static char rxline[256];
00043 driver_static unsigned char bcrlf;
00044 
00045 driver_static char sl_buff[256];
00046 driver_static char buff[20];
00047 
00048 driver_static char *argv[20];
00049 driver_static int   argc;
00050 
00051 
00052  
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065