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/target/arm/tms320dm320/spi-target.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/target/arm/tms320dm320/spi-target.h')
-rw-r--r-- | firmware/target/arm/tms320dm320/spi-target.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/firmware/target/arm/tms320dm320/spi-target.h b/firmware/target/arm/tms320dm320/spi-target.h index 013737b291..965d499377 100644 --- a/firmware/target/arm/tms320dm320/spi-target.h +++ b/firmware/target/arm/tms320dm320/spi-target.h | |||
@@ -22,23 +22,15 @@ | |||
22 | #ifndef SPI_TARGET_H | 22 | #ifndef SPI_TARGET_H |
23 | #define SPI_TARGET_H | 23 | #define SPI_TARGET_H |
24 | 24 | ||
25 | #include <inttypes.h> | ||
26 | #include <stdbool.h> | ||
27 | |||
28 | enum SPI_target { | 25 | enum SPI_target { |
29 | #ifndef CREATIVE_ZVx | 26 | #if defined(CREATIVE_ZVx) |
27 | SPI_target_LTV250QV = 0, | ||
28 | #elif defined(MROBE_500) | ||
30 | SPI_target_TSC2100 = 0, | 29 | SPI_target_TSC2100 = 0, |
31 | SPI_target_RX5X348AB, | 30 | SPI_target_RX5X348AB, |
32 | SPI_target_BACKLIGHT, | 31 | SPI_target_BACKLIGHT, |
33 | #else | ||
34 | SPI_target_LTV250QV = 0, | ||
35 | #endif | 32 | #endif |
36 | SPI_MAX_TARGETS, | 33 | SPI_MAX_TARGETS, |
37 | }; | 34 | }; |
38 | 35 | ||
39 | void spi_init(void); | ||
40 | int spi_block_transfer(enum SPI_target target, | ||
41 | const uint8_t *tx_bytes, unsigned int tx_size, | ||
42 | uint8_t *rx_bytes, unsigned int rx_size); | ||
43 | |||
44 | #endif | 36 | #endif |