} while (0)
#endif
+#if 0
/**
* \name Overridable SPI hooks
*
#define SER_SPI_BUS_TXCLOSE
#endif
/*\}*/
-
+#endif
/**
* \def CONFIG_SER_STROBE
static unsigned char uart1_txbuffer[CONFIG_UART1_TXBUFSIZE];
static unsigned char uart1_rxbuffer[CONFIG_UART1_RXBUFSIZE];
+#if 0
static unsigned char spi_txbuffer[CONFIG_SPI_TXBUFSIZE];
static unsigned char spi_rxbuffer[CONFIG_SPI_RXBUFSIZE];
+#endif
/**
* Internal hardware state structure
*/
struct Serial *ser_uart0 = &ser_handles[SER_UART0];
struct Serial *ser_uart1 = &ser_handles[SER_UART1];
+
+#if 0
struct Serial *ser_spi = &ser_handles[SER_SPI];
+#endif
static void uart0_irq_dispatcher(void);
static void uart1_irq_dispatcher(void);
}
/* SPI driver */
-
+#if 0
static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct Serial *, ser))
{
/*
{
// nop
}
-
+#endif
static bool tx_sending(struct SerialHardware* _hw)
C99INIT(txSending, tx_sending),
};
+#if 0
static const struct SerialHardwareVT SPI_VT =
{
C99INIT(init, spi_init),
C99INIT(txStart, spi_starttx),
C99INIT(txSending, tx_sending),
};
+#endif
static struct ArmSerial UARTDescs[SER_CNT] =
{
},
C99INIT(sending, false),
},
+#if 0
{
C99INIT(hw, /**/) {
C99INIT(table, &SPI_VT),
},
C99INIT(sending, false),
}
+#endif
};
struct SerialHardware *ser_hw_getdesc(int unit)