HXC Client Shield Repository.

Dependencies:   mbed

Revision:
3:5e1a54378107
Parent:
0:bacc6e701fb4
--- a/Driver/debug.c	Mon Mar 29 15:37:08 2021 +0000
+++ b/Driver/debug.c	Mon Apr 19 17:43:09 2021 +0000
@@ -48,6 +48,7 @@
 #include <stdarg.h>
 #include "hw.h"
 #include "tiny_vsnprintf.h"
+#include "debug.h"
 
 static UART_HandleTypeDef debugUart;
 static char buffTx[256];
@@ -161,6 +162,21 @@
   va_end(args);
 }
 
+uint8_t Debug_Read_Char(char * c)
+{
+	if(HW_UART_Modem_IsNewCharReceived()){
+		  HW_UART_Modem_GetNewChar();
+//		  DBG_PRINTF("Debug RX %c \n\r",*c);
+		  return 1;
+	}
+	return 0;
+}
+
+void Debug_Reset_Input_Buffer(void)
+{
+	HW_UART_ResetBuffer();
+}
+
 /**
   * @brief Error_Handler
   * @param None