Skip to content

Commit ad13457

Browse files
Merge pull request #5232 from tung7970/fix-target
RTL8195AM - Fix and cleanup mbed_rtx.h
2 parents 80ff707 + d0de5f7 commit ad13457

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

targets/TARGET_Realtek/mbed_rtx.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "rtl8195a.h"
2222

23-
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) || (__ARMCC_VERSION >= 6010050))
23+
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
2424
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
2525
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
2626
#define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base)
@@ -33,22 +33,11 @@
3333
#define INITIAL_SP (__StackTop)
3434
#endif
3535

36-
37-
#if defined(__CC_ARM) || defined(__GNUC__)
36+
#if defined(__GNUC__)
3837
#ifndef ISR_STACK_SIZE
3938
#define ISR_STACK_SIZE (0x1000)
4039
#endif
4140
#endif
4241

43-
#ifndef OS_TASKCNT
44-
#define OS_TASKCNT 14
45-
#endif
46-
#ifndef OS_MAINSTKSIZE
47-
#define OS_MAINSTKSIZE 256
48-
#endif
49-
#ifndef OS_CLOCK
50-
#define OS_CLOCK PLATFORM_CLK
51-
#endif
52-
5342
#endif
5443
#endif

0 commit comments

Comments
 (0)