Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

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