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: TYBLE16_simple_data_logger TYBLE16_MP3_Air
platform/mbed_application.h@0:5b88d5760320, 2019-12-17 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue Dec 17 23:23:45 2019 +0000
- Revision:
- 0:5b88d5760320
mbed-os5 only for TYBLE16
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kenjiArai | 0:5b88d5760320 | 1 | /* mbed Microcontroller Library |
| kenjiArai | 0:5b88d5760320 | 2 | * Copyright (c) 2017-2017 ARM Limited |
| kenjiArai | 0:5b88d5760320 | 3 | * SPDX-License-Identifier: Apache-2.0 |
| kenjiArai | 0:5b88d5760320 | 4 | * |
| kenjiArai | 0:5b88d5760320 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| kenjiArai | 0:5b88d5760320 | 6 | * you may not use this file except in compliance with the License. |
| kenjiArai | 0:5b88d5760320 | 7 | * You may obtain a copy of the License at |
| kenjiArai | 0:5b88d5760320 | 8 | * |
| kenjiArai | 0:5b88d5760320 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| kenjiArai | 0:5b88d5760320 | 10 | * |
| kenjiArai | 0:5b88d5760320 | 11 | * Unless required by applicable law or agreed to in writing, software |
| kenjiArai | 0:5b88d5760320 | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| kenjiArai | 0:5b88d5760320 | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| kenjiArai | 0:5b88d5760320 | 14 | * See the License for the specific language governing permissions and |
| kenjiArai | 0:5b88d5760320 | 15 | * limitations under the License. |
| kenjiArai | 0:5b88d5760320 | 16 | */ |
| kenjiArai | 0:5b88d5760320 | 17 | |
| kenjiArai | 0:5b88d5760320 | 18 | #ifndef MBED_APPLICATION_H |
| kenjiArai | 0:5b88d5760320 | 19 | #define MBED_APPLICATION_H |
| kenjiArai | 0:5b88d5760320 | 20 | |
| kenjiArai | 0:5b88d5760320 | 21 | #include<stdint.h> |
| kenjiArai | 0:5b88d5760320 | 22 | |
| kenjiArai | 0:5b88d5760320 | 23 | #if defined(__CORTEX_M0PLUS) || defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7)\ |
| kenjiArai | 0:5b88d5760320 | 24 | || defined(__CORTEX_M23) || defined(__CORTEX_A9) || defined(__CORTEX_M33) |
| kenjiArai | 0:5b88d5760320 | 25 | #define MBED_APPLICATION_SUPPORT 1 |
| kenjiArai | 0:5b88d5760320 | 26 | #else |
| kenjiArai | 0:5b88d5760320 | 27 | #define MBED_APPLICATION_SUPPORT 0 |
| kenjiArai | 0:5b88d5760320 | 28 | #endif |
| kenjiArai | 0:5b88d5760320 | 29 | |
| kenjiArai | 0:5b88d5760320 | 30 | #if MBED_APPLICATION_SUPPORT |
| kenjiArai | 0:5b88d5760320 | 31 | #ifdef __cplusplus |
| kenjiArai | 0:5b88d5760320 | 32 | extern "C" { |
| kenjiArai | 0:5b88d5760320 | 33 | #endif |
| kenjiArai | 0:5b88d5760320 | 34 | |
| kenjiArai | 0:5b88d5760320 | 35 | /** |
| kenjiArai | 0:5b88d5760320 | 36 | * Start the application at the given address. This function does |
| kenjiArai | 0:5b88d5760320 | 37 | * not return. It is the applications responsibility for flushing to |
| kenjiArai | 0:5b88d5760320 | 38 | * or powering down external components such as filesystems or |
| kenjiArai | 0:5b88d5760320 | 39 | * socket connections before calling this function. For Cortex-M |
| kenjiArai | 0:5b88d5760320 | 40 | * devices this function powers down generic system components such as |
| kenjiArai | 0:5b88d5760320 | 41 | * the NVIC and set the vector table to that of the new image followed |
| kenjiArai | 0:5b88d5760320 | 42 | * by jumping to the reset handler of the new image. |
| kenjiArai | 0:5b88d5760320 | 43 | * |
| kenjiArai | 0:5b88d5760320 | 44 | * @param address Starting address of next application to run |
| kenjiArai | 0:5b88d5760320 | 45 | */ |
| kenjiArai | 0:5b88d5760320 | 46 | void mbed_start_application(uintptr_t address); |
| kenjiArai | 0:5b88d5760320 | 47 | |
| kenjiArai | 0:5b88d5760320 | 48 | #ifdef __cplusplus |
| kenjiArai | 0:5b88d5760320 | 49 | } |
| kenjiArai | 0:5b88d5760320 | 50 | #endif |
| kenjiArai | 0:5b88d5760320 | 51 | #endif |
| kenjiArai | 0:5b88d5760320 | 52 | |
| kenjiArai | 0:5b88d5760320 | 53 | #endif |
| kenjiArai | 0:5b88d5760320 | 54 |