mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Tue Dec 20 17:27:56 2016 +0000
Revision:
153:fa9ff456f731
Parent:
150:02e0a0aed4ec
Child:
165:e614a9f1c9e2
This updates the lib to the mbed lib v132

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_K20D50M)
<> 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 96000000
<> 149:156823d33999 33 #endif
<> 149:156823d33999 34
<> 149:156823d33999 35 #elif defined(TARGET_TEENSY3_1)
<> 149:156823d33999 36
<> 149:156823d33999 37 #ifndef INITIAL_SP
<> 149:156823d33999 38 #define INITIAL_SP (0x20008000UL)
<> 149:156823d33999 39 #endif
<> 149:156823d33999 40 #ifndef OS_TASKCNT
<> 149:156823d33999 41 #define OS_TASKCNT 14
<> 149:156823d33999 42 #endif
<> 149:156823d33999 43 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 44 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 45 #endif
<> 149:156823d33999 46 #ifndef OS_CLOCK
<> 149:156823d33999 47 #define OS_CLOCK 96000000
<> 149:156823d33999 48 #endif
<> 149:156823d33999 49
<> 150:02e0a0aed4ec 50 #elif defined(TARGET_MCU_K22F)
<> 149:156823d33999 51
<> 149:156823d33999 52 #ifndef INITIAL_SP
<> 149:156823d33999 53 #define INITIAL_SP (0x20010000UL)
<> 149:156823d33999 54 #endif
<> 149:156823d33999 55 #ifndef OS_TASKCNT
<> 149:156823d33999 56 #define OS_TASKCNT 14
<> 149:156823d33999 57 #endif
<> 149:156823d33999 58 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 59 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 60 #endif
<> 149:156823d33999 61 #ifndef OS_CLOCK
<> 149:156823d33999 62 #define OS_CLOCK 80000000
<> 149:156823d33999 63 #endif
<> 149:156823d33999 64
<> 149:156823d33999 65 #elif defined(TARGET_K66F)
<> 149:156823d33999 66
<> 149:156823d33999 67 #ifndef INITIAL_SP
<> 149:156823d33999 68 #define INITIAL_SP (0x20030000UL)
<> 149:156823d33999 69 #endif
<> 149:156823d33999 70 #ifndef OS_TASKCNT
<> 149:156823d33999 71 #define OS_TASKCNT 14
<> 149:156823d33999 72 #endif
<> 149:156823d33999 73 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 74 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 75 #endif
<> 149:156823d33999 76 #ifndef OS_CLOCK
<> 149:156823d33999 77 #define OS_CLOCK 120000000
<> 149:156823d33999 78 #endif
<> 149:156823d33999 79
<> 149:156823d33999 80 #elif defined(TARGET_KL27Z)
<> 149:156823d33999 81
<> 149:156823d33999 82 #ifndef INITIAL_SP
<> 149:156823d33999 83 #define INITIAL_SP (0x20003000UL)
<> 149:156823d33999 84 #endif
<> 149:156823d33999 85 #ifndef OS_TASKCNT
<> 149:156823d33999 86 #define OS_TASKCNT 6
<> 149:156823d33999 87 #endif
<> 149:156823d33999 88 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 89 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 90 #endif
<> 149:156823d33999 91 #ifndef OS_CLOCK
<> 149:156823d33999 92 #define OS_CLOCK 48000000
<> 149:156823d33999 93 #endif
<> 149:156823d33999 94
<> 149:156823d33999 95 #elif defined(TARGET_KL43Z)
<> 149:156823d33999 96
<> 149:156823d33999 97 #ifndef INITIAL_SP
<> 149:156823d33999 98 #define INITIAL_SP (0x20006000UL)
<> 149:156823d33999 99 #endif
<> 149:156823d33999 100 #ifndef OS_TASKCNT
<> 149:156823d33999 101 #define OS_TASKCNT 14
<> 149:156823d33999 102 #endif
<> 149:156823d33999 103 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 104 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 105 #endif
<> 149:156823d33999 106 #ifndef OS_CLOCK
<> 149:156823d33999 107 #define OS_CLOCK 48000000
<> 149:156823d33999 108 #endif
<> 149:156823d33999 109
<> 149:156823d33999 110 #elif defined(TARGET_KL05Z)
<> 149:156823d33999 111
<> 149:156823d33999 112 #ifndef INITIAL_SP
<> 149:156823d33999 113 #define INITIAL_SP (0x20000C00UL)
<> 149:156823d33999 114 #endif
<> 149:156823d33999 115 #ifndef OS_TASKCNT
<> 149:156823d33999 116 #define OS_TASKCNT 6
<> 149:156823d33999 117 #endif
<> 149:156823d33999 118 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 119 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 120 #endif
<> 149:156823d33999 121 #ifndef OS_CLOCK
<> 149:156823d33999 122 #define OS_CLOCK 48000000
<> 149:156823d33999 123 #endif
<> 149:156823d33999 124
<> 149:156823d33999 125 #elif defined(TARGET_KL25Z)
<> 149:156823d33999 126
<> 149:156823d33999 127 #ifndef INITIAL_SP
<> 149:156823d33999 128 #define INITIAL_SP (0x20003000UL)
<> 149:156823d33999 129 #endif
<> 149:156823d33999 130 #ifndef OS_TASKCNT
<> 149:156823d33999 131 #define OS_TASKCNT 6
<> 149:156823d33999 132 #endif
<> 149:156823d33999 133 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 134 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 135 #endif
<> 149:156823d33999 136 #ifndef OS_CLOCK
<> 149:156823d33999 137 #define OS_CLOCK 48000000
<> 149:156823d33999 138 #endif
<> 149:156823d33999 139
<> 149:156823d33999 140 #elif defined(TARGET_KL26Z)
<> 149:156823d33999 141
<> 149:156823d33999 142 #ifndef INITIAL_SP
<> 149:156823d33999 143 #define INITIAL_SP (0x20003000UL)
<> 149:156823d33999 144 #endif
<> 149:156823d33999 145 #ifndef OS_TASKCNT
<> 149:156823d33999 146 #define OS_TASKCNT 6
<> 149:156823d33999 147 #endif
<> 149:156823d33999 148 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 149 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 150 #endif
<> 149:156823d33999 151 #ifndef OS_CLOCK
<> 149:156823d33999 152 #define OS_CLOCK 48000000
<> 149:156823d33999 153 #endif
<> 149:156823d33999 154
<> 149:156823d33999 155 #elif defined(TARGET_KL46Z)
<> 149:156823d33999 156
<> 149:156823d33999 157 #ifndef INITIAL_SP
<> 149:156823d33999 158 #define INITIAL_SP (0x20006000UL)
<> 149:156823d33999 159 #endif
<> 149:156823d33999 160 #ifndef OS_TASKCNT
<> 149:156823d33999 161 #define OS_TASKCNT 14
<> 149:156823d33999 162 #endif
<> 149:156823d33999 163 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 164 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 165 #endif
<> 149:156823d33999 166 #ifndef OS_CLOCK
<> 149:156823d33999 167 #define OS_CLOCK 48000000
<> 149:156823d33999 168 #endif
<> 149:156823d33999 169
<> 149:156823d33999 170 #elif defined(TARGET_KL82Z)
<> 149:156823d33999 171
<> 149:156823d33999 172 #ifndef INITIAL_SP
<> 149:156823d33999 173 #define INITIAL_SP (0x20012000UL)
<> 149:156823d33999 174 #endif
<> 149:156823d33999 175 #ifndef OS_TASKCNT
<> 149:156823d33999 176 #define OS_TASKCNT 14
<> 149:156823d33999 177 #endif
<> 149:156823d33999 178 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 179 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 180 #endif
<> 149:156823d33999 181 #ifndef OS_CLOCK
<> 149:156823d33999 182 #define OS_CLOCK 72000000
<> 149:156823d33999 183 #endif
<> 149:156823d33999 184
<> 149:156823d33999 185 #elif defined(TARGET_K64F)
<> 149:156823d33999 186
<> 149:156823d33999 187 #ifndef INITIAL_SP
<> 149:156823d33999 188 #define INITIAL_SP (0x20030000UL)
<> 149:156823d33999 189 #endif
<> 149:156823d33999 190
<> 149:156823d33999 191 #if defined(__CC_ARM) || defined(__GNUC__)
<> 149:156823d33999 192 #define ISR_STACK_SIZE (0x1000)
<> 149:156823d33999 193 #endif
<> 149:156823d33999 194
<> 149:156823d33999 195 #ifndef OS_TASKCNT
<> 149:156823d33999 196 #define OS_TASKCNT 14
<> 149:156823d33999 197 #endif
<> 149:156823d33999 198 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 199 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 200 #endif
<> 149:156823d33999 201 #ifndef OS_CLOCK
<> 149:156823d33999 202 #define OS_CLOCK 120000000
<> 149:156823d33999 203 #endif
<> 149:156823d33999 204
<> 150:02e0a0aed4ec 205 #elif defined(TARGET_KW24D)
<> 150:02e0a0aed4ec 206
<> 150:02e0a0aed4ec 207 #ifndef INITIAL_SP
<> 150:02e0a0aed4ec 208 #define INITIAL_SP (0x20008000UL)
<> 150:02e0a0aed4ec 209 #endif
<> 150:02e0a0aed4ec 210 #ifndef OS_TASKCNT
<> 150:02e0a0aed4ec 211 #define OS_TASKCNT 14
<> 150:02e0a0aed4ec 212 #endif
<> 150:02e0a0aed4ec 213 #ifndef OS_MAINSTKSIZE
<> 150:02e0a0aed4ec 214 #define OS_MAINSTKSIZE 256
<> 150:02e0a0aed4ec 215 #endif
<> 150:02e0a0aed4ec 216 #ifndef OS_CLOCK
<> 150:02e0a0aed4ec 217 #define OS_CLOCK 48000000
<> 150:02e0a0aed4ec 218 #endif
<> 150:02e0a0aed4ec 219
<> 153:fa9ff456f731 220 #elif defined(TARGET_KW41Z)
<> 153:fa9ff456f731 221
<> 153:fa9ff456f731 222 #ifndef INITIAL_SP
<> 153:fa9ff456f731 223 #define INITIAL_SP (0x20018000UL)
<> 153:fa9ff456f731 224 #endif
<> 153:fa9ff456f731 225 #ifndef OS_TASKCNT
<> 153:fa9ff456f731 226 #define OS_TASKCNT 14
<> 153:fa9ff456f731 227 #endif
<> 153:fa9ff456f731 228 #ifndef OS_MAINSTKSIZE
<> 153:fa9ff456f731 229 #define OS_MAINSTKSIZE 256
<> 153:fa9ff456f731 230 #endif
<> 153:fa9ff456f731 231 #ifndef OS_CLOCK
<> 153:fa9ff456f731 232 #define OS_CLOCK 40000000
<> 153:fa9ff456f731 233 #endif
<> 153:fa9ff456f731 234
<> 150:02e0a0aed4ec 235 #elif defined(TARGET_K82F)
<> 150:02e0a0aed4ec 236
<> 150:02e0a0aed4ec 237 #ifndef INITIAL_SP
<> 150:02e0a0aed4ec 238 #define INITIAL_SP (0x20030000UL)
<> 150:02e0a0aed4ec 239 #endif
<> 150:02e0a0aed4ec 240 #ifndef OS_TASKCNT
<> 150:02e0a0aed4ec 241 #define OS_TASKCNT 14
<> 150:02e0a0aed4ec 242 #endif
<> 150:02e0a0aed4ec 243 #ifndef OS_MAINSTKSIZE
<> 150:02e0a0aed4ec 244 #define OS_MAINSTKSIZE 256
<> 150:02e0a0aed4ec 245 #endif
<> 150:02e0a0aed4ec 246 #ifndef OS_CLOCK
<> 150:02e0a0aed4ec 247 #define OS_CLOCK 120000000
<> 150:02e0a0aed4ec 248 #endif
<> 150:02e0a0aed4ec 249
<> 149:156823d33999 250 #endif
<> 149:156823d33999 251
<> 149:156823d33999 252 #endif // MBED_MBED_RTX_H