Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian R. Hölzlwimmer <git.ich@frhoelzlwimmer.de>2018-08-26 23:53:15 +0300
committerKarl Palsson <karlp@tweak.net.au>2018-08-28 01:57:28 +0300
commitf3c620b51b6ee66bd45968d84f62f3ecf376d0ac (patch)
tree3e9c5c3f9f0184598e639afc00c251c5530c6aed
parent00e32ccb4c2869e6ad73111dec013ee42e553b89 (diff)
stm32f7: spi: include common code
-rw-r--r--include/libopencm3/stm32/f7/spi.h37
-rw-r--r--include/libopencm3/stm32/spi.h2
-rw-r--r--lib/stm32/f7/Makefile1
-rw-r--r--lib/stm32/f7/spi.c31
4 files changed, 71 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/f7/spi.h b/include/libopencm3/stm32/f7/spi.h
new file mode 100644
index 00000000..e99405a1
--- /dev/null
+++ b/include/libopencm3/stm32/f7/spi.h
@@ -0,0 +1,37 @@
+/** @defgroup spi_defines SPI Defines
+
+@brief <b>Defined Constants and Types for the STM32F7xx SPI</b>
+
+@ingroup STM32F7xx_defines
+
+@version 1.0.0
+
+@date 28 August 2018
+
+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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef LIBOPENCM3_SPI_H
+#define LIBOPENCM3_SPI_H
+
+#include <libopencm3/stm32/common/spi_common_v1_frf.h>
+
+#endif
+
diff --git a/include/libopencm3/stm32/spi.h b/include/libopencm3/stm32/spi.h
index 8767dfd4..2d32e61c 100644
--- a/include/libopencm3/stm32/spi.h
+++ b/include/libopencm3/stm32/spi.h
@@ -30,6 +30,8 @@
# include <libopencm3/stm32/f3/spi.h>
#elif defined(STM32F4)
# include <libopencm3/stm32/f4/spi.h>
+#elif defined(STM32F7)
+# include <libopencm3/stm32/f7/spi.h>
#elif defined(STM32L0)
# include <libopencm3/stm32/l0/spi.h>
#elif defined(STM32L1)
diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile
index e4b317a0..61cea7a0 100644
--- a/lib/stm32/f7/Makefile
+++ b/lib/stm32/f7/Makefile
@@ -49,6 +49,7 @@ OBJS += pwr.o rcc.o
OBJS += rcc_common_all.o
OBJS += rng_common_v1.o
+OBJS += spi_common_all.o spi_common_v1.o spi_common_v1_frf.o
OBJS += usart_common_all.o usart_common_v2.o
diff --git a/lib/stm32/f7/spi.c b/lib/stm32/f7/spi.c
new file mode 100644
index 00000000..ace451ac
--- /dev/null
+++ b/lib/stm32/f7/spi.c
@@ -0,0 +1,31 @@
+/** @defgroup spi_file SPI
+
+@ingroup STM32F7xx
+
+@brief <b>libopencm3 STM32F7xx SPI</b>
+
+@version 1.0.0
+
+@date 28 August 2018
+
+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 <http://www.gnu.org/licenses/>.
+ */
+
+#include <libopencm3/stm32/spi.h>