/** Display effect for system reset */ void system_reset_deff (void) { /* On DMD machines display the full copyright screen. Alphanumerics aren't large enough to do this. */ #if (MACHINE_DMD == 1) dmd_alloc_low_clean (); font_render_string_center (&font_var5, 64, 3, "FREEWPC (C) COPYRIGHT " C_STRING(BUILD_YEAR)); font_render_string_center (&font_var5, 64, 11, "THIS SOFTWARE IS NOT"); font_render_string_center (&font_var5, 64, 17, "SUPPORTED BY BALLY/WILLIAMS"); font_render_string_center (&font_var5, 64, 25, "WWW.ODDCHANGE.COM/FREEWPC"); dmd_show_low (); #else seg_alloc_clean (); seg_write_row_center (0, "FREEWPC <C>" C_STRING(BUILD_YEAR)); seg_write_row_center (1, "WWW.ODDCHANGE.COM"); seg_show (); #endif task_sleep_sec (3); dmd_alloc_low_clean (); font_render_string_left (&font_mono5, 1, 1, MACHINE_NAME); #ifdef DEBUGGER sprintf ("D%s.%s", C_STRING(MACHINE_MAJOR_VERSION), C_STRING(MACHINE_MINOR_VERSION)); #else sprintf ("R%s.%s", C_STRING(MACHINE_MAJOR_VERSION), C_STRING(MACHINE_MINOR_VERSION)); #endif font_render_string_right (&font_mono5, 127, 1, sprintf_buffer); SECTION_VOIDCALL (__common__, render_build_date); font_render_string_left (&font_mono5, 1, 9, sprintf_buffer); #if (MACHINE_PIC == 1) pic_render_serial_number (); font_render_string_left (&font_mono5, 1, 18, sprintf_buffer); #endif font_render_string_left (&font_mono5, 1, 26, "TESTING..."); dmd_show_low (); /* Keep the reset display for at least 3 seconds (so * it is readable), keep it longer if any of the * asynchronous initializations are still running. */ task_sleep_sec (3); while (sys_init_pending_tasks != 0) task_sleep (TIME_66MS); /* If there were any diagnostic errors discovered, announce this fact. */ diag_announce_if_errors (); dbprintf ("System initialized.\n"); deff_exit (); }
void burnin_time_audit_thread (void) { for (;;) { time_audit_add_sec (&burnin_duration, 1); #ifdef CONFIG_DMD_OR_ALPHA SECTION_VOIDCALL (__test__, window_redraw); #endif task_sleep_sec (1); } }
void db_dump_all (void) { VOIDCALL (task_dump); VOIDCALL (dump_game); VOIDCALL (dump_deffs); switch_queue_dump (); #ifdef CONFIG_TRIAC VOIDCALL (triac_dump); #endif SECTION_VOIDCALL (__common__, device_debug_all); }
void loop_master_check (void) { if (loop_master_initial_enter != 0 && loop_master_initial_enter <= num_players) { loop_master_initial_enter = 0; deff_start_sync (DEFF_LOOP_MASTER_ENTRY); SECTION_VOIDCALL (__common__, initials_enter); // loop_master_initials = initials_data; deff_start_sync (DEFF_LOOP_MASTER_EXIT); } }
void combo_master_check (void) { if (combo_master_initial_enter != 0 && combo_master_initial_enter <= num_players) { combo_master_initial_enter = 0; deff_start_sync (DEFF_COMBO_MASTER_ENTRY); SECTION_VOIDCALL (__common__, initials_enter); // combo_master_initials = initials_data; deff_start_sync (DEFF_COMBO_MASTER_EXIT); } }
void burnin_lamp_thread (void) { SECTION_VOIDCALL (__test__, all_lamp_test_thread); }