Update DPS310 driver to support SPL07-003
[inav.git] / src / main / target / sanity_check.h
blob5a1b7626e46a238aad25e54668f6c1f7dd3bf2e2
1 /*
2 * This file is part of INAV Project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
6 * You can obtain one at http://mozilla.org/MPL/2.0/.
8 * Alternatively, the contents of this file may be used under the terms
9 * of the GNU General Public License Version 3, as described below:
11 * This file is free software: you may copy, redistribute and/or modify
12 * it under the terms of the GNU General Public License as published by the
13 * Free Software Foundation, either version 3 of the License, or (at your
14 * option) any later version.
16 * This file is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see http://www.gnu.org/licenses/.
25 #pragma once
27 // Deprecated USE_GYRO/ACC defines
28 #if defined (USE_GYRO) || defined (USE_ACC)
29 #error "Unnecessary USE_ACC and/or USE_GYRO"
30 #endif
32 #if defined (USE_GYRO_MPU6000) || defined (USE_ACC_MPU6000)
33 #error "Replace USE_GYRO_xxx and USE_ACC_xxx with USE_IMU_xxx"
34 #endif
36 #if defined (USE_GYRO_MPU6500) || defined (USE_ACC_MPU6500) || defined (USE_GYRO_MPU9250) || defined (USE_ACC_MPU9250)
37 #error "Replace USE_GYRO_xxx and USE_ACC_xxx with USE_IMU_xxx"
38 #endif
40 #if defined (USE_GYRO_ICM20689) || defined (USE_ACC_ICM20689)
41 #error "Replace USE_GYRO_xxx and USE_ACC_xxx with USE_IMU_xxx"
42 #endif
44 #if defined (USE_FAKE_GYRO) || defined (USE_FAKE_ACC)
45 #error "Replace USE_GYRO_xxx and USE_ACC_xxx with USE_IMU_xxx"
46 #endif
48 #if defined (USE_ACC_BMI160)
49 #error "Replace USE_GYRO_xxx and USE_ACC_xxx with USE_IMU_xxx"
50 #endif
52 #if defined (GYRO_MPU6000_ALIGN) || defined (ACC_MPU6000_ALIGN)
53 #error "Replace GYRO_MPU6000_ALIGN and ACC_MPU6000_ALIGN with IMU_MPU6000_ALIGN"
54 #endif
56 #if defined (GYRO_MPU6500_ALIGN) || defined (ACC_MPU6500_ALIGN)
57 #error "Replace GYRO_MPU6500_ALIGN and ACC_MPU6500_ALIGN with IMU_MPU6500_ALIGN"
58 #endif
60 #if defined (GYRO_MPU9250_ALIGN) || defined (ACC_MPU9250_ALIGN)
61 #error "Replace GYRO_MPU9250_ALIGN and ACC_MPU9250_ALIGN with IMU_MPU9250_ALIGN"
62 #endif
64 #if defined (GYRO_BMI160_ALIGN) || defined (ACC_BMI160_ALIGN)
65 #error "Replace GYRO_BMI160_ALIGN and ACC_BMI160_ALIGN with IMU_BMI160_ALIGN"
66 #endif
68 #if defined (GYRO_ICM20689_ALIGN) || defined (ACC_ICM20689_ALIGN)
69 #error "Replace GYRO_ICM20689_ALIGN and ACC_ICM20689_ALIGN with IMU_ICM20689_ALIGN"
70 #endif