asd

Fork of mbed-rtos by mbed official

Committer:
Kojto
Date:
Tue Jul 04 13:32:20 2017 +0100
Revision:
126:5713cbbdb706
replace mbed_rtx by mbed_rtx4

Not causing a conflict with mbed_rtx that is for newer rtos

Who changed what in which revision?

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