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 #ifndef NVIC_ADDR_H
lypinator 0:bb348c97df44 17 #define NVIC_ADDR_H
lypinator 0:bb348c97df44 18
lypinator 0:bb348c97df44 19 #ifdef __cplusplus
lypinator 0:bb348c97df44 20 extern "C" {
lypinator 0:bb348c97df44 21 #endif
lypinator 0:bb348c97df44 22
lypinator 0:bb348c97df44 23 #if defined(__ICCARM__)
lypinator 0:bb348c97df44 24 #pragma section=".intvec"
lypinator 0:bb348c97df44 25 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
lypinator 0:bb348c97df44 26 #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
lypinator 0:bb348c97df44 27 extern uint32_t Load$$LR$$LR_IROM1$$Base[];
lypinator 0:bb348c97df44 28 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
lypinator 0:bb348c97df44 29 #elif defined(__GNUC__)
lypinator 0:bb348c97df44 30 extern uint32_t g_pfnVectors[];
lypinator 0:bb348c97df44 31 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors)
lypinator 0:bb348c97df44 32 #else
lypinator 0:bb348c97df44 33 #error "Flash vector address not set for this toolchain"
lypinator 0:bb348c97df44 34 #endif
lypinator 0:bb348c97df44 35
lypinator 0:bb348c97df44 36 #ifdef __cplusplus
lypinator 0:bb348c97df44 37 }
lypinator 0:bb348c97df44 38 #endif
lypinator 0:bb348c97df44 39
lypinator 0:bb348c97df44 40 #endif