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
7441ba77
Commit
7441ba77
authored
Mar 27, 2016
by
Tobias Badertscher
Committed by
Damien George
May 05, 2016
Browse files
stmhal: L4: Make CCM/DTCM RAM start-up conditional on MCU type.
parent
adaaf439
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
7441ba77
...
...
@@ -367,13 +367,15 @@ int main(void) {
__GPIOC_CLK_ENABLE
();
__GPIOD_CLK_ENABLE
();
#if defined(__HAL_RCC_DTCMRAMEN_CLK_ENABLE)
// The STM32F746 doesn't really have CCM memory, but it does have DTCM,
// which behaves more or less like normal SRAM.
__HAL_RCC_DTCMRAMEN_CLK_ENABLE
();
#else
// enable the CCM RAM
__CCMDATARAMEN_CLK_ENABLE
();
#if defined(MCU_SERIES_F4) || defined(MCU_SERIES_F7)
#if defined(__HAL_RCC_DTCMRAMEN_CLK_ENABLE)
// The STM32F746 doesn't really have CCM memory, but it does have DTCM,
// which behaves more or less like normal SRAM.
__HAL_RCC_DTCMRAMEN_CLK_ENABLE
();
#else
// enable the CCM RAM
__CCMDATARAMEN_CLK_ENABLE
();
#endif
#endif
#if defined(MICROPY_BOARD_EARLY_INIT)
...
...
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