aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/spi_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/spi_lld.h')
-rw-r--r--os/hal/templates/spi_lld.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/os/hal/templates/spi_lld.h b/os/hal/templates/spi_lld.h
index e32a0b23e..11aa446ec 100644
--- a/os/hal/templates/spi_lld.h
+++ b/os/hal/templates/spi_lld.h
@@ -39,6 +39,19 @@
/* Driver pre-compile time settings. */
/*===========================================================================*/
+/**
+ * @name Configuration options
+ * @{
+ */
+/**
+ * @brief SPI driver enable switch.
+ * @details If set to @p TRUE the support for SPI1 is included.
+ */
+#if !defined(PLATFORM_SPI_USE_SPI1) || defined(__DOXYGEN__)
+#define PLATFORM_SPI_USE_SPI1 FALSE
+#endif
+/** @} */
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -117,6 +130,10 @@ struct SPIDriver {
/* External declarations. */
/*===========================================================================*/
+#if PLATFORM_SPI_USE_SPI1 && !defined(__DOXYGEN__)
+extern SPIDriver SPID1;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif