main.c
// Read default configuration from application_config.h and initialize accelerometer with it.
// If there is error, add error information to global error counters.
// Call peripheral init before calling this to have SPI bus and timers operational.
Read default configuration from application_config.h and initialize accelerometer with it.
If there is error, add error information to global error counters.
Call peripheral init before calling this to have SPI bus and timers operational.
Read default configuration from application_config . h and initialize accelerometer with it . If there is error add error information to global error counters . Call peripheral init before calling this to have SPI bus and timers operational .
static ruuvi_status_t app_accelerometer_init(void)
{
  err_code = task_accelerometer_init();
  ruuvi_sensor_configuration_t accelerometer_configuration;
  accelerometer_configuration->resolution = 10;
  err_code |= task_accelerometer_setup();
  if (RUUVI_SUCCESS != err_code) {
    error_code[err_index++] = 'A'; 
    errors++;
  }
  PLATFORM_LOG_INFO("Accelerometer init status: 0x%X", err_code);
}
static ruuvi_status_t app_accelerometer_init ( void ) { err_code = task_accelerometer_init ( ) ; ruuvi_sensor_configuration_t accelerometer_configuration ; accelerometer_configuration -> resolution = 10 ; err_code |= task_accelerometer_setup ( ) ; if ( RUUVI_SUCCESS != err_code ) { error_code [ err_index ++ ] = ' ' ; errors ++ ; } PLATFORM_LOG_INFO ( " " , err_code ) ; }
Read default configuration from application_config.h and initialize accelerometer with it.
Read default configuration from application_config . h and initialize accelerometer with it .
// Accelerometer