The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_VBLUNO51/TARGET_NORDIC/mbed_rtx.h@156:ff21514d8981, 2017-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Nov 08 17:18:06 2017 +0000
- Revision:
- 156:ff21514d8981
- Child:
- 168:b9e159c1930a
Reverting back to release 154 of the mbed library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 156:ff21514d8981 | 1 | /* mbed Microcontroller Library |
AnnaBridge | 156:ff21514d8981 | 2 | * Copyright (c) 2016 ARM Limited |
AnnaBridge | 156:ff21514d8981 | 3 | * |
AnnaBridge | 156:ff21514d8981 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 156:ff21514d8981 | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 156:ff21514d8981 | 6 | * You may obtain a copy of the License at |
AnnaBridge | 156:ff21514d8981 | 7 | * |
AnnaBridge | 156:ff21514d8981 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 156:ff21514d8981 | 9 | * |
AnnaBridge | 156:ff21514d8981 | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 156:ff21514d8981 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 156:ff21514d8981 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 156:ff21514d8981 | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 156:ff21514d8981 | 14 | * limitations under the License. |
AnnaBridge | 156:ff21514d8981 | 15 | */ |
AnnaBridge | 156:ff21514d8981 | 16 | |
AnnaBridge | 156:ff21514d8981 | 17 | #ifndef MBED_MBED_RTX_H |
AnnaBridge | 156:ff21514d8981 | 18 | #define MBED_MBED_RTX_H |
AnnaBridge | 156:ff21514d8981 | 19 | |
AnnaBridge | 156:ff21514d8981 | 20 | #if defined(TARGET_MCU_NRF51822) |
AnnaBridge | 156:ff21514d8981 | 21 | |
AnnaBridge | 156:ff21514d8981 | 22 | #ifndef INITIAL_SP |
AnnaBridge | 156:ff21514d8981 | 23 | # if defined(TARGET_MCU_NORDIC_32K) |
AnnaBridge | 156:ff21514d8981 | 24 | # define INITIAL_SP (0x20008000UL) |
AnnaBridge | 156:ff21514d8981 | 25 | # elif defined(TARGET_MCU_NORDIC_16K) |
AnnaBridge | 156:ff21514d8981 | 26 | # define INITIAL_SP (0x20004000UL) |
AnnaBridge | 156:ff21514d8981 | 27 | # endif |
AnnaBridge | 156:ff21514d8981 | 28 | #endif |
AnnaBridge | 156:ff21514d8981 | 29 | |
AnnaBridge | 156:ff21514d8981 | 30 | #ifndef OS_SYSTICK |
AnnaBridge | 156:ff21514d8981 | 31 | #define OS_SYSTICK 0 |
AnnaBridge | 156:ff21514d8981 | 32 | #endif |
AnnaBridge | 156:ff21514d8981 | 33 | |
AnnaBridge | 156:ff21514d8981 | 34 | #elif defined(TARGET_MCU_NRF52832) |
AnnaBridge | 156:ff21514d8981 | 35 | |
AnnaBridge | 156:ff21514d8981 | 36 | #ifndef INITIAL_SP |
AnnaBridge | 156:ff21514d8981 | 37 | #define INITIAL_SP (0x20010000UL) |
AnnaBridge | 156:ff21514d8981 | 38 | #endif |
AnnaBridge | 156:ff21514d8981 | 39 | |
AnnaBridge | 156:ff21514d8981 | 40 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
AnnaBridge | 156:ff21514d8981 | 41 | |
AnnaBridge | 156:ff21514d8981 | 42 | #elif defined(TARGET_MCU_NRF52840) |
AnnaBridge | 156:ff21514d8981 | 43 | |
AnnaBridge | 156:ff21514d8981 | 44 | #ifndef INITIAL_SP |
AnnaBridge | 156:ff21514d8981 | 45 | #define INITIAL_SP (0x20040000UL) |
AnnaBridge | 156:ff21514d8981 | 46 | #endif |
AnnaBridge | 156:ff21514d8981 | 47 | |
AnnaBridge | 156:ff21514d8981 | 48 | // More than 256 bytes are needed for the idle thread stack on the NRF52840 |
AnnaBridge | 156:ff21514d8981 | 49 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
AnnaBridge | 156:ff21514d8981 | 50 | |
AnnaBridge | 156:ff21514d8981 | 51 | #endif // defined(TARGET_MCU_NRF51822)... |
AnnaBridge | 156:ff21514d8981 | 52 | |
AnnaBridge | 156:ff21514d8981 | 53 | #endif // #ifndef MBED_MBED_RTX_H |