forked from len0rd/rockbox
Clean spi.h and spi-target.h
Only target-specific (list of SPI targets) go in spi-target.h API go into spi.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12ef8723f8
commit
28d1af853c
6 changed files with 19 additions and 20 deletions
|
|
@ -20,6 +20,15 @@
|
|||
****************************************************************************/
|
||||
#ifndef __SPI_H__
|
||||
#define __SPI_H__
|
||||
#include "spi-target.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include "spi-target.h" /* for SPI_target */
|
||||
|
||||
void spi_init(void);
|
||||
int spi_block_transfer(enum SPI_target target,
|
||||
const uint8_t *tx_bytes, unsigned int tx_size,
|
||||
uint8_t *rx_bytes, unsigned int rx_size);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue