auto-sync
This commit is contained in:
parent
d758c1f43c
commit
a0de463a3f
|
@ -94,7 +94,7 @@ static int ts_serail_ready(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this thread wants a bit extra stack
|
// this thread wants a bit extra stack
|
||||||
static THD_WORKING_AREA(TS_WORKING_AREA, UTILITY_THREAD_STACK_SIZE + 200);
|
static THD_WORKING_AREA(tsThreadStack, UTILITY_THREAD_STACK_SIZE + 200);
|
||||||
|
|
||||||
static int tsCounter = 0;
|
static int tsCounter = 0;
|
||||||
|
|
||||||
|
@ -526,7 +526,7 @@ void startTunerStudioConnectivity(void) {
|
||||||
addConsoleAction("tsinfo", printStats);
|
addConsoleAction("tsinfo", printStats);
|
||||||
addConsoleActionI("set_ts_speed", setTsSpeed);
|
addConsoleActionI("set_ts_speed", setTsSpeed);
|
||||||
|
|
||||||
chThdCreateStatic(TS_WORKING_AREA, sizeof(TS_WORKING_AREA), NORMALPRIO, tsThreadEntryPoint, NULL);
|
chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, tsThreadEntryPoint, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* EFI_TUNER_STUDIO */
|
#endif /* EFI_TUNER_STUDIO */
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
|
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
static THD_WORKING_AREA(aeThreadStack, UTILITY_THREAD_STACK_SIZE);
|
||||||
|
#endif
|
||||||
|
|
||||||
static AccelEnrichmemnt instance;
|
static AccelEnrichmemnt instance;
|
||||||
|
|
||||||
|
@ -32,6 +35,7 @@ void AccelEnrichmemnt::updateDiffEnrichment(engine_configuration_s *engineConfig
|
||||||
float AccelEnrichmemnt::getDiffEnrichment() {
|
float AccelEnrichmemnt::getDiffEnrichment() {
|
||||||
return diffEnrichment;
|
return diffEnrichment;
|
||||||
}
|
}
|
||||||
|
|
||||||
AccelEnrichmemnt::AccelEnrichmemnt() {
|
AccelEnrichmemnt::AccelEnrichmemnt() {
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
engineLoadD[i] = 0;
|
engineLoadD[i] = 0;
|
||||||
|
@ -43,7 +47,6 @@ float getAccelEnrichment(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
static THD_WORKING_AREA(aeThreadStack, UTILITY_THREAD_STACK_SIZE);
|
|
||||||
|
|
||||||
static msg_t DiffEnrichmentThread(int param) {
|
static msg_t DiffEnrichmentThread(int param) {
|
||||||
chRegSetThreadName("Diff Enrichment");
|
chRegSetThreadName("Diff Enrichment");
|
||||||
|
|
|
@ -27,10 +27,9 @@
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
#define CHART_RESET_DELAY 1
|
#define CHART_RESET_DELAY 1
|
||||||
|
#define MAX_ICU_COUNT 5
|
||||||
|
|
||||||
extern board_configuration_s *boardConfiguration;
|
extern WaveChart waveChart;
|
||||||
|
|
||||||
extern engine_configuration_s *engineConfiguration;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Difference between current 1st trigger event and previous 1st trigger event.
|
* Difference between current 1st trigger event and previous 1st trigger event.
|
||||||
|
@ -38,12 +37,10 @@ extern engine_configuration_s *engineConfiguration;
|
||||||
static volatile uint32_t engineCycleDurationUs;
|
static volatile uint32_t engineCycleDurationUs;
|
||||||
static volatile uint64_t previousEngineCycleTimeUs = 0;
|
static volatile uint64_t previousEngineCycleTimeUs = 0;
|
||||||
|
|
||||||
#define MAX_ICU_COUNT 5
|
|
||||||
|
|
||||||
static int waveReaderCount = 0;
|
static int waveReaderCount = 0;
|
||||||
static WaveReader readers[MAX_ICU_COUNT];
|
static WaveReader readers[MAX_ICU_COUNT];
|
||||||
extern WaveChart waveChart;
|
|
||||||
|
|
||||||
|
static THD_WORKING_AREA(waThreadStack, UTILITY_THREAD_STACK_SIZE);
|
||||||
static Logging logger;
|
static Logging logger;
|
||||||
|
|
||||||
static void ensureInitialized(WaveReader *reader) {
|
static void ensureInitialized(WaveReader *reader) {
|
||||||
|
@ -148,10 +145,6 @@ static void waTriggerEventListener(trigger_event_e ckpSignalType, uint32_t index
|
||||||
previousEngineCycleTimeUs = nowUs;
|
previousEngineCycleTimeUs = nowUs;
|
||||||
}
|
}
|
||||||
|
|
||||||
static THD_WORKING_AREA(waThreadStack, UTILITY_THREAD_STACK_SIZE);
|
|
||||||
|
|
||||||
//static Logging logger;
|
|
||||||
|
|
||||||
static msg_t waThread(void *arg) {
|
static msg_t waThread(void *arg) {
|
||||||
(void)arg;
|
(void)arg;
|
||||||
chRegSetThreadName("Wave Analyzer");
|
chRegSetThreadName("Wave Analyzer");
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern board_configuration_s *boardConfiguration;
|
||||||
|
|
||||||
#define PUSHPULLDELAY 500
|
#define PUSHPULLDELAY 500
|
||||||
|
|
||||||
static THD_WORKING_AREA(tp_MMC_Monitor,UTILITY_THREAD_STACK_SIZE); // MMC monitor thread
|
static THD_WORKING_AREA(mmcThreadStack,UTILITY_THREAD_STACK_SIZE); // MMC monitor thread
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MMC driver instance.
|
* MMC driver instance.
|
||||||
|
@ -260,7 +260,7 @@ void initMmcCard(void) {
|
||||||
mmcObjectInit(&MMCD1);
|
mmcObjectInit(&MMCD1);
|
||||||
mmcStart(&MMCD1, &mmccfg);
|
mmcStart(&MMCD1, &mmccfg);
|
||||||
|
|
||||||
chThdCreateStatic(tp_MMC_Monitor, sizeof(tp_MMC_Monitor), LOWPRIO, (tfunc_t) MMCmonThread, NULL);
|
chThdCreateStatic(mmcThreadStack, sizeof(mmcThreadStack), LOWPRIO, (tfunc_t) MMCmonThread, NULL);
|
||||||
|
|
||||||
addConsoleAction("sdstat", sdStatistics);
|
addConsoleAction("sdstat", sdStatistics);
|
||||||
addConsoleAction("mountsd", MMCmount);
|
addConsoleAction("mountsd", MMCmount);
|
||||||
|
|
Loading…
Reference in New Issue