rusefi-1/firmware/console/console_io.h

40 lines
731 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file console_io.h
*
* @date Dec 29, 2012
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
2020-04-01 16:00:56 -07:00
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
2015-07-10 06:01:56 -07:00
typedef void (*CommandHandler)(char *);
#include "efifeatures.h"
#include "datalogging.h"
void consolePutChar(int x);
void consoleOutputBuffer(const uint8_t *buf, int size);
void startConsole(Logging *sharedLogger, CommandHandler console_line_callback_p);
2016-02-13 18:02:14 -08:00
void onDataArrived(void);
2015-07-10 06:01:56 -07:00
#if EFI_PROD_CODE || EFI_SIMULATOR || EFI_EGT
2017-01-05 01:03:02 -08:00
bool isCommandLineConsoleReady(void);
bool isUsbSerial(BaseChannel * channel);
BaseChannel * getConsoleChannel(void);
2015-07-10 06:01:56 -07:00
#else
2017-01-05 01:03:02 -08:00
#define isCommandLineConsoleReady() true
2015-07-10 06:01:56 -07:00
#endif