/* * Copyright (c) 2017 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _STM32_PINCTRLF1_H_ #define _STM32_PINCTRLF1_H_ #include /** * @brief PIN configuration bitfield * * Pin configuration is coded with the following * fields * GPIO I/O Mode [ 0 ] * GPIO Input config [ 1 : 2 ] * GPIO Output speed [ 3 : 4 ] * GPIO Output PP/OD [ 5 ] * GPIO Output AF/GP [ 6 ] * GPIO PUPD Config [ 7 : 8 ] * * Applicable to STM32F1 series */ /* Alternate functions */ /* STM32F1 Pinmux doesn't use explicit alternate functions */ /* These are kept for compatibility with other STM32 pinmux */ #define STM32_AFR_MASK 0 #define STM32_AFR_SHIFT 0 /* Port Mode */ #define STM32_MODE_INPUT (0x0<