auto-sync
This commit is contained in:
parent
6292d2e433
commit
15054d74db
|
@ -126,6 +126,7 @@ static msg_t consoleThreadThreadEntryPoint(void *arg) {
|
||||||
chRegSetThreadName("console thread");
|
chRegSetThreadName("console thread");
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
efiAssert(getRemainingStack(chThdSelf()) > 32, "lowstck#9e", 0);
|
||||||
bool end = getConsoleLine((BaseSequentialStream*) getConsoleChannel(), consoleInput, sizeof(consoleInput));
|
bool end = getConsoleLine((BaseSequentialStream*) getConsoleChannel(), consoleInput, sizeof(consoleInput));
|
||||||
if (end) {
|
if (end) {
|
||||||
// firmware simulator is the only case when this happens
|
// firmware simulator is the only case when this happens
|
||||||
|
|
|
@ -73,6 +73,7 @@ static scheduling_s endTimer[2];
|
||||||
|
|
||||||
static void startAveraging(void *arg) {
|
static void startAveraging(void *arg) {
|
||||||
(void) arg;
|
(void) arg;
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 32, "lowstck#9");
|
||||||
bool wasLocked = lockAnyContext();
|
bool wasLocked = lockAnyContext();
|
||||||
;
|
;
|
||||||
// with locking we would have a consistent state
|
// with locking we would have a consistent state
|
||||||
|
@ -91,6 +92,7 @@ static void startAveraging(void *arg) {
|
||||||
void mapAveragingCallback(adcsample_t value) {
|
void mapAveragingCallback(adcsample_t value) {
|
||||||
/* Calculates the average values from the ADC samples.*/
|
/* Calculates the average values from the ADC samples.*/
|
||||||
perRevolutionCounter++;
|
perRevolutionCounter++;
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 32, "lowstck#9a");
|
||||||
|
|
||||||
float voltage = adcToVoltsDivided(value);
|
float voltage = adcToVoltsDivided(value);
|
||||||
float currentPressure = getMapByVoltage(voltage);
|
float currentPressure = getMapByVoltage(voltage);
|
||||||
|
|
|
@ -29,6 +29,7 @@ extern schfunc_t globalTimerCallback;
|
||||||
|
|
||||||
static void executorCallback(void *arg) {
|
static void executorCallback(void *arg) {
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 32, "lowstck#2y");
|
||||||
instance.onTimerCallback();
|
instance.onTimerCallback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,9 @@ bool isCranking(void) {
|
||||||
*/
|
*/
|
||||||
void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index, RpmCalculator *rpmState) {
|
void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index, RpmCalculator *rpmState) {
|
||||||
uint64_t nowNt = getTimeNowNt();
|
uint64_t nowNt = getTimeNowNt();
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 32, "lowstck#2z");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (index != 0) {
|
if (index != 0) {
|
||||||
#if EFI_ANALOG_CHART || defined(__DOXYGEN__)
|
#if EFI_ANALOG_CHART || defined(__DOXYGEN__)
|
||||||
|
@ -259,6 +262,9 @@ void scheduleByAngle(scheduling_s *timer, float angle, schfunc_t callback, void
|
||||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
||||||
void addWaveChartEvent(const char *name, const char * msg, const char *msg2) {
|
void addWaveChartEvent(const char *name, const char * msg, const char *msg2) {
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 32, "lowstck#2c");
|
||||||
|
#endif
|
||||||
#if EFI_WAVE_CHART
|
#if EFI_WAVE_CHART
|
||||||
waveChart.addWaveChartEvent3(name, msg, msg2);
|
waveChart.addWaveChartEvent3(name, msg, msg2);
|
||||||
#endif /* EFI_WAVE_CHART */
|
#endif /* EFI_WAVE_CHART */
|
||||||
|
|
|
@ -445,6 +445,7 @@ static void setAdcDebugReporting(int value) {
|
||||||
static void adc_callback_slow(ADCDriver *adcp, adcsample_t *buffer, size_t n) {
|
static void adc_callback_slow(ADCDriver *adcp, adcsample_t *buffer, size_t n) {
|
||||||
(void) buffer;
|
(void) buffer;
|
||||||
(void) n;
|
(void) n;
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 16, "lowstck#9c");
|
||||||
/* Note, only in the ADC_COMPLETE state because the ADC driver fires
|
/* Note, only in the ADC_COMPLETE state because the ADC driver fires
|
||||||
* an intermediate callback when the buffer is half full. */
|
* an intermediate callback when the buffer is half full. */
|
||||||
if (adcp->state == ADC_COMPLETE) {
|
if (adcp->state == ADC_COMPLETE) {
|
||||||
|
@ -465,6 +466,7 @@ static void adc_callback_fast(ADCDriver *adcp, adcsample_t *buffer, size_t n) {
|
||||||
(void) n;
|
(void) n;
|
||||||
// /* Note, only in the ADC_COMPLETE state because the ADC driver fires an
|
// /* Note, only in the ADC_COMPLETE state because the ADC driver fires an
|
||||||
// intermediate callback when the buffer is half full.*/
|
// intermediate callback when the buffer is half full.*/
|
||||||
|
efiAssertVoid(getRemainingStack(chThdSelf()) > 16, "lowstck#9b");
|
||||||
if (adcp->state == ADC_COMPLETE) {
|
if (adcp->state == ADC_COMPLETE) {
|
||||||
fastAdcValue = getAvgAdcValue(0, samples_fast, ADC_GRP1_BUF_DEPTH_FAST, fastAdc.size());
|
fastAdcValue = getAvgAdcValue(0, samples_fast, ADC_GRP1_BUF_DEPTH_FAST, fastAdc.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue