diff options
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-500/spi-mr500.c')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-500/spi-mr500.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/spi-mr500.c b/firmware/target/arm/olympus/mrobe-500/spi-mr500.c index 8aeecd97f2..c47ab8f6ed 100644 --- a/firmware/target/arm/olympus/mrobe-500/spi-mr500.c +++ b/firmware/target/arm/olympus/mrobe-500/spi-mr500.c | |||
@@ -28,8 +28,8 @@ | |||
28 | #include "system.h" | 28 | #include "system.h" |
29 | 29 | ||
30 | #define GIO_TS_ENABLE (1<<2) | 30 | #define GIO_TS_ENABLE (1<<2) |
31 | #define clr_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITSET1) | 31 | #define clr_gio_enable() IO_GIO_BITSET1=GIO_TS_ENABLE |
32 | #define set_gio_enable() outw(GIO_TS_ENABLE, IO_GIO_BITCLR1) | 32 | #define set_gio_enable() IO_GIO_BITCLR1=GIO_TS_ENABLE |
33 | 33 | ||
34 | int 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) |
@@ -72,6 +72,6 @@ void spi_init(void) | |||
72 | IO_SERIAL0_TX_ENABLE = 0x0001; | 72 | IO_SERIAL0_TX_ENABLE = 0x0001; |
73 | 73 | ||
74 | /* Set GIO 18 to output for touch screen slave enable */ | 74 | /* Set GIO 18 to output for touch screen slave enable */ |
75 | outw(inw(IO_GIO_DIR1)&~GIO_TS_ENABLE, IO_GIO_DIR1); | 75 | IO_GIO_DIR1&=~GIO_TS_ENABLE; |
76 | clr_gio_enable(); | 76 | clr_gio_enable(); |
77 | } | 77 | } |