aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/Win32/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/Win32/console.c')
-rw-r--r--os/hal/platforms/Win32/console.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/platforms/Win32/console.c b/os/hal/platforms/Win32/console.c
index e6e9a1be8..c7b71823a 100644
--- a/os/hal/platforms/Win32/console.c
+++ b/os/hal/platforms/Win32/console.c
@@ -28,11 +28,23 @@
#include "ch.h"
#include "console.h"
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
/**
* @brief Console driver 1.
*/
BaseChannel CD1;
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
static bool_t putwouldblock(void *ip) {
(void)ip;
@@ -65,6 +77,14 @@ static const struct BaseChannelVMT vmt = {
{putwouldblock, getwouldblock, put, get}
};
+/*===========================================================================*/
+/* Driver interrupt handlers. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
void conInit(void) {
CD1.vmt = &vmt;