asd

Fork of mbed-rtos by mbed official

Committer:
Kojto
Date:
Tue Jul 04 13:32:20 2017 +0100
Revision:
126:5713cbbdb706
replace mbed_rtx by mbed_rtx4

Not causing a conflict with mbed_rtx that is for newer rtos

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 126:5713cbbdb706 1 /* mbed Microcontroller Library
Kojto 126:5713cbbdb706 2 * Copyright (c) 2016 ARM Limited
Kojto 126:5713cbbdb706 3 *
Kojto 126:5713cbbdb706 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 126:5713cbbdb706 5 * you may not use this file except in compliance with the License.
Kojto 126:5713cbbdb706 6 * You may obtain a copy of the License at
Kojto 126:5713cbbdb706 7 *
Kojto 126:5713cbbdb706 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 126:5713cbbdb706 9 *
Kojto 126:5713cbbdb706 10 * Unless required by applicable law or agreed to in writing, software
Kojto 126:5713cbbdb706 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 126:5713cbbdb706 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 126:5713cbbdb706 13 * See the License for the specific language governing permissions and
Kojto 126:5713cbbdb706 14 * limitations under the License.
Kojto 126:5713cbbdb706 15 */
Kojto 126:5713cbbdb706 16
Kojto 126:5713cbbdb706 17 #ifndef MBED_MBED_RTX_H
Kojto 126:5713cbbdb706 18 #define MBED_MBED_RTX_H
Kojto 126:5713cbbdb706 19
Kojto 126:5713cbbdb706 20 #include <stdint.h>
Kojto 126:5713cbbdb706 21 #include "clocking.h"
Kojto 126:5713cbbdb706 22
Kojto 126:5713cbbdb706 23 #ifndef OS_CLOCK
Kojto 126:5713cbbdb706 24 #define OS_CLOCK REFERENCE_FREQUENCY
Kojto 126:5713cbbdb706 25 #endif
Kojto 126:5713cbbdb706 26
Kojto 126:5713cbbdb706 27 #if defined(TARGET_EFM32GG_STK3700)
Kojto 126:5713cbbdb706 28
Kojto 126:5713cbbdb706 29 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 30 #define INITIAL_SP (0x20020000UL)
Kojto 126:5713cbbdb706 31 #endif
Kojto 126:5713cbbdb706 32
Kojto 126:5713cbbdb706 33 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 34
Kojto 126:5713cbbdb706 35 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 36 #define OS_TASKCNT 14
Kojto 126:5713cbbdb706 37 #endif
Kojto 126:5713cbbdb706 38 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 39 #define OS_MAINSTKSIZE 256
Kojto 126:5713cbbdb706 40 #endif
Kojto 126:5713cbbdb706 41
Kojto 126:5713cbbdb706 42 #elif defined(TARGET_EFM32HG_STK3400)
Kojto 126:5713cbbdb706 43
Kojto 126:5713cbbdb706 44 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 45 #define INITIAL_SP (0x20002000UL)
Kojto 126:5713cbbdb706 46 #endif
Kojto 126:5713cbbdb706 47
Kojto 126:5713cbbdb706 48 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 49
Kojto 126:5713cbbdb706 50 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 51 #define OS_TASKCNT 6
Kojto 126:5713cbbdb706 52 #endif
Kojto 126:5713cbbdb706 53 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 54 #define OS_MAINSTKSIZE 112
Kojto 126:5713cbbdb706 55 #endif
Kojto 126:5713cbbdb706 56
Kojto 126:5713cbbdb706 57 #elif defined(TARGET_EFM32LG_STK3600)
Kojto 126:5713cbbdb706 58
Kojto 126:5713cbbdb706 59 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 60 #define INITIAL_SP (0x20008000UL)
Kojto 126:5713cbbdb706 61 #endif
Kojto 126:5713cbbdb706 62
Kojto 126:5713cbbdb706 63 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 64
Kojto 126:5713cbbdb706 65 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 66 #define OS_TASKCNT 14
Kojto 126:5713cbbdb706 67 #endif
Kojto 126:5713cbbdb706 68 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 69 #define OS_MAINSTKSIZE 128
Kojto 126:5713cbbdb706 70 #endif
Kojto 126:5713cbbdb706 71
Kojto 126:5713cbbdb706 72 #elif defined(TARGET_EFM32PG_STK3401)
Kojto 126:5713cbbdb706 73
Kojto 126:5713cbbdb706 74 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 75 #define INITIAL_SP (0x20008000UL)
Kojto 126:5713cbbdb706 76 #endif
Kojto 126:5713cbbdb706 77
Kojto 126:5713cbbdb706 78 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 79
Kojto 126:5713cbbdb706 80 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 81 #define OS_TASKCNT 14
Kojto 126:5713cbbdb706 82 #endif
Kojto 126:5713cbbdb706 83 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 84 #define OS_MAINSTKSIZE 128
Kojto 126:5713cbbdb706 85 #endif
Kojto 126:5713cbbdb706 86
Kojto 126:5713cbbdb706 87 #elif defined(TARGET_EFM32WG_STK3800)
Kojto 126:5713cbbdb706 88
Kojto 126:5713cbbdb706 89 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 90 #define INITIAL_SP (0x20008000UL)
Kojto 126:5713cbbdb706 91 #endif
Kojto 126:5713cbbdb706 92
Kojto 126:5713cbbdb706 93 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 94
Kojto 126:5713cbbdb706 95 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 96 #define OS_TASKCNT 14
Kojto 126:5713cbbdb706 97 #endif
Kojto 126:5713cbbdb706 98 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 99 #define OS_MAINSTKSIZE 128
Kojto 126:5713cbbdb706 100 #endif
Kojto 126:5713cbbdb706 101
Kojto 126:5713cbbdb706 102 #elif defined(TARGET_EFR32MG1)
Kojto 126:5713cbbdb706 103
Kojto 126:5713cbbdb706 104 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 105 #define INITIAL_SP (0x20007C00UL)
Kojto 126:5713cbbdb706 106 #endif
Kojto 126:5713cbbdb706 107
Kojto 126:5713cbbdb706 108 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 109
Kojto 126:5713cbbdb706 110 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 111 #define OS_TASKCNT 5
Kojto 126:5713cbbdb706 112 #endif
Kojto 126:5713cbbdb706 113 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 114 #define OS_MAINSTKSIZE 256
Kojto 126:5713cbbdb706 115 #endif
Kojto 126:5713cbbdb706 116
Kojto 126:5713cbbdb706 117 #elif defined(TARGET_EFR32MG12) || defined(TARGET_EFM32PG12)
Kojto 126:5713cbbdb706 118
Kojto 126:5713cbbdb706 119 #ifndef INITIAL_SP
Kojto 126:5713cbbdb706 120 #define INITIAL_SP (0x20040000UL)
Kojto 126:5713cbbdb706 121 #endif
Kojto 126:5713cbbdb706 122
Kojto 126:5713cbbdb706 123 // RTX 4 only config below, for backward-compability
Kojto 126:5713cbbdb706 124
Kojto 126:5713cbbdb706 125 #ifndef OS_TASKCNT
Kojto 126:5713cbbdb706 126 #define OS_TASKCNT 14
Kojto 126:5713cbbdb706 127 #endif
Kojto 126:5713cbbdb706 128 #ifndef OS_MAINSTKSIZE
Kojto 126:5713cbbdb706 129 #define OS_MAINSTKSIZE 256
Kojto 126:5713cbbdb706 130 #endif
Kojto 126:5713cbbdb706 131
Kojto 126:5713cbbdb706 132 #endif
Kojto 126:5713cbbdb706 133
Kojto 126:5713cbbdb706 134 #endif // MBED_MBED_RTX_H