X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fax12_user.c;h=880f16062f805af4ddd03f26b2565bd149a5ec31;hp=575f5bcc2ccabd468a8086d64a0db885efd84fe1;hb=HEAD;hpb=5918edd6f4f713ef3c8b0b0020dd30a4fb8222ae diff --git a/projects/microb2010/mainboard/ax12_user.c b/projects/microb2010/mainboard/ax12_user.c index 575f5bc..880f160 100644 --- a/projects/microb2010/mainboard/ax12_user.c +++ b/projects/microb2010/mainboard/ax12_user.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include @@ -86,8 +86,9 @@ * 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 @@ -163,14 +164,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 }