Commit 20aac914 authored by Alexander Potashev's avatar Alexander Potashev
Browse files

RT73025. ea-lpc1788: print out clocks in `print_cpuinfo`

parent 94355ff3
......@@ -29,7 +29,14 @@
*/
int print_cpuinfo(void)
{
char buf[2][32];
printf("CPU : %s\n", "LPC178x/7x series (Cortex-M3)");
strmhz(buf[0], clock_get(CLOCK_SYSTICK));
strmhz(buf[1], clock_get(CLOCK_PCLK));
printf("Freqs: SYSTICK=%sMHz,PCLK=%sMHz,\n",
buf[0], buf[1]);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment