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

including: macros for dac, adc, touch, rtc_gpio, uart and clk_out.

TW#13970
This commit is contained in:
michael
2017-08-29 15:52:04 +08:00
parent 4809c70899
commit 08b9fbc242
17 changed files with 409 additions and 39 deletions
@@ -19,3 +19,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