2018-02-08 15:27:53 +08:00
|
|
|
/*
|
2021-03-29 07:11:44 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-02-08 15:27:53 +08:00
|
|
|
*
|
2021-03-29 07:11:44 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2018-02-08 15:27:53 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-5-30 Bernard the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "rtthread.h"
|
|
|
|
#include "drv_clock.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
rt_kprintf("periph_get_pll_clk:%d\n", periph_get_pll_clk());
|
|
|
|
rt_kprintf("cpu_get_clk:%d\n", cpu_get_clk());
|
|
|
|
rt_kprintf("ahb_get_clk:%d\n", ahb_get_clk());
|
|
|
|
rt_kprintf("apb_get_clk:%d\n", apb_get_clk());
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|