You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
738 B
37 lines
738 B
5 months ago
|
/*
|
||
|
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2020-08-20 zx.chen header file for setting system frequency
|
||
|
*/
|
||
|
|
||
|
#ifndef _SYS_FREQ_H_
|
||
|
#define _SYS_FREQ_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
int32_t drv_get_i2s_freq(int32_t idx);
|
||
|
int32_t drv_get_pwm_freq(int32_t idx);
|
||
|
int32_t drv_get_usart_freq(int32_t idx);
|
||
|
int32_t drv_get_usi_freq(int32_t idx);
|
||
|
int32_t drv_get_sys_freq(void);
|
||
|
int32_t drv_get_apb_freq(void);
|
||
|
int32_t drv_get_rtc_freq(int32_t idx);
|
||
|
int32_t drv_get_timer_freq(int32_t idx);
|
||
|
|
||
|
int32_t drv_get_cpu_freq(int32_t idx);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* _SYS_FREQ_H_ */
|
||
|
|