From 5de2e9ac86f4cbc4750cdf314891412ccc554985 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 26 Sep 2012 00:05:24 +0200 Subject: implemented touchpad calibration storage interface --- include/touchpad.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/touchpad.h b/include/touchpad.h index d96ea51c..4d4931fe 100644 --- a/include/touchpad.h +++ b/include/touchpad.h @@ -52,6 +52,10 @@ /* Type definitions */ /*===========================================================================*/ +#ifndef TOUCHPAD_STORE_CALIBRATION + #define TOUCHPAD_STORE_CALIBRATION FALSE +#endif + /** * @brief Struct used for calibration */ @@ -83,6 +87,11 @@ void tpCalibrate(void); uint16_t tpReadZ(void); #endif +#if TOUCHPAD_STORE_CALIBRATION + extern void lld_tpWriteCalibration(struct cal cal); + extern struct cal lld_tpReadCalibration(void); +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3