summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b9ba07)
/**
* \name Overridable SPI hooks
*
/**
* \name Overridable SPI hooks
*
static unsigned char uart1_txbuffer[CONFIG_UART1_TXBUFSIZE];
static unsigned char uart1_rxbuffer[CONFIG_UART1_RXBUFSIZE];
static unsigned char uart1_txbuffer[CONFIG_UART1_TXBUFSIZE];
static unsigned char uart1_rxbuffer[CONFIG_UART1_RXBUFSIZE];
+#ifdef NOT_FOR_ARM_PORT_IT
static unsigned char spi_txbuffer[CONFIG_SPI_TXBUFSIZE];
static unsigned char spi_rxbuffer[CONFIG_SPI_RXBUFSIZE];
#endif
static unsigned char spi_txbuffer[CONFIG_SPI_TXBUFSIZE];
static unsigned char spi_rxbuffer[CONFIG_SPI_RXBUFSIZE];
#endif
struct Serial *ser_uart0 = &ser_handles[SER_UART0];
struct Serial *ser_uart1 = &ser_handles[SER_UART1];
struct Serial *ser_uart0 = &ser_handles[SER_UART0];
struct Serial *ser_uart1 = &ser_handles[SER_UART1];
+#ifdef NOT_FOR_ARM_PORT_IT
struct Serial *ser_spi = &ser_handles[SER_SPI];
#endif
struct Serial *ser_spi = &ser_handles[SER_SPI];
#endif
+#ifdef NOT_FOR_ARM_PORT_IT
static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct Serial *, ser))
{
/*
static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct Serial *, ser))
{
/*
C99INIT(txSending, tx_sending),
};
C99INIT(txSending, tx_sending),
};
+#ifdef NOT_FOR_ARM_PORT_IT
static const struct SerialHardwareVT SPI_VT =
{
C99INIT(init, spi_init),
static const struct SerialHardwareVT SPI_VT =
{
C99INIT(init, spi_init),
},
C99INIT(sending, false),
},
},
C99INIT(sending, false),
},
+#ifdef NOT_FOR_ARM_PORT_IT
{
C99INIT(hw, /**/) {
C99INIT(table, &SPI_VT),
{
C99INIT(hw, /**/) {
C99INIT(table, &SPI_VT),