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_VBLUNO52/TARGET_NORDIC/mbed_rtx.h@148:fd96258d940d, 2017-08-03 (annotated)
- Committer:
- Kojto
- Date:
- Thu Aug 03 13:37:00 2017 +0100
- Revision:
- 148:fd96258d940d
- Child:
- 168:b9e159c1930a
Release 148 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 148:fd96258d940d | 1 | /* mbed Microcontroller Library |
Kojto | 148:fd96258d940d | 2 | * Copyright (c) 2016 ARM Limited |
Kojto | 148:fd96258d940d | 3 | * |
Kojto | 148:fd96258d940d | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 148:fd96258d940d | 5 | * you may not use this file except in compliance with the License. |
Kojto | 148:fd96258d940d | 6 | * You may obtain a copy of the License at |
Kojto | 148:fd96258d940d | 7 | * |
Kojto | 148:fd96258d940d | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 148:fd96258d940d | 9 | * |
Kojto | 148:fd96258d940d | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 148:fd96258d940d | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 148:fd96258d940d | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 148:fd96258d940d | 13 | * See the License for the specific language governing permissions and |
Kojto | 148:fd96258d940d | 14 | * limitations under the License. |
Kojto | 148:fd96258d940d | 15 | */ |
Kojto | 148:fd96258d940d | 16 | |
Kojto | 148:fd96258d940d | 17 | #ifndef MBED_MBED_RTX_H |
Kojto | 148:fd96258d940d | 18 | #define MBED_MBED_RTX_H |
Kojto | 148:fd96258d940d | 19 | |
Kojto | 148:fd96258d940d | 20 | #if defined(TARGET_MCU_NRF51822) |
Kojto | 148:fd96258d940d | 21 | |
Kojto | 148:fd96258d940d | 22 | #ifndef INITIAL_SP |
Kojto | 148:fd96258d940d | 23 | # if defined(TARGET_MCU_NORDIC_32K) |
Kojto | 148:fd96258d940d | 24 | # define INITIAL_SP (0x20008000UL) |
Kojto | 148:fd96258d940d | 25 | # elif defined(TARGET_MCU_NORDIC_16K) |
Kojto | 148:fd96258d940d | 26 | # define INITIAL_SP (0x20004000UL) |
Kojto | 148:fd96258d940d | 27 | # endif |
Kojto | 148:fd96258d940d | 28 | #endif |
Kojto | 148:fd96258d940d | 29 | |
Kojto | 148:fd96258d940d | 30 | #ifndef OS_SYSTICK |
Kojto | 148:fd96258d940d | 31 | #define OS_SYSTICK 0 |
Kojto | 148:fd96258d940d | 32 | #endif |
Kojto | 148:fd96258d940d | 33 | |
Kojto | 148:fd96258d940d | 34 | #elif defined(TARGET_MCU_NRF52832) |
Kojto | 148:fd96258d940d | 35 | |
Kojto | 148:fd96258d940d | 36 | #ifndef INITIAL_SP |
Kojto | 148:fd96258d940d | 37 | #define INITIAL_SP (0x20010000UL) |
Kojto | 148:fd96258d940d | 38 | #endif |
Kojto | 148:fd96258d940d | 39 | |
Kojto | 148:fd96258d940d | 40 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
Kojto | 148:fd96258d940d | 41 | |
Kojto | 148:fd96258d940d | 42 | #elif defined(TARGET_MCU_NRF52840) |
Kojto | 148:fd96258d940d | 43 | |
Kojto | 148:fd96258d940d | 44 | #ifndef INITIAL_SP |
Kojto | 148:fd96258d940d | 45 | #define INITIAL_SP (0x20040000UL) |
Kojto | 148:fd96258d940d | 46 | #endif |
Kojto | 148:fd96258d940d | 47 | |
Kojto | 148:fd96258d940d | 48 | // More than 256 bytes are needed for the idle thread stack on the NRF52840 |
Kojto | 148:fd96258d940d | 49 | #define OS_IDLE_THREAD_STACK_SIZE 512 |
Kojto | 148:fd96258d940d | 50 | |
Kojto | 148:fd96258d940d | 51 | #endif // defined(TARGET_MCU_NRF51822)... |
Kojto | 148:fd96258d940d | 52 | |
Kojto | 148:fd96258d940d | 53 | #endif // #ifndef MBED_MBED_RTX_H |