From 508f8d94872b5733db61687df1603993e1f0e28a Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 21 May 2019 22:32:30 +0000 Subject: [PATCH] stm32: doc: gpio: move gpio to peripheral_apis Drops dummy gpio.c files that weren't even being compiled in some cases. --- lib/stm32/common/gpio_common_all.c | 3 ++- lib/stm32/f0/Makefile | 2 +- lib/stm32/f0/gpio.c | 31 ------------------------------ lib/stm32/f1/gpio.c | 4 +--- lib/stm32/f2/Makefile | 2 +- lib/stm32/f2/gpio.c | 31 ------------------------------ lib/stm32/f4/Makefile | 2 +- lib/stm32/f4/gpio.c | 31 ------------------------------ lib/stm32/f7/Makefile | 2 +- lib/stm32/f7/gpio.c | 31 ------------------------------ lib/stm32/l0/Makefile | 2 +- lib/stm32/l0/gpio.c | 31 ------------------------------ lib/stm32/l1/gpio.c | 31 ------------------------------ 13 files changed, 8 insertions(+), 195 deletions(-) delete mode 100644 lib/stm32/f0/gpio.c delete mode 100644 lib/stm32/f2/gpio.c delete mode 100644 lib/stm32/f4/gpio.c delete mode 100644 lib/stm32/f7/gpio.c delete mode 100644 lib/stm32/l0/gpio.c delete mode 100644 lib/stm32/l1/gpio.c diff --git a/lib/stm32/common/gpio_common_all.c b/lib/stm32/common/gpio_common_all.c index 98d15ad4..9602a999 100644 --- a/lib/stm32/common/gpio_common_all.c +++ b/lib/stm32/common/gpio_common_all.c @@ -1,4 +1,5 @@ -/** @addtogroup gpio_file +/** @addtogroup gpio_file GPIO peripheral API + * @ingroup peripheral_apis @author @htmlonly © @endhtmlonly 2009 Uwe Hermann diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index 816f3f81..f5b439a7 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -37,7 +37,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs OBJS = can.o flash.o rcc.o dma.o rtc.o comparator.o \ - pwr.o gpio.o timer.o adc.o desig.o + pwr.o timer.o adc.o desig.o OBJS += gpio_common_all.o gpio_common_f0234.o crc_common_all.o crc_v2.o \ pwr_common_v1.o iwdg_common_all.o rtc_common_l1f024.o \ diff --git a/lib/stm32/f0/gpio.c b/lib/stm32/f0/gpio.c deleted file mode 100644 index f60b4289..00000000 --- a/lib/stm32/f0/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - * - * @ingroup STM32F0xx - * - * @brief libopencm3 STM32F0xx General Purpose I/O - * - * @version 1.0.0 - * - * @date 18 August 2012 - * - * LGPL License Terms @ref lgpl_license - */ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include diff --git a/lib/stm32/f1/gpio.c b/lib/stm32/f1/gpio.c index c8943fce..160c46b5 100644 --- a/lib/stm32/f1/gpio.c +++ b/lib/stm32/f1/gpio.c @@ -1,6 +1,4 @@ -/** @defgroup gpio_file GPIO - -@ingroup STM32F1xx +/** @addtogroup gpio_file @brief libopencm3 STM32F1xx General Purpose I/O diff --git a/lib/stm32/f2/Makefile b/lib/stm32/f2/Makefile index bfad2895..2af763fd 100644 --- a/lib/stm32/f2/Makefile +++ b/lib/stm32/f2/Makefile @@ -36,7 +36,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = gpio.o rcc.o desig.o +OBJS = rcc.o desig.o OBJS += crc_common_all.o dac_common_all.o dma_common_f24.o \ gpio_common_all.o gpio_common_f0234.o i2c_common_v1.o \ diff --git a/lib/stm32/f2/gpio.c b/lib/stm32/f2/gpio.c deleted file mode 100644 index 052e306f..00000000 --- a/lib/stm32/f2/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - -@ingroup STM32F2xx - -@brief libopencm3 STM32F2xx General Purpose I/O - -@version 1.0.0 - -@date 18 August 2012 - -LGPL License Terms @ref lgpl_license -*/ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include diff --git a/lib/stm32/f4/Makefile b/lib/stm32/f4/Makefile index 9728e3be..c01c26e6 100644 --- a/lib/stm32/f4/Makefile +++ b/lib/stm32/f4/Makefile @@ -52,7 +52,7 @@ OBJS += exti_common_all.o OBJS += flash.o flash_common_all.o flash_common_f.o flash_common_f24.o OBJS += flash_common_idcache.o OBJS += fmc_common_f47.o -OBJS += gpio_common_all.o gpio_common_f0234.o gpio.o +OBJS += gpio_common_all.o gpio_common_f0234.o OBJS += hash_common_f24.o OBJS += i2c_common_v1.o OBJS += iwdg_common_all.o diff --git a/lib/stm32/f4/gpio.c b/lib/stm32/f4/gpio.c deleted file mode 100644 index ea59ae79..00000000 --- a/lib/stm32/f4/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - -@ingroup STM32F4xx - -@brief libopencm3 STM32F4xx General Purpose I/O - -@version 1.0.0 - -@date 18 August 2012 - -LGPL License Terms @ref lgpl_license -*/ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile index 466ca351..35d226e9 100644 --- a/lib/stm32/f7/Makefile +++ b/lib/stm32/f7/Makefile @@ -53,7 +53,7 @@ OBJS += dsi_common_f47.o OBJS += exti_common_all.o OBJS += flash_common_all.o flash_common_f.o flash_common_f24.o flash.o OBJS += fmc_common_f47.o -OBJS += gpio.o gpio_common_all.o gpio_common_f0234.o +OBJS += gpio_common_all.o gpio_common_f0234.o OBJS += i2c_common_v2.o OBJS += iwdg_common_all.o OBJS += ltdc_common_f47.o diff --git a/lib/stm32/f7/gpio.c b/lib/stm32/f7/gpio.c deleted file mode 100644 index a5fb4afc..00000000 --- a/lib/stm32/f7/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - -@ingroup STM32F7xx - -@brief libopencm3 STM32F7xx General Purpose I/O - -@version 1.0.0 - -@date 18 August 2012 - -LGPL License Terms @ref lgpl_license -*/ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include diff --git a/lib/stm32/l0/Makefile b/lib/stm32/l0/Makefile index cd3e27c3..90b88b19 100644 --- a/lib/stm32/l0/Makefile +++ b/lib/stm32/l0/Makefile @@ -36,7 +36,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs -OBJS = gpio.o rcc.o desig.o +OBJS = rcc.o desig.o OBJS += pwr_common_v1.o pwr_common_v2.o OBJS += timer_common_all.o OBJS += spi_common_all.o spi_common_v1.o spi_common_v1_frf.o diff --git a/lib/stm32/l0/gpio.c b/lib/stm32/l0/gpio.c deleted file mode 100644 index 9382ece2..00000000 --- a/lib/stm32/l0/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - * - * @ingroup STM32L0xx - * - * @brief libopencm3 STM32L0xx General Purpose I/O - * - * @version 1.0.0 - * - * @date 8 September 2014 - * - * LGPL License Terms @ref lgpl_license - */ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include diff --git a/lib/stm32/l1/gpio.c b/lib/stm32/l1/gpio.c deleted file mode 100644 index 46ea658a..00000000 --- a/lib/stm32/l1/gpio.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup gpio_file GPIO - -@ingroup STM32L1xx - -@brief libopencm3 STM32L1xx General Purpose I/O - -@version 1.0.0 - -@date 18 August 2012 - -LGPL License Terms @ref lgpl_license -*/ - -/* - * This file is part of the libopencm3 project. - * - * This library is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see . - */ - -#include