5 * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
12 #include "drv/spi_tms570.h"
14 UL_LIST_CUST_DEC(spi_rq_queue, spi_drv_t, spi_msg_head_t, rq_queue, node)
16 /* ------------------------------------------------------------------------- */
18 //typedef unsigned long spi_isr_lock_level_t;
19 //#define spi_isr_lock save_and_cli
20 //#define spi_isr_unlock restore_flags
22 /* ------------------------------------------------------------------------- */
23 int spi_transfer(spi_drv_t *ifc, int addr, int rq_len, const void *tx_buf, void *rx_buf);
24 //spi_drv_t *spi_find_drv(char *name, int number);
25 int spi_msg_rq_ins(spi_drv_t *ifc, spi_msg_head_t *msg);
27 #endif /* _SPI_DRV_H_ */