Added pmc functions for TCx

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10916 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
edolomb 2017-10-31 09:59:33 +00:00
parent 606da3e464
commit a9816b7722
1 changed files with 28 additions and 0 deletions

View File

@ -380,6 +380,34 @@
*/
#define pmcDisableFLEXCOM4() pmcDisablePidLow(ID_FLEXCOM4_MSK)
/**
* @brief Enables the TC0 peripheral clock.
*
* @api
*/
#define pmcEnableTC0() pmcEnablePidHigh(ID_TC0_MSK)
/**
* @brief Disables the TC0 peripheral clock.
*
* @api
*/
#define pmcDisableTC0() pmcDisablePidHigh(ID_TC0_MSK)
/**
* @brief Enables the TC1 peripheral clock.
*
* @api
*/
#define pmcEnableTC1() pmcEnablePidHigh(ID_TC1_MSK)
/**
* @brief Disables the TC1 peripheral clock.
*
* @api
*/
#define pmcDisableTC1() pmcDisablePidHigh(ID_TC1_MSK)
/** @} */
/*===========================================================================*/