Beispiel #1
0
static inline void main_init( void ) {
  mcu_init();
  sys_time_init();
  led_init();
  uart0_init();

  motor_power = 0;
  wt_servo_init();
  wt_servo_set(500);

  spi_init();
  wt_baro_init();

  mcu_int_enable();
}
Beispiel #2
0
static inline void main_init( void ) {
  mcu_init();
  sys_time_register_timer((1./PERIODIC_FREQUENCY), NULL);
  led_init();
  uart0_init();

  motor_power = 0;
  wt_servo_init();
  wt_servo_set(500);

  spi_init();
  wt_baro_init();

  mcu_int_enable();
}