Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed-rtos/targets/TARGET_NORDIC/mbed_rtx4.h@0:a59a3d743804, 2022-03-31 (annotated)
- Committer:
- anasse
- Date:
- Thu Mar 31 07:43:50 2022 +0000
- Revision:
- 0:a59a3d743804
vers0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
anasse | 0:a59a3d743804 | 1 | /* mbed Microcontroller Library |
anasse | 0:a59a3d743804 | 2 | * Copyright (c) 2016 ARM Limited |
anasse | 0:a59a3d743804 | 3 | * |
anasse | 0:a59a3d743804 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
anasse | 0:a59a3d743804 | 5 | * you may not use this file except in compliance with the License. |
anasse | 0:a59a3d743804 | 6 | * You may obtain a copy of the License at |
anasse | 0:a59a3d743804 | 7 | * |
anasse | 0:a59a3d743804 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
anasse | 0:a59a3d743804 | 9 | * |
anasse | 0:a59a3d743804 | 10 | * Unless required by applicable law or agreed to in writing, software |
anasse | 0:a59a3d743804 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
anasse | 0:a59a3d743804 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
anasse | 0:a59a3d743804 | 13 | * See the License for the specific language governing permissions and |
anasse | 0:a59a3d743804 | 14 | * limitations under the License. |
anasse | 0:a59a3d743804 | 15 | */ |
anasse | 0:a59a3d743804 | 16 | |
anasse | 0:a59a3d743804 | 17 | #ifndef MBED_MBED_RTX_H |
anasse | 0:a59a3d743804 | 18 | #define MBED_MBED_RTX_H |
anasse | 0:a59a3d743804 | 19 | |
anasse | 0:a59a3d743804 | 20 | #if defined(TARGET_MCU_NRF51822) |
anasse | 0:a59a3d743804 | 21 | |
anasse | 0:a59a3d743804 | 22 | #ifndef INITIAL_SP |
anasse | 0:a59a3d743804 | 23 | # if defined(TARGET_MCU_NORDIC_32K) |
anasse | 0:a59a3d743804 | 24 | # define INITIAL_SP (0x20008000UL) |
anasse | 0:a59a3d743804 | 25 | # elif defined(TARGET_MCU_NORDIC_16K) |
anasse | 0:a59a3d743804 | 26 | # define INITIAL_SP (0x20004000UL) |
anasse | 0:a59a3d743804 | 27 | # endif |
anasse | 0:a59a3d743804 | 28 | #endif |
anasse | 0:a59a3d743804 | 29 | |
anasse | 0:a59a3d743804 | 30 | // RTX 4 only config below, for backward-compability |
anasse | 0:a59a3d743804 | 31 | |
anasse | 0:a59a3d743804 | 32 | #ifndef OS_TASKCNT |
anasse | 0:a59a3d743804 | 33 | #define OS_TASKCNT 7 |
anasse | 0:a59a3d743804 | 34 | #endif |
anasse | 0:a59a3d743804 | 35 | #ifndef OS_MAINSTKSIZE |
anasse | 0:a59a3d743804 | 36 | #define OS_MAINSTKSIZE 512 |
anasse | 0:a59a3d743804 | 37 | #endif |
anasse | 0:a59a3d743804 | 38 | #ifndef OS_CLOCK |
anasse | 0:a59a3d743804 | 39 | #define OS_CLOCK 32768 |
anasse | 0:a59a3d743804 | 40 | #endif |
anasse | 0:a59a3d743804 | 41 | #ifndef OS_SYSTICK |
anasse | 0:a59a3d743804 | 42 | #define OS_SYSTICK 0 |
anasse | 0:a59a3d743804 | 43 | #endif |
anasse | 0:a59a3d743804 | 44 | |
anasse | 0:a59a3d743804 | 45 | #elif defined(TARGET_MCU_NRF52832) |
anasse | 0:a59a3d743804 | 46 | |
anasse | 0:a59a3d743804 | 47 | #ifndef INITIAL_SP |
anasse | 0:a59a3d743804 | 48 | #define INITIAL_SP (0x20010000UL) |
anasse | 0:a59a3d743804 | 49 | #endif |
anasse | 0:a59a3d743804 | 50 | |
anasse | 0:a59a3d743804 | 51 | // RTX 4 only config below, for backward-compability |
anasse | 0:a59a3d743804 | 52 | |
anasse | 0:a59a3d743804 | 53 | #ifndef OS_TASKCNT |
anasse | 0:a59a3d743804 | 54 | #define OS_TASKCNT 7 |
anasse | 0:a59a3d743804 | 55 | #endif |
anasse | 0:a59a3d743804 | 56 | #ifndef OS_MAINSTKSIZE |
anasse | 0:a59a3d743804 | 57 | #define OS_MAINSTKSIZE 512 |
anasse | 0:a59a3d743804 | 58 | #endif |
anasse | 0:a59a3d743804 | 59 | #ifndef OS_CLOCK |
anasse | 0:a59a3d743804 | 60 | #define OS_CLOCK 64000000 |
anasse | 0:a59a3d743804 | 61 | #endif |
anasse | 0:a59a3d743804 | 62 | |
anasse | 0:a59a3d743804 | 63 | #elif defined(TARGET_MCU_NRF52840) |
anasse | 0:a59a3d743804 | 64 | |
anasse | 0:a59a3d743804 | 65 | #ifndef INITIAL_SP |
anasse | 0:a59a3d743804 | 66 | #define INITIAL_SP (0x20040000UL) |
anasse | 0:a59a3d743804 | 67 | #endif |
anasse | 0:a59a3d743804 | 68 | |
anasse | 0:a59a3d743804 | 69 | // More than 256 bytes are needed for the idle thread stack on the NRF52840 |
anasse | 0:a59a3d743804 | 70 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
anasse | 0:a59a3d743804 | 71 | |
anasse | 0:a59a3d743804 | 72 | // RTX 4 only config below, for backward-compability |
anasse | 0:a59a3d743804 | 73 | |
anasse | 0:a59a3d743804 | 74 | #ifndef OS_TASKCNT |
anasse | 0:a59a3d743804 | 75 | #define OS_TASKCNT 24 |
anasse | 0:a59a3d743804 | 76 | #endif |
anasse | 0:a59a3d743804 | 77 | #ifndef OS_MAINSTKSIZE |
anasse | 0:a59a3d743804 | 78 | #define OS_MAINSTKSIZE 2048 |
anasse | 0:a59a3d743804 | 79 | #endif |
anasse | 0:a59a3d743804 | 80 | #ifndef OS_CLOCK |
anasse | 0:a59a3d743804 | 81 | #define OS_CLOCK 64000000 |
anasse | 0:a59a3d743804 | 82 | #endif |
anasse | 0:a59a3d743804 | 83 | |
anasse | 0:a59a3d743804 | 84 | #endif // defined(TARGET_MCU_NRF51822)... |
anasse | 0:a59a3d743804 | 85 | |
anasse | 0:a59a3d743804 | 86 | #endif // #ifndef MBED_MBED_RTX_H |