From 422b4549dba835a8eaf981eccb69831f2c15600d Mon Sep 17 00:00:00 2001 From: edolomb Date: Wed, 29 Nov 2017 18:06:49 +0000 Subject: Added pmc functions for ETH git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11087 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'os/hal/ports/SAMA/SAMA5D2x') diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h index 39354054e..8b250ad73 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h +++ b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h @@ -462,6 +462,20 @@ */ #define pmcDisableSHA() pmcDisablePidLow(ID_SHA_MSK) +/** + * @brief Enables the ETH0 peripheral clock. + * + * @api + */ +#define pmcEnableETH0() pmcEnablePidLow(ID_GMAC0_MSK) + +/** + * @brief Disables the ETH0 peripheral clock. + * + * @api + */ +#define pmcDisableETH0() pmcDisablePidLow(ID_GMAC0_MSK) + /** @} */ -- cgit v1.2.3