[airborne] error if trying to USE_SERVOS_7AND8 and USE_I2C1 at the same time

This commit is contained in:
Felix Ruess
2012-06-18 12:07:20 +02:00
parent c4e1c1f7dc
commit 10fc91fc54
2 changed files with 5 additions and 0 deletions
@@ -25,6 +25,7 @@
<subsystem name="actuators" type="pwm_supervision">
<define name="SERVO_HZ" value="400"/>
<define name="USE_SERVOS_7AND8"/>
</subsystem>
<subsystem name="telemetry" type="transparent"/>
@@ -27,7 +27,11 @@
#define ACTUATORS_PWM_ARCH_H
#if USE_SERVOS_7AND8
#if defined(BOARD_LISA_M) && USE_I2C1
#error "You cannot use Servos 7and8 and I2C1 at the same time"
#else
#define ACTUATORS_PWM_NB 8
#endif
#else
#define ACTUATORS_PWM_NB 6
#endif