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