From 7fbfde42aabbcd30cffba2fba35158236c0a6c6c Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 25 May 2013 01:26:52 +1000 Subject: GOS module, for operating system independance GMISC fast floating point trig GMISC fast fixed point trig --- include/gwin/console.h | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'include/gwin') diff --git a/include/gwin/console.h b/include/gwin/console.h index 55bad841..1fc19e42 100644 --- a/include/gwin/console.h +++ b/include/gwin/console.h @@ -40,10 +40,12 @@ typedef struct GConsoleObject_t { GWindowObject gwin; - struct GConsoleWindowStream_t { - const struct GConsoleWindowVMT_t *vmt; - _base_asynchronous_channel_data - } stream; + #if GFX_USE_OS_CHIBIOS + struct GConsoleWindowStream_t { + const struct GConsoleWindowVMT_t *vmt; + _base_asynchronous_channel_data + } stream; + #endif coord_t cx,cy; // Cursor position uint8_t fy; // Current font height @@ -78,15 +80,19 @@ extern "C" { */ GHandle gwinCreateConsole(GConsoleObject *gc, coord_t x, coord_t y, coord_t width, coord_t height, font_t font); -/** - * @brief Get a stream from a console window suitable for use with chprintf(). - * @return The stream handle or NULL if this is not a console window. - * - * @param[in] gh The window handle (must be a console window) - * - * @api - */ -BaseSequentialStream *gwinGetConsoleStream(GHandle gh); +#if GFX_USE_OS_CHIBIOS + /** + * @brief Get a stream from a console window suitable for use with chprintf(). + * @return The stream handle or NULL if this is not a console window. + * + * @param[in] gh The window handle (must be a console window) + * + * @note Only useful in ChibiOS + * + * @api + */ + BaseSequentialStream *gwinGetConsoleStream(GHandle gh); +#endif /** * @brief Put a character at the cursor position in the window. -- cgit v1.2.3