Start -> start (#4366)
This commit is contained in:
parent
20639767f3
commit
b99d90b006
|
@ -102,7 +102,7 @@ struct CanTsThread : public TunerstudioThread {
|
||||||
static CanTsThread canTsThread;
|
static CanTsThread canTsThread;
|
||||||
|
|
||||||
void startCanConsole() {
|
void startCanConsole() {
|
||||||
canTsThread.Start();
|
canTsThread.start();
|
||||||
canStreamInit();
|
canStreamInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,12 +93,12 @@ void startSerialChannels() {
|
||||||
#if HAS_PRIMARY
|
#if HAS_PRIMARY
|
||||||
// todo: invert setting one day?
|
// todo: invert setting one day?
|
||||||
if (!engineConfiguration->disablePrimaryUart) {
|
if (!engineConfiguration->disablePrimaryUart) {
|
||||||
primaryChannelThread.Start();
|
primaryChannelThread.start();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_SECONDARY
|
#if HAS_SECONDARY
|
||||||
secondaryChannelThread.Start();
|
secondaryChannelThread.start();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ void startEthernetConsole() {
|
||||||
efiSetPadMode("ethernet", Gpio::G14, PAL_MODE_ALTERNATE(0xb));
|
efiSetPadMode("ethernet", Gpio::G14, PAL_MODE_ALTERNATE(0xb));
|
||||||
#endif // STM32H7
|
#endif // STM32H7
|
||||||
|
|
||||||
ethernetConsole.Start();
|
ethernetConsole.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EFI_ETHERNET
|
#endif // EFI_ETHERNET
|
||||||
|
|
|
@ -934,10 +934,10 @@ void startStatusThreads(void) {
|
||||||
// todo: refactoring needed, this file should probably be split into pieces
|
// todo: refactoring needed, this file should probably be split into pieces
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
initStatusLeds();
|
initStatusLeds();
|
||||||
communicationsBlinkingTask.Start();
|
communicationsBlinkingTask.start();
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
#if EFI_LCD
|
#if EFI_LCD
|
||||||
lcdInstance.Start();
|
lcdInstance.start();
|
||||||
#endif /* EFI_LCD */
|
#endif /* EFI_LCD */
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ struct UsbThread : public TunerstudioThread {
|
||||||
static UsbThread usbConsole;
|
static UsbThread usbConsole;
|
||||||
|
|
||||||
void startUsbConsole() {
|
void startUsbConsole() {
|
||||||
usbConsole.Start();
|
usbConsole.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EFI_USB_SERIAL
|
#endif // EFI_USB_SERIAL
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ void doInitElectronicThrottle() {
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
|
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
etbThread.Start();
|
etbThread.start();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ void initAuxPid() {
|
||||||
startVvtControlPins();
|
startVvtControlPins();
|
||||||
|
|
||||||
for (int i = 0;i < CAM_INPUTS_COUNT;i++) {
|
for (int i = 0;i < CAM_INPUTS_COUNT;i++) {
|
||||||
instances[i].Start();
|
instances[i].start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -574,7 +574,7 @@ void initBenchTest() {
|
||||||
|
|
||||||
addConsoleActionFFFFF("luabench2", luaOutBench2);
|
addConsoleActionFFFFF("luabench2", luaOutBench2);
|
||||||
instance.setPeriod(200 /*ms*/);
|
instance.setPeriod(200 /*ms*/);
|
||||||
instance.Start();
|
instance.start();
|
||||||
onConfigurationChangeBenchTest();
|
onConfigurationChangeBenchTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -237,8 +237,8 @@ static void doPeriodicSlowCallback() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void initPeriodicEvents() {
|
void initPeriodicEvents() {
|
||||||
slowController.Start();
|
slowController.start();
|
||||||
fastController.Start();
|
fastController.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer) {
|
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer) {
|
||||||
|
@ -697,7 +697,7 @@ void initEngineContoller() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
engineStateBlinkingTask.Start();
|
engineStateBlinkingTask.start();
|
||||||
|
|
||||||
initVrPwm();
|
initVrPwm();
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ void initMalfunctionIndicator(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
instance.setPeriod(10 /*ms*/);
|
instance.setPeriod(10 /*ms*/);
|
||||||
instance.Start();
|
instance.start();
|
||||||
|
|
||||||
#if TEST_MIL_CODE
|
#if TEST_MIL_CODE
|
||||||
addConsoleAction("testmil", testMil);
|
addConsoleAction("testmil", testMil);
|
||||||
|
|
|
@ -352,7 +352,7 @@ void startLua() {
|
||||||
initLuaCanRx();
|
initLuaCanRx();
|
||||||
#endif // EFI_CAN_SUPPORT
|
#endif // EFI_CAN_SUPPORT
|
||||||
|
|
||||||
luaThread.Start();
|
luaThread.start();
|
||||||
|
|
||||||
addConsoleActionS("lua", [](const char* str){
|
addConsoleActionS("lua", [](const char* str){
|
||||||
if (interactivePending) {
|
if (interactivePending) {
|
||||||
|
|
|
@ -150,7 +150,7 @@ void initSoftwareKnock() {
|
||||||
#if KNOCK_HAS_CH2
|
#if KNOCK_HAS_CH2
|
||||||
efiSetPadMode("knock ch2", KNOCK_PIN_CH2, PAL_MODE_INPUT_ANALOG);
|
efiSetPadMode("knock ch2", KNOCK_PIN_CH2, PAL_MODE_INPUT_ANALOG);
|
||||||
#endif
|
#endif
|
||||||
kt.Start();
|
kt.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
|
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
|
||||||
*/
|
*/
|
||||||
virtual void Start() {
|
virtual void start() {
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
chVTObjectInit(&timer);
|
chVTObjectInit(&timer);
|
||||||
#endif // EFI_UNIT_TEST
|
#endif // EFI_UNIT_TEST
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* @brief Start the thread.
|
* @brief Start the thread.
|
||||||
*/
|
*/
|
||||||
void Start()
|
void start()
|
||||||
{
|
{
|
||||||
if (m_isStarted) {
|
if (m_isStarted) {
|
||||||
warning(CUSTOM_OBD_6003, "Tried to start thread %s but it was already running", m_name);
|
warning(CUSTOM_OBD_6003, "Tried to start thread %s but it was already running", m_name);
|
||||||
|
|
|
@ -460,7 +460,7 @@ void initAdcInputs() {
|
||||||
portInitAdc();
|
portInitAdc();
|
||||||
|
|
||||||
// Start the slow ADC thread
|
// Start the slow ADC thread
|
||||||
slowAdcController.Start();
|
slowAdcController.start();
|
||||||
|
|
||||||
#if EFI_USE_FAST_ADC
|
#if EFI_USE_FAST_ADC
|
||||||
fastAdc.init();
|
fastAdc.init();
|
||||||
|
|
|
@ -139,11 +139,11 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void Start(CANDriver* device) {
|
void start(CANDriver* device) {
|
||||||
m_device = device;
|
m_device = device;
|
||||||
|
|
||||||
if (device) {
|
if (device) {
|
||||||
ThreadController::Start();
|
ThreadController::start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,12 +318,12 @@ void initCan() {
|
||||||
|
|
||||||
// fire up threads, as necessary
|
// fire up threads, as necessary
|
||||||
if (engineConfiguration->canWriteEnabled) {
|
if (engineConfiguration->canWriteEnabled) {
|
||||||
canWrite.Start();
|
canWrite.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engineConfiguration->canReadEnabled) {
|
if (engineConfiguration->canReadEnabled) {
|
||||||
canRead1.Start(device1);
|
canRead1.start(device1);
|
||||||
canRead2.Start(device2);
|
canRead2.start(device2);
|
||||||
}
|
}
|
||||||
|
|
||||||
isCanEnabled = true;
|
isCanEnabled = true;
|
||||||
|
|
|
@ -85,7 +85,7 @@ void initAuxSerial(void) {
|
||||||
startAuxSerialPins();
|
startAuxSerialPins();
|
||||||
|
|
||||||
if (isSerialRXEnabled)
|
if (isSerialRXEnabled)
|
||||||
serialRead.Start();
|
serialRead.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EFI_AUX_SERIAL
|
#endif // EFI_AUX_SERIAL
|
||||||
|
|
|
@ -117,7 +117,7 @@ void initUsbMsd() {
|
||||||
msd.attachLun(1, (BaseBlockDevice*)&ND1, blkbuf1, &sdCardInquiry, nullptr);
|
msd.attachLun(1, (BaseBlockDevice*)&ND1, blkbuf1, &sdCardInquiry, nullptr);
|
||||||
|
|
||||||
// start the mass storage thread
|
// start the mass storage thread
|
||||||
msd.Start();
|
msd.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAL_USE_USB_MSD
|
#endif // HAL_USE_USB_MSD
|
||||||
|
|
|
@ -177,7 +177,7 @@ void initMicrosecondTimer() {
|
||||||
|
|
||||||
watchDogBuddyCallback(NULL);
|
watchDogBuddyCallback(NULL);
|
||||||
#if EFI_EMULATE_POSITION_SENSORS
|
#if EFI_EMULATE_POSITION_SENSORS
|
||||||
watchdogControllerInstance.Start();
|
watchdogControllerInstance.start();
|
||||||
#endif /* EFI_EMULATE_POSITION_SENSORS */
|
#endif /* EFI_EMULATE_POSITION_SENSORS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@ bool StepDirectionStepper::step(bool positive) {
|
||||||
void StepperMotor::initialize(StepperHw *hardware, int totalSteps) {
|
void StepperMotor::initialize(StepperHw *hardware, int totalSteps) {
|
||||||
StepperMotorBase::initialize(hardware, totalSteps);
|
StepperMotorBase::initialize(hardware, totalSteps);
|
||||||
|
|
||||||
Start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StepDirectionStepper::initialize(brain_pin_e stepPin, brain_pin_e directionPin, pin_output_mode_e directionPinMode, float reactionTime, brain_pin_e enablePin, pin_output_mode_e enablePinMode) {
|
void StepDirectionStepper::initialize(brain_pin_e stepPin, brain_pin_e directionPin, pin_output_mode_e directionPinMode, float reactionTime, brain_pin_e enablePin, pin_output_mode_e enablePinMode) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ void startLoggingProcessor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start processing used buffers
|
// Start processing used buffers
|
||||||
lbf.Start();
|
lbf.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EFI_PROD_CODE
|
#endif // EFI_PROD_CODE
|
||||||
|
|
|
@ -177,7 +177,7 @@ void initMicrosecondTimer() {
|
||||||
|
|
||||||
watchDogBuddyCallback(NULL);
|
watchDogBuddyCallback(NULL);
|
||||||
#if EFI_EMULATE_POSITION_SENSORS
|
#if EFI_EMULATE_POSITION_SENSORS
|
||||||
watchdogControllerInstance.Start();
|
watchdogControllerInstance.start();
|
||||||
#endif /* EFI_EMULATE_POSITION_SENSORS */
|
#endif /* EFI_EMULATE_POSITION_SENSORS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue