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