1 /*
2  * Copyright (c) 2021, Antonio Tessarolo
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __SOC_CLOCK_FREQ_H__
8 #define __SOC_CLOCK_FREQ_H__
9 
10 #include "device_imx.h"
11 #include <zephyr/types.h>
12 
13 #if defined(__cplusplus)
14 extern "C" {
15 #endif
16 
17 #ifdef CONFIG_PWM_IMX
18 /*!
19  * @brief Get clock frequency applies to the PWM module
20  *
21  * @param base PWM base pointer.
22  * @return clock frequency (in HZ) applies to the PWM module
23  */
24 uint32_t get_pwm_clock_freq(PWM_Type *base);
25 #endif /* CONFIG_PWM_IMX */
26 
27 #if defined(__cplusplus)
28 }
29 #endif
30 #endif /* __SOC_CLOCK_FREQ_H__ */
31