* DDR to manage the port directions.
*/
+#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
IRQ_UNLOCK(flags);
}
}
-
+#endif
void ax12_user_init(void)
{
+#ifdef HOST_VERSION
+ return;
+#else
/* AX12 */
AX12_init(&gen.ax12);
AX12_set_hardware_send(&gen.ax12, ax12_send_char);
AX12_set_hardware_recv(&gen.ax12, ax12_recv_char);
AX12_set_hardware_switch(&gen.ax12, ax12_switch_uart);
uart_register_tx_event(UART_AX12_NUM, ax12_send_callback);
+#endif
}