Changes between Version 12 and Version 13 of Developer/Projects/SequencedInitialization


Ignore:
Timestamp:
Jun 8, 2010, 8:03:43 PM (9 years ago)
Author:
Wenjie1984
Comment:

/* Open Projects */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Projects/SequencedInitialization

    v12 v13  
    159159= Open Projects =
    160160
     161= The rule of sort order =
    161162
    162 Implement this.
     163
     164We use a combination of three domains to define the order of initialization sequence, the three
     165domains are {subsystem, order, index}. Every domain is an key word to sort.
     166
     167Defined API:
     168 /*the first domain is subsystem*/
     169 #define SI_SUB_RTEMS_API 0001
     170
     171 /*the second domain is order like before,nomal,after*/
     172 #define ORDER_BEFORE    0
     173 #define ORDER_NOMAL     1
     174 #define ORDER_AFTER     2
     175
     176 /*the third domain is index*/
     177 #define SI_INDEX_FIRST    0000   /* first*/
     178 #define SI_INDEX_SECOND   0001   /* second*/
     179 #define SI_INDEX_THIRD    0002   /* third*/
     180 #define SI_INDEX_FOURTH   0003   /* fourth*/
     181 #define SI_INDEX_FIFTH    0004   /* fifth*/
     182 #define SI_INDEX_SIXTH    0005   /* sixth*/
     183 #define SI_INDEX_SEVENTH  0006   /* seventh*/
     184 #define SI_INDEX_EIGHTH   0007   /* eighth*/
     185 #define SI_INDEX_NINTH    0008   /* ninth*/
     186 #define SI_INDEX_TENTH    0009   /* tenth*/
     187 #define SI_INDEX_ELEVENTH  0010   /* eleventh*/
     188 #define SI_INDEX_TWELFTH   0011   /* twelfth */
     189
     190 /*the defination of combination of domains*/
     191 #define RTEMS_SYSINIT_MAKE_ORDER(a, b, c) #a#b#c
     192
     193 
     194 typedef void (*rtems_sysinit_function)(rtems_sysinit_state state);