]> granicus.if.org Git - esp-idf/commit
fix(touch_pad): modify touch pad read function and touch_pad_deinit
authorChu Shu Chen <chushuchen@espressif.com>
Thu, 2 Mar 2017 08:13:30 +0000 (16:13 +0800)
committerChu Shu Chen <chushuchen@espressif.com>
Sat, 11 Mar 2017 03:42:44 +0000 (11:42 +0800)
commit194d4e9ffdaefc53e72090ebdd07baf397c98ae3
tree516673723fd9bf35947c4c8d184d6f5dccfc963f
parent47d375947439e15a260f3fbe1838abf1b37b08e0
 fix(touch_pad): modify touch pad read function and touch_pad_deinit

The touch pad read function taks too much time within spin lock waiting for the "done bit". (about 7.6ms as we tested)
So we try to use a mutex on the touch read function and any other functions might change the "done bit".
components/driver/include/driver/touch_pad.h
components/driver/rtc_module.c