Modified for BG96

Fork of mbed-dev by mbed official

Committer:
WaleedElmughrabi
Date:
Thu Sep 20 16:11:23 2018 +0000
Revision:
188:60408c49b6d4
Parent:
187:0387e8f68319
Fork modified for BG96 error

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /* mbed Microcontroller Library
<> 149:156823d33999 2 * Copyright (c) 2016 ARM Limited
<> 149:156823d33999 3 *
<> 149:156823d33999 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 149:156823d33999 5 * you may not use this file except in compliance with the License.
<> 149:156823d33999 6 * You may obtain a copy of the License at
<> 149:156823d33999 7 *
<> 149:156823d33999 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 149:156823d33999 9 *
<> 149:156823d33999 10 * Unless required by applicable law or agreed to in writing, software
<> 149:156823d33999 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 149:156823d33999 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 149:156823d33999 13 * See the License for the specific language governing permissions and
<> 149:156823d33999 14 * limitations under the License.
<> 149:156823d33999 15 */
<> 149:156823d33999 16
<> 149:156823d33999 17 #ifndef MBED_MBED_RTX_H
<> 149:156823d33999 18 #define MBED_MBED_RTX_H
<> 149:156823d33999 19
AnnaBridge 187:0387e8f68319 20 #include <stdint.h>
AnnaBridge 187:0387e8f68319 21
<> 149:156823d33999 22 #if defined(TARGET_LPC11U68)
<> 149:156823d33999 23
<> 149:156823d33999 24 #ifndef INITIAL_SP
<> 149:156823d33999 25 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 26 #endif
<> 149:156823d33999 27
<> 149:156823d33999 28 #elif defined(TARGET_LPC11U24) \
Anna Bridge 186:707f6e361f3e 29 || defined(TARGET_LPC11CXX) \
<> 149:156823d33999 30 || defined(TARGET_LPC11U35_401) \
<> 149:156823d33999 31 || defined(TARGET_LPC11U35_501) \
<> 149:156823d33999 32 || defined(TARGET_LPCCAPPUCCINO)
<> 149:156823d33999 33
<> 149:156823d33999 34 #ifndef INITIAL_SP
<> 149:156823d33999 35 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 36 #endif
<> 149:156823d33999 37
<> 149:156823d33999 38 #elif defined(TARGET_LPC1114)
<> 149:156823d33999 39
<> 149:156823d33999 40 #ifndef INITIAL_SP
<> 149:156823d33999 41 #define INITIAL_SP (0x10001000UL)
<> 149:156823d33999 42 #endif
<> 149:156823d33999 43
<> 149:156823d33999 44 #elif defined(TARGET_LPC1347)
<> 149:156823d33999 45
<> 149:156823d33999 46 #ifndef INITIAL_SP
<> 149:156823d33999 47 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 48 #endif
<> 149:156823d33999 49
<> 149:156823d33999 50 #elif defined(TARGET_LPC1549)
<> 149:156823d33999 51
<> 149:156823d33999 52 #ifndef INITIAL_SP
<> 149:156823d33999 53 #define INITIAL_SP (0x02009000UL)
<> 149:156823d33999 54 #endif
<> 149:156823d33999 55
AnnaBridge 177:d650f5d4c87a 56 #elif defined(TARGET_LPC1768) || defined(TARGET_LPC1769)
<> 149:156823d33999 57
<> 149:156823d33999 58 #ifndef INITIAL_SP
<> 149:156823d33999 59 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 60 #endif
<> 149:156823d33999 61
<> 149:156823d33999 62 #elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
<> 149:156823d33999 63
<> 149:156823d33999 64 #ifndef INITIAL_SP
<> 149:156823d33999 65 #define INITIAL_SP (0x10010000UL)
<> 149:156823d33999 66 #endif
<> 149:156823d33999 67
<> 149:156823d33999 68 #elif defined(TARGET_LPC4330) || defined(TARGET_LPC4337)
<> 149:156823d33999 69
<> 149:156823d33999 70 #ifndef INITIAL_SP
<> 149:156823d33999 71 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 72 #endif
<> 149:156823d33999 73
<> 149:156823d33999 74 #elif defined(TARGET_LPC812)
<> 149:156823d33999 75
<> 149:156823d33999 76 #ifndef INITIAL_SP
<> 149:156823d33999 77 #define INITIAL_SP (0x10001000UL)
<> 149:156823d33999 78 #endif
<> 149:156823d33999 79
<> 149:156823d33999 80 #elif defined(TARGET_LPC824) || defined(TARGET_SSCI824)
<> 149:156823d33999 81
<> 149:156823d33999 82 #ifndef INITIAL_SP
<> 149:156823d33999 83 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 84 #endif
<> 149:156823d33999 85
Kojto 170:19eb464bc2be 86 #elif defined(TARGET_LPC54114_M4)
Kojto 170:19eb464bc2be 87
Kojto 170:19eb464bc2be 88 #ifndef INITIAL_SP
Kojto 170:19eb464bc2be 89 #define INITIAL_SP (0x20010000UL)
Kojto 170:19eb464bc2be 90 #endif
Kojto 170:19eb464bc2be 91
AnnaBridge 175:af195413fb11 92 #elif defined(TARGET_LPC546XX)
Kojto 170:19eb464bc2be 93
Kojto 170:19eb464bc2be 94 #ifndef INITIAL_SP
Kojto 170:19eb464bc2be 95 #define INITIAL_SP (0x20028000UL)
Kojto 170:19eb464bc2be 96 #endif
Kojto 170:19eb464bc2be 97
AnnaBridge 187:0387e8f68319 98 #elif defined(TARGET_MIMXRT1050_EVK)
AnnaBridge 181:57724642e740 99
AnnaBridge 187:0387e8f68319 100 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
AnnaBridge 187:0387e8f68319 101 extern uint32_t Image$$RW_IRAM1$$ZI$$Base[];
AnnaBridge 187:0387e8f68319 102 extern uint32_t Image$$RW_IRAM1$$ZI$$Length[];
AnnaBridge 187:0387e8f68319 103 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
AnnaBridge 187:0387e8f68319 104 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
AnnaBridge 187:0387e8f68319 105 #define HEAP_START ((unsigned char*) Image$$RW_IRAM1$$ZI$$Base)
AnnaBridge 187:0387e8f68319 106 #define HEAP_SIZE ((uint32_t) Image$$RW_IRAM1$$ZI$$Length)
AnnaBridge 187:0387e8f68319 107 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
AnnaBridge 187:0387e8f68319 108 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
AnnaBridge 187:0387e8f68319 109 #elif defined(__GNUC__)
AnnaBridge 187:0387e8f68319 110 extern uint32_t __StackTop[];
AnnaBridge 187:0387e8f68319 111 extern uint32_t __StackLimit[];
AnnaBridge 187:0387e8f68319 112 extern uint32_t __end__;
AnnaBridge 187:0387e8f68319 113 extern uint32_t __HeapLimit[];
AnnaBridge 187:0387e8f68319 114 #define HEAP_START ((unsigned char*)&__end__)
AnnaBridge 187:0387e8f68319 115 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
AnnaBridge 187:0387e8f68319 116 #define ISR_STACK_START ((unsigned char*)__StackLimit)
AnnaBridge 187:0387e8f68319 117 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
AnnaBridge 187:0387e8f68319 118 #elif defined(__ICCARM__)
AnnaBridge 187:0387e8f68319 119 /* No region declarations needed */
AnnaBridge 187:0387e8f68319 120 #else
AnnaBridge 187:0387e8f68319 121 #error "no toolchain defined"
AnnaBridge 181:57724642e740 122 #endif
AnnaBridge 181:57724642e740 123
<> 149:156823d33999 124 #endif
<> 149:156823d33999 125
<> 149:156823d33999 126 #endif // MBED_MBED_RTX_H