[conf] lisa/m 1.0 led defaults: LED2 for RADIO_CONTROL_LED, LED3 for AHRS_ALIGNER_LED

This commit is contained in:
Felix Ruess
2012-05-09 23:00:02 +02:00
parent cab93d76bb
commit 2701371657
5 changed files with 8 additions and 8 deletions
@@ -4,10 +4,9 @@
<firmware name="rotorcraft">
<target name="ap" board="lisa_m_2.0">
<define name="ACTUATORS_START_DELAY" value="3"/>
<configure name="AHRS_ALIGNER_LED" value="3"/>
<subsystem name="actuators" type="pwm_supervision"/>
<define name="SERVO_HZ" value="400"/>
<subsystem name="actuators" type="pwm_supervision">
<define name="SERVO_HZ" value="400"/>
</subsystem>
</target>
<target name="sim" board="pc">
<subsystem name="fdm" type="nps"/>
@@ -5,7 +5,6 @@
<firmware name="rotorcraft">
<target name="ap" board="lisa_m_1.0">
<define name="ACTUATORS_START_DELAY" value="3"/>
<configure name="AHRS_ALIGNER_LED" value="3"/>
</target>
<target name="sim" board="pc">
<subsystem name="fdm" type="nps"/>
@@ -6,7 +6,6 @@
<target name="ap" board="lisa_m_1.0">
<define name="ACTUATORS_START_DELAY" value="3"/>
<define name="USE_INS_NAV_INIT"/>
<configure name="AHRS_ALIGNER_LED" value="3"/>
<!--configure name="USE_NEW_I2C_DRIVER" value="1"/-->
</target>
+2 -2
View File
@@ -35,7 +35,7 @@ endif
# default LED configuration
#
ifndef RADIO_CONTROL_LED
RADIO_CONTROL_LED = none
RADIO_CONTROL_LED = 2
endif
ifndef BARO_LED
@@ -43,7 +43,7 @@ BARO_LED = none
endif
ifndef AHRS_ALIGNER_LED
AHRS_ALIGNER_LED = none
AHRS_ALIGNER_LED = 3
endif
ifndef GPS_LED
+3
View File
@@ -8,18 +8,21 @@
#define AHB_CLK 72000000
/* Onboard LEDs */
/* red */
#define LED_1_BANK
#define LED_1_GPIO GPIOB
#define LED_1_GPIO_CLK RCC_APB2ENR_IOPBEN | RCC_APB2ENR_AFIOEN
#define LED_1_GPIO_PIN GPIO4
#define LED_1_AFIO_REMAP AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_FULL_SWJ_NO_JNTRST
/* blue */
#define LED_2_BANK
#define LED_2_GPIO GPIOC
#define LED_2_GPIO_CLK RCC_APB2ENR_IOPCEN
#define LED_2_GPIO_PIN GPIO5
#define LED_2_AFIO_REMAP ((void)0)
/* blue */
#define LED_3_BANK
#define LED_3_GPIO GPIOC
#define LED_3_GPIO_CLK RCC_APB2ENR_IOPCEN