diff options
author | edolomb <none@example.com> | 2017-10-31 09:59:33 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2017-10-31 09:59:33 +0000 |
commit | a9816b77229b900adca43cddb7a755238999cccf (patch) | |
tree | 7d65fd5d11ea47dfad1060de3d640ab737d9f732 /os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | |
parent | 606da3e464efdfea88af4fc0bb9d12d44b2805eb (diff) | |
download | ChibiOS-a9816b77229b900adca43cddb7a755238999cccf.tar.gz ChibiOS-a9816b77229b900adca43cddb7a755238999cccf.tar.bz2 ChibiOS-a9816b77229b900adca43cddb7a755238999cccf.zip |
Added pmc functions for TCx
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10916 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h')
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h index b8111dbd0..8c010a6d8 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h +++ b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h @@ -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)
+
/** @} */
/*===========================================================================*/
|