auto-sync

This commit is contained in:
rusEfi 2014-11-22 11:03:10 -06:00
parent 442dbed94b
commit 618ee77290
7 changed files with 13 additions and 21 deletions

View File

@ -54,8 +54,7 @@ typedef char log_buf_t[DL_OUTPUT_BUFFER];
*/
#define MAX_DL_CAPACITY (DL_OUTPUT_BUFFER - 5)
static log_buf_t pendingBuffers0 CCM_OPTIONAL
;
static log_buf_t pendingBuffers0 CCM_OPTIONAL;
static log_buf_t pendingBuffers1;
/**
@ -74,8 +73,7 @@ static uint32_t accumulatedSize;
static char * outputBuffer;
static MemoryStream intermediateLoggingBuffer;
static uint8_t intermediateLoggingBufferData[INTERMEDIATE_LOGGING_BUFFER_SIZE] CCM_OPTIONAL
;
static uint8_t intermediateLoggingBufferData[INTERMEDIATE_LOGGING_BUFFER_SIZE] CCM_OPTIONAL;
//todo define max-printf-buffer
static bool intermediateLoggingBufferInited = FALSE;

View File

@ -74,8 +74,7 @@ void WaveChart::resetWaveChart() {
appendPrintf(&logging, "wave_chart%s", DELIMETER);
}
static char WAVE_LOGGING_BUFFER[WAVE_LOGGING_SIZE] CCM_OPTIONAL
;
static char WAVE_LOGGING_BUFFER[WAVE_LOGGING_SIZE] CCM_OPTIONAL;
bool_t WaveChart::isStartedTooLongAgo() {
/**

View File

@ -64,8 +64,7 @@ static LEElementPool lePool(mainPool, LE_ELEMENT_POOL_SIZE);
static LEElement * fuelPumpLogic;
static LEElement * radiatorFanLogic;
persistent_config_container_s persistentState CCM_OPTIONAL
;
persistent_config_container_s persistentState CCM_OPTIONAL;
/**
* todo: it really looks like these fields should become 'static', i.e. private
@ -83,8 +82,7 @@ static VirtualTimer everyMsTimer;
static Logging logger;
static engine_configuration2_s ec2 CCM_OPTIONAL
;
static engine_configuration2_s ec2 CCM_OPTIONAL;
engine_configuration2_s * engineConfiguration2 = &ec2;
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)

View File

@ -105,8 +105,7 @@ int isCrankingRT(engine_configuration_s *engineConfiguration, int rpm) {
return rpm > 0 && rpm < engineConfiguration->crankingSettings.crankingRpm;
}
OutputSignalList injectonSignals CCM_OPTIONAL
;
OutputSignalList injectonSignals CCM_OPTIONAL;
static void registerSparkEvent(trigger_shape_s * s,
IgnitionEventList *list, io_pin_e pin, float localAdvance, float dwell DECLARE_ENGINE_PARAMETER_S) {

View File

@ -43,7 +43,7 @@ typedef unsigned int time_t;
#define EFI_ERROR_CODE 0xffffffff
#if EFI_USE_CCM && defined __GNUC__
#define CCM_OPTIONAL __attribute__((section(".ccm")));
#define CCM_OPTIONAL __attribute__((section(".ccm")))
#else
#define CCM_OPTIONAL @ ".ccm"
#endif

View File

@ -13,13 +13,6 @@
#define _MAX_FILLER 11
/**
* there is some BS related to isnan in MinGW, so let's have all the issues in one place
*/
bool cisnan(float f) {
return *(((int*) (&f))) == 0x7FC00000;
}
const char * boolToString(bool value) {
return value ? "Yes" : "No";
}

View File

@ -38,7 +38,12 @@ bool startsWith(const char *line, const char *prefix);
int indexOf(const char *string, char ch);
float atoff(const char *string);
int atoi(const char *string);
bool cisnan(float f);
/**
* there is some BS related to isnan in MinGW, so let's have all the issues in one place
*/
#define cisnan(f) (*(((int*) (&f))) == 0x7FC00000)
int absI(int32_t value);
float absF(float value);