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.
Dependents: Mecatro_Gyro_Programme_Codeur_HC06
targets/TARGET_NORDIC/mbed_rtx4.h@0:a8ed743bc1e1, 2021-04-16 (annotated)
- Committer:
- daoyu_sofiane
- Date:
- Fri Apr 16 09:25:33 2021 +0000
- Revision:
- 0:a8ed743bc1e1
Projet Gyropode
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daoyu_sofiane | 0:a8ed743bc1e1 | 1 | /* mbed Microcontroller Library |
daoyu_sofiane | 0:a8ed743bc1e1 | 2 | * Copyright (c) 2016 ARM Limited |
daoyu_sofiane | 0:a8ed743bc1e1 | 3 | * |
daoyu_sofiane | 0:a8ed743bc1e1 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
daoyu_sofiane | 0:a8ed743bc1e1 | 5 | * you may not use this file except in compliance with the License. |
daoyu_sofiane | 0:a8ed743bc1e1 | 6 | * You may obtain a copy of the License at |
daoyu_sofiane | 0:a8ed743bc1e1 | 7 | * |
daoyu_sofiane | 0:a8ed743bc1e1 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
daoyu_sofiane | 0:a8ed743bc1e1 | 9 | * |
daoyu_sofiane | 0:a8ed743bc1e1 | 10 | * Unless required by applicable law or agreed to in writing, software |
daoyu_sofiane | 0:a8ed743bc1e1 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
daoyu_sofiane | 0:a8ed743bc1e1 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
daoyu_sofiane | 0:a8ed743bc1e1 | 13 | * See the License for the specific language governing permissions and |
daoyu_sofiane | 0:a8ed743bc1e1 | 14 | * limitations under the License. |
daoyu_sofiane | 0:a8ed743bc1e1 | 15 | */ |
daoyu_sofiane | 0:a8ed743bc1e1 | 16 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 17 | #ifndef MBED_MBED_RTX_H |
daoyu_sofiane | 0:a8ed743bc1e1 | 18 | #define MBED_MBED_RTX_H |
daoyu_sofiane | 0:a8ed743bc1e1 | 19 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 20 | #if defined(TARGET_MCU_NRF51822) |
daoyu_sofiane | 0:a8ed743bc1e1 | 21 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 22 | #ifndef INITIAL_SP |
daoyu_sofiane | 0:a8ed743bc1e1 | 23 | # if defined(TARGET_MCU_NORDIC_32K) |
daoyu_sofiane | 0:a8ed743bc1e1 | 24 | # define INITIAL_SP (0x20008000UL) |
daoyu_sofiane | 0:a8ed743bc1e1 | 25 | # elif defined(TARGET_MCU_NORDIC_16K) |
daoyu_sofiane | 0:a8ed743bc1e1 | 26 | # define INITIAL_SP (0x20004000UL) |
daoyu_sofiane | 0:a8ed743bc1e1 | 27 | # endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 28 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 29 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 30 | // RTX 4 only config below, for backward-compability |
daoyu_sofiane | 0:a8ed743bc1e1 | 31 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 32 | #ifndef OS_TASKCNT |
daoyu_sofiane | 0:a8ed743bc1e1 | 33 | #define OS_TASKCNT 7 |
daoyu_sofiane | 0:a8ed743bc1e1 | 34 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 35 | #ifndef OS_MAINSTKSIZE |
daoyu_sofiane | 0:a8ed743bc1e1 | 36 | #define OS_MAINSTKSIZE 512 |
daoyu_sofiane | 0:a8ed743bc1e1 | 37 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 38 | #ifndef OS_CLOCK |
daoyu_sofiane | 0:a8ed743bc1e1 | 39 | #define OS_CLOCK 32768 |
daoyu_sofiane | 0:a8ed743bc1e1 | 40 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 41 | #ifndef OS_SYSTICK |
daoyu_sofiane | 0:a8ed743bc1e1 | 42 | #define OS_SYSTICK 0 |
daoyu_sofiane | 0:a8ed743bc1e1 | 43 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 44 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 45 | #elif defined(TARGET_MCU_NRF52832) |
daoyu_sofiane | 0:a8ed743bc1e1 | 46 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 47 | #ifndef INITIAL_SP |
daoyu_sofiane | 0:a8ed743bc1e1 | 48 | #define INITIAL_SP (0x20010000UL) |
daoyu_sofiane | 0:a8ed743bc1e1 | 49 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 50 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 51 | // RTX 4 only config below, for backward-compability |
daoyu_sofiane | 0:a8ed743bc1e1 | 52 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 53 | #ifndef OS_TASKCNT |
daoyu_sofiane | 0:a8ed743bc1e1 | 54 | #define OS_TASKCNT 7 |
daoyu_sofiane | 0:a8ed743bc1e1 | 55 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 56 | #ifndef OS_MAINSTKSIZE |
daoyu_sofiane | 0:a8ed743bc1e1 | 57 | #define OS_MAINSTKSIZE 512 |
daoyu_sofiane | 0:a8ed743bc1e1 | 58 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 59 | #ifndef OS_CLOCK |
daoyu_sofiane | 0:a8ed743bc1e1 | 60 | #define OS_CLOCK 64000000 |
daoyu_sofiane | 0:a8ed743bc1e1 | 61 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 62 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 63 | #elif defined(TARGET_MCU_NRF52840) |
daoyu_sofiane | 0:a8ed743bc1e1 | 64 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 65 | #ifndef INITIAL_SP |
daoyu_sofiane | 0:a8ed743bc1e1 | 66 | #define INITIAL_SP (0x20040000UL) |
daoyu_sofiane | 0:a8ed743bc1e1 | 67 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 68 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 69 | // More than 256 bytes are needed for the idle thread stack on the NRF52840 |
daoyu_sofiane | 0:a8ed743bc1e1 | 70 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
daoyu_sofiane | 0:a8ed743bc1e1 | 71 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 72 | // RTX 4 only config below, for backward-compability |
daoyu_sofiane | 0:a8ed743bc1e1 | 73 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 74 | #ifndef OS_TASKCNT |
daoyu_sofiane | 0:a8ed743bc1e1 | 75 | #define OS_TASKCNT 24 |
daoyu_sofiane | 0:a8ed743bc1e1 | 76 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 77 | #ifndef OS_MAINSTKSIZE |
daoyu_sofiane | 0:a8ed743bc1e1 | 78 | #define OS_MAINSTKSIZE 2048 |
daoyu_sofiane | 0:a8ed743bc1e1 | 79 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 80 | #ifndef OS_CLOCK |
daoyu_sofiane | 0:a8ed743bc1e1 | 81 | #define OS_CLOCK 64000000 |
daoyu_sofiane | 0:a8ed743bc1e1 | 82 | #endif |
daoyu_sofiane | 0:a8ed743bc1e1 | 83 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 84 | #endif // defined(TARGET_MCU_NRF51822)... |
daoyu_sofiane | 0:a8ed743bc1e1 | 85 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 86 | #endif // #ifndef MBED_MBED_RTX_H |