From c51096f8f271a3f1d8b5254ac920e1eae263ad5a Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 23 Oct 2012 06:30:17 +0200 Subject: [PATCH] renamed calibration storage interface --- src/touchpad.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/touchpad.c b/src/touchpad.c index ee0bac77..bf6936d7 100644 --- a/src/touchpad.c +++ b/src/touchpad.c @@ -1,5 +1,4 @@ -/* - ChibiOS/GFX - Copyright (C) 2012 +/* ChibiOS/GFX - Copyright (C) 2012 Joel Bodenmann aka Tectu This file is part of ChibiOS/GFX. @@ -33,8 +32,8 @@ #if GFX_USE_TOUCHPAD || defined(__DOXYGEN__) #if TOUCHPAD_STORE_CALIBRATION -extern void lld_tpWriteCalibration(struct cal_t *cal); -extern struct cal_t *lld_tpReadCalibration(void); +extern void tp_store_calibration_lld(struct cal_t *cal); +extern struct cal_t *tp_restore_calibration_lld(void); #endif /*===========================================================================*/ @@ -143,7 +142,7 @@ void tpInit(const TOUCHPADDriver *tp) { //MUTEX_EXIT #if TOUCHPAD_STORE_CALIBRATION - cal = lld_tpReadCalibration(); + cal = tp_restore_calibration_lld(); if(cal == NULL) { cal = (struct cal_t*)chHeapAlloc(NULL, sizeof(struct cal_t)); tpCalibrate(); @@ -243,7 +242,7 @@ void tpCalibrate(void) { cal->yn = (float)cross[0][1] - cal->ym * (float)points[0][1]; #if TOUCHPAD_STORE_CALIBRATION - lld_tpWriteCalibration(cal); + tp_store_calibration_lld(cal); #endif }