diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-22 14:21:07 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-22 14:21:07 +0000 |
commit | d331d00a2d18654ff5ea493adb194fc4a8aa5976 (patch) | |
tree | 1a83be2570035f6fc926433a487a2522223998c0 /firmware/target/arm/olympus/mrobe-500 | |
parent | 376169ab957b38902f58e4e531c4600f79bd4424 (diff) | |
download | rockbox-d331d00a2d18654ff5ea493adb194fc4a8aa5976.tar.gz rockbox-d331d00a2d18654ff5ea493adb194fc4a8aa5976.zip |
start of the tsc2100 driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-500')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-500/spi-mr500.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/olympus/mrobe-500/spi-target.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/spi-mr500.c b/firmware/target/arm/olympus/mrobe-500/spi-mr500.c index 6c0d4b5990..8aeecd97f2 100644 --- a/firmware/target/arm/olympus/mrobe-500/spi-mr500.c +++ b/firmware/target/arm/olympus/mrobe-500/spi-mr500.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #define clr_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITSET1) | 31 | #define clr_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITSET1) |
32 | #define set_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITCLR1) | 32 | #define set_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITCLR1) |
33 | 33 | ||
34 | int dm320_spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size, | 34 | int spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size, |
35 | uint8_t *rx_bytes, unsigned int rx_size) | 35 | uint8_t *rx_bytes, unsigned int rx_size) |
36 | { | 36 | { |
37 | /* Activate the slave select pin */ | 37 | /* Activate the slave select pin */ |
38 | set_gio_enable(); | 38 | set_gio_enable(); |
@@ -63,7 +63,7 @@ int dm320_spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size, | |||
63 | return 0; | 63 | return 0; |
64 | } | 64 | } |
65 | 65 | ||
66 | void dm320_spi_init(void) | 66 | void spi_init(void) |
67 | { | 67 | { |
68 | /* Set SCLK idle level = 0 */ | 68 | /* Set SCLK idle level = 0 */ |
69 | IO_SERIAL0_MODE |= (1<<10); | 69 | IO_SERIAL0_MODE |= (1<<10); |
diff --git a/firmware/target/arm/olympus/mrobe-500/spi-target.h b/firmware/target/arm/olympus/mrobe-500/spi-target.h index ebaacb45a0..29aff47903 100644 --- a/firmware/target/arm/olympus/mrobe-500/spi-target.h +++ b/firmware/target/arm/olympus/mrobe-500/spi-target.h | |||
@@ -22,8 +22,8 @@ | |||
22 | 22 | ||
23 | #include <inttypes.h> | 23 | #include <inttypes.h> |
24 | 24 | ||
25 | void dm320_spi_init(void); | 25 | void spi_init(void); |
26 | int dm320_spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size, | 26 | int spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size, |
27 | uint8_t *rx_bytes, unsigned int rx_size); | 27 | uint8_t *rx_bytes, unsigned int rx_size); |
28 | 28 | ||
29 | #endif | 29 | #endif |