comparison packages/redboot/current/include/redboot.h @ 154:e2d866e32dac

Merge from eCos master repository on 2001-02-26-23:18:05-GMT
author jlarmour
date Tue, 27 Feb 2001 01:21:45 +0000
parents 25e238959bae
children b939e9cada46
comparison
equal deleted inserted replaced
153:5e8f3b328bb3 154:e2d866e32dac
146 #define local_cmd_entry(_s_,_h_,_u_,_f_,_n_) \ 146 #define local_cmd_entry(_s_,_h_,_u_,_f_,_n_) \
147 static _cmd_entry(_s_,_h_,_u_,_f_,_n_) 147 static _cmd_entry(_s_,_h_,_u_,_f_,_n_)
148 148
149 // Initialization functions 149 // Initialization functions
150 #define RedBoot_INIT_FIRST 0000 150 #define RedBoot_INIT_FIRST 0000
151 #define RedBoot_INIT_PRIO(_n_) 1000+_n_ 151 // Specify a 3 digit numeric value for proper prioritizing
152 #define RedBoot_INIT_PRIO(_n_) 1##_n_
152 #define RedBoot_INIT_LAST 9999 153 #define RedBoot_INIT_LAST 9999
153 typedef void void_fun(void); 154 typedef void void_fun(void);
154 typedef void_fun *void_fun_ptr; 155 typedef void_fun *void_fun_ptr;
155 struct init_tab_entry { 156 struct init_tab_entry {
156 void_fun_ptr fun; 157 void_fun_ptr fun;
157 } CYG_HAL_TABLE_TYPE; 158 } CYG_HAL_TABLE_TYPE;
158 #define _RedBoot_init(_f_,_p_) \ 159 #define _RedBoot_init(_f_,_p_) \
159 struct init_tab_entry _init_tab_##_p_##_f_ CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_f_) = { _f_ }; 160 struct init_tab_entry _init_tab_##_p_##_f_ \
161 CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_p_##_f_) = { _f_ };
160 #define RedBoot_init(_f_,_p_) _RedBoot_init(_f_,_p_) 162 #define RedBoot_init(_f_,_p_) _RedBoot_init(_f_,_p_)
161 163
162 // Main loop [idle] call-back functions 164 // Main loop [idle] call-back functions
163 #define RedBoot_IDLE_FIRST 0000 165 #define RedBoot_IDLE_FIRST 0000
164 #define RedBoot_IDLE_BEFORE_NETIO 3000 166 #define RedBoot_IDLE_BEFORE_NETIO 3000