mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 06:32:34 -05:00
imx233: rewrite lradc using new register headers
Change-Id: I06e4467c0ffe33145e6192528b074a23a8df67cc
This commit is contained in:
parent
8517cf8bed
commit
d815cf3c79
7 changed files with 93 additions and 155 deletions
|
|
@ -82,13 +82,13 @@ static void enter_state(enum touch_state_t state)
|
|||
imx233_lradc_enable_touch_detect_irq(true);
|
||||
break;
|
||||
case TOUCH_STATE_MEASURE_X:
|
||||
kick_measure(true, false, false, HW_LRADC_CHANNEL_YPLUS);
|
||||
kick_measure(true, false, false, LRADC_SRC_YPLUS);
|
||||
break;
|
||||
case TOUCH_STATE_MEASURE_Y:
|
||||
kick_measure(false, true, false, HW_LRADC_CHANNEL_XPLUS);
|
||||
kick_measure(false, true, false, LRADC_SRC_XPLUS);
|
||||
break;
|
||||
case TOUCH_STATE_VERIFY:
|
||||
kick_measure(false, false, true, HW_LRADC_CHANNEL_YPLUS);
|
||||
kick_measure(false, false, true, LRADC_SRC_YPLUS);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue