mbed-os

Fork of mbed-os by erkin yucel

Committer:
xuaner
Date:
Thu Jul 20 14:26:57 2017 +0000
Revision:
1:3deb71413561
Parent:
0:f269e3021894
mbed_os

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