MKW30Z; SDK1.3; IAR 7.50; Framework Keyboard implement TSI buttons

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MKW30Z; SDK1.3; IAR 7.50; Framework Keyboard implement TSI buttons

跳至解决方案
742 次查看
lucianfiran
Contributor V

KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)

 

Is there a way to use Keyboard libs from framework for TSI buttons, like sort long press, event management ?

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
625 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Lucian Firan 

In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect  FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.

Hope this information helps you
Have a great day,
Jorge Alcala

在原帖中查看解决方案

1 回复
626 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Lucian Firan 

In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect  FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.

Hope this information helps you
Have a great day,
Jorge Alcala