fork
targets/TARGET_Maxim/mbed_rtx4.h@126:5713cbbdb706, 2017-07-04 (annotated)
- 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?
User | Revision | Line number | New 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 | #if defined(TARGET_MAX32600) |
Kojto | 126:5713cbbdb706 | 21 | |
Kojto | 126:5713cbbdb706 | 22 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 23 | #define INITIAL_SP (0x20008000UL) |
Kojto | 126:5713cbbdb706 | 24 | #endif |
Kojto | 126:5713cbbdb706 | 25 | |
Kojto | 126:5713cbbdb706 | 26 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 27 | |
Kojto | 126:5713cbbdb706 | 28 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 29 | #define OS_TASKCNT 14 |
Kojto | 126:5713cbbdb706 | 30 | #endif |
Kojto | 126:5713cbbdb706 | 31 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 32 | #define OS_MAINSTKSIZE 256 |
Kojto | 126:5713cbbdb706 | 33 | #endif |
Kojto | 126:5713cbbdb706 | 34 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 35 | #define OS_CLOCK 24000000 |
Kojto | 126:5713cbbdb706 | 36 | #endif |
Kojto | 126:5713cbbdb706 | 37 | |
Kojto | 126:5713cbbdb706 | 38 | #elif defined(TARGET_MAX32610) |
Kojto | 126:5713cbbdb706 | 39 | |
Kojto | 126:5713cbbdb706 | 40 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 41 | #define INITIAL_SP (0x20008000UL) |
Kojto | 126:5713cbbdb706 | 42 | #endif |
Kojto | 126:5713cbbdb706 | 43 | |
Kojto | 126:5713cbbdb706 | 44 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 45 | |
Kojto | 126:5713cbbdb706 | 46 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 47 | #define OS_TASKCNT 14 |
Kojto | 126:5713cbbdb706 | 48 | #endif |
Kojto | 126:5713cbbdb706 | 49 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 50 | #define OS_MAINSTKSIZE 256 |
Kojto | 126:5713cbbdb706 | 51 | #endif |
Kojto | 126:5713cbbdb706 | 52 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 53 | #define OS_CLOCK 24000000 |
Kojto | 126:5713cbbdb706 | 54 | #endif |
Kojto | 126:5713cbbdb706 | 55 | |
Kojto | 126:5713cbbdb706 | 56 | #elif defined(TARGET_MAX32620) |
Kojto | 126:5713cbbdb706 | 57 | |
Kojto | 126:5713cbbdb706 | 58 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 59 | #define INITIAL_SP (0x20040000UL) |
Kojto | 126:5713cbbdb706 | 60 | #endif |
Kojto | 126:5713cbbdb706 | 61 | |
Kojto | 126:5713cbbdb706 | 62 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 63 | |
Kojto | 126:5713cbbdb706 | 64 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 65 | #define OS_TASKCNT 14 |
Kojto | 126:5713cbbdb706 | 66 | #endif |
Kojto | 126:5713cbbdb706 | 67 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 68 | #define OS_MAINSTKSIZE 256 |
Kojto | 126:5713cbbdb706 | 69 | #endif |
Kojto | 126:5713cbbdb706 | 70 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 71 | #define OS_CLOCK 48000000 |
Kojto | 126:5713cbbdb706 | 72 | #endif |
Kojto | 126:5713cbbdb706 | 73 | |
Kojto | 126:5713cbbdb706 | 74 | #elif defined(TARGET_MAX32625) |
Kojto | 126:5713cbbdb706 | 75 | |
Kojto | 126:5713cbbdb706 | 76 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 77 | #define INITIAL_SP (0x20028000UL) |
Kojto | 126:5713cbbdb706 | 78 | #endif |
Kojto | 126:5713cbbdb706 | 79 | |
Kojto | 126:5713cbbdb706 | 80 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 81 | |
Kojto | 126:5713cbbdb706 | 82 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 83 | #define OS_TASKCNT 14 |
Kojto | 126:5713cbbdb706 | 84 | #endif |
Kojto | 126:5713cbbdb706 | 85 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 86 | #define OS_MAINSTKSIZE 256 |
Kojto | 126:5713cbbdb706 | 87 | #endif |
Kojto | 126:5713cbbdb706 | 88 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 89 | #define OS_CLOCK 96000000 |
Kojto | 126:5713cbbdb706 | 90 | #endif |
Kojto | 126:5713cbbdb706 | 91 | |
Kojto | 126:5713cbbdb706 | 92 | #elif defined(TARGET_MAX32630) |
Kojto | 126:5713cbbdb706 | 93 | |
Kojto | 126:5713cbbdb706 | 94 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 95 | #define INITIAL_SP (0x20080000UL) |
Kojto | 126:5713cbbdb706 | 96 | #endif |
Kojto | 126:5713cbbdb706 | 97 | |
Kojto | 126:5713cbbdb706 | 98 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 99 | |
Kojto | 126:5713cbbdb706 | 100 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 101 | #define OS_TASKCNT 14 |
Kojto | 126:5713cbbdb706 | 102 | #endif |
Kojto | 126:5713cbbdb706 | 103 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 104 | #define OS_MAINSTKSIZE 256 |
Kojto | 126:5713cbbdb706 | 105 | #endif |
Kojto | 126:5713cbbdb706 | 106 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 107 | #define OS_CLOCK 96000000 |
Kojto | 126:5713cbbdb706 | 108 | #endif |
Kojto | 126:5713cbbdb706 | 109 | |
Kojto | 126:5713cbbdb706 | 110 | #endif |
Kojto | 126:5713cbbdb706 | 111 | |
Kojto | 126:5713cbbdb706 | 112 | #endif // MBED_MBED_RTX_H |