diff options
author | edolomb <none@example.com> | 2017-08-28 13:18:45 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2017-08-28 13:18:45 +0000 |
commit | 57d18acd2f426a0affe7ed2be0e86ae926226bff (patch) | |
tree | 62b46db4c603f26f6f4a85c72a114c6cf7cf5701 | |
parent | f68f47f3ed164b1d9ad5fbe5a1bb3d985e2413ed (diff) | |
download | ChibiOS-57d18acd2f426a0affe7ed2be0e86ae926226bff.tar.gz ChibiOS-57d18acd2f426a0affe7ed2be0e86ae926226bff.tar.bz2 ChibiOS-57d18acd2f426a0affe7ed2be0e86ae926226bff.zip |
Added pmc functions for SPIx
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10497 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h index 61d5cc5f0..4fb942f22 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h +++ b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h @@ -170,6 +170,35 @@ */
#define pmcDisableXDMAC1() pmcDisablePidLow(ID_XDMAC1_MSK)
+/**
+ * @brief Enables the SPI0 peripheral clock.
+ *
+ * @api
+ */
+#define pmcEnableSPI0() pmcEnablePidHigh(ID_SPI0_MSK)
+
+/**
+ * @brief Disables the SPI0 peripheral clock.
+ *
+ * @api
+ */
+#define pmcDisableSPI0() pmcDisablePidHigh(ID_SPI0_MSK)
+
+/**
+ * @brief Enables the SPI1 peripheral clock.
+ *
+ * @api
+ */
+#define pmcEnableSPI1() pmcEnablePidHigh(ID_SPI1_MSK)
+
+/**
+ * @brief Disables the SPI11 peripheral clock.
+ *
+ * @api
+ */
+#define pmcDisableSPI1() pmcDisablePidHigh(ID_SPI1_MSK)
+
+
/** @} */
/*===========================================================================*/
|