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_MCU_NRF51822)
SandrineO 0:07281ea3b26b 21
SandrineO 0:07281ea3b26b 22 #ifndef INITIAL_SP
SandrineO 0:07281ea3b26b 23 # if defined(TARGET_MCU_NORDIC_32K)
SandrineO 0:07281ea3b26b 24 # define INITIAL_SP (0x20008000UL)
SandrineO 0:07281ea3b26b 25 # elif defined(TARGET_MCU_NORDIC_16K)
SandrineO 0:07281ea3b26b 26 # define INITIAL_SP (0x20004000UL)
SandrineO 0:07281ea3b26b 27 # endif
SandrineO 0:07281ea3b26b 28 #endif
SandrineO 0:07281ea3b26b 29
SandrineO 0:07281ea3b26b 30 // RTX 4 only config below, for backward-compability
SandrineO 0:07281ea3b26b 31
SandrineO 0:07281ea3b26b 32 #ifndef OS_TASKCNT
SandrineO 0:07281ea3b26b 33 #define OS_TASKCNT 7
SandrineO 0:07281ea3b26b 34 #endif
SandrineO 0:07281ea3b26b 35 #ifndef OS_MAINSTKSIZE
SandrineO 0:07281ea3b26b 36 #define OS_MAINSTKSIZE 512
SandrineO 0:07281ea3b26b 37 #endif
SandrineO 0:07281ea3b26b 38 #ifndef OS_CLOCK
SandrineO 0:07281ea3b26b 39 #define OS_CLOCK 32768
SandrineO 0:07281ea3b26b 40 #endif
SandrineO 0:07281ea3b26b 41 #ifndef OS_SYSTICK
SandrineO 0:07281ea3b26b 42 #define OS_SYSTICK 0
SandrineO 0:07281ea3b26b 43 #endif
SandrineO 0:07281ea3b26b 44
SandrineO 0:07281ea3b26b 45 #elif defined(TARGET_MCU_NRF52832)
SandrineO 0:07281ea3b26b 46
SandrineO 0:07281ea3b26b 47 #ifndef INITIAL_SP
SandrineO 0:07281ea3b26b 48 #define INITIAL_SP (0x20010000UL)
SandrineO 0:07281ea3b26b 49 #endif
SandrineO 0:07281ea3b26b 50
SandrineO 0:07281ea3b26b 51 // RTX 4 only config below, for backward-compability
SandrineO 0:07281ea3b26b 52
SandrineO 0:07281ea3b26b 53 #ifndef OS_TASKCNT
SandrineO 0:07281ea3b26b 54 #define OS_TASKCNT 7
SandrineO 0:07281ea3b26b 55 #endif
SandrineO 0:07281ea3b26b 56 #ifndef OS_MAINSTKSIZE
SandrineO 0:07281ea3b26b 57 #define OS_MAINSTKSIZE 512
SandrineO 0:07281ea3b26b 58 #endif
SandrineO 0:07281ea3b26b 59 #ifndef OS_CLOCK
SandrineO 0:07281ea3b26b 60 #define OS_CLOCK 64000000
SandrineO 0:07281ea3b26b 61 #endif
SandrineO 0:07281ea3b26b 62
SandrineO 0:07281ea3b26b 63 #elif defined(TARGET_MCU_NRF52840)
SandrineO 0:07281ea3b26b 64
SandrineO 0:07281ea3b26b 65 #ifndef INITIAL_SP
SandrineO 0:07281ea3b26b 66 #define INITIAL_SP (0x20040000UL)
SandrineO 0:07281ea3b26b 67 #endif
SandrineO 0:07281ea3b26b 68
SandrineO 0:07281ea3b26b 69 // More than 256 bytes are needed for the idle thread stack on the NRF52840
SandrineO 0:07281ea3b26b 70 #define OS_IDLE_THREAD_STACK_SIZE 512
SandrineO 0:07281ea3b26b 71
SandrineO 0:07281ea3b26b 72 // RTX 4 only config below, for backward-compability
SandrineO 0:07281ea3b26b 73
SandrineO 0:07281ea3b26b 74 #ifndef OS_TASKCNT
SandrineO 0:07281ea3b26b 75 #define OS_TASKCNT 24
SandrineO 0:07281ea3b26b 76 #endif
SandrineO 0:07281ea3b26b 77 #ifndef OS_MAINSTKSIZE
SandrineO 0:07281ea3b26b 78 #define OS_MAINSTKSIZE 2048
SandrineO 0:07281ea3b26b 79 #endif
SandrineO 0:07281ea3b26b 80 #ifndef OS_CLOCK
SandrineO 0:07281ea3b26b 81 #define OS_CLOCK 64000000
SandrineO 0:07281ea3b26b 82 #endif
SandrineO 0:07281ea3b26b 83
SandrineO 0:07281ea3b26b 84 #endif // defined(TARGET_MCU_NRF51822)...
SandrineO 0:07281ea3b26b 85
SandrineO 0:07281ea3b26b 86 #endif // #ifndef MBED_MBED_RTX_H