4 //#include "sys_common.h"
10 UL_LIST_CUST_DEC(spi_rq_queue, spi_drv_t, spi_msg_head_t, rq_queue, node)
12 /* ------------------------------------------------------------------------- */
14 //typedef unsigned long spi_isr_lock_level_t;
15 //#define spi_isr_lock save_and_cli
16 //#define spi_isr_unlock restore_flags
18 /* ------------------------------------------------------------------------- */
19 int spi_transfer(spi_drv_t *ifc, int addr, int rq_len, const void *tx_buf, void *rx_buf);
20 //spi_drv_t *spi_find_drv(char *name, int number);
21 int spi_msg_rq_ins(spi_drv_t *ifc, spi_msg_head_t *msg);
23 #endif /* _SPI_DRV_H_ */