Hiruka Hana / Gyro_Accelerometre

Dependents:   Gyro_Accelerometre2

Committer:
SandrineO
Date:
Tue Feb 20 15:58:26 2018 +0000
Revision:
0:07281ea3b26b
temps r?el

Who changed what in which revision?

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