mbed-os

Fork of mbed-os by erkin yucel

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 /* mbed Microcontroller Library
elessair 0:f269e3021894 2 * Copyright (c) 2016 ARM Limited
elessair 0:f269e3021894 3 *
elessair 0:f269e3021894 4 * Licensed under the Apache License, Version 2.0 (the "License");
elessair 0:f269e3021894 5 * you may not use this file except in compliance with the License.
elessair 0:f269e3021894 6 * You may obtain a copy of the License at
elessair 0:f269e3021894 7 *
elessair 0:f269e3021894 8 * http://www.apache.org/licenses/LICENSE-2.0
elessair 0:f269e3021894 9 *
elessair 0:f269e3021894 10 * Unless required by applicable law or agreed to in writing, software
elessair 0:f269e3021894 11 * distributed under the License is distributed on an "AS IS" BASIS,
elessair 0:f269e3021894 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
elessair 0:f269e3021894 13 * See the License for the specific language governing permissions and
elessair 0:f269e3021894 14 * limitations under the License.
elessair 0:f269e3021894 15 */
elessair 0:f269e3021894 16
elessair 0:f269e3021894 17 #ifndef MBED_MBED_RTX_H
elessair 0:f269e3021894 18 #define MBED_MBED_RTX_H
elessair 0:f269e3021894 19
elessair 0:f269e3021894 20 #if defined(TARGET_K20D50M)
elessair 0:f269e3021894 21
elessair 0:f269e3021894 22 #ifndef INITIAL_SP
elessair 0:f269e3021894 23 #define INITIAL_SP (0x10008000UL)
elessair 0:f269e3021894 24 #endif
elessair 0:f269e3021894 25 #ifndef OS_TASKCNT
elessair 0:f269e3021894 26 #define OS_TASKCNT 14
elessair 0:f269e3021894 27 #endif
elessair 0:f269e3021894 28 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 29 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 30 #endif
elessair 0:f269e3021894 31 #ifndef OS_CLOCK
elessair 0:f269e3021894 32 #define OS_CLOCK 96000000
elessair 0:f269e3021894 33 #endif
elessair 0:f269e3021894 34
elessair 0:f269e3021894 35 #elif defined(TARGET_TEENSY3_1)
elessair 0:f269e3021894 36
elessair 0:f269e3021894 37 #ifndef INITIAL_SP
elessair 0:f269e3021894 38 #define INITIAL_SP (0x20008000UL)
elessair 0:f269e3021894 39 #endif
elessair 0:f269e3021894 40 #ifndef OS_TASKCNT
elessair 0:f269e3021894 41 #define OS_TASKCNT 14
elessair 0:f269e3021894 42 #endif
elessair 0:f269e3021894 43 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 44 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 45 #endif
elessair 0:f269e3021894 46 #ifndef OS_CLOCK
elessair 0:f269e3021894 47 #define OS_CLOCK 96000000
elessair 0:f269e3021894 48 #endif
elessair 0:f269e3021894 49
elessair 0:f269e3021894 50 #elif defined(TARGET_K22F)
elessair 0:f269e3021894 51
elessair 0:f269e3021894 52 #ifndef INITIAL_SP
elessair 0:f269e3021894 53 #define INITIAL_SP (0x20010000UL)
elessair 0:f269e3021894 54 #endif
elessair 0:f269e3021894 55 #ifndef OS_TASKCNT
elessair 0:f269e3021894 56 #define OS_TASKCNT 14
elessair 0:f269e3021894 57 #endif
elessair 0:f269e3021894 58 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 59 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 60 #endif
elessair 0:f269e3021894 61 #ifndef OS_CLOCK
elessair 0:f269e3021894 62 #define OS_CLOCK 80000000
elessair 0:f269e3021894 63 #endif
elessair 0:f269e3021894 64
elessair 0:f269e3021894 65 #elif defined(TARGET_K66F)
elessair 0:f269e3021894 66
elessair 0:f269e3021894 67 #ifndef INITIAL_SP
elessair 0:f269e3021894 68 #define INITIAL_SP (0x20030000UL)
elessair 0:f269e3021894 69 #endif
elessair 0:f269e3021894 70 #ifndef OS_TASKCNT
elessair 0:f269e3021894 71 #define OS_TASKCNT 14
elessair 0:f269e3021894 72 #endif
elessair 0:f269e3021894 73 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 74 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 75 #endif
elessair 0:f269e3021894 76 #ifndef OS_CLOCK
elessair 0:f269e3021894 77 #define OS_CLOCK 120000000
elessair 0:f269e3021894 78 #endif
elessair 0:f269e3021894 79
elessair 0:f269e3021894 80 #elif defined(TARGET_KL27Z)
elessair 0:f269e3021894 81
elessair 0:f269e3021894 82 #ifndef INITIAL_SP
elessair 0:f269e3021894 83 #define INITIAL_SP (0x20003000UL)
elessair 0:f269e3021894 84 #endif
elessair 0:f269e3021894 85 #ifndef OS_TASKCNT
elessair 0:f269e3021894 86 #define OS_TASKCNT 6
elessair 0:f269e3021894 87 #endif
elessair 0:f269e3021894 88 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 89 #define OS_MAINSTKSIZE 128
elessair 0:f269e3021894 90 #endif
elessair 0:f269e3021894 91 #ifndef OS_CLOCK
elessair 0:f269e3021894 92 #define OS_CLOCK 48000000
elessair 0:f269e3021894 93 #endif
elessair 0:f269e3021894 94
elessair 0:f269e3021894 95 #elif defined(TARGET_KL43Z)
elessair 0:f269e3021894 96
elessair 0:f269e3021894 97 #ifndef INITIAL_SP
elessair 0:f269e3021894 98 #define INITIAL_SP (0x20006000UL)
elessair 0:f269e3021894 99 #endif
elessair 0:f269e3021894 100 #ifndef OS_TASKCNT
elessair 0:f269e3021894 101 #define OS_TASKCNT 14
elessair 0:f269e3021894 102 #endif
elessair 0:f269e3021894 103 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 104 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 105 #endif
elessair 0:f269e3021894 106 #ifndef OS_CLOCK
elessair 0:f269e3021894 107 #define OS_CLOCK 48000000
elessair 0:f269e3021894 108 #endif
elessair 0:f269e3021894 109
elessair 0:f269e3021894 110 #elif defined(TARGET_KL05Z)
elessair 0:f269e3021894 111
elessair 0:f269e3021894 112 #ifndef INITIAL_SP
elessair 0:f269e3021894 113 #define INITIAL_SP (0x20000C00UL)
elessair 0:f269e3021894 114 #endif
elessair 0:f269e3021894 115 #ifndef OS_TASKCNT
elessair 0:f269e3021894 116 #define OS_TASKCNT 6
elessair 0:f269e3021894 117 #endif
elessair 0:f269e3021894 118 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 119 #define OS_MAINSTKSIZE 128
elessair 0:f269e3021894 120 #endif
elessair 0:f269e3021894 121 #ifndef OS_CLOCK
elessair 0:f269e3021894 122 #define OS_CLOCK 48000000
elessair 0:f269e3021894 123 #endif
elessair 0:f269e3021894 124
elessair 0:f269e3021894 125 #elif defined(TARGET_KL25Z)
elessair 0:f269e3021894 126
elessair 0:f269e3021894 127 #ifndef INITIAL_SP
elessair 0:f269e3021894 128 #define INITIAL_SP (0x20003000UL)
elessair 0:f269e3021894 129 #endif
elessair 0:f269e3021894 130 #ifndef OS_TASKCNT
elessair 0:f269e3021894 131 #define OS_TASKCNT 6
elessair 0:f269e3021894 132 #endif
elessair 0:f269e3021894 133 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 134 #define OS_MAINSTKSIZE 128
elessair 0:f269e3021894 135 #endif
elessair 0:f269e3021894 136 #ifndef OS_CLOCK
elessair 0:f269e3021894 137 #define OS_CLOCK 48000000
elessair 0:f269e3021894 138 #endif
elessair 0:f269e3021894 139
elessair 0:f269e3021894 140 #elif defined(TARGET_KL26Z)
elessair 0:f269e3021894 141
elessair 0:f269e3021894 142 #ifndef INITIAL_SP
elessair 0:f269e3021894 143 #define INITIAL_SP (0x20003000UL)
elessair 0:f269e3021894 144 #endif
elessair 0:f269e3021894 145 #ifndef OS_TASKCNT
elessair 0:f269e3021894 146 #define OS_TASKCNT 6
elessair 0:f269e3021894 147 #endif
elessair 0:f269e3021894 148 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 149 #define OS_MAINSTKSIZE 128
elessair 0:f269e3021894 150 #endif
elessair 0:f269e3021894 151 #ifndef OS_CLOCK
elessair 0:f269e3021894 152 #define OS_CLOCK 48000000
elessair 0:f269e3021894 153 #endif
elessair 0:f269e3021894 154
elessair 0:f269e3021894 155 #elif defined(TARGET_KL46Z)
elessair 0:f269e3021894 156
elessair 0:f269e3021894 157 #ifndef INITIAL_SP
elessair 0:f269e3021894 158 #define INITIAL_SP (0x20006000UL)
elessair 0:f269e3021894 159 #endif
elessair 0:f269e3021894 160 #ifndef OS_TASKCNT
elessair 0:f269e3021894 161 #define OS_TASKCNT 14
elessair 0:f269e3021894 162 #endif
elessair 0:f269e3021894 163 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 164 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 165 #endif
elessair 0:f269e3021894 166 #ifndef OS_CLOCK
elessair 0:f269e3021894 167 #define OS_CLOCK 48000000
elessair 0:f269e3021894 168 #endif
elessair 0:f269e3021894 169
elessair 0:f269e3021894 170 #elif defined(TARGET_KL82Z)
elessair 0:f269e3021894 171
elessair 0:f269e3021894 172 #ifndef INITIAL_SP
elessair 0:f269e3021894 173 #define INITIAL_SP (0x20012000UL)
elessair 0:f269e3021894 174 #endif
elessair 0:f269e3021894 175 #ifndef OS_TASKCNT
elessair 0:f269e3021894 176 #define OS_TASKCNT 14
elessair 0:f269e3021894 177 #endif
elessair 0:f269e3021894 178 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 179 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 180 #endif
elessair 0:f269e3021894 181 #ifndef OS_CLOCK
elessair 0:f269e3021894 182 #define OS_CLOCK 72000000
elessair 0:f269e3021894 183 #endif
elessair 0:f269e3021894 184
elessair 0:f269e3021894 185 #elif defined(TARGET_K64F)
elessair 0:f269e3021894 186
elessair 0:f269e3021894 187 #ifndef INITIAL_SP
elessair 0:f269e3021894 188 #define INITIAL_SP (0x20030000UL)
elessair 0:f269e3021894 189 #endif
elessair 0:f269e3021894 190
elessair 0:f269e3021894 191 #if defined(__CC_ARM) || defined(__GNUC__)
elessair 0:f269e3021894 192 #define ISR_STACK_SIZE (0x1000)
elessair 0:f269e3021894 193 #endif
elessair 0:f269e3021894 194
elessair 0:f269e3021894 195 #ifndef OS_TASKCNT
elessair 0:f269e3021894 196 #define OS_TASKCNT 14
elessair 0:f269e3021894 197 #endif
elessair 0:f269e3021894 198 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 199 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 200 #endif
elessair 0:f269e3021894 201 #ifndef OS_CLOCK
elessair 0:f269e3021894 202 #define OS_CLOCK 120000000
elessair 0:f269e3021894 203 #endif
elessair 0:f269e3021894 204
elessair 0:f269e3021894 205 #elif defined(TARGET_KW24D)
elessair 0:f269e3021894 206
elessair 0:f269e3021894 207 #ifndef INITIAL_SP
elessair 0:f269e3021894 208 #define INITIAL_SP (0x20008000UL)
elessair 0:f269e3021894 209 #endif
elessair 0:f269e3021894 210 #ifndef OS_TASKCNT
elessair 0:f269e3021894 211 #define OS_TASKCNT 14
elessair 0:f269e3021894 212 #endif
elessair 0:f269e3021894 213 #ifndef OS_MAINSTKSIZE
elessair 0:f269e3021894 214 #define OS_MAINSTKSIZE 256
elessair 0:f269e3021894 215 #endif
elessair 0:f269e3021894 216 #ifndef OS_CLOCK
elessair 0:f269e3021894 217 #define OS_CLOCK 48000000
elessair 0:f269e3021894 218 #endif
elessair 0:f269e3021894 219
elessair 0:f269e3021894 220 #endif
elessair 0:f269e3021894 221
elessair 0:f269e3021894 222 #endif // MBED_MBED_RTX_H