Added pmc functions for SPIx
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10497 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
f68f47f3ed
commit
57d18acd2f
|
@ -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)
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue