struct cal -> struct cal_t
This commit is contained in:
parent
267b908689
commit
b9de7e6ce3
@ -59,12 +59,12 @@
|
|||||||
/**
|
/**
|
||||||
* @brief Struct used for calibration
|
* @brief Struct used for calibration
|
||||||
*/
|
*/
|
||||||
struct cal {
|
typedef struct cal_t {
|
||||||
float xm;
|
float xm;
|
||||||
float ym;
|
float ym;
|
||||||
float xn;
|
float xn;
|
||||||
float yn;
|
float yn;
|
||||||
};
|
} cal_t;
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* External declarations. */
|
/* External declarations. */
|
||||||
@ -88,8 +88,8 @@ void tpCalibrate(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TOUCHPAD_STORE_CALIBRATION
|
#if TOUCHPAD_STORE_CALIBRATION
|
||||||
extern void lld_tpWriteCalibration(struct cal cal);
|
extern void lld_tpWriteCalibration(struct cal_t cal);
|
||||||
extern struct cal lld_tpReadCalibration(void);
|
extern struct cal_t lld_tpReadCalibration(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver local variables. */
|
/* Driver local variables. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
static volatile struct cal cal = {
|
static volatile struct cal_t cal = {
|
||||||
1, 1, 0, 0
|
1, 1, 0, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user