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