diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-07 22:04:12 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-07 22:04:12 +0000 |
commit | 28d1af853c5e853e69991b29b5acc6b2e3b1abfe (patch) | |
tree | 834e0fc6f66569d500e60b036a66e0bcb01dc259 /firmware/export/spi.h | |
parent | 12ef8723f8f69ab70e2af7ac8a2cc4b7bf319b96 (diff) | |
download | rockbox-28d1af853c5e853e69991b29b5acc6b2e3b1abfe.tar.gz rockbox-28d1af853c5e853e69991b29b5acc6b2e3b1abfe.zip |
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
Diffstat (limited to 'firmware/export/spi.h')
-rw-r--r-- | firmware/export/spi.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/spi.h b/firmware/export/spi.h index e6042631d2..93b531b7f3 100644 --- a/firmware/export/spi.h +++ b/firmware/export/spi.h | |||
@@ -20,6 +20,15 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #ifndef __SPI_H__ | 21 | #ifndef __SPI_H__ |
22 | #define __SPI_H__ | 22 | #define __SPI_H__ |
23 | #include "spi-target.h" | 23 | |
24 | #include <inttypes.h> | ||
25 | #include <stdbool.h> | ||
26 | #include "spi-target.h" /* for SPI_target */ | ||
27 | |||
28 | void spi_init(void); | ||
29 | int spi_block_transfer(enum SPI_target target, | ||
30 | const uint8_t *tx_bytes, unsigned int tx_size, | ||
31 | uint8_t *rx_bytes, unsigned int rx_size); | ||
32 | |||
24 | 33 | ||
25 | #endif | 34 | #endif |