mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-bmi088.git
synced 2025-09-28 16:37:33 +00:00
Added compile-time check for mock BMI088
This commit is contained in:
11
src/mock.cpp
11
src/mock.cpp
@@ -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
|
||||
|
Reference in New Issue
Block a user