From 7b9baabd6939d21c4bed8008278a6991d2618ff9 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 14 Feb 2018 23:08:53 +0000 Subject: [PATCH] stm32: drop empty usart.c files On some targets these weren't even being referenced, on others they were, in all cases they were empty and contributed no value. They _actually_ served to declare groupings for doxygen, but we can do that in a different manner, without having to have dummy files around. --- lib/stm32/f0/Makefile | 2 +- lib/stm32/f0/usart.c | 31 ------------------------------- lib/stm32/f1/usart.c | 31 ------------------------------- lib/stm32/f2/usart.c | 31 ------------------------------- lib/stm32/f3/Makefile | 2 +- lib/stm32/f3/usart.c | 34 ---------------------------------- lib/stm32/f4/usart.c | 31 ------------------------------- lib/stm32/l1/Makefile | 2 +- lib/stm32/l1/usart.c | 31 ------------------------------- 9 files changed, 3 insertions(+), 192 deletions(-) delete mode 100644 lib/stm32/f0/usart.c delete mode 100644 lib/stm32/f1/usart.c delete mode 100644 lib/stm32/f2/usart.c delete mode 100644 lib/stm32/f3/usart.c delete mode 100644 lib/stm32/f4/usart.c delete mode 100644 lib/stm32/l1/usart.c diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index b176f428..61ef2ecc 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -36,7 +36,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs -OBJS = can.o flash.o rcc.o usart.o dma.o rtc.o comparator.o crc.o \ +OBJS = can.o flash.o rcc.o dma.o rtc.o comparator.o crc.o \ dac.o iwdg.o pwr.o gpio.o timer.o adc.o desig.o OBJS += gpio_common_all.o gpio_common_f0234.o crc_common_all.o crc_v2.o \ diff --git a/lib/stm32/f0/usart.c b/lib/stm32/f0/usart.c deleted file mode 100644 index aa93e896..00000000 --- a/lib/stm32/f0/usart.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup usart_file USART - * - * @ingroup STM32F0xx - * - * @brief libopencm3 STM32F0xx USART - * - * @version 1.0.0 - * - * @date 7 Jul 2013 - * - * 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/usart.c b/lib/stm32/f1/usart.c deleted file mode 100644 index 84ae5052..00000000 --- a/lib/stm32/f1/usart.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup usart_file USART - -@ingroup STM32F1xx - -@brief libopencm3 STM32F1xx USART - -@version 1.0.0 - -@date 30 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/f2/usart.c b/lib/stm32/f2/usart.c deleted file mode 100644 index f6de5a84..00000000 --- a/lib/stm32/f2/usart.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup usart_file USART - -@ingroup STM32F2xx - -@brief libopencm3 STM32F2xx USART - -@version 1.0.0 - -@date 30 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/f3/Makefile b/lib/stm32/f3/Makefile index 1df08061..125b5cbc 100644 --- a/lib/stm32/f3/Makefile +++ b/lib/stm32/f3/Makefile @@ -37,7 +37,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs -OBJS = rcc.o adc.o can.o pwr.o usart.o dma.o flash.o desig.o +OBJS = rcc.o adc.o can.o pwr.o dma.o flash.o desig.o OBJS += gpio_common_all.o gpio_common_f0234.o \ dac_common_all.o crc_common_all.o crc_v2.o \ diff --git a/lib/stm32/f3/usart.c b/lib/stm32/f3/usart.c deleted file mode 100644 index fbdc6465..00000000 --- a/lib/stm32/f3/usart.c +++ /dev/null @@ -1,34 +0,0 @@ -/** @defgroup usart_file USART - * - * @ingroup STM32F3xx - * - * @brief libopencm3 STM32F3xx USART - * - * @version 1.0.0 - * - * @date 30 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/usart.c b/lib/stm32/f4/usart.c deleted file mode 100644 index 06254c99..00000000 --- a/lib/stm32/f4/usart.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup usart_file USART - -@ingroup STM32F4xx - -@brief libopencm3 STM32F4xx USART - -@version 1.0.0 - -@date 30 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/l1/Makefile b/lib/stm32/l1/Makefile index 8ff1c0c7..2f40546e 100644 --- a/lib/stm32/l1/Makefile +++ b/lib/stm32/l1/Makefile @@ -35,7 +35,7 @@ TGT_CFLAGS += $(DEBUG_FLAGS) TGT_CFLAGS += $(STANDARD_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = crc.o desig.o flash.o rcc.o usart.o dma.o lcd.o +OBJS = crc.o desig.o flash.o rcc.o dma.o lcd.o OBJS += crc_common_all.o dac_common_all.o OBJS += dma_common_l1f013.o OBJS += flash_common_l01.o diff --git a/lib/stm32/l1/usart.c b/lib/stm32/l1/usart.c deleted file mode 100644 index 5e357bfe..00000000 --- a/lib/stm32/l1/usart.c +++ /dev/null @@ -1,31 +0,0 @@ -/** @defgroup usart_file USART - -@ingroup STM32L1xx - -@brief libopencm3 STM32L1xx USART - -@version 1.0.0 - -@date 30 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