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>
This commit is contained in:
parent
61cc74c425
commit
f23492a059
11 changed files with 494 additions and 28 deletions
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue