*
* @file spi_resp_transl.h
*
- * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
+ * @copyright Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* @author Michal Horn <hornmich@fel.cvut.cz>
+ *
+ * This document contains proprietary information belonging to Czech
+ * Technical University in Prague. Passing on and copying of this
+ * document, and communication of its contents is not permitted
+ * without prior written authorization.
*/
#ifndef _MYSPI_H_
} spi_dev_t;
/* SPI interface */
-typedef struct spi_tms570_drv {
+typedef struct spi_tms570_iface {
spi_drv_t spi_drv;
- spiBASE_compat_t *spi; /* Base Reg. for SPI device register array */
+ spiBASE_compat_t *reg; /* Base Reg. for SPI device register array */
unsigned txcnt; /* No. of transfered bytes for msg_act */
unsigned rxcnt; /* No. of received bytes for msg_act */
spi_dev_t *spi_devs; /* Pointer to table holding information about SPI devices bound to the interface */
uint32_t transfer_ctrl; /* Transfer configuration -- upper 16 bits of SPIDAT1 register */
-} spi_tms570_drv_t;
+} spi_tms570_iface_t;
-//extern spi_tms570_drv_t spi_tms570_ifcs[4];
+//extern spi_tms570_iface_t spi_tms570_ifcs[4];
//extern spi_dev_t spi_devs[];
-int spi_tms570_init(void);
+int spi_tms570_init(spi_tms570_iface_t *ifcs, int count);
spi_drv_t *spi_find_drv(char *name, int number);