rt-thread-official/bsp/loongson/ls1cdev/libraries/ls1c_clock.h

56 lines
669 B
C
Raw Normal View History

/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-09-06 <EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD> first version
*/
#ifndef __OPENLOONGSON_CLOCK_H
#define __OPENLOONGSON_CLOCK_H
/*
* <EFBFBD><EFBFBD>ȡPLLƵ<EFBFBD><EFBFBD>
* @ret PLLƵ<EFBFBD><EFBFBD>
*/
unsigned long clk_get_pll_rate(void);
/*
* <EFBFBD><EFBFBD>ȡCPUƵ<EFBFBD><EFBFBD>
* @ret CPUƵ<EFBFBD><EFBFBD>
*/
unsigned long clk_get_cpu_rate(void);
/*
* <EFBFBD><EFBFBD>ȡDDRƵ<EFBFBD><EFBFBD>
* @ret DDRƵ<EFBFBD><EFBFBD>
*/
unsigned long clk_get_ddr_rate(void);
/*
* <EFBFBD><EFBFBD>ȡAPBƵ<EFBFBD><EFBFBD>
* @ret APBƵ<EFBFBD><EFBFBD>
*/
unsigned long clk_get_apb_rate(void);
/*
* <EFBFBD><EFBFBD>ȡDCƵ<EFBFBD><EFBFBD>
* @ret DCƵ<EFBFBD><EFBFBD>
*/
unsigned long clk_get_dc_rate(void);
#endif