mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_application.h Source File

mbed_application.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2017-2017 ARM Limited
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef MBED_APPLICATION_H
00019 #define MBED_APPLICATION_H
00020 
00021 #include<stdint.h>
00022 
00023 #if defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7)\
00024     || defined(__CORTEX_M23) || defined(__CORTEX_A9)
00025 #define MBED_APPLICATION_SUPPORT 1
00026 #else
00027 #define MBED_APPLICATION_SUPPORT 0
00028 #endif
00029 
00030 #if MBED_APPLICATION_SUPPORT
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /**
00036  *  Start the application at the given address. This function does
00037  *  not return. It is the applications responsibility for flushing to
00038  *  or powering down external components such as filesystems or
00039  *  socket connections before calling this function. For Cortex-M
00040  *  devices this function powers down generic system components such as
00041  *  the NVIC and set the vector table to that of the new image followed
00042  *  by jumping to the reset handler of the new image.
00043  *
00044  *  @param address    Starting address of next application to run
00045  */
00046 void mbed_start_application(uintptr_t address);
00047 
00048 #ifdef __cplusplus
00049 }
00050 #endif
00051 #endif
00052 
00053 #endif
00054