aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h28
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)
+
/** @} */
/*===========================================================================*/