]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
accelerate spi
authorOlivier Matz <zer0@droids-corp.org>
Tue, 4 Mar 2014 20:51:42 +0000 (21:51 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 9 Mar 2014 21:13:08 +0000 (22:13 +0100)
spi_servo.c

index 917769c6250260ab57091fb7464ec3aa53931a7a..4d4553b5bca6d37a0ea1a1b0def46390827a5148 100644 (file)
@@ -182,8 +182,8 @@ void spi_servo_init(void)
        /* remove power reduction on spi */
        PRR0 &= ~(1 << PRSPI);
 
-       /* Enable SPI, Master, set clock rate fck/64 */
-       SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR1);
+       /* Enable SPI, Master, set clock rate fck/16 */
+       SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0);
 
        SS_HIGH();