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