KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
57:bd53a9e165a1
Parent:
56:7a85d226ad0d
Child:
58:26658a56112a
--- a/RA8875.h	Mon Mar 31 23:35:51 2014 +0000
+++ b/RA8875.h	Wed Apr 16 22:18:19 2014 +0000
@@ -1157,6 +1157,24 @@
     ///
     virtual RetCode_t _EndGraphicsStream(void);
 
+    /// Set the SPI port frequency (in Hz).
+    ///
+    /// @note attempts to call this API at runtime, with the display
+    ///         already online, cause the system to lockup. 
+    ///         Investigation continues.
+    ///
+    /// This uses the mbed SPI driver, and is therefore dependent on
+    /// its capabilities. Limited tests were performed for the display
+    /// in the range of 1,000,000 to 10,000,000 Hz. The display was
+    /// a bit erratic above 5,000,000 Hz, so this became the default,
+    /// even though it might have been the bench-level wiring that posed
+    /// the limit.
+    ///
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    RetCode_t frequency(unsigned long Hz = RA8875_DEFAULT_SPI_FREQ);
+    
+
 #ifdef PERF_METRICS
     /// Clear the performance metrics to zero.
     void ClearPerformance();
@@ -1239,24 +1257,6 @@
 #define TPBUFSIZE   16       // Depth of the averaging buffers for x and y data
 
 
-    /// Set the SPI port frequency (in Hz).
-    ///
-    /// @note attempts to call this API at runtime, with the display
-    ///         already online, cause the system to lockup. 
-    ///         Not sure why, so moving this to private to run once.
-    ///
-    /// This uses the mbed SPI driver, and is therefore dependent on
-    /// its capabilities. Limited tests were performed for the display
-    /// in the range of 1,000,000 to 50,000,000 Hz. The display was
-    /// a bit erratic above 20,000,000 Hz, so this became the default,
-    /// even though it might have been the bench-level wiring that posed
-    /// the limit.
-    ///
-    /// @returns success/failure code. @see RetCode_t.
-    ///
-    RetCode_t frequency(unsigned long Hz = RA8875_DEFAULT_SPI_FREQ);
-    
-
     /// Initialize the chip, which is normally done as part of the
     /// constructor, so not called by the user.
     ///