summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Podogrocki <adam.podogrocki@rndity.com>2016-12-21 08:56:20 +0000
committerKumar Gala <kumar.gala@linaro.org>2017-01-23 15:15:52 -0600
commitf23492a05939ee720a3991df36d5829d4a47abc7 (patch)
tree2121dabf6d338a409bf1d60b9a456be09cbbd9a3 /include
parent61cc74c425d02af0e43020ca4cb75f539cada82f (diff)
gpio/stm32: provide GPIO driver implementation for STM32F3X family
Implementation includes adding some defines in the pinmux, adjusting gpio driver to specific defines for STM32F3X family, adding specific functionality in the F3X SoC definition. Change-Id: I465c66eb93e7afb43166c4585c852e284b0d6e67 Signed-off-by: Adam Podogrocki <adam.podogrocki@rndity.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpio.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 52b3c5d46..e6075dc13 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -120,6 +120,20 @@ extern "C" {
/** Disable GPIO pin. */
#define GPIO_PIN_DISABLE (1 << 11)
+/** @cond INTERNAL_HIDDEN */
+#define GPIO_PP_OD_POS 12
+/** @endcond */
+
+/** Enable GPIO pin push-pull. */
+#define GPIO_PUSH_PULL (0 << GPIO_PP_OD_POS)
+
+/** Enable GPIO pin open drain. */
+#define GPIO_OPEN_DRAIN (1 << GPIO_PP_OD_POS)
+
+/** @cond INTERNAL_HIDDEN */
+#define GPIO_PP_OD_MASK (1 << GPIO_PP_OD_POS)
+/** @endcond */
+
struct gpio_callback;
/**