test

Committer:
elijahsj
Date:
Mon Nov 09 00:02:47 2020 -0500
Revision:
1:8a094db1347f
test

Who changed what in which revision?

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