Cambio de pin de entrada digital a PA10

Dependencies:   BufferedSerial PinDetect mbed

Fork of DTK-MEGAPACA_NUCLEO by Felícito Manzano

Revision:
9:04f9da6bc784
Parent:
7:0ec9cc5b9fe0
--- a/funciones_basicas.h	Fri Jan 19 19:08:06 2018 +0000
+++ b/funciones_basicas.h	Mon Feb 12 14:27:53 2018 -0600
@@ -34,7 +34,7 @@
     return(0);
 }
 
-int booting_gtdat(BufferedSerial *puerto_cp, Serial *puerto_usb)
+int iniciando(BufferedSerial *puerto_cp)
 {
     /*
     Esta función recibe los puertos Seriales del GV300 y de la PC
@@ -43,24 +43,21 @@
     */
     puerto_cp -> printf("%s\r\n", RESET_TXT);
     wait_ms(T_TX);
-    puerto_usb -> printf("\r\n*** BOOTING ***\r\n");
-    puerto_usb -> printf("VSR de Centroamerica\r\n");
-    puerto_usb -> printf("Serial Port - OK\r\n");
-    wait_ms(T_TX);
     return(0);
 }
 
-int leer_uart(BufferedSerial *puerto, char buffer[128])
+bool leer_uart(BufferedSerial *puerto, char buffer[128])
 {
     /* Esta función se encarga de leer el puerto serial y
     almacenar la respuesta en un buffer de datos de entrada.
     Si se lee información, la función devuelve 1, sino 0. */
 
-    int w = 0;
-    int x = 0;
+    bool    x = false;
+    int     w = 0;
+    
 
     if (puerto -> readable()) {
-        x = 1;
+        x = true;
         while (puerto -> readable()) {
             char incoming_char = puerto -> getc();
             buffer[w] = incoming_char;