Yes

Dependents:   Asservissement_Gyro

Committer:
braichi13
Date:
Sun May 08 14:39:47 2022 +0000
Revision:
0:77205fc699b9
Programme du Gyropode

Who changed what in which revision?

UserRevisionLine numberNew contents of line
braichi13 0:77205fc699b9 1 /* mbed Microcontroller Library
braichi13 0:77205fc699b9 2 * Copyright (c) 2016 ARM Limited
braichi13 0:77205fc699b9 3 *
braichi13 0:77205fc699b9 4 * Licensed under the Apache License, Version 2.0 (the "License");
braichi13 0:77205fc699b9 5 * you may not use this file except in compliance with the License.
braichi13 0:77205fc699b9 6 * You may obtain a copy of the License at
braichi13 0:77205fc699b9 7 *
braichi13 0:77205fc699b9 8 * http://www.apache.org/licenses/LICENSE-2.0
braichi13 0:77205fc699b9 9 *
braichi13 0:77205fc699b9 10 * Unless required by applicable law or agreed to in writing, software
braichi13 0:77205fc699b9 11 * distributed under the License is distributed on an "AS IS" BASIS,
braichi13 0:77205fc699b9 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
braichi13 0:77205fc699b9 13 * See the License for the specific language governing permissions and
braichi13 0:77205fc699b9 14 * limitations under the License.
braichi13 0:77205fc699b9 15 */
braichi13 0:77205fc699b9 16
braichi13 0:77205fc699b9 17 #ifndef MBED_MBED_RTX_H
braichi13 0:77205fc699b9 18 #define MBED_MBED_RTX_H
braichi13 0:77205fc699b9 19
braichi13 0:77205fc699b9 20 #if defined(TARGET_MCU_NRF51822)
braichi13 0:77205fc699b9 21
braichi13 0:77205fc699b9 22 #ifndef INITIAL_SP
braichi13 0:77205fc699b9 23 # if defined(TARGET_MCU_NORDIC_32K)
braichi13 0:77205fc699b9 24 # define INITIAL_SP (0x20008000UL)
braichi13 0:77205fc699b9 25 # elif defined(TARGET_MCU_NORDIC_16K)
braichi13 0:77205fc699b9 26 # define INITIAL_SP (0x20004000UL)
braichi13 0:77205fc699b9 27 # endif
braichi13 0:77205fc699b9 28 #endif
braichi13 0:77205fc699b9 29
braichi13 0:77205fc699b9 30 // RTX 4 only config below, for backward-compability
braichi13 0:77205fc699b9 31
braichi13 0:77205fc699b9 32 #ifndef OS_TASKCNT
braichi13 0:77205fc699b9 33 #define OS_TASKCNT 7
braichi13 0:77205fc699b9 34 #endif
braichi13 0:77205fc699b9 35 #ifndef OS_MAINSTKSIZE
braichi13 0:77205fc699b9 36 #define OS_MAINSTKSIZE 512
braichi13 0:77205fc699b9 37 #endif
braichi13 0:77205fc699b9 38 #ifndef OS_CLOCK
braichi13 0:77205fc699b9 39 #define OS_CLOCK 32768
braichi13 0:77205fc699b9 40 #endif
braichi13 0:77205fc699b9 41 #ifndef OS_SYSTICK
braichi13 0:77205fc699b9 42 #define OS_SYSTICK 0
braichi13 0:77205fc699b9 43 #endif
braichi13 0:77205fc699b9 44
braichi13 0:77205fc699b9 45 #elif defined(TARGET_MCU_NRF52832)
braichi13 0:77205fc699b9 46
braichi13 0:77205fc699b9 47 #ifndef INITIAL_SP
braichi13 0:77205fc699b9 48 #define INITIAL_SP (0x20010000UL)
braichi13 0:77205fc699b9 49 #endif
braichi13 0:77205fc699b9 50
braichi13 0:77205fc699b9 51 // RTX 4 only config below, for backward-compability
braichi13 0:77205fc699b9 52
braichi13 0:77205fc699b9 53 #ifndef OS_TASKCNT
braichi13 0:77205fc699b9 54 #define OS_TASKCNT 7
braichi13 0:77205fc699b9 55 #endif
braichi13 0:77205fc699b9 56 #ifndef OS_MAINSTKSIZE
braichi13 0:77205fc699b9 57 #define OS_MAINSTKSIZE 512
braichi13 0:77205fc699b9 58 #endif
braichi13 0:77205fc699b9 59 #ifndef OS_CLOCK
braichi13 0:77205fc699b9 60 #define OS_CLOCK 64000000
braichi13 0:77205fc699b9 61 #endif
braichi13 0:77205fc699b9 62
braichi13 0:77205fc699b9 63 #elif defined(TARGET_MCU_NRF52840)
braichi13 0:77205fc699b9 64
braichi13 0:77205fc699b9 65 #ifndef INITIAL_SP
braichi13 0:77205fc699b9 66 #define INITIAL_SP (0x20040000UL)
braichi13 0:77205fc699b9 67 #endif
braichi13 0:77205fc699b9 68
braichi13 0:77205fc699b9 69 // More than 256 bytes are needed for the idle thread stack on the NRF52840
braichi13 0:77205fc699b9 70 #define OS_IDLE_THREAD_STACK_SIZE 512
braichi13 0:77205fc699b9 71
braichi13 0:77205fc699b9 72 // RTX 4 only config below, for backward-compability
braichi13 0:77205fc699b9 73
braichi13 0:77205fc699b9 74 #ifndef OS_TASKCNT
braichi13 0:77205fc699b9 75 #define OS_TASKCNT 24
braichi13 0:77205fc699b9 76 #endif
braichi13 0:77205fc699b9 77 #ifndef OS_MAINSTKSIZE
braichi13 0:77205fc699b9 78 #define OS_MAINSTKSIZE 2048
braichi13 0:77205fc699b9 79 #endif
braichi13 0:77205fc699b9 80 #ifndef OS_CLOCK
braichi13 0:77205fc699b9 81 #define OS_CLOCK 64000000
braichi13 0:77205fc699b9 82 #endif
braichi13 0:77205fc699b9 83
braichi13 0:77205fc699b9 84 #endif // defined(TARGET_MCU_NRF51822)...
braichi13 0:77205fc699b9 85
braichi13 0:77205fc699b9 86 #endif // #ifndef MBED_MBED_RTX_H