Цитата(RabidRabbit @ Jan 18 2015, 15:23)

В даташите модуль PTC (тач контроллер) совершенно не описан, юзайте, мол, QTouch Library...
Так может быть, вам так и поступить?
Вот тут еще написано, что в той библиотеке для D21 уже готовый год есть:
Introduction to QTouch Design Parameters using SAM D21 Xplained Pro (AN-7846)touch_api_SAMD.h - QTouch Library API header file, contains API and Data structure used to interface with the library
touch.h - QTouch library configuration header file generated by QTouch Project Builder
touch.c - A helper file generated by QTouch Project Builder to demonstrate QTouch library initialization and sensors’ configuration
libsamd21_qtouch_iar.a - QTouch library compiled for IAR compiler that supports both Self cap and Mutual cap sensors
libsamd21_qtouch_gcc.a - QTouch library compiled for GCC compiler that supports both Self cap and Mutual cap sensors