From 57d18acd2f426a0affe7ed2be0e86ae926226bff Mon Sep 17 00:00:00 2001 From: edolomb Date: Mon, 28 Aug 2017 13:18:45 +0000 Subject: Added pmc functions for SPIx git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10497 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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) + + /** @} */ /*===========================================================================*/ -- cgit v1.2.3