int main(void) { stdout = &mystdout; general_init(); UART_INIT(); PWM_Init(); ADC_Init(); _delay_ms(250); Interrupt_Init(); //beep(); printf("Initialization Complete\n"); for(;;){ if(Serial_Finish){ serialDecodify(); actuateMotors(); //sonarRead(); //if( (sonarReading0 < 1000) | (sonarReading1 < 1000) | (sonarReading2 < 1000)) sonarReading0 = sonarReading1 = sonarReading2 = 1000; //printf("%u%u%u", sonarReading0, sonarReading1, sonarReading2); //might get an error here because needs interrupts to send data through UART ledCounter--; if(!ledCounter){ toggle_leds(); ledCounter = 5; } } } }
int main(int argc, char *argv[]) { save_argv = argv; /* Initialization of GCC's environment, and diagnostics. */ general_init(argv[0]); print_version(stdout, ""); // c_parse_file(); }
int main (int argc, const char **argv) { /* Initialization of SDCPP's environment. */ general_init (argv[0]); /* Parse the options and do minimal processing; basically just enough to default flags appropriately. */ decode_options (argc, argv); /* Exit early if we can (e.g. -help). */ if (!exit_after_options) do_compile (); if (errorcount) return (FATAL_EXIT_CODE); return (SUCCESS_EXIT_CODE); }
bool_t iface_plugin_set_current (PluginHandle * plugin) { hook_call ("config save", NULL); /* tell interface to save layout */ if (current_plugin != NULL) { AUDDBG ("Unloading plugin widgets.\n"); general_cleanup (); AUDDBG ("Unloading visualizers.\n"); vis_cleanup (); AUDDBG ("Unloading %s.\n", plugin_get_name (current_plugin)); interface_unload (); current_plugin = NULL; } if (plugin != NULL) { AUDDBG ("Loading %s.\n", plugin_get_name (plugin)); if (! interface_load (plugin)) return FALSE; current_plugin = plugin; AUDDBG ("Loading visualizers.\n"); vis_init (); AUDDBG ("Loading plugin widgets.\n"); general_init (); } return TRUE; }
void csplayh5_state::init_nuretemi() { general_init(0x8de2/2, 0x6018); }
void csplayh5_state::init_pokoachu() { general_init(0x7b1e/2, 0x6018); }
void csplayh5_state::init_mogitate() { general_init(0x6ab4/2, 0x6018); }
void csplayh5_state::init_nichisel() { general_init(0x9cd6/2, 0x6018); }
void csplayh5_state::init_bikiniko() { general_init(0x585c/2, 0x6018); }
void csplayh5_state::init_mjmania() { general_init(0x6b96/2, 0x6018); }
void csplayh5_state::init_junai2() { general_init(0x6588/2, 0x6018); }
void csplayh5_state::init_thenanpa() { general_init(0x69ec/2, 0x6018); }
void csplayh5_state::init_fuudol() { general_init(0x9166/2, 0x6018); }
void csplayh5_state::init_junai() { general_init(0x679c/2, 0x6018); }
void csplayh5_state::init_csplayh7() { general_init(0x7a20/2, 0x6018); }
void csplayh5_state::init_csplayh6() { general_init(0x5976/2, 0x6018); }
void csplayh5_state::init_csplayh5() { general_init(0x4cb4/2, 0x6018); }
void csplayh5_state::init_renaimj() { general_init(0x568c/2, 0x6018); }
void csplayh5_state::init_tsuwaku() { general_init(0x856e/2, 0x6018); }
void csplayh5_state::init_sengomjk() { general_init(0x5226/2, 0x6018); }
void csplayh5_state::init_csplayh1() { general_init(0x6880/2, 0x6020); }
void csplayh5_state::init_torarech() { general_init(0x9384/2, 0x6018); }
void csplayh5_state::init_aimode() { general_init(0x9cda/2, 0x6018); }
void csplayh5_state::init_konhaji() { general_init(0x9200/2, 0x6018); }
void csplayh5_state::init_mjgalpri() { general_init(0x5396/2, 0x6018); }