rusEFI
The most advanced open source ECU
Functions
eficonsole.h File Reference

Detailed Description

Console package entry point header.

Date
Nov 15, 2012
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file eficonsole.h.

Functions

void initializeConsole ()
 
void startUsbConsole ()
 
void printUsbConnectorStats ()
 
void startEthernetConsole ()
 
void startWifiConsole ()
 

Function Documentation

◆ initializeConsole()

void initializeConsole ( )

Definition at line 250 of file eficonsole.cpp.

250  {
252 
254 
255 #if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
256  addConsoleAction("uid", printUid);
257 #endif
258 
259  sayHello();
260  addConsoleAction("test", [](){ /* do nothing */});
261  addConsoleActionI("echo", echo);
262  addConsoleAction("hello", sayHello);
263  #if EFI_USE_OPENBLT
264  addConsoleAction("show_blt_version", [](){
265  uint32_t bltBinVersion = getOpenBltVersion();
266  efiPrintf("********************** blt=%lx %s version", bltBinVersion, bltBinVersion == BLT_CURRENT_VERSION ? "CURRENT" : "UNEXPECTED");
267  });
268  #endif
269 #if EFI_HAS_RESET
270  addConsoleAction("reset", scheduleReset);
271 #endif
272 
273  addConsoleAction("critical", testCritical);
274  addConsoleAction("error", myerror);
275  addConsoleAction("hard_fault", testHardFault);
276  addConsoleAction("threadsinfo", cmd_threads);
277 
278 #if HAL_USE_WDG
279  addConsoleActionI("set_watchdog_timeout", startWatchdog);
280  addConsoleActionI("set_watchdog_reset", setWatchdogResetPeriod);
281 #endif
282 }
void startWatchdog(int)
void setWatchdogResetPeriod(int)
void handleConsoleLine(char *line)
This function takes care of one command line once we have it.
void addConsoleAction(const char *token, Void callback)
Register console action without parameters.
void initConsoleLogic()
void addConsoleActionI(const char *token, VoidInt callback)
Register a console command with one Integer parameter.
void startConsole(CommandHandler console_line_callback_p)
Definition: console_io.cpp:55
static void sayHello()
Definition: eficonsole.cpp:65
static void testCritical()
Definition: eficonsole.cpp:31
static void echo(int value)
This is just a test function.
Definition: eficonsole.cpp:229
static void myerror()
Definition: eficonsole.cpp:35
static void cmd_threads()
Definition: eficonsole.cpp:198
static void printUid()
Definition: eficonsole.cpp:44
static void testHardFault()
Definition: eficonsole.cpp:39

Referenced by runRusEfi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printUsbConnectorStats()

void printUsbConnectorStats ( )

Definition at line 62 of file usb_console.cpp.

62  {
63 }

Referenced by printTsStats().

Here is the caller graph for this function:

◆ startEthernetConsole()

void startEthernetConsole ( )

Definition at line 83 of file ethernet_console.cpp.

83  {
84  ethernetConsole.start();
85 }
static EthernetThread ethernetConsole

Referenced by runRusEfi().

Here is the caller graph for this function:

◆ startUsbConsole()

void startUsbConsole ( )

Definition at line 58 of file usb_console.cpp.

58  {
59  usbConsole.start();
60 }
static UsbThread usbConsole
Definition: usb_console.cpp:56

Referenced by runRusEfi().

Here is the caller graph for this function:

◆ startWifiConsole()

void startWifiConsole ( )

Definition at line 228 of file wifi_console.cpp.

228  {
229  iqObjectInit(&wifiIqueue, recvBuffer, sizeof(recvBuffer), nullptr, nullptr);
230 
231  wifiThread.start();
232 }
static NO_CACHE WifiConsoleThread wifiThread
static input_queue_t wifiIqueue
static uint8_t recvBuffer[512]

Referenced by runRusEfiWithConfig().

Here is the caller graph for this function:

Go to the source code of this file.