aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-10 13:46:18 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-10 13:46:18 +0200
commitb9de7e6ce3f7e3b3344d1893c0516114a91277ae (patch)
treed129359e45157a58b34f40a56cd1b03b1565ac4b
parent267b908689bbe82db9bd4e0f3376e77a14e4dfd9 (diff)
downloaduGFX-b9de7e6ce3f7e3b3344d1893c0516114a91277ae.tar.gz
uGFX-b9de7e6ce3f7e3b3344d1893c0516114a91277ae.tar.bz2
uGFX-b9de7e6ce3f7e3b3344d1893c0516114a91277ae.zip
struct cal -> struct cal_t
-rw-r--r--include/touchpad.h8
-rw-r--r--src/touchpad.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/touchpad.h b/include/touchpad.h
index d168fc0c..8e2d63f8 100644
--- a/include/touchpad.h
+++ b/include/touchpad.h
@@ -59,12 +59,12 @@
/**
* @brief Struct used for calibration
*/
-struct cal {
+typedef struct cal_t {
float xm;
float ym;
float xn;
float yn;
-};
+} cal_t;
/*===========================================================================*/
/* External declarations. */
@@ -88,8 +88,8 @@ void tpCalibrate(void);
#endif
#if TOUCHPAD_STORE_CALIBRATION
- extern void lld_tpWriteCalibration(struct cal cal);
- extern struct cal lld_tpReadCalibration(void);
+ extern void lld_tpWriteCalibration(struct cal_t cal);
+ extern struct cal_t lld_tpReadCalibration(void);
#endif
#ifdef __cplusplus
diff --git a/src/touchpad.c b/src/touchpad.c
index 6f5ea537..7728b4f7 100644
--- a/src/touchpad.c
+++ b/src/touchpad.c
@@ -43,7 +43,7 @@
/*===========================================================================*/
/* Driver local variables. */
/*===========================================================================*/
-static volatile struct cal cal = {
+static volatile struct cal_t cal = {
1, 1, 0, 0
};