void baro_init( void ) { mcp355x_init(); #ifdef BARO_LED LED_OFF(BARO_LED); #endif startup_cnt = BARO_STARTUP_COUNTER; }
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; }