

#include   <stdio.h>
#include  "windef.h"
#include  "mbdr_dsp_utils.h"
#include  "mbdr_dsp_common_descriptors.h"
#include  "mbdr_dsp_debug_probs.h"
#include  "mbdr_dsp_sdc_hwimage_int.h"
#include  "mbdr_dsp_cpu_common_hwimage.h"
#include  "mbdr_dsp_sdc_system_simulation_host_code.h"
#include  "mbdr_dsp_sdc_system_simulation_host_hwimage.h"
#include  "mbdr_dsp_sdc_system_simulation_app.h"

extern void mbdr_dsp_debug_terminate_bp(void);

void mbdr_dsp_sdc_main_loop_user_hook_simulator(void)
{/* mbdr_dsp_sdc_main_loop_user_hook_simulator */

	LONG local_dsp_life_sign_echo;

    // records DSP response
	local_dsp_life_sign_echo = mbdr_dsp_cpu_common_interface_cpu[0].dsp_life_sign_echo;
	mbdr_dsp_write_probs[0].general = local_dsp_life_sign_echo;

    /* update twice a lot of fieldsin common area */
	MBDR_DSP_SET_DW_IN_BOTH_DSP_SDC_CPU_MAIN_INTERFACE_IMAGES_M((local_dsp_life_sign_echo+1), dsp_life_sign_value);


	if(local_dsp_life_sign_echo == 8)
		mbdr_dsp_debug_terminate_bp();

}/* mbdr_dsp_sdc_main_loop_user_hook_simulator */

/* called after synchronization */
void mbdr_dsp_sdc_system_simulation_host_write_mission_to_dsp(void)
{/* mbdr_dsp_sdc_system_simulation_host_write_mission_to_dsp */

	mbdr_dsp_write_probs[0].dummy =  mbdr_dsp_read_probs[0].dummy;

}/* mbdr_dsp_sdc_system_simulation_host_write_mission_to_dsp */

