Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.

Dependents:   denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more

Deprecated

This is the mbed 2 rtos library. mbed OS 5 integrates the mbed library with mbed-rtos. With this, we have provided thread safety for all mbed APIs. If you'd like to learn about using mbed OS 5, please see the docs.

Committer:
Kojto
Date:
Tue Jul 04 13:17:18 2017 +0100
Revision:
124:66949d9d57c1
rtos targets configuration addition

mbed_rtx header file for all targets

Who changed what in which revision?

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