SPI communication bandwidth was changed to 10 MHz for faster data transfers.

Dependents:   DifferentialDriveRobot

Files at this revision

API Documentation at this revision

Comitter:
kcherfou
Date:
Tue Oct 08 13:34:05 2019 +0000
Parent:
0:8ae48233b4e4
Commit message:
changed the SPI serial communication speed to 10 MHz

Changed in this revision

nRF24L01P.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8ae48233b4e4 -r eefb4f0c0b19 nRF24L01P.cpp
--- a/nRF24L01P.cpp	Wed Jan 19 22:59:48 2011 +0000
+++ b/nRF24L01P.cpp	Tue Oct 08 13:34:05 2019 +0000
@@ -184,7 +184,7 @@
 
     nCS_ = 1;
 
-    spi_.frequency(_NRF24L01P_SPI_MAX_DATA_RATE/5);     // 2Mbit, 1/5th the maximum transfer rate for the SPI bus
+    spi_.frequency(_NRF24L01P_SPI_MAX_DATA_RATE);     // 2Mbit, 1/5th the maximum transfer rate for the SPI bus
     spi_.format(8,0);                                   // 8-bit, ClockPhase = 0, ClockPolarity = 0
 
     wait_us(_NRF24L01P_TIMING_Tundef2pd_us);    // Wait for Power-on reset