FIFOs exported
authorzer0 <zer0@carbon.local>
Fri, 7 May 2010 23:00:17 +0000 (01:00 +0200)
committerzer0 <zer0@carbon.local>
Fri, 7 May 2010 23:00:17 +0000 (01:00 +0200)
projects/microb2010/mainboard/ax12_user.c
projects/microb2010/mainboard/uart_config.h

index 6bb8129..880f160 100644 (file)
@@ -89,7 +89,6 @@
 #ifndef HOST_VERSION
 
 static volatile uint8_t ax12_state = AX12_STATE_READ;
-extern volatile struct cirbuf g_tx_fifo[]; /* uart fifo */
 static volatile uint8_t ax12_nsent = 0;
 
 /* Called by ax12 module to send a character on serial line. Count the
index 514d1e9..dc6117a 100644 (file)
@@ -1,6 +1,6 @@
-/*  \r
+/*\r
  *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)\r
- * \r
+ *\r
  *  This program is free software; you can redistribute it and/or modify\r
  *  it under the terms of the GNU General Public License as published by\r
  *  the Free Software Foundation; either version 2 of the License, or\r
 #define UART_CONFIG_H\r
 \r
 /*\r
- * UART1 definitions \r
+ * UART0 definitions\r
  */\r
 \r
-/* compile uart1 fonctions, undefine it to pass compilation */\r
-#define UART1_COMPILE  \r
+/* compile uart0 fonctions, undefine it to pass compilation */\r
+#define UART0_COMPILE\r
 \r
-/* enable uart1 if == 1, disable if == 0 */\r
-#define UART1_ENABLED  1\r
+/* enable uart0 if == 1, disable if == 0 */\r
+#define UART0_ENABLED  1\r
 \r
-/* enable uart1 interrupts if == 1, disable if == 0 */\r
-#define UART1_INTERRUPT_ENABLED  1\r
+/* enable uart0 interrupts if == 1, disable if == 0 */\r
+#define UART0_INTERRUPT_ENABLED  1\r
 \r
-#define UART1_BAUDRATE 57600\r
+#define UART0_BAUDRATE 57600\r
 \r
-/* \r
- * if you enable this, the maximum baudrate you can reach is \r
- * higher, but the precision is lower. \r
+/*\r
+ * if you enable this, the maximum baudrate you can reach is\r
+ * higher, but the precision is lower.\r
  */\r
-#define UART1_USE_DOUBLE_SPEED 1\r
-\r
-#define UART1_RX_FIFO_SIZE 64\r
-#define UART1_TX_FIFO_SIZE 127\r
-#define UART1_NBITS 8\r
+#define UART0_USE_DOUBLE_SPEED 1\r
 \r
-#define UART1_PARITY UART_PARTITY_NONE\r
+#define UART0_RX_FIFO_SIZE 64\r
+#define UART0_TX_FIFO_SIZE 64\r
+#define UART0_NBITS 8\r
 \r
-#define UART1_STOP_BIT UART_STOP_BITS_1\r
+#define UART0_PARITY UART_PARTITY_NONE\r
 \r
+#define UART0_STOP_BIT UART_STOP_BITS_1\r
 \r
 /*\r
- * UART3 definitions \r
+ * UART1 definitions\r
  */\r
 \r
-/* compile uart3 fonctions, undefine it to pass compilation */\r
-#define UART3_COMPILE  \r
+/* compile uart1 fonctions, undefine it to pass compilation */\r
+#define UART1_COMPILE\r
 \r
-/* enable uart3 if == 1, disable if == 0 */\r
-#define UART3_ENABLED  1\r
+/* enable uart1 if == 1, disable if == 0 */\r
+#define UART1_ENABLED  1\r
 \r
-/* enable uart3 interrupts if == 1, disable if == 0 */\r
-#define UART3_INTERRUPT_ENABLED  1\r
+/* enable uart1 interrupts if == 1, disable if == 0 */\r
+#define UART1_INTERRUPT_ENABLED  1\r
 \r
-#define UART3_BAUDRATE 57600\r
+#define UART1_BAUDRATE 57600\r
 \r
-/* \r
- * if you enable this, the maximum baudrate you can reach is \r
- * higher, but the precision is lower. \r
+/*\r
+ * if you enable this, the maximum baudrate you can reach is\r
+ * higher, but the precision is lower.\r
  */\r
-#define UART3_USE_DOUBLE_SPEED 1\r
-\r
-#define UART3_RX_FIFO_SIZE 64\r
-#define UART3_TX_FIFO_SIZE 64\r
-#define UART3_NBITS 8\r
-\r
-#define UART3_PARITY UART_PARTITY_NONE\r
-\r
-#define UART3_STOP_BIT UART_STOP_BITS_1\r
+#define UART1_USE_DOUBLE_SPEED 1\r
 \r
+#define UART1_RX_FIFO_SIZE 64\r
+#define UART1_TX_FIFO_SIZE 127\r
+#define UART1_NBITS 8\r
 \r
+#define UART1_PARITY UART_PARTITY_NONE\r
 \r
+#define UART1_STOP_BIT UART_STOP_BITS_1\r
 \r
 /* .... same for uart 1, 2, 3 ... */\r
 \r