diff options
author | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-11-09 01:04:27 +0100 |
---|---|---|
committer | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-11-09 01:04:27 +0100 |
commit | 61d2238b259e140164a3d1f54d6144be24dcb08c (patch) | |
tree | ed7d5e925d8671c951ad238f37e20a1f2b7b42ff /src | |
parent | 3dd0b1a5af27fbc9a645f71616892977410bca1c (diff) | |
download | uGFX-61d2238b259e140164a3d1f54d6144be24dcb08c.tar.gz uGFX-61d2238b259e140164a3d1f54d6144be24dcb08c.tar.bz2 uGFX-61d2238b259e140164a3d1f54d6144be24dcb08c.zip |
small cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/touchpad.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/touchpad.c b/src/touchpad.c index d667508b..5b8d112e 100644 --- a/src/touchpad.c +++ b/src/touchpad.c @@ -108,9 +108,7 @@ static void _tpTransform(coord_t *x, coord_t *y) { *y = (coord_t) (cal->ay * (*x) + cal->by * (*y) + cal->cy);
}
-static void _tpDo3PointCalibration(const coord_t (*cross)[2], coord_t (*points)[2],
- cal_t *c)
-{
+static void _tpDo3PointCalibration(const coord_t (*cross)[2], coord_t (*points)[2], cal_t *c) {
float dx, dx0, dx1, dx2, dy0, dy1, dy2;
/* Compute all the required determinants */
@@ -281,7 +279,8 @@ coord_t tpReadY(void) { #define MAX_CAL_SAMPLES 10
/**
- * @brief This function interactively performs calibration of the touchscreen
+ * @brief Function to calibrate touchscreen
+ * @details This function interactively performs calibration of the touchscreen
* using 3-point calibration algorithm. Optionally, it also verifies
* the accuracy of the calibration coefficients obtained if the symbol
* TOUCHPAD_VERIFY_CALIBRATION is defined in the configuration.
|