TUKS MCU Introductory course / TUKS-COURSE-TIMER
Committer:
elmot
Date:
Fri Feb 24 21:13:56 2017 +0000
Revision:
1:d0dfbce63a89
Ready-to-copy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elmot 1:d0dfbce63a89 1 /* mbed Microcontroller Library
elmot 1:d0dfbce63a89 2 * Copyright (c) 2016 ARM Limited
elmot 1:d0dfbce63a89 3 *
elmot 1:d0dfbce63a89 4 * Licensed under the Apache License, Version 2.0 (the "License");
elmot 1:d0dfbce63a89 5 * you may not use this file except in compliance with the License.
elmot 1:d0dfbce63a89 6 * You may obtain a copy of the License at
elmot 1:d0dfbce63a89 7 *
elmot 1:d0dfbce63a89 8 * http://www.apache.org/licenses/LICENSE-2.0
elmot 1:d0dfbce63a89 9 *
elmot 1:d0dfbce63a89 10 * Unless required by applicable law or agreed to in writing, software
elmot 1:d0dfbce63a89 11 * distributed under the License is distributed on an "AS IS" BASIS,
elmot 1:d0dfbce63a89 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
elmot 1:d0dfbce63a89 13 * See the License for the specific language governing permissions and
elmot 1:d0dfbce63a89 14 * limitations under the License.
elmot 1:d0dfbce63a89 15 */
elmot 1:d0dfbce63a89 16
elmot 1:d0dfbce63a89 17 #ifndef MBED_MBED_RTX_H
elmot 1:d0dfbce63a89 18 #define MBED_MBED_RTX_H
elmot 1:d0dfbce63a89 19
elmot 1:d0dfbce63a89 20 #if defined(TARGET_STM32F051R8)
elmot 1:d0dfbce63a89 21
elmot 1:d0dfbce63a89 22 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 23 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 24 #endif
elmot 1:d0dfbce63a89 25 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 26 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 27 #endif
elmot 1:d0dfbce63a89 28 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 29 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 30 #endif
elmot 1:d0dfbce63a89 31 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 32 #define OS_CLOCK 48000000
elmot 1:d0dfbce63a89 33 #endif
elmot 1:d0dfbce63a89 34
elmot 1:d0dfbce63a89 35 #elif defined(TARGET_STM32L031K6)
elmot 1:d0dfbce63a89 36
elmot 1:d0dfbce63a89 37 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 38 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 39 #endif
elmot 1:d0dfbce63a89 40 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 41 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 42 #endif
elmot 1:d0dfbce63a89 43 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 44 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 45 #endif
elmot 1:d0dfbce63a89 46 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 47 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 48 #endif
elmot 1:d0dfbce63a89 49
elmot 1:d0dfbce63a89 50 #elif defined(TARGET_STM32F070RB)
elmot 1:d0dfbce63a89 51
elmot 1:d0dfbce63a89 52 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 53 #define INITIAL_SP (0x20004000UL)
elmot 1:d0dfbce63a89 54 #endif
elmot 1:d0dfbce63a89 55 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 56 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 57 #endif
elmot 1:d0dfbce63a89 58 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 59 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 60 #endif
elmot 1:d0dfbce63a89 61 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 62 #define OS_CLOCK 48000000
elmot 1:d0dfbce63a89 63 #endif
elmot 1:d0dfbce63a89 64
elmot 1:d0dfbce63a89 65 #elif defined(TARGET_STM32F072RB)
elmot 1:d0dfbce63a89 66
elmot 1:d0dfbce63a89 67 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 68 #define INITIAL_SP (0x20004000UL)
elmot 1:d0dfbce63a89 69 #endif
elmot 1:d0dfbce63a89 70 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 71 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 72 #endif
elmot 1:d0dfbce63a89 73 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 74 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 75 #endif
elmot 1:d0dfbce63a89 76 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 77 #define OS_CLOCK 48000000
elmot 1:d0dfbce63a89 78 #endif
elmot 1:d0dfbce63a89 79
elmot 1:d0dfbce63a89 80 #elif defined(TARGET_STM32F091RC)
elmot 1:d0dfbce63a89 81
elmot 1:d0dfbce63a89 82 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 83 #define INITIAL_SP (0x20008000UL)
elmot 1:d0dfbce63a89 84 #endif
elmot 1:d0dfbce63a89 85 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 86 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 87 #endif
elmot 1:d0dfbce63a89 88 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 89 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 90 #endif
elmot 1:d0dfbce63a89 91 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 92 #define OS_CLOCK 48000000
elmot 1:d0dfbce63a89 93 #endif
elmot 1:d0dfbce63a89 94
elmot 1:d0dfbce63a89 95 #elif defined(TARGET_STM32F100RB)
elmot 1:d0dfbce63a89 96
elmot 1:d0dfbce63a89 97 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 98 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 99 #endif
elmot 1:d0dfbce63a89 100 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 101 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 102 #endif
elmot 1:d0dfbce63a89 103 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 104 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 105 #endif
elmot 1:d0dfbce63a89 106 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 107 #define OS_CLOCK 24000000
elmot 1:d0dfbce63a89 108 #endif
elmot 1:d0dfbce63a89 109
elmot 1:d0dfbce63a89 110 #elif defined(TARGET_STM32F103RB)
elmot 1:d0dfbce63a89 111
elmot 1:d0dfbce63a89 112 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 113 #define INITIAL_SP (0x20005000UL)
elmot 1:d0dfbce63a89 114 #endif
elmot 1:d0dfbce63a89 115 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 116 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 117 #endif
elmot 1:d0dfbce63a89 118 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 119 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 120 #endif
elmot 1:d0dfbce63a89 121 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 122 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 123 #endif
elmot 1:d0dfbce63a89 124
elmot 1:d0dfbce63a89 125 #elif defined(TARGET_STM32F207ZG)
elmot 1:d0dfbce63a89 126
elmot 1:d0dfbce63a89 127 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 128 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 129 #endif
elmot 1:d0dfbce63a89 130 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 131 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 132 #endif
elmot 1:d0dfbce63a89 133 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 134 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 135 #endif
elmot 1:d0dfbce63a89 136 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 137 #define OS_CLOCK 120000000
elmot 1:d0dfbce63a89 138 #endif
elmot 1:d0dfbce63a89 139
elmot 1:d0dfbce63a89 140 #elif defined(TARGET_STM32F303VC)
elmot 1:d0dfbce63a89 141
elmot 1:d0dfbce63a89 142 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 143 #define INITIAL_SP (0x2000A000UL)
elmot 1:d0dfbce63a89 144 #endif
elmot 1:d0dfbce63a89 145 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 146 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 147 #endif
elmot 1:d0dfbce63a89 148 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 149 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 150 #endif
elmot 1:d0dfbce63a89 151 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 152 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 153 #endif
elmot 1:d0dfbce63a89 154
elmot 1:d0dfbce63a89 155 #elif defined(TARGET_STM32F334C8)
elmot 1:d0dfbce63a89 156
elmot 1:d0dfbce63a89 157 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 158 #define INITIAL_SP (0x20003000UL)
elmot 1:d0dfbce63a89 159 #endif
elmot 1:d0dfbce63a89 160 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 161 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 162 #endif
elmot 1:d0dfbce63a89 163 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 164 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 165 #endif
elmot 1:d0dfbce63a89 166 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 167 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 168 #endif
elmot 1:d0dfbce63a89 169
elmot 1:d0dfbce63a89 170 #elif defined(TARGET_STM32F302R8)
elmot 1:d0dfbce63a89 171
elmot 1:d0dfbce63a89 172 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 173 #define INITIAL_SP (0x20004000UL)
elmot 1:d0dfbce63a89 174 #endif
elmot 1:d0dfbce63a89 175 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 176 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 177 #endif
elmot 1:d0dfbce63a89 178 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 179 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 180 #endif
elmot 1:d0dfbce63a89 181 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 182 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 183 #endif
elmot 1:d0dfbce63a89 184
elmot 1:d0dfbce63a89 185 #elif defined(TARGET_STM32F303K8)
elmot 1:d0dfbce63a89 186
elmot 1:d0dfbce63a89 187 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 188 #define INITIAL_SP (0x20003000UL)
elmot 1:d0dfbce63a89 189 #endif
elmot 1:d0dfbce63a89 190 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 191 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 192 #endif
elmot 1:d0dfbce63a89 193 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 194 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 195 #endif
elmot 1:d0dfbce63a89 196 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 197 #define OS_CLOCK 64000000
elmot 1:d0dfbce63a89 198 #endif
elmot 1:d0dfbce63a89 199
elmot 1:d0dfbce63a89 200 #elif defined(TARGET_STM32F303RE)
elmot 1:d0dfbce63a89 201
elmot 1:d0dfbce63a89 202 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 203 #define INITIAL_SP (0x20010000UL)
elmot 1:d0dfbce63a89 204 #endif
elmot 1:d0dfbce63a89 205 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 206 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 207 #endif
elmot 1:d0dfbce63a89 208 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 209 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 210 #endif
elmot 1:d0dfbce63a89 211 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 212 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 213 #endif
elmot 1:d0dfbce63a89 214
elmot 1:d0dfbce63a89 215 #elif defined(TARGET_STM32F303ZE)
elmot 1:d0dfbce63a89 216
elmot 1:d0dfbce63a89 217 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 218 #define INITIAL_SP (0x20010000UL)
elmot 1:d0dfbce63a89 219 #endif
elmot 1:d0dfbce63a89 220 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 221 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 222 #endif
elmot 1:d0dfbce63a89 223 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 224 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 225 #endif
elmot 1:d0dfbce63a89 226 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 227 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 228 #endif
elmot 1:d0dfbce63a89 229
elmot 1:d0dfbce63a89 230 #elif defined(TARGET_STM32F334R8)
elmot 1:d0dfbce63a89 231
elmot 1:d0dfbce63a89 232 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 233 #define INITIAL_SP (0x20003000UL)
elmot 1:d0dfbce63a89 234 #endif
elmot 1:d0dfbce63a89 235 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 236 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 237 #endif
elmot 1:d0dfbce63a89 238 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 239 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 240 #endif
elmot 1:d0dfbce63a89 241 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 242 #define OS_CLOCK 72000000
elmot 1:d0dfbce63a89 243 #endif
elmot 1:d0dfbce63a89 244
elmot 1:d0dfbce63a89 245 #elif defined(TARGET_STM32F446VE)
elmot 1:d0dfbce63a89 246
elmot 1:d0dfbce63a89 247 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 248 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 249 #endif
elmot 1:d0dfbce63a89 250 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 251 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 252 #endif
elmot 1:d0dfbce63a89 253 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 254 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 255 #endif
elmot 1:d0dfbce63a89 256 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 257 #define OS_CLOCK 180000000
elmot 1:d0dfbce63a89 258 #endif
elmot 1:d0dfbce63a89 259
elmot 1:d0dfbce63a89 260 #elif defined(TARGET_STM32F401VC)
elmot 1:d0dfbce63a89 261
elmot 1:d0dfbce63a89 262 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 263 #define INITIAL_SP (0x20010000UL)
elmot 1:d0dfbce63a89 264 #endif
elmot 1:d0dfbce63a89 265 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 266 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 267 #endif
elmot 1:d0dfbce63a89 268 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 269 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 270 #endif
elmot 1:d0dfbce63a89 271 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 272 #define OS_CLOCK 84000000
elmot 1:d0dfbce63a89 273 #endif
elmot 1:d0dfbce63a89 274
elmot 1:d0dfbce63a89 275 #elif (defined(TARGET_STM32F429ZI) || defined(TARGET_STM32F439ZI))
elmot 1:d0dfbce63a89 276
elmot 1:d0dfbce63a89 277 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 278 #define INITIAL_SP (0x20030000UL)
elmot 1:d0dfbce63a89 279 #endif
elmot 1:d0dfbce63a89 280 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 281 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 282 #endif
elmot 1:d0dfbce63a89 283 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 284 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 285 #endif
elmot 1:d0dfbce63a89 286 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 287 #define OS_CLOCK 168000000
elmot 1:d0dfbce63a89 288 #endif
elmot 1:d0dfbce63a89 289
elmot 1:d0dfbce63a89 290 #elif defined(TARGET_UBLOX_EVK_ODIN_W2)
elmot 1:d0dfbce63a89 291
elmot 1:d0dfbce63a89 292 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 293 #define INITIAL_SP (0x20030000UL)
elmot 1:d0dfbce63a89 294 #endif
elmot 1:d0dfbce63a89 295 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 296 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 297 #endif
elmot 1:d0dfbce63a89 298 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 299 #define OS_MAINSTKSIZE 512
elmot 1:d0dfbce63a89 300 #endif
elmot 1:d0dfbce63a89 301 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 302 #define OS_CLOCK 168000000
elmot 1:d0dfbce63a89 303 #endif
elmot 1:d0dfbce63a89 304
elmot 1:d0dfbce63a89 305 #elif defined(TARGET_STM32F469NI)
elmot 1:d0dfbce63a89 306
elmot 1:d0dfbce63a89 307 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 308 #define INITIAL_SP (0x20050000UL)
elmot 1:d0dfbce63a89 309 #endif
elmot 1:d0dfbce63a89 310 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 311 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 312 #endif
elmot 1:d0dfbce63a89 313 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 314 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 315 #endif
elmot 1:d0dfbce63a89 316 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 317 #define OS_CLOCK 168000000
elmot 1:d0dfbce63a89 318 #endif
elmot 1:d0dfbce63a89 319
elmot 1:d0dfbce63a89 320 #elif defined(TARGET_STM32F405RG)
elmot 1:d0dfbce63a89 321
elmot 1:d0dfbce63a89 322 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 323 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 324 #endif
elmot 1:d0dfbce63a89 325 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 326 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 327 #endif
elmot 1:d0dfbce63a89 328 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 329 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 330 #endif
elmot 1:d0dfbce63a89 331 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 332 #define OS_CLOCK 48000000
elmot 1:d0dfbce63a89 333 #endif
elmot 1:d0dfbce63a89 334
elmot 1:d0dfbce63a89 335 #elif defined(TARGET_STM32F401RE)
elmot 1:d0dfbce63a89 336
elmot 1:d0dfbce63a89 337 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 338 #define INITIAL_SP (0x20018000UL)
elmot 1:d0dfbce63a89 339 #endif
elmot 1:d0dfbce63a89 340 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 341 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 342 #endif
elmot 1:d0dfbce63a89 343 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 344 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 345 #endif
elmot 1:d0dfbce63a89 346 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 347 #define OS_CLOCK 84000000
elmot 1:d0dfbce63a89 348 #endif
elmot 1:d0dfbce63a89 349
elmot 1:d0dfbce63a89 350 #elif defined(TARGET_STM32F410RB)
elmot 1:d0dfbce63a89 351
elmot 1:d0dfbce63a89 352 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 353 #define INITIAL_SP (0x20008000UL)
elmot 1:d0dfbce63a89 354 #endif
elmot 1:d0dfbce63a89 355 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 356 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 357 #endif
elmot 1:d0dfbce63a89 358 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 359 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 360 #endif
elmot 1:d0dfbce63a89 361 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 362 #define OS_CLOCK 100000000
elmot 1:d0dfbce63a89 363 #endif
elmot 1:d0dfbce63a89 364
elmot 1:d0dfbce63a89 365 #elif defined(TARGET_MTS_MDOT_F411RE) || defined (TARGET_MTS_DRAGONFLY_F411RE)
elmot 1:d0dfbce63a89 366
elmot 1:d0dfbce63a89 367 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 368 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 369 #endif
elmot 1:d0dfbce63a89 370 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 371 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 372 #endif
elmot 1:d0dfbce63a89 373 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 374 #define OS_MAINSTKSIZE 1024
elmot 1:d0dfbce63a89 375 #endif
elmot 1:d0dfbce63a89 376 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 377 #define OS_CLOCK 96000000
elmot 1:d0dfbce63a89 378 #endif
elmot 1:d0dfbce63a89 379
elmot 1:d0dfbce63a89 380 #elif defined(TARGET_STM32F411RE)
elmot 1:d0dfbce63a89 381
elmot 1:d0dfbce63a89 382 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 383 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 384 #endif
elmot 1:d0dfbce63a89 385 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 386 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 387 #endif
elmot 1:d0dfbce63a89 388 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 389 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 390 #endif
elmot 1:d0dfbce63a89 391 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 392 #define OS_CLOCK 100000000
elmot 1:d0dfbce63a89 393 #endif
elmot 1:d0dfbce63a89 394
elmot 1:d0dfbce63a89 395 #elif defined(TARGET_STM32F412ZG)
elmot 1:d0dfbce63a89 396
elmot 1:d0dfbce63a89 397 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 398 #define INITIAL_SP (0x20040000UL)
elmot 1:d0dfbce63a89 399 #endif
elmot 1:d0dfbce63a89 400 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 401 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 402 #endif
elmot 1:d0dfbce63a89 403 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 404 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 405 #endif
elmot 1:d0dfbce63a89 406 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 407 #define OS_CLOCK 100000000
elmot 1:d0dfbce63a89 408 #endif
elmot 1:d0dfbce63a89 409
elmot 1:d0dfbce63a89 410 #elif defined(TARGET_STM32F446RE)
elmot 1:d0dfbce63a89 411
elmot 1:d0dfbce63a89 412 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 413 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 414 #endif
elmot 1:d0dfbce63a89 415 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 416 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 417 #endif
elmot 1:d0dfbce63a89 418 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 419 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 420 #endif
elmot 1:d0dfbce63a89 421 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 422 #define OS_CLOCK 180000000
elmot 1:d0dfbce63a89 423 #endif
elmot 1:d0dfbce63a89 424
elmot 1:d0dfbce63a89 425 #elif defined(TARGET_STM32F446ZE)
elmot 1:d0dfbce63a89 426
elmot 1:d0dfbce63a89 427 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 428 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 429 #endif
elmot 1:d0dfbce63a89 430 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 431 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 432 #endif
elmot 1:d0dfbce63a89 433 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 434 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 435 #endif
elmot 1:d0dfbce63a89 436 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 437 #define OS_CLOCK 180000000
elmot 1:d0dfbce63a89 438 #endif
elmot 1:d0dfbce63a89 439
elmot 1:d0dfbce63a89 440 #elif defined(TARGET_STM32F407VG)
elmot 1:d0dfbce63a89 441
elmot 1:d0dfbce63a89 442 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 443 #define INITIAL_SP (0x20020000UL)
elmot 1:d0dfbce63a89 444 #endif
elmot 1:d0dfbce63a89 445 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 446 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 447 #endif
elmot 1:d0dfbce63a89 448 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 449 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 450 #endif
elmot 1:d0dfbce63a89 451 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 452 #define OS_CLOCK 168000000
elmot 1:d0dfbce63a89 453 #endif
elmot 1:d0dfbce63a89 454
elmot 1:d0dfbce63a89 455 #elif defined(TARGET_STM32F746NG)
elmot 1:d0dfbce63a89 456
elmot 1:d0dfbce63a89 457 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 458 #define INITIAL_SP (0x20050000UL)
elmot 1:d0dfbce63a89 459 #endif
elmot 1:d0dfbce63a89 460 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 461 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 462 #endif
elmot 1:d0dfbce63a89 463 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 464 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 465 #endif
elmot 1:d0dfbce63a89 466 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 467 #define OS_CLOCK 216000000
elmot 1:d0dfbce63a89 468 #endif
elmot 1:d0dfbce63a89 469
elmot 1:d0dfbce63a89 470 #elif (defined(TARGET_STM32F746ZG) || defined(TARGET_STM32F756ZG))
elmot 1:d0dfbce63a89 471
elmot 1:d0dfbce63a89 472 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 473 #define INITIAL_SP (0x20050000UL)
elmot 1:d0dfbce63a89 474 #endif
elmot 1:d0dfbce63a89 475 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 476 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 477 #endif
elmot 1:d0dfbce63a89 478 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 479 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 480 #endif
elmot 1:d0dfbce63a89 481 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 482 #define OS_CLOCK 216000000
elmot 1:d0dfbce63a89 483 #endif
elmot 1:d0dfbce63a89 484
elmot 1:d0dfbce63a89 485 #elif defined(TARGET_STM32F767ZI)
elmot 1:d0dfbce63a89 486
elmot 1:d0dfbce63a89 487 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 488 #define INITIAL_SP (0x20080000UL)
elmot 1:d0dfbce63a89 489 #endif
elmot 1:d0dfbce63a89 490 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 491 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 492 #endif
elmot 1:d0dfbce63a89 493 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 494 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 495 #endif
elmot 1:d0dfbce63a89 496 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 497 #define OS_CLOCK 216000000
elmot 1:d0dfbce63a89 498 #endif
elmot 1:d0dfbce63a89 499
elmot 1:d0dfbce63a89 500 #elif defined(TARGET_STM32F769NI)
elmot 1:d0dfbce63a89 501
elmot 1:d0dfbce63a89 502 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 503 #define INITIAL_SP (0x20080000UL)
elmot 1:d0dfbce63a89 504 #endif
elmot 1:d0dfbce63a89 505 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 506 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 507 #endif
elmot 1:d0dfbce63a89 508 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 509 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 510 #endif
elmot 1:d0dfbce63a89 511 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 512 #define OS_CLOCK 216000000
elmot 1:d0dfbce63a89 513 #endif
elmot 1:d0dfbce63a89 514
elmot 1:d0dfbce63a89 515 #elif defined(TARGET_STM32L053C8)
elmot 1:d0dfbce63a89 516
elmot 1:d0dfbce63a89 517 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 518 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 519 #endif
elmot 1:d0dfbce63a89 520 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 521 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 522 #endif
elmot 1:d0dfbce63a89 523 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 524 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 525 #endif
elmot 1:d0dfbce63a89 526 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 527 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 528 #endif
elmot 1:d0dfbce63a89 529
elmot 1:d0dfbce63a89 530 #elif defined(TARGET_STM32L031K6)
elmot 1:d0dfbce63a89 531
elmot 1:d0dfbce63a89 532 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 533 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 534 #endif
elmot 1:d0dfbce63a89 535 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 536 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 537 #endif
elmot 1:d0dfbce63a89 538 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 539 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 540 #endif
elmot 1:d0dfbce63a89 541 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 542 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 543 #endif
elmot 1:d0dfbce63a89 544
elmot 1:d0dfbce63a89 545 #elif defined(TARGET_STM32L053R8)
elmot 1:d0dfbce63a89 546
elmot 1:d0dfbce63a89 547 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 548 #define INITIAL_SP (0x20002000UL)
elmot 1:d0dfbce63a89 549 #endif
elmot 1:d0dfbce63a89 550 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 551 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 552 #endif
elmot 1:d0dfbce63a89 553 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 554 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 555 #endif
elmot 1:d0dfbce63a89 556 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 557 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 558 #endif
elmot 1:d0dfbce63a89 559
elmot 1:d0dfbce63a89 560 #elif defined(TARGET_STM32L073RZ)
elmot 1:d0dfbce63a89 561
elmot 1:d0dfbce63a89 562 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 563 #define INITIAL_SP (0x20005000UL)
elmot 1:d0dfbce63a89 564 #endif
elmot 1:d0dfbce63a89 565 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 566 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 567 #endif
elmot 1:d0dfbce63a89 568 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 569 #define OS_MAINSTKSIZE 112
elmot 1:d0dfbce63a89 570 #endif
elmot 1:d0dfbce63a89 571 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 572 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 573 #endif
elmot 1:d0dfbce63a89 574
elmot 1:d0dfbce63a89 575 #elif defined(TARGET_STM32L152RC)
elmot 1:d0dfbce63a89 576
elmot 1:d0dfbce63a89 577 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 578 #define INITIAL_SP (0x20008000UL)
elmot 1:d0dfbce63a89 579 #endif
elmot 1:d0dfbce63a89 580 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 581 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 582 #endif
elmot 1:d0dfbce63a89 583 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 584 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 585 #endif
elmot 1:d0dfbce63a89 586 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 587 #define OS_CLOCK 24000000
elmot 1:d0dfbce63a89 588 #endif
elmot 1:d0dfbce63a89 589
elmot 1:d0dfbce63a89 590 #elif defined(TARGET_STM32L152RE)
elmot 1:d0dfbce63a89 591
elmot 1:d0dfbce63a89 592 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 593 #define INITIAL_SP (0x20014000UL)
elmot 1:d0dfbce63a89 594 #endif
elmot 1:d0dfbce63a89 595 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 596 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 597 #endif
elmot 1:d0dfbce63a89 598 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 599 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 600 #endif
elmot 1:d0dfbce63a89 601 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 602 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 603 #endif
elmot 1:d0dfbce63a89 604
elmot 1:d0dfbce63a89 605 #elif defined(TARGET_NZ32_SC151)
elmot 1:d0dfbce63a89 606
elmot 1:d0dfbce63a89 607 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 608 #define INITIAL_SP (0x20008000UL)
elmot 1:d0dfbce63a89 609 #endif
elmot 1:d0dfbce63a89 610 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 611 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 612 #endif
elmot 1:d0dfbce63a89 613 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 614 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 615 #endif
elmot 1:d0dfbce63a89 616 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 617 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 618 #endif
elmot 1:d0dfbce63a89 619
elmot 1:d0dfbce63a89 620 #elif defined(TARGET_XDOT_L151CC)
elmot 1:d0dfbce63a89 621
elmot 1:d0dfbce63a89 622 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 623 #define INITIAL_SP (0x20008000UL)
elmot 1:d0dfbce63a89 624 #endif
elmot 1:d0dfbce63a89 625 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 626 #define OS_TASKCNT 6
elmot 1:d0dfbce63a89 627 #endif
elmot 1:d0dfbce63a89 628 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 629 #define OS_MAINSTKSIZE 128
elmot 1:d0dfbce63a89 630 #endif
elmot 1:d0dfbce63a89 631 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 632 #define OS_CLOCK 32000000
elmot 1:d0dfbce63a89 633 #endif
elmot 1:d0dfbce63a89 634
elmot 1:d0dfbce63a89 635 #elif defined(TARGET_STM32L476VG)
elmot 1:d0dfbce63a89 636
elmot 1:d0dfbce63a89 637 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 638 #define INITIAL_SP (0x20018000UL)
elmot 1:d0dfbce63a89 639 #endif
elmot 1:d0dfbce63a89 640 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 641 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 642 #endif
elmot 1:d0dfbce63a89 643 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 644 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 645 #endif
elmot 1:d0dfbce63a89 646 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 647 #define OS_CLOCK 80000000
elmot 1:d0dfbce63a89 648 #endif
elmot 1:d0dfbce63a89 649
elmot 1:d0dfbce63a89 650 #elif defined(TARGET_STM32L432KC)
elmot 1:d0dfbce63a89 651
elmot 1:d0dfbce63a89 652 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 653 #define INITIAL_SP (0x2000C000UL)
elmot 1:d0dfbce63a89 654 #endif
elmot 1:d0dfbce63a89 655 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 656 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 657 #endif
elmot 1:d0dfbce63a89 658 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 659 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 660 #endif
elmot 1:d0dfbce63a89 661 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 662 #define OS_CLOCK 80000000
elmot 1:d0dfbce63a89 663 #endif
elmot 1:d0dfbce63a89 664
elmot 1:d0dfbce63a89 665 #elif (defined(TARGET_STM32L476RG) || defined(TARGET_STM32L486RG))
elmot 1:d0dfbce63a89 666
elmot 1:d0dfbce63a89 667 #ifndef INITIAL_SP
elmot 1:d0dfbce63a89 668 #define INITIAL_SP (0x20018000UL)
elmot 1:d0dfbce63a89 669 #endif
elmot 1:d0dfbce63a89 670 #ifndef OS_TASKCNT
elmot 1:d0dfbce63a89 671 #define OS_TASKCNT 14
elmot 1:d0dfbce63a89 672 #endif
elmot 1:d0dfbce63a89 673 #ifndef OS_MAINSTKSIZE
elmot 1:d0dfbce63a89 674 #define OS_MAINSTKSIZE 256
elmot 1:d0dfbce63a89 675 #endif
elmot 1:d0dfbce63a89 676 #ifndef OS_CLOCK
elmot 1:d0dfbce63a89 677 #define OS_CLOCK 80000000
elmot 1:d0dfbce63a89 678 #endif
elmot 1:d0dfbce63a89 679
elmot 1:d0dfbce63a89 680 #endif
elmot 1:d0dfbce63a89 681
elmot 1:d0dfbce63a89 682 #endif // MBED_MBED_RTX_H