Skip to content

Commit 4c79daf

Browse files
authored
Merge pull request #2857 from MultiTechSystems/mtq-mdot-rtos-fixes
resolve multiple STM32F411RE configurations in mbed_rtx.h
2 parents 761ec44 + fdd267c commit 4c79daf

File tree

1 file changed

+10
-40
lines changed

1 file changed

+10
-40
lines changed

hal/targets/cmsis/TARGET_STM/mbed_rtx.h

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -317,36 +317,6 @@
317317
#define OS_CLOCK 168000000
318318
#endif
319319

320-
#elif defined(TARGET_STM32F411RE)
321-
322-
#ifndef INITIAL_SP
323-
#define INITIAL_SP (0x20020000UL)
324-
#endif
325-
#ifndef OS_TASKCNT
326-
#define OS_TASKCNT 14
327-
#endif
328-
#ifndef OS_MAINSTKSIZE
329-
#define OS_MAINSTKSIZE 256
330-
#endif
331-
#ifndef OS_CLOCK
332-
#define OS_CLOCK 100000000
333-
#endif
334-
335-
#elif defined(TARGET_STM32F411RE)
336-
337-
#ifndef INITIAL_SP
338-
#define INITIAL_SP (0x20020000UL)
339-
#endif
340-
#ifndef OS_TASKCNT
341-
#define OS_TASKCNT 14
342-
#endif
343-
#ifndef OS_MAINSTKSIZE
344-
#define OS_MAINSTKSIZE 256
345-
#endif
346-
#ifndef OS_CLOCK
347-
#define OS_CLOCK 100000000
348-
#endif
349-
350320
#elif defined(TARGET_STM32F405RG)
351321

352322
#ifndef INITIAL_SP
@@ -362,10 +332,10 @@
362332
#define OS_CLOCK 48000000
363333
#endif
364334

365-
#elif defined(TARGET_STM32F411RE)
335+
#elif defined(TARGET_STM32F401RE)
366336

367337
#ifndef INITIAL_SP
368-
#define INITIAL_SP (0x20020000UL)
338+
#define INITIAL_SP (0x20018000UL)
369339
#endif
370340
#ifndef OS_TASKCNT
371341
#define OS_TASKCNT 14
@@ -374,13 +344,13 @@
374344
#define OS_MAINSTKSIZE 256
375345
#endif
376346
#ifndef OS_CLOCK
377-
#define OS_CLOCK 96000000
347+
#define OS_CLOCK 84000000
378348
#endif
379349

380-
#elif defined(TARGET_STM32F401RE)
350+
#elif defined(TARGET_STM32F410RB)
381351

382352
#ifndef INITIAL_SP
383-
#define INITIAL_SP (0x20018000UL)
353+
#define INITIAL_SP (0x20008000UL)
384354
#endif
385355
#ifndef OS_TASKCNT
386356
#define OS_TASKCNT 14
@@ -389,22 +359,22 @@
389359
#define OS_MAINSTKSIZE 256
390360
#endif
391361
#ifndef OS_CLOCK
392-
#define OS_CLOCK 84000000
362+
#define OS_CLOCK 100000000
393363
#endif
394364

395-
#elif defined(TARGET_STM32F410RB)
365+
#elif defined(TARGET_MTS_MDOT_F411RE) || defined (TARGET_MTS_DRAGONFLY_F411RE)
396366

397367
#ifndef INITIAL_SP
398-
#define INITIAL_SP (0x20008000UL)
368+
#define INITIAL_SP (0x20020000UL)
399369
#endif
400370
#ifndef OS_TASKCNT
401371
#define OS_TASKCNT 14
402372
#endif
403373
#ifndef OS_MAINSTKSIZE
404-
#define OS_MAINSTKSIZE 256
374+
#define OS_MAINSTKSIZE 1024
405375
#endif
406376
#ifndef OS_CLOCK
407-
#define OS_CLOCK 100000000
377+
#define OS_CLOCK 96000000
408378
#endif
409379

410380
#elif defined(TARGET_STM32F411RE)

0 commit comments

Comments
 (0)