Aguila
Fork of mbed-rtos by
targets/TARGET_Silicon_Labs/mbed_rtx.h@124:66949d9d57c1, 2017-07-04 (annotated)
- 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?
User | Revision | Line number | New 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 | #include <stdint.h> |
Kojto | 124:66949d9d57c1 | 21 | #include "clocking.h" |
Kojto | 124:66949d9d57c1 | 22 | |
Kojto | 124:66949d9d57c1 | 23 | #ifndef OS_CLOCK |
Kojto | 124:66949d9d57c1 | 24 | #define OS_CLOCK REFERENCE_FREQUENCY |
Kojto | 124:66949d9d57c1 | 25 | #endif |
Kojto | 124:66949d9d57c1 | 26 | |
Kojto | 124:66949d9d57c1 | 27 | #if defined(TARGET_EFM32GG_STK3700) |
Kojto | 124:66949d9d57c1 | 28 | |
Kojto | 124:66949d9d57c1 | 29 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 30 | #define INITIAL_SP (0x20020000UL) |
Kojto | 124:66949d9d57c1 | 31 | #endif |
Kojto | 124:66949d9d57c1 | 32 | |
Kojto | 124:66949d9d57c1 | 33 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 34 | |
Kojto | 124:66949d9d57c1 | 35 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 36 | #define OS_TASKCNT 14 |
Kojto | 124:66949d9d57c1 | 37 | #endif |
Kojto | 124:66949d9d57c1 | 38 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 39 | #define OS_MAINSTKSIZE 256 |
Kojto | 124:66949d9d57c1 | 40 | #endif |
Kojto | 124:66949d9d57c1 | 41 | |
Kojto | 124:66949d9d57c1 | 42 | #elif defined(TARGET_EFM32HG_STK3400) |
Kojto | 124:66949d9d57c1 | 43 | |
Kojto | 124:66949d9d57c1 | 44 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 45 | #define INITIAL_SP (0x20002000UL) |
Kojto | 124:66949d9d57c1 | 46 | #endif |
Kojto | 124:66949d9d57c1 | 47 | |
Kojto | 124:66949d9d57c1 | 48 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 49 | |
Kojto | 124:66949d9d57c1 | 50 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 51 | #define OS_TASKCNT 6 |
Kojto | 124:66949d9d57c1 | 52 | #endif |
Kojto | 124:66949d9d57c1 | 53 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 54 | #define OS_MAINSTKSIZE 112 |
Kojto | 124:66949d9d57c1 | 55 | #endif |
Kojto | 124:66949d9d57c1 | 56 | |
Kojto | 124:66949d9d57c1 | 57 | #elif defined(TARGET_EFM32LG_STK3600) |
Kojto | 124:66949d9d57c1 | 58 | |
Kojto | 124:66949d9d57c1 | 59 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 60 | #define INITIAL_SP (0x20008000UL) |
Kojto | 124:66949d9d57c1 | 61 | #endif |
Kojto | 124:66949d9d57c1 | 62 | |
Kojto | 124:66949d9d57c1 | 63 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 64 | |
Kojto | 124:66949d9d57c1 | 65 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 66 | #define OS_TASKCNT 14 |
Kojto | 124:66949d9d57c1 | 67 | #endif |
Kojto | 124:66949d9d57c1 | 68 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 69 | #define OS_MAINSTKSIZE 128 |
Kojto | 124:66949d9d57c1 | 70 | #endif |
Kojto | 124:66949d9d57c1 | 71 | |
Kojto | 124:66949d9d57c1 | 72 | #elif defined(TARGET_EFM32PG_STK3401) |
Kojto | 124:66949d9d57c1 | 73 | |
Kojto | 124:66949d9d57c1 | 74 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 75 | #define INITIAL_SP (0x20008000UL) |
Kojto | 124:66949d9d57c1 | 76 | #endif |
Kojto | 124:66949d9d57c1 | 77 | |
Kojto | 124:66949d9d57c1 | 78 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 79 | |
Kojto | 124:66949d9d57c1 | 80 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 81 | #define OS_TASKCNT 14 |
Kojto | 124:66949d9d57c1 | 82 | #endif |
Kojto | 124:66949d9d57c1 | 83 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 84 | #define OS_MAINSTKSIZE 128 |
Kojto | 124:66949d9d57c1 | 85 | #endif |
Kojto | 124:66949d9d57c1 | 86 | |
Kojto | 124:66949d9d57c1 | 87 | #elif defined(TARGET_EFM32WG_STK3800) |
Kojto | 124:66949d9d57c1 | 88 | |
Kojto | 124:66949d9d57c1 | 89 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 90 | #define INITIAL_SP (0x20008000UL) |
Kojto | 124:66949d9d57c1 | 91 | #endif |
Kojto | 124:66949d9d57c1 | 92 | |
Kojto | 124:66949d9d57c1 | 93 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 94 | |
Kojto | 124:66949d9d57c1 | 95 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 96 | #define OS_TASKCNT 14 |
Kojto | 124:66949d9d57c1 | 97 | #endif |
Kojto | 124:66949d9d57c1 | 98 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 99 | #define OS_MAINSTKSIZE 128 |
Kojto | 124:66949d9d57c1 | 100 | #endif |
Kojto | 124:66949d9d57c1 | 101 | |
Kojto | 124:66949d9d57c1 | 102 | #elif defined(TARGET_EFR32MG1) |
Kojto | 124:66949d9d57c1 | 103 | |
Kojto | 124:66949d9d57c1 | 104 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 105 | #define INITIAL_SP (0x20007C00UL) |
Kojto | 124:66949d9d57c1 | 106 | #endif |
Kojto | 124:66949d9d57c1 | 107 | |
Kojto | 124:66949d9d57c1 | 108 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 109 | |
Kojto | 124:66949d9d57c1 | 110 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 111 | #define OS_TASKCNT 5 |
Kojto | 124:66949d9d57c1 | 112 | #endif |
Kojto | 124:66949d9d57c1 | 113 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 114 | #define OS_MAINSTKSIZE 256 |
Kojto | 124:66949d9d57c1 | 115 | #endif |
Kojto | 124:66949d9d57c1 | 116 | |
Kojto | 124:66949d9d57c1 | 117 | #elif defined(TARGET_EFR32MG12) || defined(TARGET_EFM32PG12) |
Kojto | 124:66949d9d57c1 | 118 | |
Kojto | 124:66949d9d57c1 | 119 | #ifndef INITIAL_SP |
Kojto | 124:66949d9d57c1 | 120 | #define INITIAL_SP (0x20040000UL) |
Kojto | 124:66949d9d57c1 | 121 | #endif |
Kojto | 124:66949d9d57c1 | 122 | |
Kojto | 124:66949d9d57c1 | 123 | // RTX 4 only config below, for backward-compability |
Kojto | 124:66949d9d57c1 | 124 | |
Kojto | 124:66949d9d57c1 | 125 | #ifndef OS_TASKCNT |
Kojto | 124:66949d9d57c1 | 126 | #define OS_TASKCNT 14 |
Kojto | 124:66949d9d57c1 | 127 | #endif |
Kojto | 124:66949d9d57c1 | 128 | #ifndef OS_MAINSTKSIZE |
Kojto | 124:66949d9d57c1 | 129 | #define OS_MAINSTKSIZE 256 |
Kojto | 124:66949d9d57c1 | 130 | #endif |
Kojto | 124:66949d9d57c1 | 131 | |
Kojto | 124:66949d9d57c1 | 132 | #endif |
Kojto | 124:66949d9d57c1 | 133 | |
Kojto | 124:66949d9d57c1 | 134 | #endif // MBED_MBED_RTX_H |