test test test

Dependencies:   mbed

Committer:
mohamedmoawya
Date:
Mon May 25 19:06:11 2020 +0000
Revision:
0:e4c5e6ec922e
snake game tteest

Who changed what in which revision?

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