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