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