KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
155:b3f225ae572c
Parent:
154:ad2450fc3dc3
Child:
156:4bdb2772128d
--- a/RA8875.h	Fri Aug 17 01:29:06 2018 +0000
+++ b/RA8875.h	Tue Nov 13 01:33:41 2018 +0000
@@ -1006,10 +1006,10 @@
     ///             non-volatile memory to recover the calibration after a power fail.
     /// @param[in] maxwait_s is the maximum number of seconds to wait for a touch
     ///             calibration. If no touch panel installed, it then reports
-    ///             touch_cal_timeout.
+    ///             touch_cal_timeout. Default: 30 s.
     /// @returns success/failure code. See @ref RetCode_t.
     ///
-    RetCode_t TouchPanelCalibrate(const char * msg, tpMatrix_t * matrix = NULL, int maxwait_s = 15);
+    RetCode_t TouchPanelCalibrate(const char * msg, tpMatrix_t * matrix = NULL, int maxwait_s = 30);
 
 
     /// Set the calibration matrix for the touch panel.
@@ -2791,6 +2791,10 @@
 
     touchInfo_T touchInfo[5];   /// Contains the actual touch information in an array from 0 to n-1
 
+    #if MBED_VERSION >= MBED_ENCODE_VERSION(5,8,0)
+    Thread eventThread;
+    EventQueue queue;
+    #endif
     InterruptIn * m_irq;
     I2C * m_i2c;
     int m_addr;