forked

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Child:
167:e84263d55307
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

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
<> 149:156823d33999 20 #if defined(TARGET_LPC11U68)
<> 149:156823d33999 21
<> 149:156823d33999 22 #ifndef INITIAL_SP
<> 149:156823d33999 23 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 24 #endif
<> 149:156823d33999 25 #ifndef OS_TASKCNT
<> 149:156823d33999 26 #define OS_TASKCNT 14
<> 149:156823d33999 27 #endif
<> 149:156823d33999 28 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 29 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 30 #endif
<> 149:156823d33999 31 #ifndef OS_CLOCK
<> 149:156823d33999 32 #define OS_CLOCK 48000000
<> 149:156823d33999 33 #endif
<> 149:156823d33999 34
<> 149:156823d33999 35 #elif defined(TARGET_LPC11U24) \
<> 149:156823d33999 36 || defined(TARGET_LPC11U35_401) \
<> 149:156823d33999 37 || defined(TARGET_LPC11U35_501) \
<> 149:156823d33999 38 || defined(TARGET_LPCCAPPUCCINO)
<> 149:156823d33999 39
<> 149:156823d33999 40 #ifndef INITIAL_SP
<> 149:156823d33999 41 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 42 #endif
<> 149:156823d33999 43 #ifndef OS_TASKCNT
<> 149:156823d33999 44 #define OS_TASKCNT 6
<> 149:156823d33999 45 #endif
<> 149:156823d33999 46 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 47 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 48 #endif
<> 149:156823d33999 49 #ifndef OS_CLOCK
<> 149:156823d33999 50 #define OS_CLOCK 48000000
<> 149:156823d33999 51 #endif
<> 149:156823d33999 52
<> 149:156823d33999 53 #elif defined(TARGET_LPC1114)
<> 149:156823d33999 54
<> 149:156823d33999 55 #ifndef INITIAL_SP
<> 149:156823d33999 56 #define INITIAL_SP (0x10001000UL)
<> 149:156823d33999 57 #endif
<> 149:156823d33999 58 #ifndef OS_TASKCNT
<> 149:156823d33999 59 #define OS_TASKCNT 6
<> 149:156823d33999 60 #endif
<> 149:156823d33999 61 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 62 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 63 #endif
<> 149:156823d33999 64 #ifndef OS_CLOCK
<> 149:156823d33999 65 #define OS_CLOCK 48000000
<> 149:156823d33999 66 #endif
<> 149:156823d33999 67
<> 149:156823d33999 68 #elif defined(TARGET_LPC1347)
<> 149:156823d33999 69
<> 149:156823d33999 70 #ifndef INITIAL_SP
<> 149:156823d33999 71 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 72 #endif
<> 149:156823d33999 73 #ifndef OS_TASKCNT
<> 149:156823d33999 74 #define OS_TASKCNT 14
<> 149:156823d33999 75 #endif
<> 149:156823d33999 76 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 77 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 78 #endif
<> 149:156823d33999 79 #ifndef OS_CLOCK
<> 149:156823d33999 80 #define OS_CLOCK 72000000
<> 149:156823d33999 81 #endif
<> 149:156823d33999 82
<> 149:156823d33999 83 #elif defined(TARGET_LPC1549)
<> 149:156823d33999 84
<> 149:156823d33999 85 #ifndef INITIAL_SP
<> 149:156823d33999 86 #define INITIAL_SP (0x02009000UL)
<> 149:156823d33999 87 #endif
<> 149:156823d33999 88 #ifndef OS_TASKCNT
<> 149:156823d33999 89 #define OS_TASKCNT 14
<> 149:156823d33999 90 #endif
<> 149:156823d33999 91 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 92 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 93 #endif
<> 149:156823d33999 94 #ifndef OS_CLOCK
<> 149:156823d33999 95 #define OS_CLOCK 72000000
<> 149:156823d33999 96 #endif
<> 149:156823d33999 97
<> 149:156823d33999 98 #elif defined(TARGET_LPC1768)
<> 149:156823d33999 99
<> 149:156823d33999 100 #ifndef INITIAL_SP
<> 149:156823d33999 101 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 102 #endif
<> 149:156823d33999 103 #ifndef OS_TASKCNT
<> 149:156823d33999 104 #define OS_TASKCNT 14
<> 149:156823d33999 105 #endif
<> 149:156823d33999 106 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 107 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 108 #endif
<> 149:156823d33999 109 #ifndef OS_CLOCK
<> 149:156823d33999 110 #define OS_CLOCK 96000000
<> 149:156823d33999 111 #endif
<> 149:156823d33999 112
<> 149:156823d33999 113 #elif defined(TARGET_LPC2368)
<> 149:156823d33999 114
<> 149:156823d33999 115 /* FIXME: INITIAL_SP is undefined for this target */
<> 149:156823d33999 116 #ifndef OS_TASKCNT
<> 149:156823d33999 117 #define OS_TASKCNT 14
<> 149:156823d33999 118 #endif
<> 149:156823d33999 119 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 120 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 121 #endif
<> 149:156823d33999 122 #ifndef OS_CLOCK
<> 149:156823d33999 123 #define OS_CLOCK 96000000
<> 149:156823d33999 124 #endif
<> 149:156823d33999 125 #ifndef OS_SCHEDULERSTKSIZE
<> 149:156823d33999 126 #define OS_SCHEDULERSTKSIZE (136*2)
<> 149:156823d33999 127 #endif
<> 149:156823d33999 128
<> 149:156823d33999 129 #elif defined(TARGET_LPC2460)
<> 149:156823d33999 130
<> 149:156823d33999 131 extern unsigned char __usr_stack_top__[];
<> 149:156823d33999 132 #ifndef INITIAL_SP
<> 149:156823d33999 133 #define INITIAL_SP (__usr_stack_top__)
<> 149:156823d33999 134 #endif
<> 149:156823d33999 135 #ifndef OS_TASKCNT
<> 149:156823d33999 136 #define OS_TASKCNT 14
<> 149:156823d33999 137 #endif
<> 149:156823d33999 138 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 139 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 140 #endif
<> 149:156823d33999 141 #ifndef OS_CLOCK
<> 149:156823d33999 142 #define OS_CLOCK 72000000
<> 149:156823d33999 143 #endif
<> 149:156823d33999 144 #ifndef OS_SCHEDULERSTKSIZE
<> 149:156823d33999 145 #define OS_SCHEDULERSTKSIZE (136*2)
<> 149:156823d33999 146 #endif
<> 149:156823d33999 147
<> 149:156823d33999 148 #elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
<> 149:156823d33999 149
<> 149:156823d33999 150 #ifndef INITIAL_SP
<> 149:156823d33999 151 #define INITIAL_SP (0x10010000UL)
<> 149:156823d33999 152 #endif
<> 149:156823d33999 153 #ifndef OS_TASKCNT
<> 149:156823d33999 154 #define OS_TASKCNT 14
<> 149:156823d33999 155 #endif
<> 149:156823d33999 156 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 157 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 158 #endif
<> 149:156823d33999 159 #ifndef OS_CLOCK
<> 149:156823d33999 160 #define OS_CLOCK 120000000
<> 149:156823d33999 161 #endif
<> 149:156823d33999 162
<> 149:156823d33999 163 #elif defined(TARGET_LPC4330) || defined(TARGET_LPC4337)
<> 149:156823d33999 164
<> 149:156823d33999 165 #ifndef INITIAL_SP
<> 149:156823d33999 166 #define INITIAL_SP (0x10008000UL)
<> 149:156823d33999 167 #endif
<> 149:156823d33999 168 #define OS_TASKCNT 14
<> 149:156823d33999 169 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 170 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 171 #endif
<> 149:156823d33999 172 #ifndef OS_CLOCK
<> 149:156823d33999 173 #define OS_CLOCK 204000000
<> 149:156823d33999 174 #endif
<> 149:156823d33999 175
<> 149:156823d33999 176 #elif defined(TARGET_LPC812)
<> 149:156823d33999 177
<> 149:156823d33999 178 #ifndef INITIAL_SP
<> 149:156823d33999 179 #define INITIAL_SP (0x10001000UL)
<> 149:156823d33999 180 #endif
<> 149:156823d33999 181 #ifndef OS_TASKCNT
<> 149:156823d33999 182 #define OS_TASKCNT 6
<> 149:156823d33999 183 #endif
<> 149:156823d33999 184 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 185 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 186 #endif
<> 149:156823d33999 187 #ifndef OS_CLOCK
<> 149:156823d33999 188 #define OS_CLOCK 36000000
<> 149:156823d33999 189 #endif
<> 149:156823d33999 190
<> 149:156823d33999 191 #elif defined(TARGET_LPC824) || defined(TARGET_SSCI824)
<> 149:156823d33999 192
<> 149:156823d33999 193 #ifndef INITIAL_SP
<> 149:156823d33999 194 #define INITIAL_SP (0x10002000UL)
<> 149:156823d33999 195 #endif
<> 149:156823d33999 196 #ifndef OS_TASKCNT
<> 149:156823d33999 197 #define OS_TASKCNT 6
<> 149:156823d33999 198 #endif
<> 149:156823d33999 199 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 200 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 201 #endif
<> 149:156823d33999 202 #ifndef OS_CLOCK
<> 149:156823d33999 203 #define OS_CLOCK 30000000
<> 149:156823d33999 204 #endif
<> 149:156823d33999 205
<> 149:156823d33999 206 #endif
<> 149:156823d33999 207
<> 149:156823d33999 208 #endif // MBED_MBED_RTX_H