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 69bdec6..33f0b63 100644
--- a/fw/spi.c
+++ b/fw/spi.c
@@ -16,7 +16,7 @@ spiInit(void) {
TRISB6 = OUT; // SCK
SSPSTAT = 0x40; // CKE=1
- SSPCON1 = 0x22; // FOSC/64 => 750kHz SPI clock
+ SSPCON1 = 0x21; // FOSC/16 => 3MHz SPI clock
junk = SSPBUF; // dummy read to clear BF
(void)junk;
}