Example #1
0
int
main(void)
{
	ao_clock_init();

	PORTE |= (1 << 6);
	DDRE |= (1 << 6);

	ao_task_init();

	ao_avr_stdio_init();
	ao_timer_init();
	ao_cmd_init();
	ao_spi_init();
	ao_spi_slave_init();
	ao_storage_init();
	ao_usb_init();
	ao_adc_init();
	ao_log_single_init();
#if HAS_ICP3_COUNT
	ao_pwmin_init();
#endif
	ao_start_scheduler();
	return 0;
}
Example #2
0
void
main(void)
{
	ao_clock_init();

	/* Turn on the red LED until the system is stable */
	ao_led_init(LEDS_AVAILABLE);
	ao_led_on(AO_LED_RED);

	ao_task_init();

	ao_timer_init();
	ao_adc_init();
	ao_beep_init();
	ao_cmd_init();
	ao_spi_init();
	ao_storage_init();
	ao_usb_init();
	ao_radio_init();
#if HAS_DBG
	ao_dbg_init();
#endif
	ao_aes_init();
	ao_launch_init();
	ao_config_init();
	ao_start_scheduler();
}
Example #3
0
void
main(void)
{
	ao_clock_init();

//	ao_add_task(&blink_0_task, blink_0);
//	ao_add_task(&blink_1_task, blink_1);
//	ao_add_task(&wakeup_task, wakeup);
//	ao_add_task(&beep_task, beep);
	ao_add_task(&echo_task, echo);
	ao_timer_init();
	ao_adc_init();
	ao_beep_init();
	ao_led_init();
	ao_usb_init();

	ao_start_scheduler();
}
Example #4
0
int
main(void)
{
	ao_clock_init();

	PORTE |= (1 << 6);
	DDRE |= (1 << 6);

	ao_task_init();

	ao_avr_stdio_init();
	ao_timer_init();
	ao_cmd_init();
	ao_spi_slave_init();
	ao_usb_init();
	ao_adc_init();
	ao_storage_init();
	ao_config_init();
	ao_pyro_init();
	ao_start_scheduler();
	return 0;
}
Example #5
0
int
main(void)
{
	ao_clock_init();
	
#if HAS_STACK_GUARD
	ao_mpu_init();
#endif

	ao_task_init();
	ao_serial_init();
	ao_led_init(LEDS_AVAILABLE);
	ao_led_on(AO_LED_GREEN);
	ao_timer_init();

	ao_i2c_init();
	ao_spi_init();
	ao_dma_init();
	ao_exti_init();

	ao_adc_init();
#if HAS_BEEP
	ao_beep_init();
#endif
	ao_cmd_init();

#if HAS_MS5607
	ao_ms5607_init();
#endif
#if HAS_HMC5883
	ao_hmc5883_init();
#endif
#if HAS_MPU6000
	ao_mpu6000_init();
#endif
#if HAS_MMA655X
	ao_mma655x_init();
#endif

	ao_eeprom_init();
	ao_storage_init();
	
	ao_flight_init();
	ao_log_init();
	ao_report_init();

	ao_usb_init();
	ao_gps_init();
	ao_gps_report_mega_init();
	ao_telemetry_init();
	ao_radio_init();
	ao_packet_slave_init(FALSE);
	ao_igniter_init();
	ao_companion_init();
	ao_pyro_init();

	ao_config_init();
#if AO_PROFILE
	ao_profile_init();
#endif
#if HAS_SAMPLE_PROFILE
	ao_sample_profile_init();
#endif
	
	ao_start_scheduler();
	return 0;
}