新手上路
- 积分
- 48
- 金钱
- 48
- 注册时间
- 2017-2-9
- 在线时间
- 21 小时
|
楼主 |
发表于 2017-2-16 10:56:37
|
显示全部楼层
问题找到了是我的中断频率设置问题,但是我的触摸坐标获取函数处理太慢如果放在定时10ms中断会卡死,这应该怎么处理,emwin触摸用起来不大会啊
void GUI_TOUCH_X_ActivateX(void) {
}
/*********************************************************************
*
* GUI_TOUCH_X_ActivateY()
*
* Function decription:
* Called from GUI, if touch support is enabled.
* Switches on voltage on Y-axis,
* prepares measurement for X-axis.
* Voltage on X-axis is switched off.
*/
void GUI_TOUCH_X_ActivateY(void) {
}
/*********************************************************************
*
* GUI_TOUCH_X_MeasureX()
*
* Function decription:
* Called from GUI, if touch support is enabled.
* Measures voltage of X-axis.
*/
int GUI_TOUCH_X_MeasureX(void) {
// touch_scan();
return touch_point.x[0];
}
/*********************************************************************
*
* GUI_TOUCH_X_MeasureY()
*
* Function decription:
* Called from GUI, if touch support is enabled.
* Measures voltage of Y-axis.
*/
int GUI_TOUCH_X_MeasureY(void) {
// touch_scan();
return touch_point.y[0];
} |
|