コード例 #1
0
ファイル: baro_board.c プロジェクト: 1bitsquared/paparazzi
void baro_init( void ) {
  mcp355x_init();
#ifdef BARO_LED
  LED_OFF(BARO_LED);
#endif
  startup_cnt = BARO_STARTUP_COUNTER;
}
コード例 #2
0
void baro_init( void ) {
  mcp355x_init();
  SpiSelectSlave0(); // never unselect this slave (continious conversion mode)
  baro.status = BS_UNINITIALIZED;
  baro.absolute     = 0;
  baro.differential = 0; /* not handled on this board */
#ifdef ROTORCRAFT_BARO_LED
  LED_OFF(ROTORCRAFT_BARO_LED);
#endif
  startup_cnt = STARTUP_COUNTER;
}