diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-05-13 12:26:19 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-05-13 12:26:19 +0200 |
commit | 9ccb4db8d59ec9dab33ee8617d462f21a8bb4fa8 (patch) | |
tree | a4f8ba9375a4ee82bae6ddc0cb3a35227f6f9469 /fw/fe310/eos/eve/eve_vtrack.c | |
parent | 45f0d9b890b086493f9bb06428c46cd802324223 (diff) |
touch controller/eve fixes
Diffstat (limited to 'fw/fe310/eos/eve/eve_vtrack.c')
-rw-r--r-- | fw/fe310/eos/eve/eve_vtrack.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fw/fe310/eos/eve/eve_vtrack.c b/fw/fe310/eos/eve/eve_vtrack.c index b9f28af..bd9158b 100644 --- a/fw/fe310/eos/eve/eve_vtrack.c +++ b/fw/fe310/eos/eve/eve_vtrack.c @@ -27,12 +27,12 @@ void eve_vtrack_reset(void) { } void eve_vtrack_start(EVETouch *touch, uint8_t tag0, uint32_t to) { - eve_touch_timer_set(touch, EVE_TOUCH_ETYPE_TRACK, tag0, to); + eve_timer_set(touch, EVE_TOUCH_ETYPE_TRACK, tag0, to); if (vtrack.start) vtrack.start(touch, vtrack.param); } void eve_vtrack_stop(EVETouch *touch) { - eve_touch_timer_clear(touch); + eve_timer_clear(touch); eve_vtrack_reset(); } @@ -44,7 +44,7 @@ void eve_vtrack_acc_start(EVETouch *touch, void *p) { int eve_vtrack_acc_tick(EVETouch *touch, void *p) { EVEPhyAcc *param = (EVEPhyAcc *)p; - return eve_phy_acc_tick(param, eve_time_get_tick() - touch->t, &touch->x, &touch->y); + return eve_phy_acc_tick(param, eve_get_tick() - touch->t, &touch->x, &touch->y); } void eve_vtrack_lho_start(EVETouch *touch, void *p) { @@ -56,10 +56,9 @@ void eve_vtrack_lho_start(EVETouch *touch, void *p) { int eve_vtrack_lho_tick(EVETouch *touch, void *p) { EVEPhyLHO *param = (EVEPhyLHO *)p; - return eve_phy_lho_tick(param, eve_time_get_tick() - touch->t, &touch->x, &touch->y); + return eve_phy_lho_tick(param, eve_get_tick() - touch->t, &touch->x, &touch->y); } void eve_vtrack_lho_stop(EVETouch *touch, void *p) { eve_vtrack_reset(); } - |