asd
Fork of mbed-rtos by
targets/TARGET_NORDIC/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_MCU_NRF51822) |
Kojto | 126:5713cbbdb706 | 21 | |
Kojto | 126:5713cbbdb706 | 22 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 23 | # if defined(TARGET_MCU_NORDIC_32K) |
Kojto | 126:5713cbbdb706 | 24 | # define INITIAL_SP (0x20008000UL) |
Kojto | 126:5713cbbdb706 | 25 | # elif defined(TARGET_MCU_NORDIC_16K) |
Kojto | 126:5713cbbdb706 | 26 | # define INITIAL_SP (0x20004000UL) |
Kojto | 126:5713cbbdb706 | 27 | # endif |
Kojto | 126:5713cbbdb706 | 28 | #endif |
Kojto | 126:5713cbbdb706 | 29 | |
Kojto | 126:5713cbbdb706 | 30 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 31 | |
Kojto | 126:5713cbbdb706 | 32 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 33 | #define OS_TASKCNT 7 |
Kojto | 126:5713cbbdb706 | 34 | #endif |
Kojto | 126:5713cbbdb706 | 35 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 36 | #define OS_MAINSTKSIZE 512 |
Kojto | 126:5713cbbdb706 | 37 | #endif |
Kojto | 126:5713cbbdb706 | 38 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 39 | #define OS_CLOCK 32768 |
Kojto | 126:5713cbbdb706 | 40 | #endif |
Kojto | 126:5713cbbdb706 | 41 | #ifndef OS_SYSTICK |
Kojto | 126:5713cbbdb706 | 42 | #define OS_SYSTICK 0 |
Kojto | 126:5713cbbdb706 | 43 | #endif |
Kojto | 126:5713cbbdb706 | 44 | |
Kojto | 126:5713cbbdb706 | 45 | #elif defined(TARGET_MCU_NRF52832) |
Kojto | 126:5713cbbdb706 | 46 | |
Kojto | 126:5713cbbdb706 | 47 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 48 | #define INITIAL_SP (0x20010000UL) |
Kojto | 126:5713cbbdb706 | 49 | #endif |
Kojto | 126:5713cbbdb706 | 50 | |
Kojto | 126:5713cbbdb706 | 51 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 52 | |
Kojto | 126:5713cbbdb706 | 53 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 54 | #define OS_TASKCNT 7 |
Kojto | 126:5713cbbdb706 | 55 | #endif |
Kojto | 126:5713cbbdb706 | 56 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 57 | #define OS_MAINSTKSIZE 512 |
Kojto | 126:5713cbbdb706 | 58 | #endif |
Kojto | 126:5713cbbdb706 | 59 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 60 | #define OS_CLOCK 64000000 |
Kojto | 126:5713cbbdb706 | 61 | #endif |
Kojto | 126:5713cbbdb706 | 62 | |
Kojto | 126:5713cbbdb706 | 63 | #elif defined(TARGET_MCU_NRF52840) |
Kojto | 126:5713cbbdb706 | 64 | |
Kojto | 126:5713cbbdb706 | 65 | #ifndef INITIAL_SP |
Kojto | 126:5713cbbdb706 | 66 | #define INITIAL_SP (0x20040000UL) |
Kojto | 126:5713cbbdb706 | 67 | #endif |
Kojto | 126:5713cbbdb706 | 68 | |
Kojto | 126:5713cbbdb706 | 69 | // More than 256 bytes are needed for the idle thread stack on the NRF52840 |
Kojto | 126:5713cbbdb706 | 70 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
Kojto | 126:5713cbbdb706 | 71 | |
Kojto | 126:5713cbbdb706 | 72 | // RTX 4 only config below, for backward-compability |
Kojto | 126:5713cbbdb706 | 73 | |
Kojto | 126:5713cbbdb706 | 74 | #ifndef OS_TASKCNT |
Kojto | 126:5713cbbdb706 | 75 | #define OS_TASKCNT 24 |
Kojto | 126:5713cbbdb706 | 76 | #endif |
Kojto | 126:5713cbbdb706 | 77 | #ifndef OS_MAINSTKSIZE |
Kojto | 126:5713cbbdb706 | 78 | #define OS_MAINSTKSIZE 2048 |
Kojto | 126:5713cbbdb706 | 79 | #endif |
Kojto | 126:5713cbbdb706 | 80 | #ifndef OS_CLOCK |
Kojto | 126:5713cbbdb706 | 81 | #define OS_CLOCK 64000000 |
Kojto | 126:5713cbbdb706 | 82 | #endif |
Kojto | 126:5713cbbdb706 | 83 | |
Kojto | 126:5713cbbdb706 | 84 | #endif // defined(TARGET_MCU_NRF51822)... |
Kojto | 126:5713cbbdb706 | 85 | |
Kojto | 126:5713cbbdb706 | 86 | #endif // #ifndef MBED_MBED_RTX_H |