mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 03:46:33 +00:00
Move the SoC outside of the architecture tree and put them at the same level as boards and architectures allowing both SoCs and boards to be maintained outside the tree. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
39 lines
901 B
C
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_ */
|