The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_RO359B/TARGET_Freescale/mbed_rtx.h@143:86740a56073b, 2017-05-26 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri May 26 12:30:20 2017 +0100
- Revision:
- 143:86740a56073b
- Child:
- 145:64910690c574
Release 143 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 143:86740a56073b | 1 | /* mbed Microcontroller Library |
AnnaBridge | 143:86740a56073b | 2 | * Copyright (c) 2016 ARM Limited |
AnnaBridge | 143:86740a56073b | 3 | * |
AnnaBridge | 143:86740a56073b | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 143:86740a56073b | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 143:86740a56073b | 6 | * You may obtain a copy of the License at |
AnnaBridge | 143:86740a56073b | 7 | * |
AnnaBridge | 143:86740a56073b | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 143:86740a56073b | 9 | * |
AnnaBridge | 143:86740a56073b | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 143:86740a56073b | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 143:86740a56073b | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 143:86740a56073b | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 143:86740a56073b | 14 | * limitations under the License. |
AnnaBridge | 143:86740a56073b | 15 | */ |
AnnaBridge | 143:86740a56073b | 16 | |
AnnaBridge | 143:86740a56073b | 17 | #ifndef MBED_MBED_RTX_H |
AnnaBridge | 143:86740a56073b | 18 | #define MBED_MBED_RTX_H |
AnnaBridge | 143:86740a56073b | 19 | |
AnnaBridge | 143:86740a56073b | 20 | #if defined(TARGET_K20D50M) |
AnnaBridge | 143:86740a56073b | 21 | |
AnnaBridge | 143:86740a56073b | 22 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 23 | #define INITIAL_SP (0x10008000UL) |
AnnaBridge | 143:86740a56073b | 24 | #endif |
AnnaBridge | 143:86740a56073b | 25 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 26 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 27 | #endif |
AnnaBridge | 143:86740a56073b | 28 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 29 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 30 | #endif |
AnnaBridge | 143:86740a56073b | 31 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 32 | #define OS_CLOCK 96000000 |
AnnaBridge | 143:86740a56073b | 33 | #endif |
AnnaBridge | 143:86740a56073b | 34 | |
AnnaBridge | 143:86740a56073b | 35 | #elif defined(TARGET_TEENSY3_1) |
AnnaBridge | 143:86740a56073b | 36 | |
AnnaBridge | 143:86740a56073b | 37 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 38 | #define INITIAL_SP (0x20008000UL) |
AnnaBridge | 143:86740a56073b | 39 | #endif |
AnnaBridge | 143:86740a56073b | 40 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 41 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 42 | #endif |
AnnaBridge | 143:86740a56073b | 43 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 44 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 45 | #endif |
AnnaBridge | 143:86740a56073b | 46 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 47 | #define OS_CLOCK 96000000 |
AnnaBridge | 143:86740a56073b | 48 | #endif |
AnnaBridge | 143:86740a56073b | 49 | |
AnnaBridge | 143:86740a56073b | 50 | #elif defined(TARGET_MCU_K22F) |
AnnaBridge | 143:86740a56073b | 51 | |
AnnaBridge | 143:86740a56073b | 52 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 53 | #define INITIAL_SP (0x20010000UL) |
AnnaBridge | 143:86740a56073b | 54 | #endif |
AnnaBridge | 143:86740a56073b | 55 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 56 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 57 | #endif |
AnnaBridge | 143:86740a56073b | 58 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 59 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 60 | #endif |
AnnaBridge | 143:86740a56073b | 61 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 62 | #define OS_CLOCK 80000000 |
AnnaBridge | 143:86740a56073b | 63 | #endif |
AnnaBridge | 143:86740a56073b | 64 | |
AnnaBridge | 143:86740a56073b | 65 | #elif defined(TARGET_K66F) |
AnnaBridge | 143:86740a56073b | 66 | |
AnnaBridge | 143:86740a56073b | 67 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 68 | #define INITIAL_SP (0x20030000UL) |
AnnaBridge | 143:86740a56073b | 69 | #endif |
AnnaBridge | 143:86740a56073b | 70 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 71 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 72 | #endif |
AnnaBridge | 143:86740a56073b | 73 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 74 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 75 | #endif |
AnnaBridge | 143:86740a56073b | 76 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 77 | #define OS_CLOCK 120000000 |
AnnaBridge | 143:86740a56073b | 78 | #endif |
AnnaBridge | 143:86740a56073b | 79 | |
AnnaBridge | 143:86740a56073b | 80 | #elif defined(TARGET_KL27Z) |
AnnaBridge | 143:86740a56073b | 81 | |
AnnaBridge | 143:86740a56073b | 82 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 83 | #define INITIAL_SP (0x20003000UL) |
AnnaBridge | 143:86740a56073b | 84 | #endif |
AnnaBridge | 143:86740a56073b | 85 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 86 | #define OS_TASKCNT 6 |
AnnaBridge | 143:86740a56073b | 87 | #endif |
AnnaBridge | 143:86740a56073b | 88 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 89 | #define OS_MAINSTKSIZE 128 |
AnnaBridge | 143:86740a56073b | 90 | #endif |
AnnaBridge | 143:86740a56073b | 91 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 92 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 93 | #endif |
AnnaBridge | 143:86740a56073b | 94 | |
AnnaBridge | 143:86740a56073b | 95 | #elif defined(TARGET_KL43Z) |
AnnaBridge | 143:86740a56073b | 96 | |
AnnaBridge | 143:86740a56073b | 97 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 98 | #define INITIAL_SP (0x20006000UL) |
AnnaBridge | 143:86740a56073b | 99 | #endif |
AnnaBridge | 143:86740a56073b | 100 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 101 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 102 | #endif |
AnnaBridge | 143:86740a56073b | 103 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 104 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 105 | #endif |
AnnaBridge | 143:86740a56073b | 106 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 107 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 108 | #endif |
AnnaBridge | 143:86740a56073b | 109 | |
AnnaBridge | 143:86740a56073b | 110 | #elif defined(TARGET_KL05Z) |
AnnaBridge | 143:86740a56073b | 111 | |
AnnaBridge | 143:86740a56073b | 112 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 113 | #define INITIAL_SP (0x20000C00UL) |
AnnaBridge | 143:86740a56073b | 114 | #endif |
AnnaBridge | 143:86740a56073b | 115 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 116 | #define OS_TASKCNT 6 |
AnnaBridge | 143:86740a56073b | 117 | #endif |
AnnaBridge | 143:86740a56073b | 118 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 119 | #define OS_MAINSTKSIZE 128 |
AnnaBridge | 143:86740a56073b | 120 | #endif |
AnnaBridge | 143:86740a56073b | 121 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 122 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 123 | #endif |
AnnaBridge | 143:86740a56073b | 124 | |
AnnaBridge | 143:86740a56073b | 125 | #elif defined(TARGET_KL25Z) |
AnnaBridge | 143:86740a56073b | 126 | |
AnnaBridge | 143:86740a56073b | 127 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 128 | #define INITIAL_SP (0x20003000UL) |
AnnaBridge | 143:86740a56073b | 129 | #endif |
AnnaBridge | 143:86740a56073b | 130 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 131 | #define OS_TASKCNT 6 |
AnnaBridge | 143:86740a56073b | 132 | #endif |
AnnaBridge | 143:86740a56073b | 133 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 134 | #define OS_MAINSTKSIZE 128 |
AnnaBridge | 143:86740a56073b | 135 | #endif |
AnnaBridge | 143:86740a56073b | 136 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 137 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 138 | #endif |
AnnaBridge | 143:86740a56073b | 139 | |
AnnaBridge | 143:86740a56073b | 140 | #elif defined(TARGET_KL26Z) |
AnnaBridge | 143:86740a56073b | 141 | |
AnnaBridge | 143:86740a56073b | 142 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 143 | #define INITIAL_SP (0x20003000UL) |
AnnaBridge | 143:86740a56073b | 144 | #endif |
AnnaBridge | 143:86740a56073b | 145 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 146 | #define OS_TASKCNT 6 |
AnnaBridge | 143:86740a56073b | 147 | #endif |
AnnaBridge | 143:86740a56073b | 148 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 149 | #define OS_MAINSTKSIZE 128 |
AnnaBridge | 143:86740a56073b | 150 | #endif |
AnnaBridge | 143:86740a56073b | 151 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 152 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 153 | #endif |
AnnaBridge | 143:86740a56073b | 154 | |
AnnaBridge | 143:86740a56073b | 155 | #elif defined(TARGET_KL46Z) |
AnnaBridge | 143:86740a56073b | 156 | |
AnnaBridge | 143:86740a56073b | 157 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 158 | #define INITIAL_SP (0x20006000UL) |
AnnaBridge | 143:86740a56073b | 159 | #endif |
AnnaBridge | 143:86740a56073b | 160 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 161 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 162 | #endif |
AnnaBridge | 143:86740a56073b | 163 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 164 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 165 | #endif |
AnnaBridge | 143:86740a56073b | 166 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 167 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 168 | #endif |
AnnaBridge | 143:86740a56073b | 169 | |
AnnaBridge | 143:86740a56073b | 170 | #elif defined(TARGET_KL82Z) |
AnnaBridge | 143:86740a56073b | 171 | |
AnnaBridge | 143:86740a56073b | 172 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 173 | #define INITIAL_SP (0x20012000UL) |
AnnaBridge | 143:86740a56073b | 174 | #endif |
AnnaBridge | 143:86740a56073b | 175 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 176 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 177 | #endif |
AnnaBridge | 143:86740a56073b | 178 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 179 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 180 | #endif |
AnnaBridge | 143:86740a56073b | 181 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 182 | #define OS_CLOCK 72000000 |
AnnaBridge | 143:86740a56073b | 183 | #endif |
AnnaBridge | 143:86740a56073b | 184 | |
AnnaBridge | 143:86740a56073b | 185 | #elif defined(TARGET_K64F) |
AnnaBridge | 143:86740a56073b | 186 | |
AnnaBridge | 143:86740a56073b | 187 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 188 | #define INITIAL_SP (0x20030000UL) |
AnnaBridge | 143:86740a56073b | 189 | #endif |
AnnaBridge | 143:86740a56073b | 190 | |
AnnaBridge | 143:86740a56073b | 191 | #if defined(__CC_ARM) || defined(__GNUC__) |
AnnaBridge | 143:86740a56073b | 192 | #define ISR_STACK_SIZE (0x1000) |
AnnaBridge | 143:86740a56073b | 193 | #endif |
AnnaBridge | 143:86740a56073b | 194 | |
AnnaBridge | 143:86740a56073b | 195 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 196 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 197 | #endif |
AnnaBridge | 143:86740a56073b | 198 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 199 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 200 | #endif |
AnnaBridge | 143:86740a56073b | 201 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 202 | #define OS_CLOCK 120000000 |
AnnaBridge | 143:86740a56073b | 203 | #endif |
AnnaBridge | 143:86740a56073b | 204 | |
AnnaBridge | 143:86740a56073b | 205 | #elif defined(TARGET_KW24D) |
AnnaBridge | 143:86740a56073b | 206 | |
AnnaBridge | 143:86740a56073b | 207 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 208 | #define INITIAL_SP (0x20008000UL) |
AnnaBridge | 143:86740a56073b | 209 | #endif |
AnnaBridge | 143:86740a56073b | 210 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 211 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 212 | #endif |
AnnaBridge | 143:86740a56073b | 213 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 214 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 215 | #endif |
AnnaBridge | 143:86740a56073b | 216 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 217 | #define OS_CLOCK 48000000 |
AnnaBridge | 143:86740a56073b | 218 | #endif |
AnnaBridge | 143:86740a56073b | 219 | |
AnnaBridge | 143:86740a56073b | 220 | #elif defined(TARGET_KW41Z) |
AnnaBridge | 143:86740a56073b | 221 | |
AnnaBridge | 143:86740a56073b | 222 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 223 | #define INITIAL_SP (0x20018000UL) |
AnnaBridge | 143:86740a56073b | 224 | #endif |
AnnaBridge | 143:86740a56073b | 225 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 226 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 227 | #endif |
AnnaBridge | 143:86740a56073b | 228 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 229 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 230 | #endif |
AnnaBridge | 143:86740a56073b | 231 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 232 | #define OS_CLOCK 40000000 |
AnnaBridge | 143:86740a56073b | 233 | #endif |
AnnaBridge | 143:86740a56073b | 234 | |
AnnaBridge | 143:86740a56073b | 235 | #elif defined(TARGET_K82F) |
AnnaBridge | 143:86740a56073b | 236 | |
AnnaBridge | 143:86740a56073b | 237 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 238 | #define INITIAL_SP (0x20030000UL) |
AnnaBridge | 143:86740a56073b | 239 | #endif |
AnnaBridge | 143:86740a56073b | 240 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 241 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 242 | #endif |
AnnaBridge | 143:86740a56073b | 243 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 244 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 245 | #endif |
AnnaBridge | 143:86740a56073b | 246 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 247 | #define OS_CLOCK 120000000 |
AnnaBridge | 143:86740a56073b | 248 | #endif |
AnnaBridge | 143:86740a56073b | 249 | |
AnnaBridge | 143:86740a56073b | 250 | #elif defined(TARGET_RO359B) |
AnnaBridge | 143:86740a56073b | 251 | |
AnnaBridge | 143:86740a56073b | 252 | #ifndef INITIAL_SP |
AnnaBridge | 143:86740a56073b | 253 | #define INITIAL_SP (0x20030000UL) |
AnnaBridge | 143:86740a56073b | 254 | #endif |
AnnaBridge | 143:86740a56073b | 255 | |
AnnaBridge | 143:86740a56073b | 256 | #if defined(__CC_ARM) || defined(__GNUC__) |
AnnaBridge | 143:86740a56073b | 257 | #define ISR_STACK_SIZE (0x1000) |
AnnaBridge | 143:86740a56073b | 258 | #endif |
AnnaBridge | 143:86740a56073b | 259 | |
AnnaBridge | 143:86740a56073b | 260 | #ifndef OS_TASKCNT |
AnnaBridge | 143:86740a56073b | 261 | #define OS_TASKCNT 14 |
AnnaBridge | 143:86740a56073b | 262 | #endif |
AnnaBridge | 143:86740a56073b | 263 | #ifndef OS_MAINSTKSIZE |
AnnaBridge | 143:86740a56073b | 264 | #define OS_MAINSTKSIZE 256 |
AnnaBridge | 143:86740a56073b | 265 | #endif |
AnnaBridge | 143:86740a56073b | 266 | #ifndef OS_CLOCK |
AnnaBridge | 143:86740a56073b | 267 | #define OS_CLOCK 96000000 |
AnnaBridge | 143:86740a56073b | 268 | #endif |
AnnaBridge | 143:86740a56073b | 269 | |
AnnaBridge | 143:86740a56073b | 270 | #endif |
AnnaBridge | 143:86740a56073b | 271 | |
AnnaBridge | 143:86740a56073b | 272 | #endif // MBED_MBED_RTX_H |