Changes between Version 42 and Version 43 of Developer/Projects/SequencedInitialization


Ignore:
Timestamp:
Jun 15, 2010, 3:13:40 PM (9 years ago)
Author:
Wenjie1984
Comment:

/* Components Of Rtems Sequenced Initialization API */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Projects/SequencedInitialization

    v42 v43  
    224224; The definition of rtems sysinit_core struct and its reference:
    225225
    226 The field of struct sysinit_core will be extended in the futurn, now the item status is
    227 just used for filling in the struct.
     226The field of struct sysinit_core will be extended in the futurn, now there is two fields filling in the struct. the field status indicates the status of rtems startup or close down sequence and the field handler is the entry function of rtems sequenced initialization or termination.
     227
     228 /**
     229 * @brief The status of rtems startup or close down
     230 */
     231 typedef enum {
     232        RTEMS_SYSINIT_STARTUP,
     233        RTEMS_SYSINIT_TERMINATE
     234 } rtems_sysinit_state;
    228235
    229236 /**
    230237 * @brief The type of handler invoked when constructing
    231238 */
    232  typedef void ( *rtems_sysinit_handler )( void );
    233 
    234  /**
    235  * @brief The core constructe of sysinit
     239 typedef void ( *rtems_sysinit_handler )( rtems_sysinit_state state );
     240
     241 /**
     242 * @brief The core constructe of sysinit, in the future we will add other fields into the     
     243 * struct
    236244 */
    237245 typedef struct rtems_sysinit {
    238246  /**
    239   * @brief this field is not sure, in the future we will add other fields
    240   */
     247  * @brief this field indicate the status of rtems startup or close down sequence*/
    241248  uint8_t status;
    242249  /**