예제 #1
0
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;
			}
		}
	}
}
예제 #2
0
파일: gcc_test.cpp 프로젝트: rsenn/libborg
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();
}
예제 #3
0
파일: sdcpp.c 프로젝트: Trewdbal/cpctelera
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);
}
예제 #4
0
파일: interface.c 프로젝트: suaff/audacious
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;
}
예제 #5
0
void csplayh5_state::init_nuretemi()  { general_init(0x8de2/2, 0x6018); }
예제 #6
0
void csplayh5_state::init_pokoachu()  { general_init(0x7b1e/2, 0x6018); }
예제 #7
0
void csplayh5_state::init_mogitate()  { general_init(0x6ab4/2, 0x6018); }
예제 #8
0
void csplayh5_state::init_nichisel()  { general_init(0x9cd6/2, 0x6018); }
예제 #9
0
void csplayh5_state::init_bikiniko()  { general_init(0x585c/2, 0x6018); }
예제 #10
0
void csplayh5_state::init_mjmania()   { general_init(0x6b96/2, 0x6018); }
예제 #11
0
void csplayh5_state::init_junai2()    { general_init(0x6588/2, 0x6018); }
예제 #12
0
void csplayh5_state::init_thenanpa()  { general_init(0x69ec/2, 0x6018); }
예제 #13
0
void csplayh5_state::init_fuudol()    { general_init(0x9166/2, 0x6018); }
예제 #14
0
void csplayh5_state::init_junai()     { general_init(0x679c/2, 0x6018); }
예제 #15
0
void csplayh5_state::init_csplayh7()  { general_init(0x7a20/2, 0x6018); }
예제 #16
0
void csplayh5_state::init_csplayh6()  { general_init(0x5976/2, 0x6018); }
예제 #17
0
void csplayh5_state::init_csplayh5()  { general_init(0x4cb4/2, 0x6018); }
예제 #18
0
void csplayh5_state::init_renaimj()   { general_init(0x568c/2, 0x6018); }
예제 #19
0
void csplayh5_state::init_tsuwaku()   { general_init(0x856e/2, 0x6018); }
예제 #20
0
void csplayh5_state::init_sengomjk()  { general_init(0x5226/2, 0x6018); }
예제 #21
0
void csplayh5_state::init_csplayh1()  { general_init(0x6880/2, 0x6020); }
예제 #22
0
void csplayh5_state::init_torarech()  { general_init(0x9384/2, 0x6018); }
예제 #23
0
void csplayh5_state::init_aimode()    { general_init(0x9cda/2, 0x6018); }
예제 #24
0
void csplayh5_state::init_konhaji()   { general_init(0x9200/2, 0x6018); }
예제 #25
0
void csplayh5_state::init_mjgalpri()  { general_init(0x5396/2, 0x6018); }