summaryrefslogtreecommitdiff
path: root/src/lpc/ao_spi_lpc.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-21 14:38:00 -0700
committerKeith Packard <keithp@keithp.com>2014-05-30 17:32:53 -0700
commita339a91d64d011add2dfeccd5402af57d932b41a (patch)
tree976e1aa0f7af37b9453672b1f83bbf91588f9dc7 /src/lpc/ao_spi_lpc.c
parent177d3c0333fd4218f01e05c78cbc5f186c8e32c0 (diff)
altos: Hacks to get telegps v1.0 running
Mine is busted, and there are a lot of cc115l kludges in here Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_spi_lpc.c')
-rw-r--r--src/lpc/ao_spi_lpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpc/ao_spi_lpc.c b/src/lpc/ao_spi_lpc.c
index e72b8286..4c0f5714 100644
--- a/src/lpc/ao_spi_lpc.c
+++ b/src/lpc/ao_spi_lpc.c
@@ -103,8 +103,8 @@ ao_spi_channel_init(uint8_t id)
lpc_ssp->cr0 = ((LPC_SSP_CR0_DSS_8 << LPC_SSP_CR0_DSS) |
(LPC_SSP_CR0_FRF_SPI << LPC_SSP_CR0_FRF) |
- (0 << LPC_SSP_CR0_CPOL) |
- (0 << LPC_SSP_CR0_CPHA) |
+ (1 << LPC_SSP_CR0_CPOL) |
+ (1 << LPC_SSP_CR0_CPHA) |
(0 << LPC_SSP_CR0_SCR));
/* Enable the device */