Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_application.h Source File

mbed_application.h

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