Added compile-time check for mock BMI088

This commit is contained in:
dario
2024-06-29 17:27:51 +02:00
parent 2e8b07509d
commit 86456b898b

View File

@@ -5,9 +5,14 @@
#include <sta/debug/spatz.hpp>
#include <sta/debug/assert.hpp>
#ifndef STA_BMI088_ACC_SPATZ_ID
# error "MS56xx acceleration SPATZ ID not defined."
#endif // !STA_MS56XX_TEMPERATURE_SPATZ_ID
#ifndef STA_BMI088_GYRO_SPATZ_ID
# error "MS56xx gyroscope SPATZ ID not defined."
#endif // !STA_MS56XX_PRESSURE_SPATZ_ID
#define STA_BMI088_ACC_SPATZ_ID 3
#define STA_BMI088_GYRO_SPATZ_ID 4
namespace sta
{
@@ -100,4 +105,4 @@ namespace sta
}
} // namespace sta
#endif // STA_SPATZ_ENABLED
#endif // STA_SPATZ_ENABLED