X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fax12_user.c;h=6bb8129cdbb1154b08bb258c97ec176024eb2929;hp=de5bb88bd24bf513b00c70f6c3dfa234d2a2ed41;hb=ebfaaedd491e61696cc93b353471be15408d23e4;hpb=99768092f81d0e183b61682e832abd0263472d2d diff --git a/projects/microb2010/mainboard/ax12_user.c b/projects/microb2010/mainboard/ax12_user.c index de5bb88..6bb8129 100644 --- a/projects/microb2010/mainboard/ax12_user.c +++ b/projects/microb2010/mainboard/ax12_user.c @@ -86,6 +86,8 @@ * 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; @@ -163,14 +165,18 @@ static void ax12_switch_uart(uint8_t state) 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 }