lol

Dependencies:   MMA8451Q

Fork of Application by Mateusz Kowalik

Committer:
danix
Date:
Sun Jan 21 22:28:30 2018 +0000
Revision:
12:3a30cdffa27c
Parent:
10:41552d038a69
Working acelerometer and mouse

Who changed what in which revision?

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