aboutsummaryrefslogtreecommitdiffstats
path: root/fw/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/spi.c')
-rw-r--r--fw/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/spi.c b/fw/spi.c
index 9198ab1..c8abe71 100644
--- a/fw/spi.c
+++ b/fw/spi.c
@@ -15,7 +15,7 @@ spiInit(void) {
TRISCbits.TRISC7 = OUT; // SDO
TRISBbits.TRISB6 = OUT; // SCK
- SSPSTAT = 0x00;
+ SSPSTAT = 0x40; // CKE=1
SSPCON1 = 0x22; // FOSC/64 => 750kHz SPI clock
junk = SSPBUF; // dummy read to clear BF
(void)junk;