drivers: gpio: deprecate GPIO_PIN_ENABLE, GPIO_PIN_DISABLE

GPIO_PIN_ENABLE, GPIO_PIN_DISABLE configuration constants overlap
functionality provided by pinmux driver. They usage makes the API
inconsistent. They are almost uniformly ignored by the existing device
drivers. Only few of them take these constants into account.

This commit deprecates usage of the two configuration constants.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
Piotr Mienkowski 2017-10-17 15:27:29 +02:00 committed by Anas Nashif
commit 4487c935fe
4 changed files with 6 additions and 37 deletions

View file

@ -108,18 +108,11 @@ extern "C" {
#define GPIO_PUD_MASK (3 << GPIO_PUD_POS)
/** @endcond */
/*
* GPIO_PIN_(EN-/DIS-)ABLE are for pin enable / disable.
*
* Individual pins can be enabled or disabled
* if the controller supports this operation.
*/
/** Deprecated, do not use - Enable GPIO pin. */
#define GPIO_PIN_ENABLE (0 __DEPRECATED_MACRO)
/** Enable GPIO pin. */
#define GPIO_PIN_ENABLE (1 << 10)
/** Disable GPIO pin. */
#define GPIO_PIN_DISABLE (1 << 11)
/** Deprecated, do not use - Disable GPIO pin. */
#define GPIO_PIN_DISABLE (0 __DEPRECATED_MACRO)
/* GPIO_DS_* are for pin drive strength configuration.
*