diff options
Diffstat (limited to 'os/hal/platforms/Linux/console.c')
-rw-r--r-- | os/hal/platforms/Linux/console.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/platforms/Linux/console.c b/os/hal/platforms/Linux/console.c index e6e9a1be8..c7b71823a 100644 --- a/os/hal/platforms/Linux/console.c +++ b/os/hal/platforms/Linux/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;
|