diff options
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 |