auto-sync

This commit is contained in:
rusEfi 2015-10-31 17:01:24 -04:00
parent af7d4d77ba
commit 8bd97be4ac
3 changed files with 7 additions and 11 deletions

View File

@ -284,15 +284,9 @@
#define LED_WARNING_PORT GPIOD
#define LED_WARNING_PIN GPIOD_LED3
#define LED_RUNNING_STATUS_PORT GPIOD
#define LED_RUNNING_STATUS_PIN GPIOD_LED4
#define LED_ERROR_PORT GPIOD
#define LED_ERROR_PIN GPIOD_LED5
#define LED_COMMUNICATION_PORT GPIOD
#define LED_COMMUNICATION_PIN GPIOD_LED6
#define EFI_WARNING_LED TRUE
// USART1 -> check defined STM32_SERIAL_USE_USART1

View File

@ -451,17 +451,19 @@ extern engine_pins_s enginePins;
static OutputPin *leds[] = { &warningPin, &runningPin, &enginePins.errorLedPin, &communicationPin, &checkEnginePin };
extern pin_output_mode_e DEFAULT_OUTPUT;
static void initStatisLeds() {
#if EFI_PROD_CODE || defined(__DOXYGEN__)
outputPinRegister("communication status 1", &communicationPin,
LED_COMMUNICATION_PORT, LED_COMMUNICATION_PIN);
outputPinRegisterExt2("communication status 1", &communicationPin,
engineConfiguration->communicationPin, &DEFAULT_OUTPUT);
#endif
#if EFI_WARNING_LED || defined(__DOXYGEN__)
outputPinRegister("warning", &warningPin, LED_WARNING_PORT,
LED_WARNING_PIN);
outputPinRegister("is running status", &runningPin, LED_RUNNING_STATUS_PORT,
LED_RUNNING_STATUS_PIN);
outputPinRegisterExt2("is running status", &runningPin, engineConfiguration->runningPin,
&DEFAULT_OUTPUT);
#endif /* EFI_WARNING_LED */
}

View File

@ -11,7 +11,7 @@
#include "engine.h"
#define FLASH_DATA_VERSION 8700
#define FLASH_DATA_VERSION 8900
void readFromFlash(void);
void initFlash(Logging *sharedLogger);