BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:47:08 2018 +0000
Revision:
1:9c5af431a1f1
sdf

Who changed what in which revision?

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