]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blob - rpp/lib/rpp/include/hal/spi.h
Yet another place to fix
[pes-rpp/rpp-test-sw.git] / rpp / lib / rpp / include / hal / spi.h
1 #ifndef _SPI_DRV_H_
2 #define _SPI_DRV_H_
3
4 //#include "sys_common.h"
5 //#include "string.h"
6 //#include "cpu_def.h"
7 #include "hal/hal.h"
8
9
10 UL_LIST_CUST_DEC(spi_rq_queue, spi_drv_t, spi_msg_head_t, rq_queue, node)
11
12 /* ------------------------------------------------------------------------- */
13
14 //typedef unsigned long spi_isr_lock_level_t;
15 //#define spi_isr_lock    save_and_cli
16 //#define  spi_isr_unlock restore_flags
17
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);
22
23 #endif /* _SPI_DRV_H_ */