File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 32
32
*
33
33
******************************************************************************
34
34
*/
35
- #if defined(TWO_RAM_REGIONS )
36
- #if defined(TOOLCHAIN_GCC_ARM ) || defined(TOOLCHAIN_GCC_CR )
37
-
35
+ #if (defined(TWO_RAM_REGIONS ) && defined(__GNUC__ ) && !defined(__CC_ARM ))
38
36
#include <errno.h>
39
37
#include "stm32l4xx.h"
40
38
extern uint32_t __mbed_sbrk_start ;
@@ -64,5 +62,5 @@ void *__wrap__sbrk(int incr)
64
62
65
63
return (void * ) heap_ind_old ;
66
64
}
67
- #endif /* GCC_ARM toolchain */
68
- #endif /* TWO_RAM_REGIONS */
65
+ #endif /* GCC_ARM toolchain && TWO_RAM_REGIONS */
66
+
Original file line number Diff line number Diff line change 20
20
#ifndef INITIAL_SP
21
21
22
22
#if (defined(TARGET_STM32L475VG ))
23
- /* only GCC_ARM and IAR toolchain have the stack on SRAM2 */
24
- #if (defined(TOOLCHAIN_GCC_ARM ) || defined(TOOLCHAIN_GCC_CR ) || defined(__IAR_SYSTEMS_ICC__ ))
23
+ /* only GCC_ARM and IAR toolchains have the stack on SRAM2 */
24
+ #if (((defined(__GNUC__ ) && !defined(__CC_ARM )) || \
25
+ defined(__IAR_SYSTEMS_ICC__ )) && \
26
+ defined(TWO_RAM_REGIONS ))
25
27
#define INITIAL_SP (0x10008000UL)
26
28
#else
27
29
#define INITIAL_SP (0x20018000UL)
117
119
#endif
118
120
119
121
#endif // INITIAL_SP
120
- #if defined(TOOLCHAIN_GCC_ARM ) || defined(TOOLCHAIN_GCC_CR )
122
+ #if ( defined(__GNUC__ ) && ! defined(__CC_ARM ) )
121
123
extern uint32_t __StackLimit [];
122
124
extern uint32_t __StackTop [];
123
125
extern uint32_t __end__ [];
126
128
#define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
127
129
#define ISR_STACK_START ((unsigned char*)__StackLimit)
128
130
#define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
129
- #elif defined(__ICCARM__ )
130
- /* No region declarations needed */
131
131
#endif
132
132
133
133
#endif // MBED_MBED_RTX_H
You can’t perform that action at this time.
0 commit comments