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