/** * @file console_io.h * * @date Dec 29, 2012 * @author Andrey Belomutskiy, (c) 2012-2014 */ #pragma once #ifndef CONSOLE_IO_H_ #define CONSOLE_IO_H_ #include #include #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #include "efifeatures.h" #define GET_CONSOLE_MODE_VALUE() palReadPad(CONSOLE_MODE_SWITCH_PORT, CONSOLE_MODE_SWITCH_PIN) #define SHOULD_INGORE_FLASH() (palReadPad(CONFIG_RESET_SWITCH_PORT, CONFIG_RESET_SWITCH_PIN) == 0) #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ SerialDriver * getConsoleChannel(void); void consolePutChar(int x); void consoleOutputBuffer(const uint8_t *buf, int size); void startConsole(void (*console_line_callback_p)(char *)); bool isConsoleReady(void); bool isSerialOverUart(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CONSOLE_IO_H_ */