FreeCalypso > hg > freecalypso-reveng
comparison frbl/reconst/inc/command.h @ 313:9b5079989681
frbl/reconst/inc/command.h: tab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 04 Mar 2020 23:10:48 +0000 |
parents | 6cba849e3332 |
children |
comparison
equal
deleted
inserted
replaced
312:6cba849e3332 | 313:9b5079989681 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 enum { | 24 enum { |
25 COM_MONITOR_STAND_ALONE, | 25 COM_MONITOR_STAND_ALONE, |
26 COM_MONITOR_LIBRARY, | 26 COM_MONITOR_LIBRARY, |
27 COM_BOOTLOADER | 27 COM_BOOTLOADER |
28 }; | 28 }; |
29 | 29 |
30 /* | 30 /* |
31 * Constants used in the confirmation of the COM_GET_CHIP_ID command. | 31 * Constants used in the confirmation of the COM_GET_CHIP_ID command. |
32 */ | 32 */ |
69 COM_ERASE_FLASH, | 69 COM_ERASE_FLASH, |
70 COM_WRITE_DATA, | 70 COM_WRITE_DATA, |
71 COM_START_APPLICATION, | 71 COM_START_APPLICATION, |
72 COM_READ_PARAMETERS, | 72 COM_READ_PARAMETERS, |
73 COM_WRITE_PARAMETERS, | 73 COM_WRITE_PARAMETERS, |
74 COM_LOAD_APPLICATION, | 74 COM_LOAD_APPLICATION, |
75 COM_SEND_RUN_ADDRESS | 75 COM_SEND_RUN_ADDRESS |
76 }; | 76 }; |
77 | 77 |
78 /* | 78 /* |
79 * Functions results. | 79 * Functions results. |
80 */ | 80 */ |
85 COM_ERASE_ERROR, | 85 COM_ERASE_ERROR, |
86 COM_WRITE_ERROR, | 86 COM_WRITE_ERROR, |
87 COM_PARAMETER_ERROR, | 87 COM_PARAMETER_ERROR, |
88 COM_ADDRESS_ERROR, | 88 COM_ADDRESS_ERROR, |
89 COM_FILE_ERROR, | 89 COM_FILE_ERROR, |
90 COM_NOT_SUPPORTED, | 90 COM_NOT_SUPPORTED, |
91 COM_COMMAND_UNKNOWN | 91 COM_COMMAND_UNKNOWN |
92 }; | 92 }; |
93 | 93 |
94 | 94 |
95 /* | 95 /* |
215 typedef struct s_com_request { | 215 typedef struct s_com_request { |
216 SYS_UWORD8 command_word; | 216 SYS_UWORD8 command_word; |
217 union u_req_param { | 217 union u_req_param { |
218 t_com_read_params_req params_read; | 218 t_com_read_params_req params_read; |
219 t_com_write_params_req params_written; | 219 t_com_write_params_req params_written; |
220 t_com_send_run_address_req address; | 220 t_com_send_run_address_req address; |
221 } param; | 221 } param; |
222 } t_com_request; | 222 } t_com_request; |
223 | 223 |
224 /* | 224 /* |
225 * Parameters for each confirmation. | 225 * Parameters for each confirmation. |
234 */ | 234 */ |
235 | 235 |
236 typedef struct s_com_get_monitor_id_cnf { | 236 typedef struct s_com_get_monitor_id_cnf { |
237 SYS_UWORD8 identifier; | 237 SYS_UWORD8 identifier; |
238 SYS_UWORD8 version_first_nbr; | 238 SYS_UWORD8 version_first_nbr; |
239 SYS_UWORD8 version_second_nbr; | 239 SYS_UWORD8 version_second_nbr; |
240 } t_com_get_monitor_id_cnf; | 240 } t_com_get_monitor_id_cnf; |
241 | 241 |
242 /* | 242 /* |
243 * Get flash id: | 243 * Get flash id: |
244 * - identifier. | 244 * - identifier. |
325 t_com_get_chip_id_cnf chip_id; | 325 t_com_get_chip_id_cnf chip_id; |
326 t_com_get_board_id_cnf board_id; | 326 t_com_get_board_id_cnf board_id; |
327 t_com_write_data_cnf checksum; | 327 t_com_write_data_cnf checksum; |
328 t_com_start_application_cnf starting; | 328 t_com_start_application_cnf starting; |
329 t_com_read_params_cnf params_read; | 329 t_com_read_params_cnf params_read; |
330 t_com_load_appli_cnf checksum_RAM; | 330 t_com_load_appli_cnf checksum_RAM; |
331 } param; | 331 } param; |
332 } t_com_confirmation; | 332 } t_com_confirmation; |
333 | 333 |
334 extern long com_analyze_request (SYS_UWORD8 *request_received, | 334 extern long com_analyze_request (SYS_UWORD8 *request_received, |
335 t_com_request *request); | 335 t_com_request *request); |