auto-sync
This commit is contained in:
parent
b39a731b4a
commit
6463c44654
|
@ -140,10 +140,6 @@ SerialDriver * getConsoleChannel(void) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* EFI_PROD_CODE || EFI_EGT */
|
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
|
||||||
bool isConsoleReady(void) {
|
bool isConsoleReady(void) {
|
||||||
if (isSerialOverUart()) {
|
if (isSerialOverUart()) {
|
||||||
return isSerialConsoleStarted;
|
return isSerialConsoleStarted;
|
||||||
|
@ -151,9 +147,7 @@ bool isConsoleReady(void) {
|
||||||
return is_usb_serial_ready();
|
return is_usb_serial_ready();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE || EFI_EGT */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static THD_WORKING_AREA(consoleThreadStack, 2 * UTILITY_THREAD_STACK_SIZE);
|
static THD_WORKING_AREA(consoleThreadStack, 2 * UTILITY_THREAD_STACK_SIZE);
|
||||||
static msg_t consoleThreadThreadEntryPoint(void *arg) {
|
static msg_t consoleThreadThreadEntryPoint(void *arg) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ void consoleOutputBuffer(const uint8_t *buf, int size);
|
||||||
void startConsole(void (*console_line_callback_p)(char *));
|
void startConsole(void (*console_line_callback_p)(char *));
|
||||||
bool isSerialOverUart(void);
|
bool isSerialOverUart(void);
|
||||||
|
|
||||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
#if EFI_PROD_CODE || EFI_SIMULATOR || EFI_EGT
|
||||||
bool isConsoleReady(void);
|
bool isConsoleReady(void);
|
||||||
#else
|
#else
|
||||||
#define isConsoleReady() true
|
#define isConsoleReady() true
|
||||||
|
|
Loading…
Reference in New Issue