Merge branch 'feature/gpio_channel_macro' into 'master'

feat(global): add macros for GPIO->channel lookup

See merge request !1170
This commit is contained in:
Ivan Grokhotkov
2017-09-11 12:15:08 +08:00
17 changed files with 409 additions and 39 deletions
@@ -158,3 +158,13 @@ API Reference
.. include:: /_build/inc/touch_pad.inc
GPIO Lookup Macros
^^^^^^^^^^^^^^^^^^
Some useful macros can be used to specified the GPIO number of a touchpad channel, or vice versa.
e.g.
1. ``TOUCH_PAD_NUM5_GPIO_NUM`` is the GPIO number of channel 5 (12);
2. ``TOUCH_PAD_GPIO4_CHANNEL`` is the channel number of GPIO 4 (channel 0).
.. include:: /_build/inc/touch_channel.inc