diff gsm-fw/nucleus/tcd.c @ 144:ea819b60fe0d

gsm-fw/nucleus/tc[di].c: minor cleanup
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 16:57:08 +0000
parents afceeeb2cba1
children
line wrap: on
line diff
--- a/gsm-fw/nucleus/tcd.c	Tue Nov 12 05:35:48 2013 +0000
+++ b/gsm-fw/nucleus/tcd.c	Tue Nov 12 16:57:08 2013 +0000
@@ -145,7 +145,7 @@
    used to determine the highest priority task represented in the previously
    defined bit maps.  */
 
-UNSIGNED_CHAR  TCD_Lowest_Set_Bit[] = {0,
+const UNSIGNED_CHAR  TCD_Lowest_Set_Bit[] = {0,
    0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0,
    1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1,
    0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0,
@@ -225,6 +225,7 @@
 VOID           *TCD_System_Stack;
 
 
+#if 0
 /* TCD_Registered_LISRs is a list that specifies whether or not a
    LISR is registered for a given interrupt vector.  If the value in the
    list indexed by the vector is non-zero, then that value can be used
@@ -239,6 +240,7 @@
    available.  */
 
 VOID    (*TCD_LISR_Pointers[NU_MAX_LISRS+1])(INT vector);
+#endif
 
 
 /* TCD_Interrupt_Count contains the number of Interrupt Service Routines (ISRs)
@@ -269,11 +271,13 @@
 TC_PROTECT      TCD_System_Protect;
 
 
+#if 0
 /* TCD_LISR_Protect is a structure that is used to provide protection against
    multiple threads accessing the LISR registration structures at the same
    time.  */
 
 TC_PROTECT      TCD_LISR_Protect;
+#endif
 
 
 /* TCD_HISR_Protect is a structure that is used to provide protection against
@@ -293,8 +297,3 @@
    interrupt in system error conditions.  */
 
 INT             TCD_Unhandled_Interrupt;
-
-
-
-
-