]> git.droids-corp.org - protos/xbee-avr.git/blobdiff - cmdline.h
add missing #ifndef to protect header files
[protos/xbee-avr.git] / cmdline.h
index 724f5ef9792d0bfbf2ff968e053f6a39259e007a..58798a31a7c9cdb0b1351fcdf045ff75797c7dbc 100644 (file)
--- a/cmdline.h
+++ b/cmdline.h
  *
  */
 
+#ifndef _CMDLINE_H_
+#define _CMDLINE_H_
 
-#define CMDLINE_UART 0
-#define XBEE_UART 2
+#define CMDLINE_UART 1
+#define XBEE_UART 0
 
 void cmdline_init(void);
 
@@ -55,3 +57,5 @@ static inline uint8_t cmdline_getchar_wait(void)
 {
        return uart_recv(CMDLINE_UART);
 }
+
+#endif /* _CMDLINE_H_ */