Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
e867cd56
Commit
e867cd56
authored
Jan 04, 2012
by
Alexander Potashev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RT74765. twr-k60n512: print out clocks in `print_cpuinfo`
parent
104358b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
cpu/arm_cortexm3/kinetis/cpu.c
cpu/arm_cortexm3/kinetis/cpu.c
+10
-1
No files found.
cpu/arm_cortexm3/kinetis/cpu.c
View file @
e867cd56
/*
* (C) Copyright 2011
* (C) Copyright 2011
, 2012
*
* Alexander Potashev, Emcraft Systems, aspotashev@emcraft.com
*
...
...
@@ -29,7 +29,16 @@
*/
int
print_cpuinfo
(
void
)
{
char
buf
[
4
][
32
];
printf
(
"CPU : %s
\n
"
,
"Freescale Kinetis series (Cortex-M4)"
);
strmhz
(
buf
[
0
],
clock_get
(
CLOCK_SYSTICK
));
strmhz
(
buf
[
1
],
clock_get
(
CLOCK_CCLK
));
strmhz
(
buf
[
2
],
clock_get
(
CLOCK_PCLK
));
strmhz
(
buf
[
3
],
clock_get
(
CLOCK_MACCLK
));
printf
(
"Freqs: SYSTICK=%sMHz,CCLK=%sMHz,PCLK=%sMHz,MACCLK=%sMHz
\n
"
,
buf
[
0
],
buf
[
1
],
buf
[
2
],
buf
[
3
]);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment