Mercurial > ecos-v3_0-branch
comparison packages/redboot/current/include/redboot.h @ 121:6bd9d475ed4b ecos-sw-2000-09-04
Merge from eCos master repository on 2000-09-04-20:50:20-BST
| author | jlarmour |
|---|---|
| date | Mon, 04 Sep 2000 20:24:12 +0000 |
| parents | bd1a71e3e476 |
| children | 0ec04793409a |
comparison
equal
deleted
inserted
replaced
| 120:0e17207f29f3 | 121:6bd9d475ed4b |
|---|---|
| 115 struct cmd { | 115 struct cmd { |
| 116 char *str; | 116 char *str; |
| 117 char *help; | 117 char *help; |
| 118 char *usage; | 118 char *usage; |
| 119 cmd_fun *fun; | 119 cmd_fun *fun; |
| 120 }; | 120 } CYG_HAL_TABLE_TYPE; |
| 121 extern struct cmd *cmd_search(struct cmd *tab, struct cmd *tabend, char *arg); | 121 extern struct cmd *cmd_search(struct cmd *tab, struct cmd *tabend, char *arg); |
| 122 extern void cmd_usage(struct cmd *tab, struct cmd *tabend, char *prefix); | 122 extern void cmd_usage(struct cmd *tab, struct cmd *tabend, char *prefix); |
| 123 #define RedBoot_cmd(_s_,_h_,_u_,_f_) cmd_entry(_s_,_h_,_u_,_f_,RedBoot_commands) | 123 #define RedBoot_cmd(_s_,_h_,_u_,_f_) cmd_entry(_s_,_h_,_u_,_f_,RedBoot_commands) |
| 124 #define _cmd_entry(_s_,_h_,_u_,_f_,_n_) \ | 124 #define _cmd_entry(_s_,_h_,_u_,_f_,_n_) \ |
| 125 cmd_fun _f_; \ | 125 cmd_fun _f_; \ |
| 132 // Initialization functions | 132 // Initialization functions |
| 133 #define RedBoot_INIT_FIRST 0000 | 133 #define RedBoot_INIT_FIRST 0000 |
| 134 #define RedBoot_INIT_PRIO(_n_) 1000+_n_ | 134 #define RedBoot_INIT_PRIO(_n_) 1000+_n_ |
| 135 #define RedBoot_INIT_LAST 9999 | 135 #define RedBoot_INIT_LAST 9999 |
| 136 typedef void void_fun(void); | 136 typedef void void_fun(void); |
| 137 typedef void_fun *void_fun_ptr; | 137 typedef void_fun *void_fun_ptr CYG_HAL_TABLE_TYPE; |
| 138 #define _RedBoot_init(_f_,_p_) \ | 138 #define _RedBoot_init(_f_,_p_) \ |
| 139 void_fun_ptr _init_tab_##_p_##_f_ CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_f_) = _f_; | 139 void_fun_ptr _init_tab_##_p_##_f_ CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_f_) = _f_; |
| 140 #define RedBoot_init(_f_,_p_) _RedBoot_init(_f_,_p_) | 140 #define RedBoot_init(_f_,_p_) _RedBoot_init(_f_,_p_) |
| 141 | 141 |
| 142 | 142 |
