From a9082a6dba5591a4039398b42c15d6b9a32ae617 Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Tue, 7 Mar 2017 15:57:18 +0100 Subject: [PATCH] squash! cpu/stm32_common: unify gpio driver Fix wrong AF definition for stm32f0 --- cpu/stm32_common/include/periph_cpu_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/stm32_common/include/periph_cpu_common.h b/cpu/stm32_common/include/periph_cpu_common.h index 1aae880868429..a746b240d6ffe 100644 --- a/cpu/stm32_common/include/periph_cpu_common.h +++ b/cpu/stm32_common/include/periph_cpu_common.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 Freie Universität Berlin + * 2017 OTA keys S.A. * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level @@ -14,6 +15,7 @@ * @brief Shared CPU specific definitions for the STM32 family * * @author Hauke Petersen + * @author Vincent Dupont */ #ifndef PERIPH_CPU_COMMON_H @@ -120,11 +122,11 @@ typedef enum { GPIO_AF1, /**< use alternate function 1 */ GPIO_AF2, /**< use alternate function 2 */ GPIO_AF3, /**< use alternate function 3 */ -#ifndef CPU_FAM_STM32F0 GPIO_AF4, /**< use alternate function 4 */ GPIO_AF5, /**< use alternate function 5 */ GPIO_AF6, /**< use alternate function 6 */ GPIO_AF7, /**< use alternate function 7 */ +#ifndef CPU_FAM_STM32F0 GPIO_AF8, /**< use alternate function 8 */ GPIO_AF9, /**< use alternate function 9 */ GPIO_AF10, /**< use alternate function 10 */