Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
fdbc22e4
Commit
fdbc22e4
authored
Mar 15, 2014
by
Damien George
Browse files
stmhal: Disable redundant SystemCoreClockUpdate function.
parent
280e7208
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/system_stm32f4xx.c
View file @
fdbc22e4
...
...
@@ -116,7 +116,6 @@ void __fatal_error(const char *msg);
variable is updated automatically.
*/
uint32_t
SystemCoreClock
=
16000000
;
__I
uint8_t
AHBPrescTable
[
16
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
3
,
4
,
6
,
7
,
8
,
9
};
/**
* @}
...
...
@@ -210,6 +209,10 @@ void SystemInit(void)
* @param None
* @retval None
*/
#if 0
// dpgeorge: I think this function is obsolete now with the new HAL library.
__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
void SystemCoreClockUpdate(void)
{
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
...
...
@@ -257,6 +260,7 @@ void SystemCoreClockUpdate(void)
/* HCLK frequency */
SystemCoreClock >>= tmp;
}
#endif
/**
* @brief System Clock Configuration
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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