zephyr/soc/arm/atmel_sam/common/soc_pmc.h

39 lines
901 B
C

/*
* Copyright (c) 2016 Piotr Mienkowski
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
* @brief Atmel SAM MCU family Power Management Controller (PMC) module
* HAL driver.
*/
#ifndef _ATMEL_SAM_SOC_PMC_H_
#define _ATMEL_SAM_SOC_PMC_H_
#include <zephyr/types.h>
/**
* @brief Enable the clock of specified peripheral module.
*
* @param id peripheral module id, as defined in data sheet.
*/
void soc_pmc_peripheral_enable(u32_t id);
/**
* @brief Disable the clock of specified peripheral module.
*
* @param id peripheral module id, as defined in data sheet.
*/
void soc_pmc_peripheral_disable(u32_t id);
/**
* @brief Check if specified peripheral module is enabled.
*
* @param id peripheral module id, as defined in data sheet.
* @return 1 if peripheral is enabled, 0 otherwise
*/
u32_t soc_pmc_peripheral_is_enabled(u32_t id);
#endif /* _ATMEL_SAM_SOC_PMC_H_ */