Skip to content

resolve multiple STM32F411RE configurations in mbed_rtx.h #2857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 10 additions & 40 deletions hal/targets/cmsis/TARGET_STM/mbed_rtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,36 +317,6 @@
#define OS_CLOCK 168000000
#endif

#elif defined(TARGET_STM32F411RE)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20020000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
#endif
#ifndef OS_MAINSTKSIZE
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 100000000
#endif

#elif defined(TARGET_STM32F411RE)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20020000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
#endif
#ifndef OS_MAINSTKSIZE
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 100000000
#endif

#elif defined(TARGET_STM32F405RG)

#ifndef INITIAL_SP
Expand All @@ -362,10 +332,10 @@
#define OS_CLOCK 48000000
#endif

#elif defined(TARGET_STM32F411RE)
#elif defined(TARGET_STM32F401RE)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20020000UL)
#define INITIAL_SP (0x20018000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
Expand All @@ -374,13 +344,13 @@
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 96000000
#define OS_CLOCK 84000000
#endif

#elif defined(TARGET_STM32F401RE)
#elif defined(TARGET_STM32F410RB)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20018000UL)
#define INITIAL_SP (0x20008000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
Expand All @@ -389,22 +359,22 @@
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 84000000
#define OS_CLOCK 100000000
#endif

#elif defined(TARGET_STM32F410RB)
#elif defined(TARGET_MTS_MDOT_F411RE) || defined (TARGET_MTS_DRAGONFLY_F411RE)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20008000UL)
#define INITIAL_SP (0x20020000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
#endif
#ifndef OS_MAINSTKSIZE
#define OS_MAINSTKSIZE 256
#define OS_MAINSTKSIZE 1024
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 100000000
#define OS_CLOCK 96000000
#endif

#elif defined(TARGET_STM32F411RE)
Expand Down